Add C2x BOOL_MAX and BOOL_WIDTH to limits.h.
[glibc.git] / ChangeLog.old / ChangeLog.19
blob84d56ed5e8eb57e223541c9386f8582e31516577
1 2019-10-11  Florian Weimer  <fweimer@redhat.com>
3         * manual/startup.texi (Aborting a Program): Remove warning.
5 2019-10-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7         [BZ #18231]
8         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9         bits/ipc-perm.h.
10         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: Remove file.
11         * sysdeps/unix/sysv/linux/alpha/bits/ipc.h: Likewise.
12         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: Likewise.
13         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: Likewise.
14         * sysdeps/unix/sysv/linux/mips/bits/ipc.h: Likewise.
15         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
16         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
17         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
18         * sysdeps/unix/sysv/linux/arm/kernel-features.h
19         [__BYTE_ORDER == __BIG_ENDIAN] (__ASSUME_SYSVIPC_BROKEN_MODE_T):
20         Define.
21         * sysdeps/sysv/linux/microblaze/kernel-features.h: Likewise.
22         * sysdeps/unix/sysv/linux/s390/kernel-features.h
23         [!__s390x__] (__ASSUME_SYSVIPC_BROKEN_MODE_T): Define.
24         * sysdeps/unix/sysv/linux/sh/kernel-features.h
25         (__ASSUME_SYSVIPC_BROKEN_MODE_T): Define.
26         * sysdeps/unix/sysv/linux/m68k/kernel-features.h: Likewise.
27         * sysdeps/unix/sysv/linux/bits/ipc-perm.h: New file.
28         * sysdeps/unix/sysv/linux/powerpc/bits/ipc-perm.h: Likewise.
29         * sysdeps/unix/sysv/linux/sparc/bits/ipc-perm.h: Likewise.
30         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Move to
31         bits/ipc-perm.h.
32         * sysdeps/unix/sysv/linux/hppa/bits/ipc-perm.h: New file.
33         * sysdeps/unix/sysv/linux/kernel-features.h: Add comment about
34         __ASSUME_SYSVIPC_BROKEN_MODE_T semantic.
35         * sysdeps/unix/sysv/linux/msgctl.c (DEFAULT_VERSION): Define as
36         2.31 if __ASSUME_SYSVIPC_BROKEN_MODE_T is defined.
37         (msgctl_syscall, __msgctl_mode16): New symbol.
38         (__new_msgctl): Add bits for __ASSUME_SYSVIPC_BROKEN_MODE_T.
39         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
40         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
41         * sysdeps/unix/sysv/linux/arm/be/libc.abilist (GLIBC_2.31): Add
42         msgctl, semctl, and shmctl.
43         * sysdeps/sysv/linux/microblaze/be/libc.abilist: Likewise.
44         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
45         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
46         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
47         * sysdeps/unix/sysv/linux/sh/be/libc.abilist: Likewise.
48         * conform/data/sys/ipc.h-data: Only xfail {struct ipc_perm} mode_t
49         mode for Hurd.
50         * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_2.31]: Add
51         msgctl, semctl, and shmctl.
52         * sysdeps/unix/sysv/linux/arm/be/Versions: New file.
53         * sysdeps/unix/sysv/linux/microblaze/be/Versions: Likewise.
54         * sysdeps/unix/sysv/linux/sh/be/Versions: Likewise.
56 2019-10-10  Andreas Schwab  <schwab@suse.de>
58         * elf/dl-load.c (open_verify): Remove dead code.
60 2019-10-10  Dmitry V. Levin  <ldv@altlinux.org>
62         * sysdeps/unix/sysv/linux/syscall-names.list: Fix typos in comment,
63         reformat the affected paragraph.
65 2019-10-10  Ćukasz Majewski <lukma@denx.de>
67         * include/time.h (__clock_settime64):
68         Add __clock_settime alias according to __TIMESIZE define
69         * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime):
70         Refactor this function to be used only on 32 bit machines as a
71         wrapper on __clock_settime64.
72         * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime64): Add
73         * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime64):
74         Use clock_settime64 kernel syscall (available from 5.1+ Linux)
76 2019-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
78         * include/spawn.h (__posix_spawn_file_actions_addopen): New
79         prototype.
80         * posix/spawn_faction_addopen.c (posix_spawn_file_actions_addopen):
81         Add internal alias.
82         * posix/wordexp.c (create_environment, free_environment): New
83         functions.
84         (exec_comm_child, exec_comm): Use posix_spawn instead of fork+exec.
85         * posix/wordexp-test.c: Use libsupport.
87         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
88         Add small optimization for older kernel to avoid issuing
89         __NR_getdents64 on each call and replace scratch_buffer usage with
90         a static allocated buffer.
92 2019-10-09  Florian Weimer  <fweimer@redhat.com>
94         * config.h.in (HAVE_GCC_GOTDATA): Remove.
95         * sysdeps/sparc/configure.ac: Remove checks for HAVE_GCC_GOTDATA
96         and PI_STATIC_AND_HIDDEN.  Always define PI_STATIC_AND_HIDDEN.
97         * sysdeps/sparc/configure: Regenerate.
99 2019-10-09  Petr Vorel  <pvorel@suse.cz>
101         * include/dirent.h (__getdents64): Update comment.
103 2019-10-08  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
105         * Makefile: Fix locale dependency for a couple of tests.
106         ($(objpfx)tst-strftime2.out): New rule.
107         ($(objpfx)tst-strftime3.out): Likewise.
109 2019-10-08  Florian Weimer  <fweimer@redhat.com>
111         * posix/tst-wordexp-nocmd.c (do_test): Fix diagnostics output.
113 2019-10-08  Florian Weimer  <fweimer@redhat.com>
115         * posix/Makefile (tests): Add tst-wordexp-nocmd.
116         * posix/wordexp-test.c (__app_register_atfork): Remove function.
117         (registered_forks): Remove variable.
118         (register_fork): Remove function.
119         (test_case): Remove WRDE_NOCMD tests.
120         (main): Do not set up fork tracking.  Remove integer overflow in
121         division tests.
122         (testit): Do not check for unexpected forks.
123         * posix/tst-wordexp-nocmd.c: New file containing the tests removed
124         from posix/wordexp-test.c.
126 2019-10-07  Florian Weimer  <fweimer@redhat.com>
128         nptl: Move pthread_attr_setschedparam implementation into libc.
129         * nptl/Makefile (routines): Add pthread_attr_setschedparam.
130         (libpthread-routines): Remove pthread_attr_setschedparam.
131         * nptl/Versions (libpthread GLIBC_2.0): Remove
132         pthread_attr_setschedparam.
133         * nptl/forward.c (pthread_attr_setschedparam): Remove definition.
134         * nptl/nptl-init.c (pthread_functions): Remove initializer for
135         ptr_pthread_attr_setschedparam.
136         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
137         Remove ptr_pthread_attr_setschedparam member.
138         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
139         Remove pthread_attr_setschedparam.
140         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
141         Likewise.
142         * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
143         Likewise.
144         * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
145         Likewise.
146         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
147         Likewise.
148         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
149         Likewise.
150         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
151         Likewise.
152         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
153         Likewise.
154         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
155         (GLIBC_2.4): Likewise.
156         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
157         (GLIBC_2.0): Likewise.
158         * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
159         (GLIBC_2.18): Likewise.
160         * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
161         (GLIBC_2.18): Likewise.
162         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
163         (GLIBC_2.0): Likewise.
164         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
165         (GLIBC_2.0): Likewise.
166         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
167         Likewise.
168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
169         (GLIBC_2.0): Likewise.
170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
171         (GLIBC_2.3): Likewise.
172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
173         (GLIBC_2.17): Likewise.
174         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
175         (GLIBC_2.27): Likewise.
176         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
177         (GLIBC_2.0): Likewise.
178         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
179         (GLIBC_2.2): Likewise.
180         * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
181         Likewise.
182         * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
183         Likewise.
184         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
185         (GLIBC_2.0): Likewise.
186         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
187         (GLIBC_2.2): Likewise.
188         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
189         (GLIBC_2.2.5): Likewise.
190         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
191         (GLIBC_2.16): Likewise.
193 2019-10-07  Florian Weimer  <fweimer@redhat.com>
195         riscv: Remove support for variable page sizes.
196         * sysdeps/unix/sysv/linux/riscv/Makefile [$(subdir) == elf]
197         (sysdep_routines): Do not add dl-static.
198         * sysdeps/unix/sysv/linux/riscv/dl-static.c: Remove file.
199         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
201 2019-10-07  Florian Weimer  <fweimer@redhat.com>
203         nptl: Move pthread_attr_getschedparam implementation into libc.
204         * nptl/Makefile (routines): Add pthread_attr_getschedparam.
205         (libpthread-routines): Remove pthread_attr_getschedparam.
206         * nptl/Versions (libpthread GLIBC_2.0): Remove
207         pthread_attr_getschedparam.
208         * nptl/forward.c (pthread_attr_getschedparam): Remove definition.
209         * nptl/nptl-init.c (pthread_functions): Remove initializer for
210         ptr_pthread_attr_getschedparam.
211         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
212         Remove ptr_pthread_attr_getschedparam member.
213         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
214         Remove pthread_attr_getschedparam.
215         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
216         Likewise.
217         * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
218         Likewise.
219         * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
220         Likewise.
221         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
222         Likewise.
223         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
224         Likewise.
225         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
226         Likewise.
227         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
228         Likewise.
229         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
230         (GLIBC_2.4): Likewise.
231         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
232         (GLIBC_2.0): Likewise.
233         * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
234         (GLIBC_2.18): Likewise.
235         * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
236         (GLIBC_2.18): Likewise.
237         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
238         (GLIBC_2.0): Likewise.
239         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
240         (GLIBC_2.0): Likewise.
241         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
242         Likewise.
243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
244         (GLIBC_2.0): Likewise.
245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
246         (GLIBC_2.3): Likewise.
247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
248         (GLIBC_2.17): Likewise.
249         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
250         (GLIBC_2.27): Likewise.
251         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
252         (GLIBC_2.0): Likewise.
253         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
254         (GLIBC_2.2): Likewise.
255         * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
256         Likewise.
257         * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
258         Likewise.
259         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
260         (GLIBC_2.0): Likewise.
261         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
262         (GLIBC_2.2): Likewise.
263         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
264         (GLIBC_2.2.5): Likewise.
265         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
266         (GLIBC_2.16): Likewise.
268 2019-10-04  Florian Weimer  <fweimer@redhat.com>
270         [BZ #24930]
271         * elf/dl-load.c (_dl_map_object_from_fd): Only assign TLS modid if
272         the link map will be returned to the caller.
273         * elf/Makefile [$(have-fpie) && $(build-shared)] (tests, tests-pie):
274         Add tst-dlopen-aout-pie.
275         (tst-tst-dlopen-aout-no-pie): Set.
276         (CFLAGS-tst-dlopen-aout-pie.c): Build with -fpie.
277         (tst-dlopen-aout-pie): Link with -ldl -lpthread.
278         * elf/tst-dlopen-aout-pie.c: New file.
280 2019-10-04  Florian Weimer  <fweimer@redhat.com>
282         [BZ #24900]
283         * elf/dl-load.c (_dl_map_object_from_fd): Do not use the file ID
284         when loading the executable as part of an explicit loader
285         invocation.
287 2019-10-04  Florian Weimer  <fweimer@redhat.com>
289         nptl: Move pthread_attr_setinheritsched implementation into libc.
290         * nptl/Makefile (routines): Add pthread_attr_setinheritsched.
291         (libpthread-routines): Remove pthread_attr_setinheritsched.
292         * nptl/Versions (libpthread GLIBC_2.0): Remove
293         pthread_attr_setinheritsched.
294         * nptl/forward.c (pthread_attr_setinheritsched): Remove definition.
295         * nptl/nptl-init.c (pthread_functions): Remove initializer for
296         ptr_pthread_attr_setinheritsched.
297         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
298         Remove ptr_pthread_attr_setinheritsched member.
299         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
300         Remove pthread_attr_setinheritsched.
301         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
302         Likewise.
303         * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
304         Likewise.
305         * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
306         Likewise.
307         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
308         Likewise.
309         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
310         Likewise.
311         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
312         Likewise.
313         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
314         Likewise.
315         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
316         (GLIBC_2.4): Likewise.
317         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
318         (GLIBC_2.0): Likewise.
319         * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
320         (GLIBC_2.18): Likewise.
321         * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
322         (GLIBC_2.18): Likewise.
323         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
324         (GLIBC_2.0): Likewise.
325         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
326         (GLIBC_2.0): Likewise.
327         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
328         Likewise.
329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
330         (GLIBC_2.0): Likewise.
331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
332         (GLIBC_2.3): Likewise.
333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
334         (GLIBC_2.17): Likewise.
335         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
336         (GLIBC_2.27): Likewise.
337         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
338         (GLIBC_2.0): Likewise.
339         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
340         (GLIBC_2.2): Likewise.
341         * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
342         Likewise.
343         * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
344         Likewise.
345         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
346         (GLIBC_2.0): Likewise.
347         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
348         (GLIBC_2.2): Likewise.
349         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
350         (GLIBC_2.2.5): Likewise.
351         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
352         (GLIBC_2.16): Likewise.
354 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
356         * sunrpc/clnt_udp.c: Include <libc-diag.h>.
357         (clntudp_call): Disable -Wmaybe-uninitialized around declaration
358         of total_deadline.
360 2019-10-02  Alistair Francis  <alistair.francis@wdc.com>
362         * string/endian.h: Restore the __USE_MISC conditionals.
364 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
366         * string/tester.c: Ignore -Warray-bounds and
367         -Wmemset-transposed-args at top level.
368         [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict and -Wstringop-overflow=
369         at top level.
370         [__GNUC_PREREQ (8, 0)]: Ignore -Wstringop-truncation at top level.
371         (test_stpncpy): Do not ignore warnings here.
372         (test_strncat): Likewise.
373         (test_strncpy): Likewise.
374         (test_memset): Likewise.
376 2019-10-02  Ćukasz Majewski <lukma@denx.de>
378         * include/time.h: Add #include <bits/types/struct_timeval.h>
380 2019-10-02  Paul A. Clarke  <pc@us.ibm.com>
382         * sysdeps/powerpc/fpu/fenv_private.h:
383         (__TEST_AND_BEGIN_NON_STOP): New.
384         (__TEST_AND_END_NON_STOP): New.
385         (libc_feholdexcept_setround_ppc): Use __TEST_AND_BEGIN_NON_STOP.
386         (__libc_femergeenv_ppc): Use __TEST_AND_BEGIN_NON_STOP and
387         __TEST_AND_END_NON_STOP.
388         (libc_feholdsetround_noex_ppc_ctx): Use __TEST_AND_END_NON_STOP.
390 2019-10-02  Arjun Shankar  <arjun@redhat.com>
392         debugglibc.sh: Implement program arguments
393         * Makefile (debugglibc): Change variable definition.
395 2019-10-01  Alistair Francis  <alistair.francis@wdc.com>
397          * time/bits/types/struct_timespec.h: Add padding for the timespec if
398         required.
400 2019-10-01  Zack Weinberg  <zackw@panix.com>
401             Alistair Francis <alistair.francis@wdc.com>
403         * string/endian.h: Unconditionally define LITTLE_ENDIAN,
404         BIG_ENDIAN, PDP_ENDIAN, and BYTE_ORDER.  Condition byteswapping
405         macros only on !__ASSEMBLER__.  Move the definitions of
406         __BIG_ENDIAN, __LITTLE_ENDIAN, __PDP_ENDIAN, __FLOAT_WORD_ORDER,
407         and __LONG_LONG_PAIR to...
408         * string/bits/endian.h: ...this new file, which includes
409         the renamed header bits/endianness.h for the definition of
410         __BYTE_ORDER and possibly __FLOAT_WORD_ORDER.
412         * string/Makefile: Install bits/endianness.h.
413         * include/bits/endian.h: New wrapper.
415         * bits/endian.h: Rename to bits/endianness.h.
416         Add multiple-include guard.  Rewrite the comment explaining what
417         the machine-specific variants of this file should do.
419         * sysdeps/unix/sysv/linux/ia64/bits/endian.h:
420         Move to sysdeps/ia64.
422         * sysdeps/aarch64/bits/endian.h
423         * sysdeps/alpha/bits/endian.h
424         * sysdeps/arm/bits/endian.h
425         * sysdeps/csky/bits/endian.h
426         * sysdeps/hppa/bits/endian.h
427         * sysdeps/ia64/bits/endian.h
428         * sysdeps/m68k/bits/endian.h
429         * sysdeps/microblaze/bits/endian.h
430         * sysdeps/mips/bits/endian.h
431         * sysdeps/nios2/bits/endian.h
432         * sysdeps/powerpc/bits/endian.h
433         * sysdeps/riscv/bits/endian.h
434         * sysdeps/s390/bits/endian.h
435         * sysdeps/sh/bits/endian.h
436         * sysdeps/sparc/bits/endian.h
437         * sysdeps/x86/bits/endian.h:
438         Rename to endianness.h; canonicalize form of file; remove
439         redundant definitions of __FLOAT_WORD_ORDER.
441         * sysdeps/powerpc/bits/endianness.h: Remove logic to check for
442         broken compilers.
444         * ctype/ctype.h
445         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
446         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
447         * sysdeps/csky/nptl/bits/pthreadtypes-arch.h
448         * sysdeps/ia64/ieee754.h
449         * sysdeps/ieee754/ieee754.h
450         * sysdeps/ieee754/ldbl-128/ieee754.h
451         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
452         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
453         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
454         * sysdeps/mips/ieee754/ieee754.h
455         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
456         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
457         * sysdeps/nptl/pthread.h
458         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h
459         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
460         * sysdeps/sparc/sparc32/ieee754.h
461         * sysdeps/unix/sysv/linux/generic/bits/stat.h
462         * sysdeps/unix/sysv/linux/generic/bits/statfs.h
463         * sysdeps/unix/sysv/linux/sys/acct.h
464         * wctype/bits/wctype-wchar.h:
465         Include bits/endian.h, not endian.h.
467         * sysdeps/unix/sysv/linux/hppa/pthread.h: Don’t include endian.h.
469         * sysdeps/mips/ieee754/ieee754.h: Use __LDBL_MANT_DIG__
470         in ifdefs, instead of LDBL_MANT_DIG.  Only include float.h
471         when __LDBL_MANT_DIG__ is not predefined, in which case
472         define __LDBL_MANT_DIG__ to equal LDBL_MANT_DIG.
474 2019-09-17  Mike FABIAN  <mfabian@redhat.com>
476         * localedata/locales/az_AZ: Make lang_name agree with CLDR
477         * localedata/locales/be_BY@latin: Make lang_name agree with langtable
478         * localedata/locales/ber_DZ: Make language, country_name, lang_name agree with langtable
479         * localedata/locales/ber_MA: Add country_name from langtable, make language, lang_name agree with langtable
480         * localedata/locales/bhb_IN: Add country_name from langtable, make lang_name agree with langtable
481         * localedata/locales/bho_IN: Add country_name from langtable
482         * localedata/locales/chr_US: Make country_name agree with CLDR
483         * localedata/locales/crh_UA: Make lang_name agree with langtable
484         * localedata/locales/csb_PL: Add country_name from langtable
485         * localedata/locales/doi_IN: Add country_name from langtable
486         * localedata/locales/dv_MV: Add country_name from langtable
487         * localedata/locales/eo: Fix capitalisation of lang_name, agree with CLDR
488         * localedata/locales/hak_TW: Make lang_name agree with langtable
489         * localedata/locales/hif_FJ: Make lang_name agree with langtable
490         * localedata/locales/hne_IN: Add country_name from langtable
491         * localedata/locales/ia_FR: Fix capitalisation of lang_name, agree with CLDR
492         * localedata/locales/id_ID: Make lang_name agree with CLDR
493         * localedata/locales/ig_NG: Make country_name, lang_name agree with CLDR
494         * localedata/locales/kab_DZ: Make country_name agree  with CLDR
495         * localedata/locales/ks_IN: Make country_name agree with CLDR
496         * localedata/locales/ku_TR: Make country_name, lang_name agree with CLDR
497         * localedata/locales/mag_IN: Add country_name from langtable
498         * localedata/locales/mfe_MU: Make country_name agree with CLDR
499         * localedata/locales/mhr_RU: Add lang_name from langtable
500         * localedata/locales/mi_NZ: Make lang_name agree with CLDR
501         * localedata/locales/ms_MY: Make lang_name agree with CLDR
502         * localedata/locales/nan_TW: Make lang_name agree with langtable
503         * localedata/locales/nan_TW@latin: Make lang_name agree with langtable
504         * localedata/locales/nds_DE: Make lang_name agree with langtable
505         * localedata/locales/nds_NL: Make lang_name agree with langtable
506         * localedata/locales/nhn_MX: Add country_name from langtable, make lang_name agree with langtable
507         * localedata/locales/niu_NU: Add country_name, lang_name from langtable
508         * localedata/locales/niu_NZ: Add lang_name from langtable
509         * localedata/locales/nr_ZA: Fix capitalisation of lang_name from langtable
510         * localedata/locales/oc_FR: Fix capitalisation of lang_name from langtable
511         * localedata/locales/or_IN: Fix spelling of language from langtable
512         * localedata/locales/pa_PK: Make country_name agree with CLDR
513         * localedata/locales/ps_AF: Make country_name agree with CLDR
514         * localedata/locales/quz_PE: Make language, lang_name agree with langtable
515         * localedata/locales/raj_IN: Make country_name, lang_name agree with langtable
516         * localedata/locales/rw_RW: Make country_name agree with CLDR
517         * localedata/locales/sah_RU: Make langauge, country_name, lang_name agree with CLDR
518         * localedata/locales/sat_IN: Make country_name, lang_name agree with langtable
519         * localedata/locales/sc_IT: Fix capitalisaton of lang_name according to langtable
520         * localedata/locales/sd_IN: Make country_name, lang_name agree with CLDR
521         * localedata/locales/sd_IN@devanagari: Make lang_name agree with langtable
522         * localedata/locales/shn_MM: Make country_name agree with langtable
523         * localedata/locales/shs_CA: Make language, lang_name agree with langtable
524         * localedata/locales/sm_WS: Make country_name agree with langtable
525         * localedata/locales/ss_ZA: Fix capitalisation of lang_name from langtable
526         * localedata/locales/szl_PL: Add country_name from langtable
527         * localedata/locales/te_IN: Fix country_name from CLDR
528         * localedata/locales/tg_TJ: Add lang_name from CLDR
529         * localedata/locales/the_NP: Add country_name, lang_name from langtable
530         * localedata/locales/tk_TM: Make lang_name agree with CLDR
531         * localedata/locales/tl_PH: Add lang_name from langtable
532         * localedata/locales/to_TO: Make lang_name agree with CLDR
533         * localedata/locales/tpi_PG: Make country_name, lang_name agree with langtable
534         * localedata/locales/tt_RU@iqtelif: Add country_name, lang_name from langtable
535         * localedata/locales/ug_CN: Add lang_name from CLDR
536         * localedata/locales/unm_US: Add lang_name from langtable
537         * localedata/locales/wa_BE: Fix capitalisation of lang_name from langtable
538         * localedata/locales/wo_SN: Add lang_name from CLDR
539         * localedata/locales/xh_ZA: Fix capitalisation of country_name, lang_name from CLDR
540         * localedata/locales/yo_NG: Make country_name agree with CLDR
541         * localedata/locales/yuw_PG: Make langauge, lang_name agree with langtable
542         * localedata/locales/zh_HK: Add lang_name from langtable
543         * localedata/locales/zh_SG: Add lang_name from langtable
545 2019-09-30  Joseph Myers  <joseph@codesourcery.com>
547         * scripts/build-many-glibcs.py (Context.checkout): Default
548         binutils version to 2.33 branch.
550 2019-10-01  Lukasz Majewski <lukma@denx.de>
552         * include/time.h (valid_timeval_to_timespec64): Add.
553         * include/time.h (valid_timespec_to_timespec64): Likewise.
554         * include/time.h (valid_timespec64_to_timespec): Likewise.
555         * include/time.h (valid_timespec64_to_timeval): Likewise.
557 2019-09-30  Joseph Myers  <joseph@codesourcery.com>
559         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
560         (MAP_SYNC): New macro.
561         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
562         (MAP_SYNC): Likewise.
563         * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
564         kernel version number to 5.3.
566 2019-09-27  Paul A. Clarke  <pc@us.ibm.com>
568         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): Rename to
569         fesetenv_control.
570         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Accommodate
571         rename of fesetenv_mode to fegetenv_control.
572         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
573         * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
574         * sysdeps/powerpc/fpu/fenv_private.h (__libc_femergeenv_ppc): Likewise.
575         (libc_feholdsetround_noex_ppc_ctx): Likewise.
577 2019-09-27  Paul A. Clarke  <pc@us.ibm.com>
579         * sysdeps/powerpc/fpu/fenv_private.h
580         (libc_feholdsetround_noex_ppc_ctx): Call fesetenv_mode instead
581         of fesetenv_register.
583 2019-09-27  Paul A. Clarke  <pc@us.ibm.com>
585         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status): Rename to
586         fegetenv_control.
587         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Accommodate
588         rename of fegetenv_status to fegetenv_control.
589         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
590         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
591         * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Likewise.
592         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
593         * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
595 2019-09-27  Paul A. Clarke  <pc@us.ibm.com>
597         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline): Use
598         'mffscrn' instruction on POWER9.
599         (__fesetround_inline_nocheck): Likewise.
601 2019-09-27  Paul A. Clarke  <pc@us.ibm.com>
603         * sysdeps/powerpc/fpu/fenv_libc.h (FPSCR_EXCEPTIONS_MASK):  New.
604         * sysdeps/powerpc/fpu/fenv_private.h (__libc_femergeenv_ppc):  Optimize
605         to write FPSCR control only, if exceptions have not changed.
607 2019-09-27  Paul A. Clarke  <pc@us.ibm.com>
609         * sysdeps/powerpc/fpu/fenv_libc.h:
610         (__TEST_AND_ENTER_NON_STOP): New.
611         (__TEST_AND_EXIT_NON_STOP): New.
612         * sysdeps/powerpc/fpu/fenv_private.h
613         (_FPU_ALL_TRAPS): Delete, replace with FPSCR_ENABLES_MASK.
614         (_FPU_MASK_RN): Delete.
615         (_FPU_MASK_NOT_RN_NI): Delete.
616         (_FPU_MASK_TRAPS_RN): Delete, replace with ~FPSCR_CONTROL_MASK.
617         (_FPU_MASK_FRAC_INEX_RET_CC): Delete, replace with ~FPSCR_STATUS_MASK.
618         (__libc_feholdbits_ppc): Delete, move code into
619         libc_feholdexcept_setround_ppc.
620         (libc_feholdexcept_ppc): Delete.
621         (libc_fesetround_ppc): Delete.
622         (libc_fetestexcept_ppc): Delete.
623         (libc_feholdsetround_ppc): Delete.
624         (__libc_femergeenv_ppc): Use __TEST_AND_ENTER/EXIT_NON_STOP.
625         (libc_feholdsetround_noex_ppc_ctx): Likewise.
626         (libc_feupdateenv_test_ppc): Use FPSCR defines.
627         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
628         __TEST_AND_ENTER_NON_STOP.
629         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
630         * sysdeps/powerpc/fpu/feholdexcpt.c (__feholdexcept): Likewise.
631         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
632         * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
633         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
634         (_FPU_MASK_ALL): Delete.
636 2019-09-27  Joseph Myers  <joseph@codesourcery.com>
638         * sysdeps/gnu/netinet/tcp.h (TCP_TX_DELAY): New macro.
640 2019-09-26  Lukasz Majewski <lukma@denx.de>
642         * include/time.h: Add struct __timespec64 definition
644 2019-09-26  Siddhesh Poyarekar  <siddhesh@gotplt.org>
646         * scripts/vcs_to_changelog/misc_util.py (decode): Remove latin1
647         from codecs.
649 2019-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
651         * rt/Makefile (CFLAGS-clock_nanosleep.c): Move to ...
652         * time/Makefile (CFLAGS-clock_nanosleep.c): ... here.
654         * sysdeps/unix/sysv/linux/Makefile
655         (CFLAGS-tst-sigcontextinfo-get_pc.c): Rename to
656         CFLAGS-tst-sigcontext-get_pc.c.
658 2019-09-24  Alistair Francis  <alistair.francis@wdc.com>
660         * inet/net-internal.h: Fix uninitalised clntudp_call() variable.
662 2019-09-24  Andreas Schwab  <schwab@suse.de>
664         * sysdeps/unix/sysv/linux/arm/sysdep.h
665         (HAVE_CLOCK_GETTIME_VSYSCALL): Define to "__vdso_clock_gettime",
666         not "__vdso_gettimeofday".
667         (HAVE_GETTIMEOFDAY_VSYSCALL): Define to "__vdso_gettimeofday", not
668         "__vdso_clock_gettime".
669         * sysdeps/unix/sysv/linux/mips/sysdep.h
670         (HAVE_CLOCK_GETTIME_VSYSCALL): Define to "__vdso_clock_gettime",
671         not "__vdso_gettimeofday".
672         (HAVE_GETTIMEOFDAY_VSYSCALL): Define to "__vdso_gettimeofday", not
673         "__vdso_clock_gettime".
675 2019-09-19  Paul A. Clarke  <pc@us.ibm.com>
677         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_and_set_rn): New.
678         (__fe_mffscrn): New.
679         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
680         Do not clear enable bits, remove obsolete code, use
681         fegetenv_and_set_rn.
682         (libc_feresetround_ppc): Remove obsolete code, use
683         fegetenv_and_set_rn.
685 2019-09-19  Stefan Liebler  <stli@linux.ibm.com>
687         * support/support_ptrace.c: Remove inclusion of sys/prctl.h.
689 2019-09-19  Stefan Liebler  <stli@linux.ibm.com>
691         * sysdeps/s390/hp-timing.h (_HP_TIMING_H): Undefine.
692         (_HP_TIMING_S390_H): Define.
694 2019-09-18  Joseph Myers  <joseph@codesourcery.com>
696         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
697         version to 5.3.
698         (clone3): New syscall.
699         (pidfd_open): Likewise.
701         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
702         version to 5.3.
704 2019-09-18  Stefan Liebler  <stli@linux.ibm.com>
706         * sysdeps/s390/hp-timing.h: New file.
708 2019-09-18  Joseph Myers  <joseph@codesourcery.com>
710         * sysdeps/unix/sysv/linux/riscv/vfork.S: Do not include
711         <linux/sched.h>.
712         (CLONE_VM): New macro.
713         (CLONE_VFORK): Likewise.
715 2019-09-18  Stefan Liebler  <stli@linux.ibm.com>
717         * elf/tst-pldd.c (do_test): Add UNSUPPORTED check.
718         Rearrange subprocesses.
719         (pldd_process): New function.
720         * support/Makefile (libsupport-routines): Add support_ptrace.
721         * support/xptrace.h: New file.
722         * support/support_ptrace.c: Likewise.
724 2019-09-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
726         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Remove file.
728         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
729         (INTERNAL_VSYSCALL_CALL): Remove.
730         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
731         (INTERNAL_VSYSCALL_CALL): Likewise.
732         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
733         (INTERNAL_VSYSCALL_CALL): Likewise.
734         * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_VSYSCALL_CALL):
735         New macro.
737         * sysdeps/unix/sysv/linux/libc-vdso.h (VDSO_IFUNC_RET): Define if not
738         defined.
739         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
740         (__get_timebase_freq): Remove use of
741         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK.
742         (get_timebase_freq_fallback): New symbol.
743         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (time): Use
744         HAVE_GETTIMEOFDAY_VSYSCALL.
745         * sysdeps/unix/sysv/linux/powerpc/time.c (gettimeofday): Use
746         HAVE_TIME_VSYSCALL.
747         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Include generic
748         implementation.
749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
750         (INTERNAL_VSYSCALL_CALL_TYPE): Make calling convention similar to
751         powerpc64.
752         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove macro.
753         * .../sysv/linux/powerpc/powerpc64/sysdep.h
754         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Likewise.
755         * sysdeps/unix/sysv/linux/powerpc/sysdep.h
756         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
758         * sysdeps/powerpc/powerpc32/backtrace.c (is_sigtramp_address,
759         is_sigtramp_address_rt): Use HAVE_SIGTRAMP_{RT}32 instead of SHARED.
760         * sysdeps/powerpc/powerpc64/backtrace.c (is_sigtramp_address):
761         Likewise.
762         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove file.
763         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Likewise.
764         * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
765         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Likewise.
766         * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
767         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Likewise.
768         * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
769         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
770         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
771         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
772         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
773         * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
774         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
775         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Likewise.
776         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
777         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
778         (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
779         HAVE_GETTIMEOFDAY_VSYSCALL): Define value based on kernel exported
780         name.
781         * sysdeps/unix/sysv/linux/arm/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
782         HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
783         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
784         HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
785         * sysdeps/unix/sysv/linux/mips/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
786         HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
787         * sysdeps/unix/sysv/linux/powerpc/sysdep.h
788         (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
789         HAVE_GETCPU_VSYSCALL, HAVE_TIME_VSYSCALL, HAVE_GET_TBFREQ,
790         HAVE_SIGTRAMP_RT64, HAVE_SIGTRAMP_32, HAVE_SIGTRAMP_RT32i,
791         HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
792         * sysdeps/unix/sysv/linux/riscv/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
793         HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
794         HAVE_GETCPU_VSYSCALL): Likewise.
795         * sysdeps/unix/sysv/linux/s390/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
796         HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
797         HAVE_GETCPU_VSYSCALL): Likewise.
798         * sysdeps/unix/sysv/linux/sparc/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
799         HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
800         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
801         (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
802         HAVE_GETCPU_VSYSCALL): Likewise.
803         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME, VDSO_HASH): Define to
804         invalid names if architecture does not define them.
805         (get_vdso_mangle_symbol): New symbol.
806         * sysdeps/unix/sysv/linux/init-first.c: New file.
807         * sysdeps/unix/sysv/linux/libc-vdso.h: Likewise.
808         * sysdeps/unix/sysv/linux/powerpc/init-first.c (gettimeofday,
809         clock_gettime, clock_getres, getcpu, time): Remove declaration.
810         (__libc_vdso_platform_setup_arch): Likewise and use
811         get_vdso_mangle_symbol to setup vDSO symbols.
812         (sigtramp_rt64, sigtramp32, sigtramp_rt32, get_tbfreq): Add
813         attribute_hidden.
814         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Likewise.
815         * sysdeps/unix/sysv/linux/sysdep-vdso.h (VDSO_SYMBOL): Remove
816         definition.
818         * sysdeps/unix/make-syscalls.sh: Make vDSO call use get_vdso_symbol.
819         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (__gettimeofday):
820         Use get_vdso_symbol instead of _dl_vdso_vsym.
821         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
822         * sysdeps/unix/sysv/linux/riscv/flush-icache.c
823         (__lookup_riscv_flush_icache): Likewise.
824         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
825         Likewise.
826         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
827         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
828         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
829         * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
830         * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
831         * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
832         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
833         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
834         * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
835         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
836         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
837         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (VDSO_NAME, VDSO_HASH):
838         Define.
839         * sysdeps/unix/sysv/linux/arm/sysdep.h (VDSO_NAME, VDSO_HASH):
840         Likewise.
841         * sysdeps/unix/sysv/linux/i386/sysdep.h (VDSO_NAME, VDSO_HASH):
842         Likewise.
843         * sysdeps/unix/sysv/linux/riscv/sysdep.h (VDSO_NAME, VDSO_HASH):
844         Likewise.
845         * sysdeps/unix/sysv/linux/sparc/sysdep.h (VDSO_NAME, VDSO_HASH):
846         Likewise.
847         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (VDSO_NAME, VDSO_HASH):
848         Likewise.
849         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
850         (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Remove
851         definition.
852         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
853         (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
854         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
855         (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
857         (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
859         (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
860         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
861         (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
862         HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
863         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
864         (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
865         HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
866         * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
867         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Likewise.
868         * sysdeps/unix/sysv/linux/s390/sysdep.h: Likewise.
869         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION,
870         PREPARE_VERSION_KNOWN, VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6,
871         VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15,
872         VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29,
873         VDSO_NAME_LINUX_4_15, VDSO_HASH_LINUX_4_15): Remove defines.
874         (get_vdso_symbol): New function.
876 2019-09-17  Chung-Lin Tang  <cltang@codesourcery.com>
878         * sysdeps/generic/hp-timing-common.h (HP_TIMING_PRINT): Correct
879         position of string null termination.
881 2019-09-14  Aurelien Jarno  <aurelien@aurel32.net>
883         [BZ #24986]
884         * sysdeps/unix/alpha/getegid.S: Move to ...
885         * sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
886         * sysdeps/unix/alpha/geteuid.S: Move to ...
887         * sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
888         * sysdeps/unix/alpha/getppid.S: Move to ...
889         * sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
891 2019-09-09  Paul Eggert  <eggert@cs.ucla.edu>
893         Fix http: URL in 'configure'
894         * configure.ac: Add URL to AC_INIT so that it generates an
895         https: URL instead of an http: URL.
896         * configure: Regenerate.
898         Regenerate charmap-kw.h, locfile-kw.h
899         This propagates the recent http->https URL changes.
900         Since I used gperf 3.1 to regenerate, this is also a minor
901         internal-to-localedef API change.
902         URL problem reported by Joseph Myers in:
903         https://www.sourceware.org/ml/libc-alpha/2019-09/msg00143.html
904         * locale/programs/charmap-kw.h, locale/programs/locfile-kw.h:
905         Regenerate with gperf 3.1.
906         * locale/programs/linereader.h (kw_hash_fct_t):
907         * locale/programs/repertoire.c (repertoiremap_hash):
908         2nd arg is now size_t not unsigned, for compatibility with gperf 3.1.
910 2019-09-05  Florian Weimer  <fweimer@redhat.com>
912         [BZ #24962]
913         * locale/localeinfo.h (_nl_category_names): Remove union wrapper.
914         (_nl_category_names_get): New function.
915         * intl/dcigettext.c (category_to_name): Call it.
916         * locale/findlocale.c (_nl_find_locale): Likewise.
917         * intl/loadlocale.c (_nl_load_locale): Likewise.
918         * locale/newlocale.c (__newlocale): Likewise.
919         * locale/setlocale.c (_nl_category_names): Adjust definition.
920         (_nl_category_name_idxs): Likewise.
921         (new_composite_name): Call _nl_category_names_get.
922         (setlocale): Likewise.
924 2019-09-05  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
926         * math/bits/mathcalls.h (totalorder, totalordermag): Replace
927         const attribute with pure attribute.
929 2019-09-04  Lukasz Majewski <lukma@denx.de>
931         * sysdeps/unix/sysv/linux/kernel-features.h
932         (__ASSUME_TIME64_SYSCALLS): New macro.
934 2019-09-04  Zack Weinberg  <zackw@panix.com>
936         [BZ #24959]
937         * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
938         * rt/clock_getres.c: Move to time/clock_getres.c.
939         * rt/clock_gettime.c: Move to time/clock_gettime.c.
940         * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
941         * rt/clock_settime.c: Move to time/clock_settime.c.
942         * rt/tst-clock.c: Move to time/tst-clock.c.
943         * rt/tst-clock2.c: Move to time/tst-clock2.c.
944         * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
945         * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
946         * rt/clock-compat.c: Delete file.
948         * time/clock_getcpuclockid.c
949         * time/clock_getres.c
950         * time/clock_gettime.c
951         * time/clock_nanosleep.c
952         * time/clock_settime.c
953         * sysdeps/posix/clock_getres.c
954         * sysdeps/unix/clock_gettime.c
955         * sysdeps/unix/clock_nanosleep.c
956         * sysdeps/unix/clock_settime.c
957         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
958         * sysdeps/unix/sysv/linux/clock_getres.c
959         * sysdeps/unix/sysv/linux/clock_gettime.c
960         * sysdeps/unix/sysv/linux/clock_nanosleep.c
961         * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
962         defined by this file with default symbol version GLIBC_2_17,
963         and optionally a compatibility alias at symbol version GLIBC_2_2.
964         * include/time.h: Remove internal prototypes for clock_getres,
965         clock_nanosleep, and clock_getcpuclockid.
967         * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
968         Remove unused function realtime_gettime.
970         * rt/Makefile (clock-routines, routines): Remove variable.
971         (librt-routines): Remove clock-compat.
972         (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
973         and tst-cpuclock1.
974         * time/Makefile (routines): Add clock_getres, clock_gettime,
975         clock_settime, clock_getcpuclockid, and clock_nanosleep.
976         (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
977         and tst-cpuclock1.
979         * rt/Versions (libc): Remove entire stanza.
980         (librt GLIBC_2.2): Remove all clock_* functions.
981         * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
982         Add clock_getres, clock_gettime, clock_settime,
983         clock_getcpuclockid, and clock_nanosleep.
984         (libc GLIBC_PRIVATE): Add __clock_gettime.
986         * sysdeps/mach/hurd/i386/librt.abilist
987         * sysdeps/unix/sysv/linux/alpha/librt.abilist
988         * sysdeps/unix/sysv/linux/arm/be/librt.abilist
989         * sysdeps/unix/sysv/linux/arm/le/librt.abilist
990         * sysdeps/unix/sysv/linux/hppa/librt.abilist
991         * sysdeps/unix/sysv/linux/i386/librt.abilist
992         * sysdeps/unix/sysv/linux/ia64/librt.abilist
993         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
994         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
995         * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
996         * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
997         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
998         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
1000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
1001         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
1002         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
1003         * sysdeps/unix/sysv/linux/sh/librt.abilist
1004         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
1005         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
1006         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
1007         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
1008         Remove entries for clock_getres, clock_gettime, clock_settime,
1009         clock_getcpuclockid, and clock_nanosleep.
1011         * sysdeps/mach/hurd/i386/libc.abilist
1012         * sysdeps/unix/sysv/linux/alpha/libc.abilist
1013         * sysdeps/unix/sysv/linux/arm/libc.abilist
1014         * sysdeps/unix/sysv/linux/hppa/libc.abilist
1015         * sysdeps/unix/sysv/linux/i386/libc.abilist
1016         * sysdeps/unix/sysv/linux/ia64/libc.abilist
1017         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
1018         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
1019         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1020         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1021         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1022         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1026         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
1027         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
1028         * sysdeps/unix/sysv/linux/sh/be/libc.abilist
1029         * sysdeps/unix/sysv/linux/sh/le/libc.abilist
1030         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
1031         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
1032         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
1033         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
1034         Add another set of entries for clock_getres, clock_gettime,
1035         clock_settime, clock_getcpuclockid, and clock_nanosleep at
1036         whatever version GLIBC_2.2 maps to.
1038 2019-09-03  Aurelien Jarno  <aurelien@aurel32.net>
1040         * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
1042 2019-09-03  Florian Weimer  <fweimer@redhat.com>
1044         [BZ #24950]
1045         * locale/programs/charmap.h (struct charseq): Turn bytes into a
1046         flexible array member.
1047         * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
1048         replace.
1050 2019-09-02  Florian Weimer  <fweimer@redhat.com>
1052         * misc/tst-mntent-autofs.c: New file.
1053         * misc/Makefile (tests): Add misc/tst-mntent-autofs.
1055 2019-09-02  Ian Kent  <ikent@redhat.com>
1057         Use autofs "ignore" mount hint in getmntent_r/getmntent.
1058         * misc/mntent_r.c (get_mnt_entry): New function, extracted from
1059         getmntent_r.
1060         (__getmntent_r): Call it.  Filter out autofs entries with an
1061         "ignore" mount option.
1063 2019-08-30  Wilco Dijkstra  <wdijkstr@arm.com>
1065         * benchtests/bench-memcpy.c (simple_memcpy): Remove.
1066         (generic_memcpy): Include generic C memcpy.
1067         * benchtests/bench-memmove.c (simple_memmove): Remove.
1068         (generic_memmove): Include generic C memmove.
1069         * benchtests/bench-memset.c (simple_memset): Remove.
1070         (generic_memset): Include generic C memset.
1071         * benchtests/bench-memset-large.c (simple_memset): Remove.
1072         (generic_memset): Include generic C memset.
1073         * benchtests/bench-memset-walk.c (simple_memset): Remove.
1074         (generic_memset): Include generic C memset.
1075         * string/memcpy.c (MEMCPY): Add defines to enable redirection.
1076         * string/memset.c (MEMSET): Likewise.
1077         * sysdeps/x86_64/memcopy.h: Remove empty file.
1079 2019-08-30  Florian Weimer  <fweimer@redhat.com>
1081         nptl: Move pthread_attr_getinheritsched implementation into libc.
1082         * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
1083         (libpthread-routines): Remove pthread_attr_getinheritsched.
1084         * nptl/Versions (libpthread GLIBC_2.0): Remove
1085         pthread_attr_getinheritsched.
1086         * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
1087         * nptl/nptl-init.c (pthread_functions): Remove initializer for
1088         ptr_pthread_attr_getinheritsched.
1089         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1090         Remove ptr_pthread_attr_getinheritsched member.
1091         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1092         Remove pthread_attr_getinheritsched.
1093         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1094         Likewise.
1095         * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
1096         Likewise.
1097         * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
1098         Likewise.
1099         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1100         Likewise.
1101         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1102         Likewise.
1103         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1104         Likewise.
1105         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1106         Likewise.
1107         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1108         (GLIBC_2.4): Likewise.
1109         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1110         (GLIBC_2.0): Likewise.
1111         * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
1112         (GLIBC_2.18): Likewise.
1113         * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
1114         (GLIBC_2.18): Likewise.
1115         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1116         (GLIBC_2.0): Likewise.
1117         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1118         (GLIBC_2.0): Likewise.
1119         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1120         Likewise.
1121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1122         (GLIBC_2.0): Likewise.
1123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1124         (GLIBC_2.3): Likewise.
1125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1126         (GLIBC_2.17): Likewise.
1127         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1128         (GLIBC_2.27): Likewise.
1129         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1130         (GLIBC_2.0): Likewise.
1131         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1132         (GLIBC_2.2): Likewise.
1133         * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
1134         Likewise.
1135         * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
1136         Likewise.
1137         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1138         (GLIBC_2.0): Likewise.
1139         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1140         (GLIBC_2.2): Likewise.
1141         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1142         (GLIBC_2.2.5): Likewise.
1143         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1144         (GLIBC_2.16): Likewise.
1146 2019-08-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1148         * sysdeps/mach/hurd/getcwd.c
1149         (_hurd_canonicalize_directory_name_internal): Do not remove the heading
1150         slash if we got an unknown root directory. (__getcwd): Do not fail with
1151         EGRATUITOUS if we got an unknown root directory.
1152         * hurd/hurdselect.c (SELECT_ERROR): New macro.
1153         (_hurd_select):
1154         - Add `error' field to `d' structures array.
1155         - If a poll descriptor is bogus, set EBADF, but continue with a zero
1156         timeout.
1157         - Go through the whole fd_set, not only until _hurd_dtablesize. Return
1158         EBADF there is any bit set above _hurd_dtablesize.
1159         - Do not request io_select on bogus descriptors (SELECT_ERROR).
1160         - On io_select request error, record the error.
1161         - On io_select bogus reply, use EIO error code.
1162         - On io_select bogus or error reply, record the error.
1163         - Do not destroy reply port for bogus FDs.
1164         - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
1165         EBADF case, or else POLLERR.
1166         - On error, make select simulated readiness.
1168         [BZ #19903]
1169         * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
1170         as __vm_allocate.
1172         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
1173         unlocks SS and returns to the saved PC.
1174         (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
1175         thread stack instead of the saved PC.
1177 2019-08-30  Richard Braun  <rbraun@sceen.net>
1179         * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
1180         timeout.
1181         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
1182         * hurd/Makefile (user-interfaces): Add io_reply and io_request.
1183         * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
1184         <limits.h>.
1185         (_hurd_select): Replace the call to __io_select with either
1186         __io_select_request or __io_select_timeout_request, depending on the
1187         timeout. Count the number of ready descriptors (replies for which at
1188         least one type bit is set). Implement the timeout locally when there is
1189         no file descriptor.
1191 2019-08-29  Mihailo Stojanovic  <mihailo.stojanovic@rt-rk.com>
1193         * elf/dl-addr.c (determine_info): Calculate the symbol index
1194         using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
1195         * elf/dl-lookup.c (do_lookup_x): Ditto.
1196         (_dl_setup_hash): Initialize MIPS xhash translation table.
1197         * elf/elf.h (SHT_MIPS_XHASH): New define.
1198         (DT_MIPS_XHASH): New define.
1199         * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
1200         define.
1201         (ELF_MACHINE_HASH_SYMIDX): Ditto.
1202         (ELF_MACHINE_XHASH_SETUP): Ditto.
1203         * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
1204         define.
1205         (ELF_MACHINE_HASH_SYMIDX): Ditto.
1206         (ELF_MACHINE_XHASH_SETUP): Ditto.
1207         * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
1208         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
1209         version.
1210         * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
1212 2019-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1214         * sysdeps/sh/preconfigure.ac: New file.
1215         * sysdeps/sh/preconfigure: Regenerate.
1216         * sysdeps/sh/be/sh3/Implies: New file.
1217         * sysdeps/sh/be/sh4/Implies: Likewise.
1218         * sysdeps/sh/le/sh3/Implies: Likewise.
1219         * sysdeps/sh/le/sh4/Implies: Likewise.
1220         * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
1221         * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
1222         * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
1223         sysdeps/unix/sysv/linux/sh/le/*.abilist.
1224         * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
1226         * sysdeps/microblaze/preconfigure.ac: New file.
1227         * sysdeps/microblaze/preconfigure: Regenerate.
1228         * sysdeps/microblaze/be/implies: New file.
1229         * sysdeps/microblaze/le/implies: Likewise.
1230         * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
1231         * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
1232         * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
1233         sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
1234         * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
1236         * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
1237         * sysdeps/arm/preconfigure: Regenerate.
1238         * sysdeps/arm/be/Implies: New file.
1239         * sysdeps/arm/be/armv6/Implies: Likewise.
1240         * sysdeps/arm/be/armv6t2/Implies: Likewise.
1241         * sysdeps/arm/be/armv7/Implies: Likewise.
1242         * sysdeps/arm/le/Implies: Likewise.
1243         * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
1244         * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
1245         * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
1246         sysdeps/unix/sysv/linux/arm/le/*.abilist.
1247         * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
1249 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
1251         Fix posix/tst-regex by using UTF-8 and own test input
1252         Problem reported by Stefan Liebler in:
1253         https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
1254         * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
1255         (do_test, test_expr): Adjust to the fact that this source file,
1256         and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
1257         * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
1258         so that it is now UTF-8.
1260 2019-08-28  Paul A. Clarke  <pc@us.ibm.com>
1262         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300):  Delete.
1263         (fegetenv_status):  Generate 'mffsl' unconditionally.
1265 2019-08-28  Paul A. Clarke  <pc@us.ibm.com>
1267         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv):  Utilize lightweight
1268         FPSCR read.
1269         (_FPU_MASK_ALL):  Delete.
1271 2019-08-28  Paul A. Clarke  <pc@us.ibm.com>
1273         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
1274         Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
1275         if possible.
1276         (libc_feresetround_ppc):  Replace call to __libc_femergeenv_ppc
1277         with simpler required steps, set fewer FPSCR bits if possible.
1279 2019-08-28  Paul A. Clarke  <pc@us.ibm.com>
1281         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
1282         (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
1283         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
1284         weight access to FPSCR; remove unnecessary second FPSCR read and
1285         validate.
1286         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1287         * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
1288         access to FPSCR; Use macros in fenv_libc.h in favor of local.
1290 2019-08-28  Paul A. Clarke  <pc@us.ibm.com>
1292         * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
1293         (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
1294         (fenv_exceptions_to_reg): New.
1295         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
1296         operation with call to fenv_exceptions_to_reg().
1297         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
1299 2019-08-28  Florian Weimer  <fweimer@redhat.com>
1301         * misc/mntent.c (struct mntent_buffer): Define.
1302         (mntent_buffer): Adjust type to void *.
1303         (allocate): Adjust for allocate_once.
1304         (deallocate): New function.
1305         (getmntent): Call allocate_once.
1307 2019-08-28  Florian Weimer  <fweimer@redhat.com>
1309         nptl: Move pthread_attr_setdetachstate implementation into libc.
1310         * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
1311         (libpthread-routines): Remove pthread_attr_setdetachstate.
1312         * nptl/Versions (libpthread GLIBC_2.0): Remove
1313         pthread_attr_setdetachstate.
1314         * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
1315         * nptl/nptl-init.c (pthread_functions): Remove initializer for
1316         ptr_pthread_attr_setdetachstate.
1317         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1318         Remove ptr_pthread_attr_setdetachstate member.
1319         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1320         Remove pthread_attr_setdetachstate.
1321         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1322         Likewise.
1323         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1324         Likewise.
1325         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1326         Likewise.
1327         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1328         Likewise.
1329         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1330         Likewise.
1331         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1332         Likewise.
1333         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1334         (GLIBC_2.4): Likewise.
1335         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1336         (GLIBC_2.0): Likewise.
1337         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1338         (GLIBC_2.18): Likewise.
1339         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1340         (GLIBC_2.0): Likewise.
1341         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1342         (GLIBC_2.0): Likewise.
1343         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1344         Likewise.
1345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1346         (GLIBC_2.0): Likewise.
1347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1348         (GLIBC_2.3): Likewise.
1349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1350         (GLIBC_2.17): Likewise.
1351         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1352         (GLIBC_2.27): Likewise.
1353         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1354         (GLIBC_2.0): Likewise.
1355         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1356         (GLIBC_2.2): Likewise.
1357         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1358         Likewise.
1359         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1360         (GLIBC_2.0): Likewise.
1361         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1362         (GLIBC_2.2): Likewise.
1363         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1364         (GLIBC_2.2.5): Likewise.
1365         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1366         (GLIBC_2.16): Likewise.
1368 2019-08-28  Florian Weimer  <fweimer@redhat.com>
1370         [BZ #24902]
1371         * login/Makefile (tests): Add tst-pututxline-lockfail.
1372         (tst-pututxline-lockfail): Link with -lpthread.
1373         * login/utmp_file.c (internal_getut_r): Remove buffer argument.
1374         (__libc_getutid_r): Adjust.
1375         (__libc_pututline): Likewise.  Check for file_offset == -1.
1376         * login/tst-pututxline-lockfail.c: New file.
1378 2019-08-28  Stefan Liebler  <stli@linux.ibm.com>
1380         * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
1381         * posix/tst-regex.input: New file.
1383 2019-08-23  Mihailo Stojanovic  <mihailo.stojanovic@rt-rk.com>
1385         [BZ #24916]
1386         * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
1387         tst-undefined-weak.
1388         [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
1389         [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
1390         * sysdeps/mips/tst-undefined-weak-lib.S: New file.
1391         * sysdeps/mips/tst-undefined-weak.c: Likewise.
1392         * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
1393         Increment highest valid ABIVERSION value.
1395 2019-08-23  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
1397         * sysdeps/unix/sysv/linux/mips/Makefile
1398         (test-xfail-check-execstack):
1399         Move under mips-has-gnustack != yes.
1400         (CFLAGS-.o*, ASFLAGS-.o*): New rules.
1401         Apply -Wa,-execstack if mips-force-execstack == yes.
1402         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1403         * sysdeps/unix/sysv/linux/mips/configure.ac
1404         (mips-force-execstack): New var.
1405         Set to yes for hard-float builds with minimum_kernel < 4.8.0
1406         or minimum_kernel not set at all.
1407         (mips-has-gnustack): New var.
1408         Use value of libc_cv_as_noexecstack
1409         if mips-force-execstack != yes, otherwise set to no.
1411 2019-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1412             Florian Weimer  <fweimer@redhat.com>
1414         * gmon/Versions (libc) [GLIBC_2.31]: New entry.
1415         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
1416         Make a compat_symbol.
1417         * sysdeps/unix/sysv/linux/sparc/profil-counter.h
1418         (__profil_counter_global): Likewise.
1420         * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
1421         * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
1422         uintptr_t.
1423         * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
1424         sigcontext_get_pc and return aligned cast to uintptr_t.
1425         * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
1426         * sysdeps/posix/profil.c (profil_count): Change PC argument to
1427         uintptr_t.
1428         (__profil): Use SA_SIGINFO.
1429         * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
1430         uintptr_t.
1431         (__sprofil): Use SA_SIGINFO.
1432         * sysdeps/unix/sysv/linux/profil-counter.h: New file.
1433         * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
1434         * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1435         * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
1436         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
1437         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
1438         * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
1439         * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
1440         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
1441         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
1442         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
1443         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
1444         * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
1445         * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
1446         * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
1447         * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
1448         Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
1449         * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
1450         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
1451         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
1452         * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
1453         GET_PC, __sigaction, sigaction): Remove defines.
1454         (sigcontext_get_pc): New function.
1455         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
1456         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
1457         * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1458         * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
1459         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
1460         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
1461         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
1462         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
1463         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
1464         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
1465         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
1466         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
1467         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
1468         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
1469         * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
1470         * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
1471         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
1472         * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
1473         Handle CTX argument as ucontext_t.
1474         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1475         Likewise.
1476         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1477         * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1478         * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1479         * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
1480         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
1481         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1482         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1483         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1484         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
1485         tst-sigcontextinfo-get_pc.
1486         * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
1487         (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
1489 2019-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1491         * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
1492         definition.
1494 2019-08-23  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
1496         [BZ #24682]
1497         * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
1498         * localedata/locales/ug_CN (first_weekday): Likewise.
1499         * localedata/locales/zh_CN (first_weekday): Likewise.
1501 2019-08-22  Gustavo Romero  <gromero@linux.vnet.ibm.com>
1503         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
1504         field name in mcontext_t struct.
1506 2019-08-22  Joseph Myers  <joseph@codesourcery.com>
1508         * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
1509         unsupported with libidn2 before 2.0.5.
1510         * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
1512         * manual/time.texi (strftime): Document %Ob and %OB as C2X
1513         features.
1515 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
1517         Remove dead regex code
1518         * posix/regex_internal.c (re_node_set_insert):
1519         Remove unnecessary assignment.  Reported by Tim RĂŒhsen in:
1520         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
1522         Fix bad pointer / leak in regex code
1523         This was found by Coverity (CID 1484201).  [BZ#24844]
1524         * posix/regex_internal.c (create_cd_newstate): Fix use of bad
1525         pointer and/or memory leak when storage is exhausted.
1527 2019-08-21  Zack Weinberg  <zackw@panix.com>
1529         * misc/syslog.c (__vsyslog_internal)
1530         * time/getdate.c (__getdate_r)
1531         * time/tst_wcsftime.c (main):
1532         Use return value of time, not its argument.
1534         * string/strfry.c (strfry)
1535         * sysdeps/mach/sleep.c (__sleep):
1536         Remove unnecessary casts of NULL in calls to time.
1538 2019-08-21  Joseph Myers  <joseph@codesourcery.com>
1540         * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
1541         [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
1542         || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
1543         (__TGMATH_2_NARROW_F): Likewise.
1544         (__TGMATH_2_NARROW_D): New macro.
1545         (__TGMATH_2_NARROW_F16): Likewise.
1546         (__TGMATH_2_NARROW_F32): Likewise.
1547         (__TGMATH_2_NARROW_F64): Likewise.
1548         (__TGMATH_2_NARROW_F32X): Likewise.
1549         (__TGMATH_2_NARROW_F64X): Likewise.
1550         [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
1551         [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
1552         [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
1553         [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
1554         [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
1555         [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
1556         [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
1557         [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
1558         [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
1559         [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
1560         [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
1561         [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
1562         [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
1563         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
1564         Likewise.
1565         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
1566         Likewise.
1567         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
1568         Likewise.
1569         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
1570         Likewise.
1571         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
1572         Likewise.
1573         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
1574         Likewise.
1575         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
1576         Likewise.
1577         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
1578         Likewise.
1579         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1580         && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
1581         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1582         && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
1583         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1584         && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
1585         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1586         && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
1587         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
1588         Likewise.
1589         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
1590         Likewise.
1591         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
1592         Likewise.
1593         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
1594         Likewise.
1595         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1596         && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
1597         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1598         && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
1599         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1600         && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
1601         [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1602         && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
1603         * math/gen-tgmath-tests.py (Type): Add members
1604         non_standard_real_argument_types_list, long_double_type,
1605         complex_float64_type and float32x_ext_type.
1606         (Type.__init__): Set the new members.
1607         (Type.floating_type): Add new argument floatn.
1608         (Type.real_floating_type): Likewise.
1609         (Type.can_combine_types): Likewise.
1610         (Type.combine_types): Likewise.
1611         (Type.init_types): Create internal Float32x_ext type.
1612         (Tests.__init__): Define Float32x_ext in generated C code.
1613         (Tests.add_tests): Handle narrowing functions.
1614         (Tests.add_all_tests): Likewise.
1615         (Tests.tests_text): Allow variation in mant_dig for narrowing
1616         functions with compilers before GCC 8.
1617         * math/Makefile (tgmath3-narrow-types): New variable.
1618         (tgmath3-narrow-macros): Likewise.
1619         (tgmath3-macros): Add $(tgmath3-narrow-macros).
1621 2019-08-20  Andreas Schwab  <schwab@suse.de>
1623         * sysdeps/i386/fpu/libm-test-ulps: Update.
1625 2019-08-19  Carlos O'Donell  <carlos@redhat.com>
1627         * nscd/nscd.conf: Add warning and comment about shared option.
1629 2019-08-19  Carlos O'Donell  <carlos@redhat.com>
1631         * nss/nsswitch.conf: Expand comments, and simplify defaults.
1632         * manual/nss.texi (NSS Basics): List all known databases.
1633         (Services in the NSS configuration): Mention automount.
1635 2019-08-19  Florian Weimer  <fweimer@redhat.com>
1637         Do not print backtraces on fatal errors.
1638         * debug/fortify_fail.c (__libc_argv): Remove declaration.
1639         (__fortify_fail_abort): Remove definition.
1640         (__fortify_fail): Call __libc_message directly.
1641         * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
1642         (__stack_chk_fail): Call __fortify_fail instead of
1643         __fortify_fail_abort.
1644         * include/stdio.h (__fortify_fail_abort): Remove declaration.
1645         * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
1646         definitions.
1647         (__libc_message): Do not handle do_backtrace.  Do not call
1648         BEFORE_ABORT.
1649         (__libc_fatal): Do not pass do_backtrace to __libc_message.
1650         * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
1651         (before_abort): Remove definitions.
1653 2019-08-16  Florian Weimer  <fweimer@redhat.com>
1655         nptl: Move pthread_attr_getdetachstate implementation into libc.
1656         * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
1657         (libpthread-routines): Remove pthread_attr_getdetachstate.
1658         * nptl/Versions (libpthread GLIBC_2.0): Remove
1659         pthread_attr_getdetachstate.
1660         * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
1661         * nptl/nptl-init.c (pthread_functions): Remove initializer for
1662         ptr_pthread_attr_getdetachstate.
1663         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1664         Remove ptr_pthread_attr_getdetachstate member.
1665         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1666         Remove pthread_attr_getdetachstate.
1667         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1668         Likewise.
1669         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1670         Likewise.
1671         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1672         Likewise.
1673         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1674         Likewise.
1675         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1676         Likewise.
1677         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1678         Likewise.
1679         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1680         (GLIBC_2.4): Likewise.
1681         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1682         (GLIBC_2.0): Likewise.
1683         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1684         (GLIBC_2.18): Likewise.
1685         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1686         (GLIBC_2.0): Likewise.
1687         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1688         (GLIBC_2.0): Likewise.
1689         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1690         Likewise.
1691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1692         (GLIBC_2.0): Likewise.
1693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1694         (GLIBC_2.3): Likewise.
1695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1696         (GLIBC_2.17): Likewise.
1697         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1698         (GLIBC_2.27): Likewise.
1699         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1700         (GLIBC_2.0): Likewise.
1701         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1702         (GLIBC_2.2): Likewise.
1703         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1704         Likewise.
1705         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1706         (GLIBC_2.0): Likewise.
1707         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1708         (GLIBC_2.2): Likewise.
1709         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1710         (GLIBC_2.2.5): Likewise.
1711         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1712         (GLIBC_2.16): Likewise.
1714 2019-08-16  Joseph Myers  <joseph@codesourcery.com>
1716         * math/libm-test-compat_totalorder.inc (do_test)
1717         [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
1718         [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
1719         * math/libm-test-compat_totalordermag.inc (do_test)
1720         [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
1722 2019-08-15  Florian Weimer  <fweimer@redhat.com>
1724         nptl: Move pthread_attr_init implementation into libc.
1725         * nptl/Makefile (routines): Add pthread_attr_init.
1726         (libpthread-routines): Remove pthread_attr_init.
1727         * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
1728         (libpthread GLIBC_2.0): Likewise.
1729         * nptl/pthread_attr_init.c: Check for libc compat version instead
1730         of libpthread compat version.
1731         * nptl/forward.c (__pthread_attr_init_2_0)
1732         (__pthread_attr_init_2_1): Remove definitions.
1733         * nptl/nptl-init.c (pthread_functions): Remove initializers for
1734         ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
1735         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1736         Remove members ptr___pthread_attr_init_2_0,
1737         ptr___pthread_attr_init_2_1.
1738         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1739         Remove pthread_attr_init.
1740         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1741         Likewise.
1742         (GLIBC_2.1): Likewise.
1743         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1744         Likewise.
1745         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1746         Likewise.
1747         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1748         Likewise.
1749         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1750         Likewise.
1751         (GLIBC_2.1): Likewise.
1752         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1753         Likewise.
1754         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1755         (GLIBC_2.4): Likewise.
1756         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1757         (GLIBC_2.0): Likewise.
1758         (GLIBC_2.1): Likewise.
1759         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1760         (GLIBC_2.18): Likewise.
1761         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1762         (GLIBC_2.0): Likewise.
1763         (GLIBC_2.1): Likewise.
1764         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1765         (GLIBC_2.0): Likewise.
1766         (GLIBC_2.1): Likewise.
1767         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1768         Likewise.
1769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1770         (GLIBC_2.0): Likewise.
1771         (GLIBC_2.1): Likewise.
1772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1773         (GLIBC_2.3): Likewise.
1774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1775         (GLIBC_2.17): Likewise.
1776         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1777         (GLIBC_2.27): Likewise.
1778         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1779         (GLIBC_2.0): Likewise.
1780         (GLIBC_2.1): Likewise.
1781         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1782         (GLIBC_2.2): Likewise.
1783         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1784         Likewise.
1785         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1786         (GLIBC_2.0): Likewise.
1787         (GLIBC_2.1): Likewise.
1788         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1789         (GLIBC_2.2): Likewise.
1790         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1791         (GLIBC_2.2.5): Likewise.
1792         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1793         (GLIBC_2.16): Likewise.
1795 2019-08-15  Florian Weimer  <fweimer@redhat.com>
1797         [BZ #24900]
1798         * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
1799         new object in __RTLD_OPENEXEC mode (except for the origin).
1800         * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
1801         check for the error message.
1802         (do_test): Call it.  Add check using relative path.
1803         * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
1804         (tst-dlopen-aout-container): Link with libpthread.
1805         (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
1807 2019-08-15  Joseph Myers  <joseph@codesourcery.com>
1809         * math/bits/mathcalls.h
1810         [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1811         (totalorder): Take pointer arguments.
1812         [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1813         (totalordermag): Likewise.
1814         * manual/arith.texi (totalorder): Likewise.
1815         (totalorderf): Likewise.
1816         (totalorderl): Likewise.
1817         (totalorderfN): Likewise.
1818         (totalorderfNx): Likewise.
1819         (totalordermag): Likewise.
1820         (totalordermagf): Likewise.
1821         (totalordermagl): Likewise.
1822         (totalordermagfN): Likewise.
1823         (totalordermagfNx): Likewise.
1824         * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
1825         [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
1826         [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
1827         * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
1828         totalorderl, totalordermag, totalordermagf, totalordermagl,
1829         totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
1830         totalordermagf64, totalordermagf32x, totalorderf64x,
1831         totalordermagf64x, totalorderf128 and totalordermagf128.
1832         * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
1833         and compat_totalordermag.
1834         (libm-test-funcs-compat): New variable.
1835         (libm-tests-compat): Likewise.
1836         (tests): Do not include compat tests.
1837         (tests-internal): Add compat tests.
1838         ($(foreach t,$(libm-tests-base),
1839         $(objpfx)$(t)-compat_totalorder.o)): Depend
1840         on $(objpfx)libm-test-totalorder.c.
1841         ($(foreach t,$(libm-tests-base),
1842         $(objpfx)$(t)-compat_totalordermag.o): Depend on
1843         $(objpfx)libm-test-totalordermag.c.
1844         (tgmath3-macros): Remove totalorder and totalordermag.
1845         * math/libm-test-compat_totalorder.inc: New file.
1846         * math/libm-test-compat_totalordermag.inc: Likewise.
1847         * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
1848         (RUN_TEST_fpfp_b): New macro.
1849         (RUN_TEST_LOOP_fpfp_b): Likewise.
1850         * math/libm-test-totalorder.inc (totalorder_test_data): Use
1851         TEST_fpfp_b.
1852         (totalorder_test): Condition on [!COMPAT_TEST].
1853         (do_test): Likewise.
1854         * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
1855         TEST_fpfp_b.
1856         (totalordermag_test): Condition on [!COMPAT_TEST].
1857         (do_test): Likewise.
1858         * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
1859         totalorder and totalordermag.
1860         * math/test-tgmath.c (NCALLS): Change to 132.
1861         (F(compile_test)): Do not call totalorder or totalordermag.
1862         (F(totalorder)): Remove.
1863         (F(totalordermag)): Likewise.
1864         * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
1865         define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
1866         * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
1867         SJSTR_HELPER.
1868         [!_ISOMAC] (STR): Rename to SJSTR.  Update call to STR_HELPER.
1869         [!_ISOMAC] (TEST_SIZE): Update call to STR.
1870         [!_ISOMAC] (TEST_ALIGN): Likewise.
1871         [!_ISOMAC] (TEST_OFFSET): Likewise.
1872         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
1873         and <first-versions.h>.
1874         (__totalorder): Take pointer arguments.  Add symbol versions and
1875         compat symbols.
1876         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1877         <shlib-compat.h> and <first-versions.h>.
1878         (__totalordermag): Take pointer arguments.  Add symbol versions
1879         and compat symbols.
1880         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1881         <shlib-compat.h> and <first-versions.h>.
1882         (__totalorder): Take pointer arguments.  Add symbol versions and
1883         compat symbols.
1884         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1885         <shlib-compat.h> and <first-versions.h>.
1886         (__totalordermag): Take pointer arguments.  Add symbol versions
1887         and compat symbols.
1888         * sysdeps/ieee754/float128/float128_private.h
1889         (__totalorder_compatl): New macro.
1890         (__totalordermag_compatl): Likewise.
1891         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
1892         and <first-versions.h>.
1893         (__totalorderf): Take pointer arguments.  Add symbol versions and
1894         compat symbols.
1895         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1896         <shlib-compat.h> and <first-versions.h>.
1897         (__totalordermagf): Take pointer arguments.  Add symbol versions
1898         and compat symbols.
1899         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1900         <shlib-compat.h> and <first-versions.h>.
1901         (__totalorderl): Take pointer arguments.  Add symbol versions and
1902         compat symbols.
1903         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1904         <shlib-compat.h> and <first-versions.h>.
1905         (__totalordermagl): Take pointer arguments.  Add symbol versions
1906         and compat symbols.
1907         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
1908         <shlib-compat.h>.
1909         (__totalorderl): Take pointer arguments.  Add symbol versions and
1910         compat symbols.
1911         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
1912         <shlib-compat.h>.
1913         (__totalordermagl): Take pointer arguments.  Add symbol versions
1914         and compat symbols.
1915         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1916         <shlib-compat.h> and <first-versions.h>.
1917         (__totalorderl): Take pointer arguments.  Add symbol versions and
1918         compat symbols.
1919         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1920         <shlib-compat.h> and <first-versions.h>.
1921         (__totalordermagl): Take pointer arguments.  Add symbol versions
1922         and compat symbols.
1923         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1924         pointer arguments.
1925         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1926         Likewise.
1927         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1928         (do_test): Update calls to totalorderl and totalordermagl.
1929         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1930         Update calls to totalorderl and totalordermagl.
1931         * sysdeps/mach/hurd/i386/libm.abilist: Update.
1932         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1933         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1934         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1935         * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1936         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1937         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1938         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1939         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1940         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1941         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1942         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1943         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1944         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1946         Likewise.
1947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1948         Likewise.
1949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1950         Likewise.
1951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1952         Likewise.
1953         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1954         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1955         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1956         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1957         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1958         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1959         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1960         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1962 2019-08-15  Florian Weimer  <fweimer@redhat.com>
1964         [BZ #24899]
1965         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1966         __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1967         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1968         Likewise.
1969         * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1970         __attribute_nonstring__ to ut_id.
1971         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1972         Likewise.
1974 2019-08-15  Florian Weimer  <fweimer@redhat.com>
1976         [BZ #24880]
1977         * login/utmp_file.c (file_locking_failed): Use struct flock64.
1978         (file_locking_unlock): Likewise.
1980 2019-08-15  Florian Weimer  <fweimer@redhat.com>
1982         [BZ #24879]
1983         login: Disarm timer after utmp lock acquisition.
1984         * login/utmp_file.c (struct file_locking): Remove.
1985         (try_file_lock): Adjust.
1986         (file_lock_restore): Remove function.
1987         (__libc_getutent_r): .
1988         (internal_getut_r): Likewise.
1989         (__libc_getutline_r): Likewise.
1990         (__libc_pututline): Likewise.
1991         (__libc_updwtmp): Likewise.
1993 2019-08-15  Florian Weimer  <fweimer@redhat.com>
1995         nptl: Remove pthread_self compatibility symbol from libpthread.
1996         * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1997         pthread_equal.
1998         * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1999         * nptl/compat-pthread_self.c: Remove file.
2000         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2001         Remove pthread_self.
2002         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2003         Likewise.
2004         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2005         Likewise.
2006         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2007         Likewise.
2008         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2009         Likewise.
2010         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2011         Likewise.
2012         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2013         (GLIBC_2.4): Likewise.
2014         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2015         (GLIBC_2.0): Likewise.
2016         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2017         (GLIBC_2.18): Likewise.
2018         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2019         (GLIBC_2.0): Likewise.
2020         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2021         (GLIBC_2.0): Likewise.
2022         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
2023         Likewise.
2024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2025         (GLIBC_2.0): Likewise.
2026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2027         (GLIBC_2.3): Likewise.
2028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2029         (GLIBC_2.17): Likewise.
2030         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2031         (GLIBC_2.0): Likewise.
2032         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2033         (GLIBC_2.2): Likewise.
2034         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2035         Likewise.
2036         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2037         (GLIBC_2.0): Likewise.
2038         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2039         (GLIBC_2.2): Likewise.
2040         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2041         (GLIBC_2.2.5): Likewise.
2042         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2043         (GLIBC_2.16): Likewise.
2045 2019-08-15  Florian Weimer  <fweimer@redhat.com>
2047         nptl: Move pthread_attr_destroy implementation into libc.
2048         * nptl/Makefile (routines): Add pthread_attr_destroy.
2049         (libpthread-routines): Remove pthread_attr_destroy.
2050         * nptl/Versions (libpthread GLIBC_2.0): Remove
2051         pthread_attr_destroy.
2052         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
2053         libc compat version instead of libpthread compat version.
2054         * nptl/forward.c (pthread_attr_destroy): Remove definition.
2055         * nptl/nptl-init.c (pthread_functions): Remove initializer for
2056         ptr_pthread_attr_destroy.
2057         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
2058         Remove ptr_pthread_attr_destroy member.
2059         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2060         Remove pthread_attr_destroy.
2061         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2062         Likewise.
2063         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2064         Likewise.
2065         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
2066         Likewise.
2067         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2068         Likewise.
2069         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2070         Likewise.
2071         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2072         Likewise.
2073         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2074         (GLIBC_2.4): Likewise.
2075         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2076         (GLIBC_2.0): Likewise.
2077         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2078         (GLIBC_2.18): Likewise.
2079         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2080         (GLIBC_2.0): Likewise.
2081         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2082         (GLIBC_2.0): Likewise.
2083         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
2084         Likewise.
2085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2086         (GLIBC_2.0): Likewise.
2087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2088         (GLIBC_2.3): Likewise.
2089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2090         (GLIBC_2.17): Likewise.
2091         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2092         (GLIBC_2.27): Likewise.
2093         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2094         (GLIBC_2.0): Likewise.
2095         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2096         (GLIBC_2.2): Likewise.
2097         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2098         Likewise.
2099         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2100         (GLIBC_2.0): Likewise.
2101         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2102         (GLIBC_2.2): Likewise.
2103         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2104         (GLIBC_2.2.5): Likewise.
2105         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2106         (GLIBC_2.16): Likewise.
2108 2019-08-15  Andreas Schwab  <schwab@suse.de>
2110         * sysdeps/i386/fpu/libm-test-ulps: Update.
2112 2019-08-15  Florian Weimer  <fweimer@redhat.com>
2114         * malloc/Makefile (tests): Only add tst-mxfast for
2115         $(have-tunables).
2116         * malloc/tst-mxfast.c: Fix copyright year.
2117         (do_test): Fix GNU style issues.  Use TEST_COMPARE instead of
2118         assert for checks.
2120 2019-08-15  Florian Weimer  <fweimer@redhat.com>
2122         * login/utmp_file.c (__libc_updwtmp): Unlock the right file
2123         descriptor.
2124         * login/Makefile (tests): Add tst-updwtmpx.
2125         * login/tst-updwtmpx.c: New file.
2127 2019-08-15  Florian Weimer  <fweimer@redhat.com>
2129         nptl: Move pthread_equal implementation into libc.
2130         * nptl/Makefile (routines): Add pthread_equal.
2131         * nptl/forward.c (pthread_equal): Remove definition.
2132         * nptl/nptl-init.c (pthread_functions): Remove initializer for
2133         ptr_pthread_equal.
2134         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
2135         Remove ptr_pthread_equal member.
2136         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2137         Remove pthread_equal.
2138         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2139         Likewise.
2140         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2141         Likewise.
2142         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
2143         Likewise.
2144         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2145         Likewise.
2146         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2147         Likewise.
2148         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2149         Likewise.
2150         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2151         (GLIBC_2.4): Likewise.
2152         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2153         (GLIBC_2.0): Likewise.
2154         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2155         (GLIBC_2.18): Likewise.
2156         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2157         (GLIBC_2.0): Likewise.
2158         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2159         (GLIBC_2.0): Likewise.
2160         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
2161         Likewise.
2162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2163         (GLIBC_2.0): Likewise.
2164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2165         (GLIBC_2.3): Likewise.
2166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2167         (GLIBC_2.17): Likewise.
2168         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2169         (GLIBC_2.27): Likewise.
2170         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2171         (GLIBC_2.0): Likewise.
2172         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2173         (GLIBC_2.2): Likewise.
2174         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2175         Likewise.
2176         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2177         (GLIBC_2.0): Likewise.
2178         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2179         (GLIBC_2.2): Likewise.
2180         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2181         (GLIBC_2.2.5): Likewise.
2182         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2183         (GLIBC_2.16): Likewise.
2185 2019-08-14  Florian Weimer  <fweimer@redhat.com>
2187         * support/support_descriptors.c: Include <support/descriptors.h>.
2189 2019-08-14  Feng Xue  <fxue@os.amperecomputing.com>
2191         * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
2192         Disable DC ZVA code if this macro is defined as zero.
2193         * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
2194         Change to zero to disable using DC ZVA.
2196 2019-08-13  Joseph Myers  <joseph@codesourcery.com>
2198         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
2199         Update comment.
2200         (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
2201         * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
2202         to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
2203         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
2204         Likewise.
2206 2019-08-13  Florian Weimer  <fweimer@redhat.com>
2208         * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
2209         Remove macros.
2210         (struct file_locking): New.
2211         (try_file_lock, file_unlock, file_lock_restore): New functions.
2212         (__libc_getutent_r): Use the new functions.
2213         (internal_getut_r): Likewise.
2214         (__libc_getutline_r): Likewise.
2215         (__libc_pututline): Likewise.
2216         (__libc_updwtmp): Likewise.
2218 2019-08-13  Joseph Myers  <joseph@codesourcery.com>
2220         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
2221         comment.
2222         (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
2223         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
2224         [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
2225         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2226         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2227         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2228         * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2229         Likewise.
2230         * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2231         * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2232         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2233         Likewise.
2234         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2235         Likewise.
2236         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2237         Likewise.
2238         * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2239         Likewise.
2240         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2241         Likewise.
2242         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2243         Likewise.
2244         * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2245         Likewise.
2246         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
2247         (IEC_60559_BFP_EXT)]: Likewise.
2248         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2249         Likewise.
2250         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2251         Likewise.
2252         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2253         Likewise.
2254         * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2255         Likewise.
2256         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2257         Likewise.
2258         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2259         Likewise.
2260         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2261         Likewise.
2262         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2263         Likewise.
2264         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2265         Likewise, except for totalorder, totalordermag, getpayload,
2266         setpayload and setpayloadsig.
2267         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
2268         except for totalorder and totalordermag.
2270         * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
2271         (strdup): Likewise.
2272         (strndup): Likewise.
2274         * include/features.h (_ISOC2X_SOURCE): New feature test macro.
2275         Undefine and define to 1 if [_GNU_SOURCE].
2276         (__GLIBC_USE_ISOC2X): New macro.  Undefine and redefine depending
2277         on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
2278         (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
2279         (__USE_ISOC99): Likewise.
2280         (__USE_ISOC95): Likewise.
2281         * manual/creature.texi (_ISOC2X_SOURCE): Document.
2283 2019-08-13  Florian Weimer  <fweimer@redhat.com>
2285         * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
2286         are always true.
2287         * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
2288         _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
2289         * login/getutmpx.c (getutmpx): Likewise.
2290         * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
2291         true.
2292         * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
2293         _HAVE_UT_TV are always true.
2294         * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
2295         _HAVE_UT_HOST, _HAVE_UT_TV are always true.
2296         * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
2297         * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
2298         are always true.
2299         (internal_getut_r): _HAVE_UT_TYPE is always true.
2300         (__libc_pututline): Likewise.
2301         * login/programs/utmpdump.c (print_entry): Assume that
2302         _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
2303         _HAVE_UT_TV are always true.
2304         * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
2305         _HAVE_UT_ID are always true.
2306         * sysdeps/gnu/bits/utmp.h: Move to ...
2307         * bits/utmp.h: ... here, replacing the old file.
2309 2019-08-12  Florian Weimer  <fweimer@redhat.com>
2311         * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
2312         [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
2313         not set.
2314         * elf/tst-dlopen-aout.c: Do not included <assert.h>.
2315         (do_test): Open the executable using an absolute path.  Print
2316         error message to standard output.
2318 2019-08-09  DJ Delorie  <dj@redhat.com>
2320         * elf/dl-tunables.list: Add glibc.malloc.mxfast.
2321         * manual/tunables.texi: Document it.
2322         * malloc/malloc.c (do_set_mxfast): New.
2323         (__libc_mallopt): Call it.
2324         * malloc/arena.c: Add mxfast tunable.
2325         * malloc/tst-mxfast.c: New.
2326         * malloc/Makefile: Add it.
2328 2019-08-08  Niklas HambĂŒchen  <mail@nh2.me>
2329             Carlos O'Donell  <carlos@redhat.com>
2331         [BZ #24026]
2332         * malloc/malloc.c (__malloc_info): Account for top chunk.
2334 2019-08-07  Joseph Myers  <joseph@codesourcery.com>
2336         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
2337         (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
2339 2019-08-06  Joseph Myers  <joseph@codesourcery.com>
2341         * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
2343 2019-07-02  Stefan Liebler  <stli@linux.ibm.com>
2345         * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
2347 2019-08-05  Joseph Myers  <joseph@codesourcery.com>
2349         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
2350         New macro.
2352 2019-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2354         [BZ #19767]
2355         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
2356         Remove definition.
2357         * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
2358         Likewise.
2359         * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
2360         Likewise.
2361         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
2362         Likewise.
2363         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
2364         (ALWAYS_USE_VSYSCALL): Likewise.
2365         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
2366         (ALWAYS_USE_VSYSCALL): Likewise.
2367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2368         (ALWAYS_USE_VSYSCALL): Likewise.
2369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2370         (ALWAYS_USE_VSYSCALL): Likewise.
2371         * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
2372         Likewise.
2373         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2374         (ALWAYS_USE_VSYSCALL): Likewise.
2375         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2376         (ALWAYS_USE_VSYSCALL): Likewise.
2377         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
2378         Likewise.
2379         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
2380         Likewise.
2381         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
2382         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
2383         * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
2384         USE_VSYSCALL): Remove defitions.
2386         [BZ #19767]
2387         * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
2388         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
2389         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
2390         Define.
2392         [BZ #19767]
2393         * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
2394         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
2395         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2396         (ALWAYS_USE_VSYSCALL): Define.
2397         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2398         (ALWAYS_USE_VSYSCALL): Likewise.
2400         [BZ #19767]
2401         * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
2402         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
2403         * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
2404         Define.
2406         * sysdeps/sh/libm-test-ulps: Update.
2408 2019-08-05  Florian Weimer  <fweimer@redhat.com>
2410         [BZ #23518]
2411         * login/uptmp-private.h (struct ufuncs): Remove definition.
2412         (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
2413         (__libc_utmp_jump_table): Remove declarations.
2414         (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
2415         (__libc_getutline_r, __libc_pututline, __libc_endutent)
2416         (__libc_updwtmp): Declare.
2417         * login/getutent_r.c (__libc_utmp_unknown_functions)
2418         (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
2419         (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
2420         (endutent_unknown): Remove definitions.
2421         (__setutent): Call __libc_setutent.
2422         (__getutent_r): Call __libc_getutent_r.
2423         (__pututline): Call __libc_pututline.
2424         (__endutent): Call __libc_endutent.
2425         * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
2426         * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
2427         * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
2428         * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
2429         (__libc_setutent): Rename from stetutent_file.  Drop static.
2430         (maybe_setutent): New function.
2431         (__libc_getutent_r): Rename from getutent_r_file.  Drop static.
2432         Check for initialization.
2433         (__libc_getutid_r): Rename from getutid_r_file.  Drop static.
2434         Check for initialization.
2435         (__libc_getutline_r): Rename from getutline_r_file.  Drop static.
2436         Check for initialization.
2437         (__libc_pututline): Rename from pututline_file.  Drop static.
2438         Check for initialization.
2439         (__libc_endutent): Rename from endutent_file.  Drop static.  Check
2440         for initialization.
2441         (__libc_updwtmp): Rename from updwtmp_file.  Drop static.
2442         * login/utmpname.c (__utmpname): Call __libc_endutent.
2443         * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
2444         __libc_getutlien_r, __libc_endutent.
2445         * manual/users.texi (Who Logged In, Manipulating the Database):
2446         Adjust.
2448 2019-08-05  Alexandra HĂĄjkovĂĄ  <ahajkova@redhat.com>
2450         * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
2452 2019-08-02  Joseph Myers  <joseph@codesourcery.com>
2454         * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
2456         * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
2457         kernel version number to 5.2.
2459 2019-08-01  Raoni Fassina Firmino  <raoni@linux.ibm.com>
2461         * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
2462         mnemonics and set .machine power8.
2463         * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
2464         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
2465         * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
2466         * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
2467         * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
2468         * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
2469         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
2470         * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
2471         * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
2472         * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
2474 2019-08-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2476         * sysdeps/hppa/fpu/libm-test-ulps: Update.
2478 2019-08-01  Florian Weimer  <fweimer@redhat.com>
2480         [BZ #24867]
2481         * malloc/malloc.c (__malloc_info): Remove unwanted leading
2482         whitespace.
2484 2019-08-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2486         [BZ #15813]
2487         sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
2488         attempt.
2490 2019-08-01  Carlos O'Donell <carlos@redhat.com>
2492         * version.h (RELEASE): Set to "stable".
2493         (VERSION): Set to "2.30".
2494         * include/features.h (__GLIBC_MINOR__): Set to 2.30.
2496         * manual/install.texi: Update component versions.
2497         * INSTALL: Regenerate.
2498         * NEWS: Update.
2500 2019-07-31  Carlos O'Donell <carlos@redhat.com>
2502         * po/be.po: Update translations.
2503         * po/bg.po: Likewise.
2504         * po/ca.po: Likewise.
2505         * po/cs.po: Likewise.
2506         * po/da.po: Likewise.
2507         * po/de.po: Likewise.
2508         * po/el.po: Likewise.
2509         * po/eo.po: Likewise.
2510         * po/es.po: Likewise.
2511         * po/fi.po: Likewise.
2512         * po/fr.po: Likewise.
2513         * po/gl.po: Likewise.
2514         * po/hr.po: Likewise.
2515         * po/hu.po: Likewise.
2516         * po/ia.po: Likewise.
2517         * po/id.po: Likewise.
2518         * po/it.po: Likewise.
2519         * po/ja.po: Likewise.
2520         * po/ko.po: Likewise.
2521         * po/lt.po: Likewise.
2522         * po/nb.po: Likewise.
2523         * po/nl.po: Likewise.
2524         * po/pl.po: Likewise.
2525         * po/pt_BR.po: Likewise.
2526         * po/ru.po: Likewise.
2527         * po/rw.po: Likewise.
2528         * po/sk.po: Likewise.
2529         * po/sl.po: Likewise.
2530         * po/sv.po: Likewise.
2531         * po/tr.po: Likewise.
2532         * po/uk.po: Likewise.
2533         * po/vi.po: Likewise.
2534         * po/zh_CN.po: Likewise.
2535         * po/zh_TW.po: Likewise.
2537 2019-07-31  Florian Weimer  <fweimer@redhat.com>
2539         [BZ #24583]
2540         [BZ #24677]
2541         iconv, libio: Revert reference counting changes.
2542         * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
2543         free the steps array.
2544         * libio/Makefile (tests): Remove tst-wfile-gconv.
2545         (tests-container): Do not add tst-wfile-ascii.
2546         (tst-wfile-gconv-ENV): Do not set.
2547         (generated): Do not add tst-wfile-gconv.mtrace,
2548         tst-wfile-gconv.check.
2549         [($run-built-tests)] (tests-special): Do not add
2550         tst-wfile-gconv-mem.out.
2551         (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
2552         * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
2553         instead of __wcsmbs_clone_conv.
2554         * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
2555         * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
2557 2019-07-30  Joseph Myers  <joseph@codesourcery.com>
2559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2560         (__CONTEXT_FUNC_NAME): Restore setting of r31.
2562 2019-07-30  Florian Weimer  <fweimer@redhat.com>
2564         * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
2565         type to uintptr_t.  Update comment.
2566         (check_stack_top): Adjust.
2568 2019-07-29  Florian Weimer  <fweimer@redhat.com>
2570         Linux: Move declaration of getdents64 to <dirent.h>.
2571         * bits/dirent_ext.h: New file.
2572         * dirent/Makefile (headers): Add bits/dirent_ext.h.
2573         * dirent/dirent.h: Include <bits/dirent_ext.h>.
2574         * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
2575         * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
2576         declaration.
2577         * manual/filesys.texi (Low-level Directory Access): Update header
2578         to dirent.h.
2580 2019-07-29  DJ Delorie  <dj@redhat.com>
2581             Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
2583         [BZ #24794]
2584         * Makeconfig (all-subdirs): Improved source comments.
2585         * Makefile (testroot.pristine/install.stamp): Pass
2586         subdirs='$(sorted-subdirs)' to make install.
2588 2019-07-25  Florian Weimer  <fweimer@redhat.com>
2590         [BZ #24677]
2591         * iconv/gconv_cache.c (__gconv_release_cache): Check reference
2592         counter before freeing array.
2594 2019-07-24  H.J. Lu  <hongjiu.lu@intel.com>
2596         [BZ #24603]
2597         * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
2598         works.
2599         * sysdeps/x86_64/configure: Regenerated.
2600         * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New.  Set
2601         to -mprefer-vector-width=128 if supported.
2603 2019-07-24  Florian Weimer  <fweimer@redhat.com>
2605         * scripts/build-many-glibcs.py (Context.checkout): Default to
2606         Linux 5.2.
2608 2019-07-24  Florian Weimer  <fweimer@redhat.com>
2610         [BZ #24532]
2611         Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
2612         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
2613         (sysdep_headers): Add bits/socket-constants.h.
2614         (tests-special): Add tst-socket-consts.out.
2615         (tst-socket-consts.out): New target.
2616         * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
2617         around <asm/unistd.h>.
2618         [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
2619         [!__USE_MISC]: Include <sys/socket-constants.h> instead of
2620         <asm/socket.h>.
2621         * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
2622         * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
2623         * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
2624         * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
2625         * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
2626         * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
2627         Likewise.
2628         * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
2630 2019-07-23  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
2632         [BZ #24794]
2633         * Makefile (testroot.pristine/install.stamp): Pass
2634         subdirs='$(all-subdirs)' to make install.
2636         * Makefile (testroot.pristine/install.stamp): Execute ld.so with
2637         the same arguments used in all tests.
2639 2019-07-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2641         * NEWS: Mention the AArch64 IFUNC resolver ABI change.
2643 2019-07-20  Egor Kobylkin  <egor@kobylkin.com>
2645         [BZ #2872]
2646         * locale/C-translit.h.in: Add Cyrillic transliteration.
2648 2019-07-19  Florian Weimer  <fweimer@redhat.com>
2650         * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
2651         from Linux 5.2.
2652         (fsconfig): Add system call name.
2653         (fsmount): Likewise.
2654         (fsopen): Likewise.
2655         (fspick): Likewise.
2656         (move_mount): Likewise.
2657         (open_tree): Likewise.
2659 2019-07-18  Carlos O'Donell  <carlos@redhat.com>
2661         * po/libc.pot: Regenerate.
2663 2019-07-18  Mike Crowe  <mac@mcrowe.com>
2665         * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
2666         functions recently added to sysdeps/nptl/pthread.h:
2667         pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
2668         pthread_rwlock_clockwrlock and pthread_cond_clockwait.
2670         * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
2671         pthread_cond_clockwait forwarding functions.  There are no internal
2672         users, so it is unnecessary to expose these functions in libc.so.
2673         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
2674         unnecessary ptr___pthread_cond_clockwait member.
2675         * nptl/nptl-init.c (pthread_functions): Remove assignment of
2676         removed member.
2678 2019-07-17  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
2680         [BZ #21897]
2681         * localedata/locales/aa_DJ (abday): Update from CLDR, all words
2682         begin with an uppercase letter now.
2683         (abmon): Likewise.
2684         (mon): Update from CLDR, reword February from "Kudo" to
2685         "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
2686         and August from "Liiqen" to "Leqeeni".
2687         * localedata/locales/aa_ER (mon): Update from CLDR, reword
2688         April from "Agda Baxisso" to "Agda Baxis" and August from
2689         "Leqeeni" to "Liiqen".
2690         * localedata/locales/aa_ER@saaho (mon): Likewise.
2691         * localedata/locales/aa_ET (abmon): Update from CLDR, reword
2692         abbreviated February from "Kud" to "Nah".
2693         (mon): Update from CLDR, reword February from "Kudo" to
2694         "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
2696 2019-07-17  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
2698         [BZ #23996]
2699         * localedata/locales/nl_BE (LC_NAME): Replace with â€œcopy "nl_NL"”.
2701 2019-07-17  PanderMusubi  <pander@users.sourceforge.net>
2703         [BZ #23996]
2704         * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
2705         name_mrs, name_miss, and name_ms.
2706         * localedata/locales/nl_NL (LC_NAME): Likewise.
2708 2019-07-17  Daniil Zhilin  <generalfailer@protonmail.com>
2710         [BZ #24200]
2711         * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
2712         * localedata/locales/en_IE (first_weekday): Likewise.
2714 2019-07-12  Mike Crowe  <mac@mcrowe.com>
2716         * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
2717         that is only useful if futex_supports_exact_relative_timeouts ()
2718         returns false.
2719         * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
2720         Likewise.
2721         * sysdeps/nptl/futex-internal.h: Remove comment about relative
2722         timeouts potentially being imprecise since it's no longer true.
2723         Remove declaration of futex_supports_exact_relative_timeouts.
2724         * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
2725         of futex_supports_exact_relative_timeouts.
2727         * NEWS: Mention recently-added pthread_cond_clockwait,
2728         pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
2729         sem_clockwait functions.
2731         nptl: Add POSIX-proposed pthread_mutex_clocklock function that
2732         works like pthread_mutex_timedlock but takes a clockid parameter to
2733         measure the abstime parameter against.
2734         * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
2735         * nptl/DESIGN-systemtap-probes.txt: Likewise.
2736         * nptl/pthread_mutex_timedlock.c
2737         (__pthread_mutex_clocklock_common): Rename from
2738         __pthread_mutex_timedlock and add clockid parameter. Pass this
2739         parameter to lll_clocklock and lll_clocklock_elision in place of
2740         CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
2741         LIBC_PROBE and validate clockid parameter before calling
2742         __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
2743         implementation to add LIBC_PROBE and calls
2744         __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
2745         clockid.
2746         * nptl/Makefile: Add tst-mutex11.c.
2747         * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
2748         * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
2749         clockid parameters to pthread_mutex_clocklock.
2750         * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
2751         clockid parameter to indicate which clock to be used. Call
2752         pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
2753         (do_test): Call do_test_clock to separately test
2754         pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
2755         and pthread_mutex_clocklock(CLOCK_MONOTONIC).
2756         * nptl/tst-mutex9.c: Likewise.
2757         * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
2758         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
2759         Likewise.
2760         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
2761         Likewise.
2762         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
2763         Likewise.
2764         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
2765         Likewise.
2766         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
2767         Likewise.
2768         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
2769         Likewise.
2770         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
2771         Likewise.
2772         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2773         (GLIBC_2.30): Likewise.
2774         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2775         (GLIBC_2.30): Likewise.
2776         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2777         (GLIBC_2.30): Likewise.
2778         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2779         (GLIBC_2.30): Likewise.
2780         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2781         (GLIBC_2.30): Likewise.
2782         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
2783         Likewise.
2784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2785         (GLIBC_2.30): Likewise.
2786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2787         (GLIBC_2.30): Likewise.
2788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2789         (GLIBC_2.30): Likewise.
2790         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2791         (GLIBC_2.30): Likewise.
2792         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2793         (GLIBC_2.30): Likewise.
2794         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2795         (GLIBC_2.30): Likewise.
2796         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
2797         Likewise.
2798         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2799         (GLIBC_2.30): Likewise.
2800         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2801         (GLIBC_2.30): Likewise.
2802         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2803         (GLIBC_2.30): Likewise.
2804         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2805         (GLIBC_2.30): Likewise.
2807         nptl: Rename lll_timedlock to lll_clocklock and add clockid
2808         parameter to indicate the clock that the abstime parameter should
2809         be measured against in preparation for adding
2810         pthread_mutex_clocklock.
2811         * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
2812         lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
2813         from __lll_timedlock and add clockid parameter.
2814         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
2815         Likewise.
2816         * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
2817         __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
2818         rather than __gettimeofday so that clockid can be used. This means
2819         that conversion from struct timeval is no longer required.
2820         * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
2821         Likewise.
2822         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
2823         refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
2824         * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
2825         from lll_timedlock_elision, add clockid parameter and use
2826         meaningful names for other parameters. (__pthread_mutex_timedlock):
2827         Pass CLOCK_REALTIME where necessary to lll_clocklock and
2828         lll_clocklock_elision.
2829         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2830         (lll_clocklock_elision): Rename from lll_timedlock_elision and add
2831         clockid parameter. (__lll_clocklock_elision): Rename from
2832         __lll_timedlock_elision and add clockid parameter.
2833         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2834         * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
2835         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
2836         (__lll_lock_elision): Call __lll_clocklock_elision rather than
2837         __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
2838         (LLL_LOCK): Likewise.
2839         * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2840         * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
2842         nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
2843         pthread_rwlock_clockwrlock which behave like
2844         pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
2845         respectively, except they always measure abstime against the
2846         supplied clockid. The functions currently support CLOCK_REALTIME
2847         and CLOCK_MONOTONIC and return EINVAL if any other clock is
2848         specified.
2849         * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
2850         pthread_wrlock_clockwrlock.
2851         * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
2852         pthread_rwlock_clockwrlock.c.
2853         * nptl/pthread_rwlock_clockrdlock.c: Implement
2854         pthread_rwlock_clockrdlock.
2855         * nptl/pthread_rwlock_clockwrlock.c: Implement
2856         pthread_rwlock_clockwrlock.
2857         * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
2858         clockid parameter and verify that it indicates a supported clock on
2859         entry so that we fail even if it doesn't end up being used. Pass
2860         that clock on to futex_abstimed_wait when necessary.
2861         (__pthread_rwlock_wrlock_full): Likewise.
2862         * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
2863         CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
2864         be used because there's no timeout.
2865         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
2866         CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
2867         be used because there is no timeout.
2868         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2869         Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
2870         uses that clock.
2871         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2872         Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
2873         uses that clock.
2874         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2875         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2876         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2877         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2878         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2879         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2880         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2881         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2882         (GLIBC_2.30): Likewise.
2883         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2884         (GLIBC_2.30): Likewise.
2885         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2886         (GLIBC_2.30): Likewise.
2887         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2888         (GLIBC_2.30): Likewise.
2889         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2890         (GLIBC_2.30): Likewise.
2891         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2893         (GLIBC_2.30): Likewise.
2894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2895         (GLIBC_2.30): Likewise.
2896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2897         (GLIBC_2.30): Likewise.
2898         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2899         (GLIBC_2.30): Likewise.
2900         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2901         (GLIBC_2.30): Likewise.
2902         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2903         (GLIBC_2.30): Likewise.
2904         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2905         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2906         (GLIBC_2.30): Likewise.
2907         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2908         (GLIBC_2.30): Likewise.
2909         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2910         (GLIBC_2.30): Likewise.
2911         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2912         (GLIBC_2.30): Likewise.
2913         * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
2914         pthread_rwlock_clockwrlock timeout tests to match the existing
2915         pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
2916         * nptl/tst-rwlock14.c (do_test): Likewise.
2917         * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
2918         ancillary output throughout. (tf): Accept thread_args structure so
2919         that rwlock, a clockid and function name can be passed to the
2920         thread. (do_test_clock): Rename from do_test. Accept clockid
2921         parameter to specify test clock. Use the magic clockid value of
2922         CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2923         pthread_rwlock_timedwrlock should be tested, otherwise pass the
2924         specified clockid to pthread_rwlock_clockrdlock and
2925         pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2926         (do_test): Call do_test_clock to test each clockid in turn.
2927         * nptl/tst-rwlock7.c: Likewise.
2928         * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2929         thread_args structure so that the (now int) thread number, the
2930         clockid and the function name can be passed to the thread.
2931         (do_test_clock): Renamed from do_test. Pass the necessary
2932         thread_args when creating the reader and writer threads. Use
2933         xpthread_create and xpthread_join.
2934         (do_test): Call do_test_clock to test each clockid in turn.
2935         * manual/threads.texi: Add documentation for
2936         pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2938         nptl: pthread_rwlock: Move timeout validation into _full functions
2939         * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2940         Check validity of abstime parameter.
2941         (__pthread_rwlock_rwlock_full): Likewise.
2942         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2943         Remove check for validity of abstime parameter.
2944         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2945         Likewise.
2947         nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2948         like pthread_cond_timedwait except it always measures abstime
2949         against the supplied clockid.
2950         * nptl/Makefile: Add tst-cond26 and tst-cond27
2951         * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2952         * sysdeps/nptl/pthread.h: Likewise
2953         * nptl/forward.c: Add __pthread_cond_clockwait
2954         * nptl/forward.c: Likewise
2955         * nptl/pthreadP.h: Likewise
2956         * sysdeps/nptl/pthread-functions.h: Likewise
2957         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2958         clockid parameter and comment describing why we don't need to check
2959         its value. Use that value when calling
2960         futex_abstimed_wait_cancelable rather than reading the clock from
2961         the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2962         (__pthread_cond_timedwait): Read clock from flags and pass it to
2963         __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2964         function with weak alias from pthread_cond_clockwait.
2965         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2966         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2967         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2968         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2969         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2970         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2971         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2972         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2973         (GLIBC_2.30): Likewise.
2974         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2975         (GLIBC_2.30): Likewise.
2976         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2977         (GLIBC_2.30): Likewise.
2978         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2979         (GLIBC_2.30): Likewise.
2980         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2981         (GLIBC_2.30): Likewise.
2982         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2984         (GLIBC_2.30): Likewise.
2985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2986         (GLIBC_2.30): Likewise.
2987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2988         (GLIBC_2.30): Likewise.
2989         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2990         (GLIBC_2.30): Likewise.
2991         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2992         (GLIBC_2.30): Likewise.
2993         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2994         (GLIBC_2.30): Likewise.
2995         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2996         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2997         (GLIBC_2.30): Likewise.
2998         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2999         (GLIBC_2.30): Likewise.
3000         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
3001         (GLIBC_2.30): Likewise.
3002         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
3003         (GLIBC_2.30): Likewise.
3004         * nptl/tst-cond11.c (run_test): Support testing
3005         pthread_cond_clockwait too by using a special magic
3006         CLOCK_USE_ATTR_CLOCK value to determine whether to call
3007         pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
3008         CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
3009         all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
3010         * ntpl/tst-cond26.c: New test for passing unsupported and invalid
3011         clocks to pthread_cond_clockwait.
3012         * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
3013         struct timespec and pthread_cond_clockwait.
3014         * manual/threads.texi: Document pthread_cond_clockwait.
3016         nptl: Add POSIX-proposed sem_clockwait which behaves just like
3017         sem_timedwait, but measures abstime against the specified clock.
3018         * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
3019         clockid parameters to indicate the clock which abstime should be
3020         measured against.
3021         * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
3022         (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
3023         __new_sem_wait_slow.
3024         * nptl/sem_clockwait.c: New file to implement sem_clockwait based
3025         on sem_timedwait.c.
3026         * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
3027         sem_clockwait.c to match those used for sem_timedwait.c.
3028         * sysdeps/pthread/semaphore.h: Add sem_clockwait.
3029         * nptl/Versions (GLIBC_2.30): Likewise.
3030         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
3031         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
3032         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
3033         * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
3034         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
3035         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
3036         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
3037         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
3038         (GLIBC_2.30): Likewise.
3039         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
3040         (GLIBC_2.30): Likewise.
3041         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
3042         (GLIBC_2.30): Likewise.
3043         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
3044         (GLIBC_2.30): Likewise.
3045         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
3046         (GLIBC_2.30): Likewise.
3047         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
3048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
3049         (GLIBC_2.30): Likewise.
3050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
3051         (GLIBC_2.30): Likewise.
3052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
3053         (GLIBC_2.30): Likewise.
3054         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
3055         (GLIBC_2.30): Likewise.
3056         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
3057         (GLIBC_2.30): Likewise.
3058         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
3059         (GLIBC_2.30): Likewise.
3060         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
3061         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
3062         (GLIBC_2.30): Likewise.
3063         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
3064         (GLIBC_2.30): Likewise.
3065         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
3066         (GLIBC_2.30): Likewise.
3067         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
3068         (GLIBC_2.30): Likewise.
3069         * nptl/tst-sem17.c: Add new test for passing invalid clock to
3070         sem_clockwait.
3071         * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
3072         tests to also test sem_clockwait.
3073         * manual/threads.texi: Document sem_clockwait.
3075         nptl: Add clockid parameter to futex timed wait calls
3076         * sysdeps/nptl/lowlevellock-futex.h,
3077         sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
3078         lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
3079         takes a clockid rather than a special clockbit.
3080         * sysdeps/nptl/lowlevellock-futex.h: Add
3081         lll_futex_supported_clockid so that client functions can check
3082         whether their clockid parameter is valid even if they don't
3083         ultimately end up calling lll_futex_clock_wait_bitset.
3084         * sysdeps/nptl/futex-internal.h,
3085         sysdeps/unix/sysv/linux/futex-internal.h
3086         (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
3087         clockid_t parameter to indicate which clock the absolute time
3088         passed should be measured against. Pass that clockid onto
3089         lll_futex_clock_wait_bitset. Add invalid clock as reason for
3090         returning -EINVAL.
3091         * sysdeps/nptl/futex-internal.h,
3092         sysdeps/unix/sysv/linux/futex-internal.h: Introduce
3093         futex_abstimed_supported_clockid so that client functions can check
3094         whether their clockid parameter is valid even if they don't
3095         ultimately end up calling futex_abstimed_wait.
3096         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
3097         code to calculate relative timeout for
3098         __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
3099         or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
3100         * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
3101         (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
3102         additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
3103         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
3104         Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
3106 2019-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3108         [BZ #24699]
3109         * posix/tst-mmap-offset.c: Mention BZ #24699.
3110         (do_test_bz21270): Rename to do_test_large_offset and use
3111         mmap64_maximum_offset to check for maximum expected offset value.
3112         * sysdeps/generic/mmap_info.h: New file.
3113         * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
3114         * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
3115         __NR_mmap2 is used.
3117 2019-07-10  DJ Delorie  <dj@redhat.com>
3118             Sergei Trofimovich <slyfox@inbox.ru>
3120         [BZ #24696]
3121         [BZ #24695]
3122         * nss/nss_db/db-open.c (internal_endent): Protect against NULL
3123         mappings.
3124         * nss/tst-nss-db-endgrent.c: New.
3125         * nss/tst-nss-db-endgrent.root: New.
3126         * nss/tst-nss-db-endpwent.c: New.
3127         * nss/tst-nss-db-endpwent.root: New.
3128         * nss/Makefile: Add new tests.
3129         * support/links-dso-program-c.c: Add selinux dependency.
3130         * support/links-dso-program.cc: Add selinux dependency.
3131         * support/Makefile: Build those with -lselinux if enabled.
3133 2019-07-10  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3135         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
3136         DT_AARCH64_VARIANT_PCS check.
3137         (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
3138         * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
3139         variant_pcs.
3141 2019-07-10  Andreas Schwab  <schwab@suse.de>
3143         [BZ #23352]
3144         * malloc/malloc.h (__malloc_check_init): Don't declare.
3145         * include/malloc.h (__malloc_check_init): Likewise.
3146         * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
3147         * manual/memory.texi (__malloc_check_init): Don't mention it.
3149 2019-07-10  Mao Han  <han_mao@c-sky.com>
3151         * locale/Makefile: Fix tst-locale-locpath arguments passing.
3153 2019-07-09  Paul A. Clarke  <pc@us.ibm.com>
3155         * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
3156         __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
3158 2019-07-08  DJ Delorie  <dj@redhat.com>
3160         [BZ #23501]
3161         * io/ftw.c (process_entry): Fill in statbuf for dangling links.
3162         * io/tst-ftw-lnk.c: New test.
3163         * io/Makefile: Run it.
3165 2019-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3167         * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
3168         * sysdeps/powerpc/fpu/s_logb.c: ... here.  Use inline FP constants.
3169         * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
3170         * sysdeps/powerpc/fpu/s_logbf.c: ... here.  Use inline FP constants.
3171         * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
3172         * sysdeps/powerpc/fpu/s_logbl.c: ... here.  Use inline FP constants.
3173         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
3174         Adjust implementation path.
3175         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
3176         Adjust implementation path.
3177         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
3178         Adjust implementation path.
3179         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3180         (libm-sysdep_routines): Add s_log* objects.
3181         (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
3182         CFLAGS-s_logb-power7.c): New fule.
3183         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
3184         to ...
3185         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
3186         ... here.
3187         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
3188         to ...
3189         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
3190         ... here.
3191         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
3192         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
3193         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
3194         to ...
3195         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
3196         ... here.
3197         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
3198         to ...
3199         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
3200         ... here.
3201         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
3202         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
3203         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
3204         to ...
3205         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
3206         ... here.
3207         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
3208         to ...
3209         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
3210         ... here.
3211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
3212         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
3213         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
3214         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
3215         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
3216         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
3218         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
3219         * sysdeps/ieee754/dbl-64/s_logb.c: ... here.  Add work around for
3220         powerpc32 integer 0 converting to -0.
3222         * benchtests/Makefile (bench-math): Add logb.
3223         * benchtests/logb-inputs: New file.
3224         * benchtests/logbf-inputs: New file.
3226         * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
3227         * sysdeps/powerpc/fpu/s_modf.c: ... here.  Add ISA 2.07 optimization.
3228         * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
3229         * sysdeps/powerpc/fpu/s_modff.c: ... here.  Add ISA 2.07 optimization.
3230         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
3231         Adjust include.
3232         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
3233         Likewise.
3234         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
3235         sysdep_routines): Add s_modf* objects.
3236         (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
3237         CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
3238         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
3239         to ...
3240         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
3241         ... here.
3242         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
3243         to ...
3244         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
3245         ... here.
3246         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
3247         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
3248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
3249         to ...
3250         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
3251         ... here.
3252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
3253         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
3254         ... here.
3255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
3256         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
3258         * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
3259         twoM500, twoM600, two60factor, pdnum): Remove.
3260         (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
3261         (__ieee754_hypot): Replace static variables with inline definition,
3262         remove ununsed branches.
3263         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3264         (libm-sysdep_routines): Remove e_hypot-* objects.
3265         (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
3266         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
3267         file.
3268         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
3269         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
3270         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
3271         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
3272         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
3274         * benchtests/Makefile (bench-math): Add hypot.
3275         * benchtests/hypot-inputs: New file.
3277 2019-07-08  Vincent Chen  <vincentc@andestech.com>
3279         * sysdeps/unix/sysv/linux/dl-vdso.h
3280         (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
3282 2019-07-04  Andreas Schwab  <schwab@suse.de>
3284         [BZ #24484]
3285         * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
3287 2019-07-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3289         * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
3290         * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
3291         * sysdeps/aarch64/sys/ifunc.h: New file.
3292         * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
3293         * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
3295 2019-07-01  Florian Weimer  <fweimer@redhat.com>
3297         [BZ #20188]
3298         * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
3299         Replace __vfork with __libpthread_version_placeholder for
3300         GLIBC_2.1.2.
3301         (libc): Remove __libc_vfork from GLIBC_PRIVATE.
3302         * nptl/Makefile (libpthread-routines): Remove pt-vfork.  Add
3303         libpthread-compat.
3304         * nptl/pt-vfork.c: Remove file.
3305         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
3306         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
3307         * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3308         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
3309         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
3310         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
3311         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
3312         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
3313         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
3314         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
3315         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
3316         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
3317         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
3318         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
3319         Remove vfork, __vfork.
3320         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
3321         Remove vfork.
3322         (GLIBC_2.1.2): Replace __vfork with
3323         __libpthread_version_placeholder.
3324         * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
3325         Remove vfork, __vfork.
3326         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
3327         Likewise.
3328         * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
3329         Remove vfork.
3330         (GLIBC_2.1.2): Replace __vfork with
3331         __libpthread_version_placeholder.
3332         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
3333         Remove vfork.
3334         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
3335         (GLIBC_2.4): Remove vfork, __vfork.
3336         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
3337         (GLIBC_2.0): Remove vfork.
3338         (GLIBC_2.1.2): Replace __vfork with
3339         __libpthread_version_placeholder.
3340         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
3341         (GLIBC_2.18): Remove vfork, __vfork.
3342         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
3343         (GLIBC_2.0): Remove vfork.
3344         (GLIBC_2.2): Remove __vfork.
3345         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
3346         (GLIBC_2.2): Remove vfork, __vfork.
3347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
3348         (GLIBC_2.0): Remove vfork.
3349         (GLIBC_2.1.2): Replace __vfork with
3350         __libpthread_version_placeholder.
3351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
3352         (GLIBC_2.3): Remove vfork, __vfork.
3353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
3354         (GLIBC_2.17): Likewise.
3355         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
3356         (GLIBC_2.0): Remove vfork.
3357         (GLIBC_2.1.2): Replace __vfork with
3358         __libpthread_version_placeholder.
3359         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
3360         (GLIBC_2.2): Remove vfork, __vfork.
3361         * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
3362         Likewise.
3363         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
3364         (GLIBC_2.0): Remove vfork.
3365         (GLIBC_2.1.2): Replace __vfork with
3366         __libpthread_version_placeholder.
3367         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
3368         (GLIBC_2.2): Remove vfork, __vfork.
3369         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
3370         (GLIBC_2.2.5): Likewise.
3371         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
3372         (GLIBC_2.16): Likewise.
3373         * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
3374         Remove __errno_location.
3376 2019-07-02  Florian Weimer  <fweimer@redhat.com>
3378         [BZ #24757]
3379         * malloc/Depend: Add nptl and htl, due to potential indirect
3380         libpthread dependency of memusagestat.
3382 2019-07-02  Stefan Liebler  <stli@linux.ibm.com>
3384         * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
3385         warning.
3387 2019-07-01  Florian Weimer  <fweimer@redhat.com>
3389         * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
3390         variant for arm-linux-gnueabi.
3392 2019-07-01  H.J. Lu  <hongjiu.lu@intel.com>
3394         [BZ #24259]
3395         * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
3396         relocation.
3397         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
3398         tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
3399         (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
3400         tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
3401         and tst-cet-legacy-mod-6c.
3402         (CFLAGS-tst-cet-legacy-5a.c): New.
3403         (CFLAGS-tst-cet-legacy-5b.c): Likewise.
3404         (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
3405         (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
3406         (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
3407         (CFLAGS-tst-cet-legacy-6a.c): Likewise.
3408         (CFLAGS-tst-cet-legacy-6b.c): Likewise.
3409         (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
3410         (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
3411         (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
3412         ($(objpfx)tst-cet-legacy-5a): Likewise.
3413         ($(objpfx)tst-cet-legacy-5a.out): Likewise.
3414         ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
3415         ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
3416         ($(objpfx)tst-cet-legacy-5b): Likewise.
3417         ($(objpfx)tst-cet-legacy-5b.out): Likewise.
3418         (tst-cet-legacy-5b-ENV): Likewise.
3419         ($(objpfx)tst-cet-legacy-6a): Likewise.
3420         ($(objpfx)tst-cet-legacy-6a.out): Likewise.
3421         ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
3422         ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
3423         ($(objpfx)tst-cet-legacy-6b): Likewise.
3424         ($(objpfx)tst-cet-legacy-6b.out): Likewise.
3425         (tst-cet-legacy-6b-ENV): Likewise.
3426         * sysdeps/x86/tst-cet-legacy-5.c: New file.
3427         * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
3428         * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
3429         * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
3430         * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
3431         * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
3432         * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
3433         * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
3434         * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
3435         * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
3436         * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
3437         * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
3438         * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
3439         * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
3441 2019-06-30  Paul A. Clarke  <pc@us.ibm.com>
3443         * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
3444         __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
3445         (__fegetround_ISA300) New.
3446         (__fegetround_ISA2) New.
3447         * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
3448         (_FPU_MFFS): Move implementation...
3449         (_FPU_GETCW): Here.
3450         (_FPU_MFFSL): Move implementation....
3451         (_FPU_GET_RC_ISA300): Here. New.
3452         (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
3453         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
3454         (fegetenv_status): New.
3455         * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
3456         instead of fegetenv_register().
3457         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
3459 2019-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
3461         * benchtests/bench-math-inlines.c: Increase iterations.
3462         * benchtests/bench-memcmp.c: Likewise.
3463         * benchtests/bench-rawmemchr.c: Likewise.
3464         * benchtests/bench-strcmp.c: Likewise.
3465         * benchtests/bench-strcpy_chk.c: Likewise.
3466         * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
3467         (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
3468         (INNER_LOOP_ITERS_SMALL): Likewise.
3469         * benchtests/bench-strncat.c: Increase iterations.
3470         * benchtests/bench-strncmp.c: Increase iterations.
3471         * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
3472         * benchtests/bench-strrchr.c: Increase iterations.
3473         * benchtests/bench-strstr.c: Keep iterations unchanged.
3474         * benchtests/bench-strtod.c: Increase iterations.
3476 2019-06-28  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
3478         * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
3479         with INNER_LOOP_ITERS_LARGE.
3480         * benchtests/bench-memchr.c: Likewise.
3481         * benchtests/bench-rawmemchr.c: Likewise.
3482         * benchtests/bench-strcat.c: Likewise.
3483         * benchtests/bench-strchr.c: Likewise.
3484         * benchtests/bench-string.h: Likewise.
3485         * benchtests/bench-strlen.c: Likewise.
3486         * benchtests/bench-strncpy.c: Likewise.
3487         * benchtests/bench-strnlen.c: Likewise.
3489 2019-06-28  Florian Weimer  <fweimer@redhat.com>
3491         * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
3492         Use mmap instead of malloc.  malloc with M_PERTURB writes to the
3493         entire allocated memory range.
3495 2019-06-28  Tobias Klauser  <tklauser@distanz.ch>
3497         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
3498         (prepare_version_base): New helper inline function.
3499         (prepare_version): New macro replacing PREPARE_VERSION.
3500         (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
3502 2019-06-28  Florian Weimer  <fweimer@redhat.com>
3504         [BZ #24741]
3505         * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
3506         mismatch in a versioned symbol reference.
3507         (_dl_lookup_symbol_x): Do not report soname mismatch failures.
3508         * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
3509         tst-sonamemove-dlopen.
3510         (module-names): Add tst-sonamemove-linkmod1,
3511         tst-sonamemove-runmod1, tst-sonamemove-runmod2.
3512         (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
3513         (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
3514         (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
3515         (tst-sonamemove-runmod1.so): Link against
3516         tst-sonamemove-runmod2.so.
3517         (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
3518         (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
3519         tst-sonamemove-runmod2.so.
3520         (tst-sonamemove-dlopen): Link with -ldl.
3521         (tst-sonamemove-dlopen.out): Likewise.
3522         * elf/tst-sonamemove-link.c: New file.
3523         * elf/tst-sonamemove-dlopen.c: Likewise.
3524         * elf/tst-sonamemove-linkmod1.c: Likewise.
3525         * elf/tst-sonamemove-linkmod1.map: Likewise.
3526         * elf/tst-sonamemove-runmod1.c: Likewise.
3527         * elf/tst-sonamemove-runmod1.map: Likewise.
3528         * elf/tst-sonamemove-runmod2.c: Likewise.
3529         * elf/tst-sonamemove-runmod2.map: Likewise.
3531 2019-06-28  Florian Weimer  <fweimer@redhat.com>
3533         * support/xdlfcn.h (xdlvsym): Declare function.
3534         * support/xdlfcn.c (xdlvsym): Define funciton.
3536 2019-06-28  Florian Weimer  <fweimer@redhat.com>
3538         [BZ #24744]
3539         io: Remove the copy_file_range emulation.
3540         * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
3541         not define and call copy_file_range_compat.
3542         * io/Makefile (tests-static, tests-internal): Do not add
3543         tst-copy_file_range-compat.
3544         * io/copy_file_range-compat.c: Remove file.
3545         * io/copy_file_range.c (copy_file_range): Define as stub.
3546         * io/tst-copy_file_range-compat.c: Remove file.
3547         * io/tst-copy_file_range.c (xdevfile): Remove variable.
3548         (typical_sizes): Update comment.  Remove 16K sizes.
3549         (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
3550         Remove variables.
3551         (find_maximum_offset, pipe_as_source, pipe_as_destination)
3552         (delayed_write_failure_beginning, delayed_write_failure_end)
3553         (cross_device_failure, enospc_failure_1, enospc_failure)
3554         (oappend_failure): Remove functions.
3555         (tests): Adjust test case list.
3556         (do_test): Remove file system search code.  Check for ENOSYS from
3557         copy_file_range.  Do not free xdevfile.
3558         * manual/llio.texi (Copying File Data): Document ENOSYS error from
3559         copy_file_range.  Do not document the EXDEV error, which future
3560         kernels may not report.  Update the wording to reflect that
3561         further errors are possible.
3562         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3563         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
3564         not undefine.
3565         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3566         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
3567         Likewise.
3568         * sysdeps/unix/sysv/linux/kernel-features.h
3569         [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
3570         Remove definition.
3571         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3572         [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
3573         not undefine.
3574         * sysdeps/unix/sysv/linux/sh/kernel-features.h
3575         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
3576         Likewise.
3578 2019-06-27  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
3580         * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
3581         used as a mask for the mode argument of __vfprintf_internal.
3582         * stdio-common/printf-parse.h (printf_arg): New union member:
3583         pa_float128.
3584         * stdio-common/vfprintf-internal.c
3585         (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
3586         (PARSE_FLOAT_VA_ARG): Likewise.
3587         (SETUP_FLOAT128_INFO): Likewise.
3588         (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
3589         SETUP_FLOAT128_INFO.
3590         [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
3591         floating-point value to the new union member, pa_float128.
3592         (printf_positional): Zero-initialize args_value[cnt] with memset.
3594 2019-06-27  Florian Weimer  <fweimer@redhat.com>
3596         [BZ #24740]
3597         * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
3598         buffer size if necessary.
3599         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3600         Likewise.
3601         * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
3602         New function.
3603         (large_buffer_checks): Likewise.
3604         (do_test): Call large_buffer_checks.
3606 2019-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3608         * sysdeps/i386/dl-lookupcfg.h: Moved to ...
3609         * sysdeps/x86/dl-lookupcfg.h: Here.
3610         * sysdeps/x86_64/dl-lookupcfg.h: Removed.
3612 2019-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3614         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3615         (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
3616         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
3617         file.
3618         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
3619         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
3620         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
3621         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
3622         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
3624         * sysdeps/powerpc/powerpc32/fpu/Makefile
3625         [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
3626         * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
3627         and fctidz optimization.
3628         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
3629         * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
3630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3631         (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
3632         CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
3633         CFLAGS-s_lround-power5+.c): New rule.
3634         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
3635         New file.
3636         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
3637         Likewise.
3638         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
3639         Likewise.
3640         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
3641         Likewise.
3642         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
3643         Likewise.
3644         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
3645         Remove file.
3646         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
3647         Likewise.
3648         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
3649         Likewise.
3650         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
3651         Likewise.
3652         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
3653         Likewise.
3654         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
3655         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
3656         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
3657         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3658         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
3659         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
3660         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3662 2019-06-26  Vincent Chen  <vincentc@andestech.com>
3664         * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
3665         specific system calls, fp_udfiex_crtl and udftrap.
3667 2019-06-26  Stefan Liebler  <stli@linux.ibm.com>
3669         * nptl/tst-eintr1.c (tf1): Add return statement.
3670         (do_test): Remove unused th variable.
3672 2019-06-26  Stefan Liebler  <stli@linux.ibm.com>
3674         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
3675         Return error if get_character fails.
3677 2019-06-25  Stefan Liebler  <stli@linux.ibm.com>
3679         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3681 2019-06-24  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
3683         [BZ #24652]
3684         * localedata/locales/szl_PL (day): Use the correct Unicode
3685         sequences instead of non-ASCII characters.
3687 2019-06-24  Grzegorz Kulik  <gregorykkulik@gmail.com>
3689         [BZ #24652]
3690         * localedata/locales/szl_PL (abday): Spelling corrections.
3691         (day): Likewise.
3692         (abmon): Likewise.
3693         (mon): Rename to...
3694         (alt_mon): This, then apply spelling corrections.
3695         (mon): New entry, month names in the genitive case.
3697 2019-06-21  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
3699         [BZ #23831]
3700         * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
3701         * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
3702         (thousands_sep): Likewise.
3703         (grouping): Set to 3;3.
3705 2019-06-21  Tobias Klauser  <tklauser@distanz.ch>
3707         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
3708         PREPARE_VERSION_KNOWN.
3709         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
3710         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
3711         define.
3712         (VDSO_HASH_LINUX_2_6_39): Likewise.
3713         (VDSO_NAME_LINUX_4_9): Likewise.
3714         (VDSO_HASH_LINUX_4_9): Likewise.
3715         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
3716         * sysdeps/unix/sysv/linux/powerpc/init-first.c
3717         (_libc_vdso_platform_setup): Likewise.
3718         * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
3719         * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
3720         Likewise.
3721         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
3722         Likewise.
3724 2019-06-20  Mike Crowe  <mac@mcrowe.com>
3726         * nptl/eintr.c: Use libsupport.
3727         * nptl/tst-eintr1.c: Likewise.
3728         * nptl/tst-eintr2.c: Likewise.
3729         * nptl/tst-eintr3.c: Likewise.
3730         * nptl/tst-eintr4.c: Likewise.
3731         * nptl/tst-eintr5.c: Likewise.
3732         * nptl/tst-mutex-errorcheck.c: Likewise.
3733         * nptl/tst-mutex5.c: Likewise.
3735         * support/test-driver.h: Add verbose_printf macro.
3737         * support/xtime.h: Add xclock_now() helper function.
3739 2019-06-20  Dmitry V. Levin  <ldv@altlinux.org>
3740             Florian Weimer  <fweimer@redhat.com>
3742         [BZ #24228]
3743         * libio/genops.c (_IO_unbuffer_all)
3744         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
3745         buffers and access _IO_FILE_complete members of legacy libio streams.
3746         * libio/tst-bz24228.c: New file.
3747         * libio/tst-bz24228.map: Likewise.
3748         * libio/Makefile [build-shared] (tests): Add tst-bz24228.
3749         [build-shared] (generated): Add tst-bz24228.mtrace and
3750         tst-bz24228.check.
3751         [run-built-tests && build-shared] (tests-special): Add
3752         $(objpfx)tst-bz24228-mem.out.
3753         (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
3754         ($(objpfx)tst-bz24228-mem.out): New rule.
3756 2019-06-19  Paul A. Clarke  <pc@us.ibm.com>
3758         * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
3759         * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
3760         (__FPU_MFFSL): Likewise.
3761         (_FPU_SETCW): Likewise.
3763 2019-06-19  Stan Shebs  <stanshebs@google.com>
3764             Raoni Fassina Firmino  <raoni@linux.ibm.com>
3766         [BZ #24640]
3767         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
3768         [!SHARED] (__get_timebase_freq): Fix sense of a test in the
3769         static-linking version.
3770         * sysdeps/unix/sysv/linux/powerpc/Makefile
3771         (tests-static): Add test-gettimebasefreq-static.
3772         (tests): Likewise.
3773         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
3774         New file.
3776 2019-06-19  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
3778         [BZ #24614]
3779         * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
3780         between the currency symbol and the minus sign).
3781         (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3783 2019-06-19  Stefan Liebler  <stli@linux.ibm.com>
3785         [BZ #24556]
3786         * string/test-strcasestr.c (check_result): Add NULL check.
3787         * nss/tst-field.c (check_rewrite): Likewise.
3788         * benchtests/bench-strstr.c (do_one_test): Likewise.
3789         * string/test-strstr.c (check_result): Likewise.
3790         * argp/argp-test.c (popt): Increase size of buf to 12.
3791         * benchtests/bench-malloc-simple.c (bench):
3792         Do not initialize tests array out of bounds.
3794 2019-06-19  Florian Weimer  <fweimer@redhat.com>
3796         [BZ #24166]
3797         * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
3798         dls_serpath field.
3800 2019-06-18  Florian Weimer  <fweimer@redhat.com>
3802         [BZ #24323]
3803         * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
3804         * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
3805         fail when called from dlopen.
3806         * elf/Makefile [have-fpie && build-shared] (tests): Add
3807         tst-dlopen-pie.
3808         (tst-dlopen-pie): Link with -ldl.
3809         (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
3810         * elf/tst-dlopen-pie.c (do_test): New file.
3812 2019-06-17  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
3814         [BZ #24614]
3815         * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
3816         * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
3817         between the currency symbol and the minus sign).
3818         (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3819         * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
3821 2019-06-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3823         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
3824         sysdep-rtld-routines): Remove rules.
3825         * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
3826         Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
3827         (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
3828         __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
3829         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
3830         (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
3831         vDSO path for SHARED.
3832         * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
3833         * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
3834         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
3835         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
3836         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
3837         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
3839         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3840         (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
3841         s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
3842         (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
3843         CFLAGS-s_llround-power5+.c): New rule.
3844         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
3845         New file.
3846         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
3847         Likewise.
3848         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
3849         Likewise.
3850         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
3851         Likewise.
3852         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
3853         Likewise.
3854         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
3855         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
3856         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
3857         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
3858         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
3859         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
3860         * sysdeps/powerpc/powerpc64/fpu/Makefile
3861         [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
3862         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3863         (libm-sysdep_routines): Remove s_llround-* objects.
3864         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
3865         file.
3866         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
3867         Likewise.
3868         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
3869         Likewise.
3870         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
3871         Likewise.
3872         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
3873         Likewise.
3874         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3875         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3876         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3877         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3878         * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
3879         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
3880         * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
3881         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
3882         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3883         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
3884         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3885         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
3886         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3887         * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
3889         * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
3890         * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
3891         * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
3892         * sysdeps/powerpc/powerpc32/fpu/Makefile
3893         [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
3894         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
3895         optimization.
3896         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3897         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
3898         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
3899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3900         (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
3901         CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
3902         CFLAGS-s_lrint-ppc32.c): New rule.
3903         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
3904         Remove file.
3905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
3906         Likewise.
3907         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
3908         Likewise.
3909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
3910         Likewise.
3911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
3912         Likewise.
3913         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3914         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3915         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3916         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3917         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
3918         New file.
3919         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
3920         Likewise.
3921         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
3922         Likewise.
3923         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3924         Likewise.
3925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3926         Likewise.
3928         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3929         (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3930         s_llrint-ppc64.
3931         (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3932         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3933         file.
3934         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3935         Likewise.
3936         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3937         Likewise.
3938         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3939         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3940         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3941         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3942         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3943         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3944         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3945         * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3946         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3947         (libm-sysdep_routines): Remove s_llrint-* objects.
3948         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3949         file.
3950         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3951         Likewise.
3952         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3953         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3954         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3955         * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3956         * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3957         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3958         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3959         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3960         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3961         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3963 2019-06-14  Florian Weimer  <fweimer@redhat.com>
3965         * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3966         argument to __glibc_has_include to inhibit macro expansion.
3968 2019-06-14  Florian Weimer  <fweimer@redhat.com>
3970         * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3971         function-like macro, so that __has_include can inhibit expansion
3972         of its argument.
3974 2019-06-13  Joseph Myers  <joseph@codesourcery.com>
3976         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3977         New macro.
3979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3980         Allow memset in libc.so.
3982 2019-06-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3984         * sysdeps/aarch64/dl-dtprocnum.h: New file.
3985         * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3986         (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3987         (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3988         symbols at load time.
3989         * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3991 2019-06-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3993         * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3994         (DT_AARCH64_VARIANT_PCS): Define.
3996 2019-06-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3998         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3999         (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
4000         objects.
4001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
4002         Remove file.
4003         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
4004         Likewise.
4005         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
4006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
4007         Likewise.
4008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
4009         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
4010         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
4011         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
4012         Remove s_finite* objects.
4013         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
4014         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
4015         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
4016         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
4017         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
4018         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
4019         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4020         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
4021         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
4022         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
4024         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
4025         * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
4027         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4028         (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
4029         objects.
4030         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
4031         Remove file.
4032         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
4033         Likewise.
4034         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
4035         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
4036         Likewise.
4037         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
4038         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
4039         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
4040         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
4041         Remove s_isinf* and s_isinf* objects.
4042         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
4043         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
4044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
4045         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
4046         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
4047         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
4048         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
4049         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
4050         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
4051         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
4053         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
4054         * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
4056         * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
4057         * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
4058         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
4059         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4060         (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
4061         s_isnanf-* objects.
4062         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
4063         Remove file
4064         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
4065         Likewise.
4066         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
4067         Likewise.
4068         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
4069         Likewise.
4070         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
4071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
4072         Likewise.
4073         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
4074         Likewise.
4075         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
4076         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
4077         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
4078         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
4079         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
4080         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
4081         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
4082         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
4083         Remove s_isnan-* and s_isnanf-* objects.
4084         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
4085         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
4086         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
4087         Likewise.
4088         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
4089         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
4090         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
4091         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
4092         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
4093         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
4094         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
4095         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
4096         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
4097         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
4098         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
4099         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
4100         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
4102         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
4103         * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
4105         * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
4106         (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
4107         CFLAGS-bench-isfinite.c): New rule.
4108         * benchtests/isnan-input: New file.
4109         * benchtests/isinf-input: New file.
4110         * benchtests/isfinite-input: New file.
4112         * sysdeps/powerpc/fpu/s_copysign.c: New file.
4113         * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
4114         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
4115         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
4116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4117         (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
4118         s_copysign-ppc32.
4119         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
4120         Remove file.
4121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
4122         Likewise.
4123         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
4124         Likewise.
4125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
4126         Likewise.
4127         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
4128         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
4129         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
4130         Remove s_copysign-power6 s_copysign-ppc64.
4131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
4132         Remove file.
4133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
4134         Likewise.
4135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
4136         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
4137         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
4138         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
4139         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4140         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
4142         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
4143         round_to_integer_float, round_mode): Add RINT handling.
4144         (reset_fenv_mode): New symbol.
4145         * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
4146         * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
4147         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
4148         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
4149         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
4150         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
4152 2019-06-12  Florian Weimer  <fweimer@redhat.com>
4154         [BZ #24632]
4155         * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
4156         * libio/freopen.c (freopen): Use it.
4158 2019-06-12  Florian Weimer  <fweimer@redhat.com>
4160         Linux: Deprecate sysctl.
4161         * include/sysctl.h (__sysctl): Remove declaration.
4162         * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
4163         check.
4164         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
4165         (sysctl): Add deprecation attribute.
4166         * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
4167         directly, to avoid the deprecation warning.  Do not include
4168         <string.h>.
4169         (__sysctl): Remove hidden alias.
4171 2019-06-12  Florian Weimer  <fweimer@redhat.com>
4173         Linux: Use kernel headers for statx definitions if available.
4174         * include/bits/statx-generic.h: New file.
4175         * include/bits/types/struct_statx.h: Likewise.
4176         * include/bits/types/struct_statx_timestamp.h: Likewise.
4177         * io/Makefile (headers): Add bits/statx-generic.h.
4178         * io/bits/statx-generic.h: New file.  Partly copied from
4179         io/bits/statx.h.
4180         * io/statx_generic.c: Include <bits/types/struct_statx.h> to
4181         define original_statx.
4182         * io/bits/types/struct_statx.h: Likewise.
4183         * io/bits/types/struct_statx_timestamp.h: Likewise.
4184         (statx_generic): Use original_statx.
4185         * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
4186         * sysdeps/unix/sysv/linux/bits/statx.h: New file.
4188 2019-06-12  Florian Weimer  <fweimer@redhat.com>
4190         * misc/sys/cdefs.h (__glibc_has_include): Define.
4192 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
4194         * string/memmem.c (__memmem): Rewrite to improve performance.
4196 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
4198         * string/str-two-way.h (two_way_short_needle): Add inline to avoid
4199         warning.
4200         (two_way_long_needle): Block inlining.
4201         * string/strstr.c (strstr2): Add new function.
4202         (strstr3): Likewise.
4203         (STRSTR): Completely rewrite strstr to improve performance.
4205 2019-06-11  Wilco Dijkstra  <wdijkstr@arm.com>
4207         * benchtests/bench-strstr.c (test_hard_needle): New function.
4209 2019-06-10  Joseph Myers  <joseph@codesourcery.com>
4211         * malloc/tst-calloc.c: Include <libc-diag.h>.
4212         (null_test): Ignore -Wunused-result around calls to calloc.
4213         * malloc/tst-mallocfork.c: Include <libc-diag.h>.
4214         (do_test): Ignore -Wunused-result around call to malloc.
4216 2019-06-07  Florian Weimer  <fweimer@redhat.com>
4218         Linux: Add getdents64 system call.
4219         * include/dirnent.h (getdents): Add comment and change buffer
4220         argument type to void *.
4221         (getdents64): Likewise.  Add hidden prototype.
4222         * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
4223         getdents64.
4224         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
4225         Add tst-getdents64.
4226         * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
4227         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
4228         argument type to void *.
4229         * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
4230         Add hidden definition and getdents64 alias.
4231         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
4232         Likewise.
4233         * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
4234         * manual/filesys.texi (Accessing Directories): Add Low-level
4235         Directory Access node reference.
4236         (Opening a Directory): Cross-reference it.
4237         (Low-level Directory Access): New node.
4238         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
4239         getdents64.
4240         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4241         Likewise.
4242         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4243         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
4244         Likewise.
4245         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
4246         Likewise.
4247         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
4248         Likewise.
4249         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
4250         Likewise.
4251         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4252         Likewise.
4253         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4254         Likewise.
4255         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4256         Likewise.
4257         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4258         (GLIBC_2.30): Likewise.
4259         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4260         (GLIBC_2.30): Likewise.
4261         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4262         (GLIBC_2.30): Likewise.
4263         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4264         (GLIBC_2.30): Likewise.
4265         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4266         Likewise.
4267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4268         (GLIBC_2.30): Likewise.
4269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4270         (GLIBC_2.30): Likewise.
4271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4272         (GLIBC_2.30): Likewise.
4273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4274         (GLIBC_2.30): Likewise.
4275         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4276         Likewise.
4277         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4278         Likewise.
4279         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4280         Likewise.
4281         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4282         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4283         Likewise.
4284         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4285         Likewise.
4286         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4287         Likewise.
4288         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4289         Likewise.
4291 2019-06-06  Paul A. Clarke  <pc@us.ibm.com>
4293         * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
4294         (__FPU_MFFS): New.
4295         (__FPU_MFFSL): New.
4296         (_FPU_GET_RC): New.
4297         (_FPU_GETCW): Use __FPU_MFFS().
4298         * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
4300 2019-06-06  Florian Weimer  <fweimer@redhat.com>
4302         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
4303         internal GCC preprocessor identifier __has_include__.
4305 2019-06-05  Paul A. Clarke  <pc@us.ibm.com>
4307         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
4308         with call to equivalent function.
4310 2019-06-04  Florian Weimer  <fweimer@redhat.com>
4312         * iconv/gconv_dl.c (release_handle): Remove file-level definition.
4313         (do_release_shlib): Adjust for __twalk_r.
4314         (__gconv_release_shlib): Call __twalk_r.
4316 2019-06-04  Andreas Schwab  <schwab@suse.de>
4318         [BZ #18830]
4319         * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
4320         no irreversible characters occurred.
4321         * iconv/gconv_simple.c (internal_ucs4_loop)
4322         (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
4323         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
4324         (ucs4_internal_loop_single, internal_ucs4le_loop)
4325         (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
4326         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
4327         (ucs4le_internal_loop_single): Add const to outend.
4328         * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
4329         (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
4330         * iconv/Makefile (tests): Add tst-iconv7.
4331         * iconv/tst-iconv7.c: New file.
4333 2019-06-03  Joseph Myers  <joseph@codesourcery.com>
4335         * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
4337 2019-06-01  Florian Weimer  <fweimer@redhat.com>
4339         arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
4340         * sysdeps/unix/sysv/linux/arm/Makefile
4341         [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
4342         * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
4343         * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
4344         (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
4345         compatibility symbols.
4347 2019-05-31  Florian Weimer  <fweimer@redhat.com>
4349         * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
4350         system calls for the arm architecture: breakpoint, get_tls,
4351         set_tls, usr26, usr32.
4353 2019-05-30  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
4355         * sysdeps/powerpc/Makefile
4356         [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
4357         * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
4358         Declare '.machine power7' to get support for ldbrx.
4359         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
4360         directive based on the directory of the file.
4361         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
4362         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
4363         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
4364         '.machine' directive.
4365         (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
4366         (VADDUQM_V7_V8): Remove.
4367         (__STRCASECMP): Replace macros with actual instructions.
4368         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
4369         '.machine' directive.
4370         (VCLZD_V8_v7): Remove.
4371         (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
4373 2019-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4375         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
4376         Remove file.
4377         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
4379 2019-05-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4381         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4382         NEARBYINT handling.
4383         * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
4384         * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
4385         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
4386         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
4387         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
4388         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
4390 2019-05-28  mansayk  <6688000@gmail.com>
4392         [BZ #24370]
4393         * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
4395 2019-05-28  mansayk  <6688000@gmail.com>
4397         [BZ #24369]
4398         * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
4399         (abmon): Likewise, but remove the trailing dots.
4401 2019-05-28  Joseph Myers  <joseph@codesourcery.com>
4403         * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
4405 2019-05-27  Florian Weimer  <fweimer@redhat.com>
4407         * nptl/nptl-init.c: Add comment.
4409 2019-05-24  Florian Weimer  <fweimer@redhat.com>
4411         * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
4412         struct in_addr/struct in6_addr alignment.
4414 2019-05-23  Joseph Myers  <joseph@codesourcery.com>
4416         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
4417         (F_SEAL_FUTURE_WRITE): New macro.
4419 2019-05-23  Alexandra HĂĄjkovĂĄ  <ahajkova@redhat.com>
4421        * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
4422        * elf/tst-ldconfig-bad-aux-cache.c: New file.
4423        * elf/tst-ldconfig_aux-cache.root: New directory.
4424        * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
4425        * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
4426        * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
4428 2019-05-22  Zack Weinberg  <zackw@panix.com>
4430         * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
4431         host type.
4432         * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
4433         and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
4435         * sysdeps/powerpc/powerpc32/e500: Recursively delete.
4436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
4437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
4438         Delete.
4440         * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
4441         Issue an #error if used with a compiler in SPE-float mode.
4442         * sysdeps/powerpc/powerpc32/__longjmp_common.S
4443         * sysdeps/powerpc/powerpc32/setjmp_common.S
4444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
4446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
4447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
4448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4450         Remove code to preserve SPE register state.
4452         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
4453         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
4454         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
4455         Remove __SPE__ ifndefs.
4457 2019-05-21  Wilco Dijkstra  <wdijkstr@arm.com>
4459         * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
4460         * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
4461         * benchtests/bench-memmem.c (do_one_test): Use small iterations.
4462         * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
4463         * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
4464         * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
4465         * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
4466         (INNER_LOOP_ITERS_MEDIUM): New define.
4467         (INNER_LOOP_ITERS_SMALL): New define.
4468         * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
4469         * benchtests/bench-strsep.c (do_one_test): Use small iterations.
4470         * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
4471         * benchtests/bench-strstr.c (do_one_test): Use small iterations.
4472         * benchtests/bench-strtok.c (do_one_test): Use small iterations.
4474 2019-05-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4476         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
4477         New define.
4478         * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
4479         (SEMTIMEDOP_IPC_ARGS): Likewise.
4481 2019-05-21  Florian Weimer  <fweimer@redhat.com>
4483         [BZ #24584]
4484         * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
4485         before updating __counter field and release it afterwards.  Add
4486         overflow check.
4487         * iconv/gconv.h (struct __gconv_step): Mention synchronization
4488         requirement for __counter member.
4490 2019-05-21  Florian Weimer  <fweimer@redhat.com>
4492         [BZ #24583]
4493         * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
4494         * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
4495         * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
4496         instead of __gconv_release_step.
4497         * libio/Makefile (tests): Add tst-wfile-gconv.
4498         (tests-container): Add tst-wfile-ascii.
4499         (tst-wfile-gconv-ENV): Enable mtrace.
4500         (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
4501         (tests-special): Add tst-wfile-gconv-mem.out.
4502         (tst-wfile-gconv.out): Depend on locales.
4503         (tst-wfile-gconv-mem.out): Add mtrace rule.
4504         * libio/tst-wfile-ascii.c: New file.
4505         * libio/tst-wfile-gconv.c: Likewise.
4507 2019-05-20  Florian Weimer  <fweimer@redhat.com>
4509         [BZ #24588]
4510         libio: Remove codecvt vtable.
4511         * libio/fileops.c ( _IO_new_file_fopen): Do not copy
4512         __libio_codecvt.
4513         * libio/iofgetpos.c (_IO_new_fgetpos): Call
4514         __libio_codecvt_encoding.
4515         * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
4516         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
4517         * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
4518         * libio/iofwide.c (__libio_codecvt): Remove variable.
4519         (_IO_fwide): Do not copy __libio_codecvt.
4520         (__libio_codecvt_out): Rename from do_out and export.
4521         (do_unshift): Remove function.
4522         (__libio_codecvt_in): Rename from do_in and export.
4523         (__libio_codecvt_encoding): Rename from do_encoding and export.
4524         (do_always_noconv): Remove function.
4525         (__libio_codecvt_length): Rename from do_length and export.
4526         (do_max_length): Remove function.
4527         * libio/libio.h (enum __codecvt_result): Remove definition; moved
4528         to libioP.h.
4529         (struct _IO_codecvt): Remove fields __codecvt_destr,
4530         __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
4531         __codecvt_do_encoding, __codecvt_do_always_noconv,
4532         __codecvt_do_length, __codecvt_do_max_length.
4533         * libio/libioP.h (enum __codecvt_result): Define; moved from
4534         libio.h.
4535         (__libio_codecvt_out, __libio_codecvt_in)
4536         (__libio_codecvt_encoding, __libio_codecvt_length): Declare
4537         functions.
4538         * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
4539         (_IO_wfile_underflow): Call __libio_codecvt_in.
4540         (_IO_wfile_underflow): Likewise.
4541         (_IO_wfile_underflow_mmap): Likewise.
4542         (_IO_wfile_sync): Call __libio_codecvt_encoding,
4543         __libio_codecvt_length.
4544         (adjust_wide_data): Call __libio_codecvt_encoding,
4545         __libio_codecvt_in.
4546         (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
4547         (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
4548         __libio_codecvt_length.
4550 2019-05-20  Florian Weimer  <fweimer@redhat.com>
4552         * support/support.h (support_sbindir_prefix): Declare.
4553         (support_install_rootsbindir): Update comment.
4554         * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
4555         * support/support_paths.c (support_sbindir_prefix): Define.
4557 2019-05-20  Mike Crowe  <mac@mcrowe.com>
4559         * support/timespec.c: Add backslash to correct newline in failure
4560         message.
4562         * support/timespec.h: Correct confusing comment.
4564 2019-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4566         * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
4567         define.
4568         * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
4569         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
4570         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
4571         SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
4573         [BZ #24570]
4574         * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
4575         usage.
4577 2019-05-20  Joseph Myers  <joseph@codesourcery.com>
4579         * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
4580         (NT_ARM_PACG_KEYS): Likewise.
4582 2019-05-17  Wilco Dijkstra  <wdijkstr@arm.com>
4584         * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
4585         (tcache_put): Remove redundant assert.
4586         (tcache_get): Remove redundant asserts.
4587         (__libc_malloc): Check tcache count is not zero.
4588         * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
4590 2019-05-17  Florian Weimer  <fweimer@redhat.com>
4592         * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
4594 2019-05-16  Joseph Myers  <joseph@codesourcery.com>
4596         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4597         (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
4598         0x050100].
4599         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
4600         Likewise.
4601         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4602         (__ASSUME_STATX): Likewise.
4604 2019-05-16  Florian Weimer  <fweimer@redhat.com>
4606         * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
4607         flags argument.
4608         (LINE_PARSER): Do not map IPv4 addresses.
4609         (internal_nis_gethostent_r): Remove flags argument.  Adjust call
4610         to parse_line.
4611         (_nss_nis_gethostent_r): Always pass AF_INET to
4612         internal_nis_gethostent_r.
4613         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
4614         to parse_line.
4615         (_nss_nis_gethostbyname2_r): Adjust call to
4616         internal_nis_gethostent_r.
4617         (_nss_nis_gethostbyname_r): Do not attempt IPv6 query.  Adjust
4618         call to internal_nis_gethostent_r.
4619         (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
4620         from parse_line.
4621         (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
4622         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4623         Remove flags argument.  Do not map IPv4 addresses.
4624         (internal_nisplus_gethostent_r): Adjust call to
4625         _nss_nisplus_parse_hostent.
4626         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
4627         to _nss_nisplus_parse_hostent.
4628         (_nss_nisplus_gethostbyname2_r): Adjust call to
4629         internal_gethostbyname2_r.
4630         (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
4631         Adjust call to internal_gethostbyname2_r.
4632         (_nss_nisplus_gethostbyaddr_r): Adjust call to
4633         _nss_nisplus_parse_hostent.
4634         (_nss_nisplus_gethostbyname4_r): Adjust call to
4635         internal_gethostbyname2_r.
4637 2019-05-16  Florian Weimer  <fweimer@redhat.com>
4639         * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
4640         Remove flags.
4641         (LINE_PARSER): Remove address mapping.
4642         (EXTRA_ARGS_VALUE): Remove flags argument.
4643         (gethostbyname3_multi): Likewise.  Adjust call to internal_getent.
4644         (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
4645         gethostbyname3_multi.
4646         (_nss_files_gethostbyname_r): Always use AF_INET.  Adjust call to
4647         _nss_files_gethostbyname3_r.
4648         (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
4650 2019-05-16  Florian Weimer  <fweimer@redhat.com>
4652         * support/support_test_compare_blob.c (report_blob): Report
4653         incorrect NULL blobs.
4655 2019-05-15  Mark Wielaard  <mark@klomp.org>
4657         [BZ# 24476]
4658         * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
4659         __libc_once_get (once) and static_buf == NULL.
4660         (__dlerror): Check we have a valid key, set result to static_buf
4661         otherwise.
4663 2019-05-15  Andreas Schwab  <schwab@suse.de>
4665         [BZ #20568]
4666         * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
4667         __codecvt_do_length.
4668         * libio/Makefile (tests): Add tst-wfile-sync.
4669         ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
4670         * libio/tst-wfile-sync.c: New file.
4671         * libio/tst-wfile-sync.input: New file.
4673 2019-05-15  Florian Weimer  <fweimer@redhat.com>
4675         nss: Turn __nss_database_lookup into a compatibility symbol.
4676         * nss/nsswitch.h (__nss_database_lookup2): Renamed from
4677         __nss_database_lookup.
4678         * nss/nsswitch.c (__nss_database_lookup2): Likewise.
4679         (nss_load_all_libraries): Call __nss_database_lookup2 instead of
4680         __nss_database_lookup.
4681         (__nss_next): Move to â€Š
4682         * nss/compat-lookup.c (nss_next): â€Š here.  Change it to fail
4683         unconditionally.
4684         (__nss_database_lookup): New function.
4685         * nss/Versions (GLIBC_2.0): Update comment.
4686         (GLIBC_PRIVATE): Export __nss_database_lookup2.
4687         * grp/initgroups.c (internal_getgrouplist): Call
4688         __nss_database_lookup2 instead of __nss_database_lookup.
4689         * nscd/aicache.c (addhstaiX): Likewise.
4690         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4691         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
4692         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
4693         * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
4694         * nss/nss_compat/compat-initgroups.c (init_nss_interface):
4695         Likewise.
4696         * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
4697         * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
4698         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4700 2019-05-15  Alexandra HĂĄjkovĂĄ  <ahajkova@redhat.com>
4702         * support/support.h (support_install_rootsbindir): New variable.
4703         * support/support_paths.c: Likewise.
4704         * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
4706 2019-05-15  Florian Weimer  <fweimer@redhat.com>
4708         * iconv/gconv.h (__gconv_transliterate): Move declaration â€Š
4709         * iconv/gconv_int.h (__gconv_transliterate): â€Š here.
4710         * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
4711         * iconv/skeleton.c: Likewise.
4713 2019-05-14  Florian Weimer  <fweimer@redhat.com>
4715         Linux: Add the tgkill function.
4716         * bits/signal_ext.h: New file.
4717         * manual/signal.texi (Signaling Another Process): Document tgkill.
4718         * signal/Makefile (headers): Add bits/signal_ext.h.
4719         * signal/signal.h: Include <bits/signal_ext.h>.
4720         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
4721         (tst-tgkill): Link with libpthread.
4722         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
4723         * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
4724         * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
4725         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
4726         tgkill.
4727         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4728         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4729         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4730         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4731         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4732         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4733         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4734         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4735         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4736         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4737         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4738         Likewise.
4739         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4740         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4741         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4743         Likewise.
4744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4745         Likewise.
4746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
4747         Likewise.
4748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
4749         Likewise.
4750         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4751         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4752         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4753         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4754         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4755         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4756         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4757         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4759 2019-05-14  Carlos O'Donell  <carlos@redhat.com>
4761         * manual/search.texi (Tree Search Function): Adjust twalk_r
4762         documentation.
4764 2019-05-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4766         [BZ #24544]
4767         * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
4768         pre-defined value.
4770         * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
4771         * support/support.h (support_bindir_prefix): New variable.
4772         * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
4774         * config.make.in (bindir): New variable.
4776         * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
4777         (lll_trylock): Call __lll_trylock.
4778         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
4779         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
4780         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
4781         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4782         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
4783         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
4784         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4785         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4786         * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
4787         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
4788         lowlevellock-futex.h.
4790         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4791         initialization for LLL_LOCK_INITIALIZER different than 0.
4792         * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
4793         Assume LLL_LOCK_INITIALIZER being 0.
4794         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
4795         * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
4796         Likewise.
4797         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
4798         * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
4800         * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
4801         Optimize futex call and add systemtap probe.
4803         * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
4804         LIBC_CANCEL_RESET, __libc_enable_asynccancel,
4805         __libc_disable_asynccancel, __librt_enable_asynccancel,
4806         __libc_disable_asynccancel, __librt_enable_asynccancel,
4807         __librt_disable_asynccancel): Move to ...
4808         * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
4809         (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
4810         * sysdeps/unix/sysv/linux/single-thread.h: ... here.
4811         * sysdeps/generic/single-thread.h: New file.
4812         * sysdeps/unix/sysdep.h: Include single-thread.h.
4813         * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
4814         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4816 2019-05-08  Mike FABIAN  <mfabian@redhat.com>
4818         [BZ #24535]
4819         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
4820         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4821         Unicode 12.1.0.
4822         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4823         * localedata/unicode-gen/PropList.txt: Likewise.
4824         * localedata/unicode-gen/UnicodeData.txt: Likewise.
4825         * localedata/charmaps/UTF-8: Regenerate.
4826         * localedata/locales/i18n_ctype: Likewise.
4827         * localedata/locales/tr_TR: Likewise.
4828         * localedata/locales/translit_circle: Likewise.
4829         * localedata/locales/translit_cjk_compat: Likewise.
4830         * localedata/locales/translit_combining: Likewise.
4831         * localedata/locales/translit_compat: Likewise.
4832         * localedata/locales/translit_font: Likewise.
4833         * localedata/locales/translit_fraction: Likewise.
4835 2019-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
4837         [BZ #24531]
4838         * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
4839         (do_set_tcache_count): Only update if count is small enough.
4840         * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
4842 2019-05-10  Florian Weimer  <fweimer@redhat.com>
4844         * nptl/sem_close.c (struct walk_closure): Define.
4845         (walker): Adjust for __twalk_r.
4846         (sem_close): Call __twalk_r.
4848 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4850         * support/timespec.c (test_timespec_before_impl,
4851         test_timespec_equal_or_after_impl): print timespec member as intmax_t
4852         insted of long int.
4854 2019-05-09  Mike Crowe <mac@mcrowe.com>
4856         * nptl/tst-abstime.c: Use libsupport.
4858         * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
4859         small bug where only tv.tv_usec was checked which could cause an
4860         erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
4861         than a second.
4863         * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
4864         libsupport.
4866         * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
4867         TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
4869         * nptl/tst-cond11.c: Use libsupport.
4871         * support/timespec.h: New file.  Provide timespec helper functions
4872         along with macros in the style of those in check.h.
4873         * support/timespec.c: New file.  Implement check functions declared
4874         in support/timespec.h.
4875         * support/timespec-add.c: New file from gnulib containing
4876         timespec_add implementation that handles overflow.
4877         * support/timespec-sub.c: New file from gnulib containing
4878         timespec_sub implementation that handles overflow.
4879         * support/README: Mention timespec.h.
4881 2019-05-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4883         [BZ #24537]
4884         * nptl/Makefile: Move tst-eintr1 to xtests.
4886 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4888         * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
4889          TRUNC handling.
4890         (round_mode): Add definition for TRUNC.
4891         * sysdeps/powerpc/fpu/s_trunc.c: New file.
4892         * sysdeps/powerpc/fpu/s_truncf.c: New file.
4893         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
4894         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4895         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
4896         Likewise.
4897         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
4898         Likewise.
4899         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
4900         Likewise.
4901         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
4902         Likewise.
4903         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
4904         file.
4905         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
4906         Likewise.
4907         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
4908         Likewise.
4909         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
4910         Likewise.
4911         * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
4912         * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
4913         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4914         (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
4915         s_truncf-power5+, and s_truncf-ppc64.
4916         (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
4917         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
4918         file.
4919         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
4920         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
4921         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
4922         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4923         file.
4924         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4925         Likewise.
4926         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4927         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4928         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4929         (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4930         s_truncf-power5+, and s_truncf-ppc64.
4931         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4932         file.
4933         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4934         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4935         Likewise.
4936         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4937         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4938         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4939         * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4940         * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4942         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4943         ROUND handling.
4944         (round_mode): Add definition for ROUND.
4945         (round_to_integer_float): Likewise.
4946         * sysdeps/powerpc/fpu/s_round.c: New file.
4947         * sysdeps/powerpc/fpu/s_roundf.c: New file.
4948         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4949         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4950         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4951         Likewise.
4952         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4953         Likewise.
4954         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4955         Likewise.
4956         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4957         Likewise.
4958         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4959         file.
4960         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4961         Likewise.
4962         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4963         Likewise.
4964         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4965         Likewise.
4966         * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4967         * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4968         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4969         (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4970         s_roundf-power5+, and s_roundf-ppc64.
4971         (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4972         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4973         file.
4974         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4975         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4976         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4977         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4978         file.
4979         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4980         Likewise.
4981         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4982         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4983         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4984         (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4985         s_roundf-power5+, and s_roundf-ppc64.
4986         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4987         file.
4988         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4989         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4990         Likewise.
4991         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4992         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4993         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4994         * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4995         * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4997         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4998         Add FLOOR option.
4999         (round_mode): Add definition for FLOOR.
5000         * sysdeps/powerpc/fpu/s_floor.c: New file.
5001         * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
5002         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
5003         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
5004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
5005         Remove file.
5006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
5007         Likewise
5008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
5009         Likewise.
5010         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
5011         Likewise.
5012         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
5013         New file.
5014         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
5015         Likewise.
5016         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
5017         Likewise.
5018         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
5019         Likewise.
5020         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
5021         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
5022         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
5023         (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
5024         s_floorf-power5+, and s_floorf-ppc64.
5025         (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
5026         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
5027         file.
5028         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
5029         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
5030         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
5031         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
5032         file.
5033         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
5034         Likewise.
5035         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
5036         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
5037         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
5038         (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
5039         s_floorf-power5+, and s_floorf-ppc64.
5040         * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
5041         file.
5042         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
5043         file.
5044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
5045         Likewise.
5046         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
5047         Likewise.
5048         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
5049         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
5050         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
5051         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
5053 2019-05-08  Mike Crowe  <mac@mcrowe.com>
5055         * support/xclock_gettime.c (xclock_gettime): New file. Provide
5056         clock_gettime wrapper for use in tests that fails the test rather
5057         than returning failure.
5059         * support/xtime.h: New file to declare xclock_gettime.
5061         * support/Makefile: Add xclock_gettime.c.
5063         * support/README: Mention xtime.h.
5065 2019-05-08  Florian Weimer  <fweimer@redhat.com>
5067         malloc/tst-mallocfork2: Use process-shared barriers.
5068         * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
5069         (signal_count, sigusr1_sender_pid): Remove.
5070         (iterations): Define constant.
5071         (shared): New variable.
5072         (sigusr1_received): Update comment.
5073         (sigusr1_handler): Do not send SIGSTOP to the sender process.
5074         (signal_sender): Optional use barriers to avoid sending signals
5075         during irrelevant times.
5076         (do_it): Initialize variable shared.  Use xfork for error
5077         checking.  Launch multiple SIGUSR1-sending subprocesses.  Limit
5078         the iteration count, independent of signal delivery.  Check for
5079         deadlocks in fork.  Introduce barriers for reducing signal
5080         traffic.  Do not send SIGCONT to the SIGUSR1-sending processes;
5081         replaced by the barriers.  Count signals during fork/free/malloc
5082         and report them.
5083         * malloc/Makefile (tst-mallocfork): Link with libpthread.
5085 2019-05-07  Joseph Myers  <joseph@codesourcery.com>
5087         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5088         version to 5.1.
5089         (clock_adjtime64) New syscall.
5090         (clock_getres_time64) Likewise.
5091         (clock_gettime64) Likewise.
5092         (clock_nanosleep_time64) Likewise.
5093         (clock_settime64) Likewise.
5094         (futex_time64) Likewise.
5095         (io_pgetevents_time64) Likewise.
5096         (io_uring_enter) Likewise.
5097         (io_uring_register) Likewise.
5098         (io_uring_setup) Likewise.
5099         (mq_timedreceive_time64) Likewise.
5100         (mq_timedsend_time64) Likewise.
5101         (pidfd_send_signal) Likewise.
5102         (ppoll_time64) Likewise.
5103         (pselect6_time64) Likewise.
5104         (recvmmsg_time64) Likewise.
5105         (rt_sigtimedwait_time64) Likewise.
5106         (sched_rr_get_interval_time64) Likewise.
5107         (semtimedop_time64) Likewise.
5108         (timer_gettime64) Likewise.
5109         (timer_settime64) Likewise.
5110         (timerfd_gettime64) Likewise.
5111         (timerfd_settime64) Likewise.
5112         (utimensat_time64) Likewise.
5114         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
5115         version to 9 branch.
5117 2019-05-03  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
5119         * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
5120         __memmove_thunderx2 to the list of implementations
5121         * sysdeps/aarch64/multiarch/memmove.c: Likewise
5122         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
5123         (__memmove_thunderx2): Rewritten using SIMD ld/st
5124         (__memcpy_thunderx2): Fixed handling overlapping cases.
5125         Used ldp/stp instead of ldr/str if possible. Made loops
5126         tails branchless.
5128 2019-05-03  Florian Weimer  <fweimer@redhat.com>
5130         * misc/tst-tsearch.c (walk_tree): Add more error checking.
5132 2019-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5134         [BZ #24506]
5135         * elf/tst-pldd.c (in_str_list): New function.
5136         (do_test): Add default names for ld and libc as one option.
5138 2019-05-02  Florian Weimer  <fweimer@redhat.com>
5140         misc: Add twalk_r function.
5141         * include/search.h (__twalk_r): Declare.
5142         * manual/examples/twalk.c: New file.
5143         * manual/search.texi (Tree Search Function): Document twalk_r.
5144         * misc/Versions (2.30): Export twalk_r.
5145         (GLIBC_PRIVATE): Export __twalk_r.
5146         * misc/search.h [__USE_GNU] (twalk_r): Declare.
5147         * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
5148         (twalk_r): Add weak alias.
5149         * misc/tst-tsearch.c (struct walk_trace_element): Define.
5150         (walk_trace): New variable.
5151         (struct twalk_with_twalk_r_closure): Define.
5152         (twalk_with_twalk_r_action): New function.
5153         (twalk_with_twalk_r): Likewise.
5154         (walk_action): Call walk_trace_add.
5155         (walk_tree_with): Rename from walk_tree.  Add walk argument.
5156         (walk_tree): New function.
5157         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
5158         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
5159         Likewise.
5160         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
5161         Likewise.
5162         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
5163         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
5164         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
5165         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
5166         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
5167         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
5168         Likewise.
5169         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
5170         Likewise.
5171         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
5172         Likewise.
5173         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5174         (GLIBC_2.30): Likewise.
5175         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5176         (GLIBC_2.30): Likewise.
5177         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5178         (GLIBC_2.30): Likewise.
5179         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5180         (GLIBC_2.30): Likewise.
5181         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
5182         Likewise.
5183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5184         (GLIBC_2.30): Likewise.
5185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5186         (GLIBC_2.30): Likewise.
5187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
5188         (GLIBC_2.30): Likewise.
5189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
5190         (GLIBC_2.30): Likewise.
5191         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
5192         Likewise.
5193         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
5194         Likewise.
5195         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
5196         Likewise.
5197         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
5198         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
5199         Likewise.
5200         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
5201         Likewise.
5202         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
5203         Likewise.
5204         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
5205         Likewise.
5207 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
5209         Make mktime etc. compatible with __time64_t
5210         Keep these functions compatible with Gnulib while adding
5211         __time64_t support.  The basic idea is to move private API
5212         declarations from include/time.h to time/mktime-internal.h, since
5213         the former file cannot easily be shared with Gnulib whereas the
5214         latter can.
5215         Also, do some other minor cleanup while in the neighborhood.
5216         * include/time.h: Include stdbool.h, time/mktime-internal.h.
5217         (__mktime_internal): Move this prototype to time/mktime-internal.h,
5218         since Gnulib needs it.
5219         (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
5220         Move these macros to time/mktime-internal.h, since Gnulib needs them.
5221         (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
5222         (in_time_t_range): New static function.
5223         * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
5224         so that glibc users are not tempted to use __time64_t.
5225         * time/mktime-internal.h: Rewrite so that it does both glibc
5226         and Gnulib work.  Include time.h if not _LIBC.
5227         (mktime_offset_t) [!_LIBC]: Define for gnulib.
5228         (__time64_t): New type or macro, moved here from
5229         posix/bits/types.h.
5230         (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
5231         [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
5232         from include/time.h.
5233         (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
5234         New macros, taken from GNulib.
5235         (__mktime_internal): New prototype, moved here from include/time.h.
5236         * time/mktime.c (mktime_min, mktime_max, convert_time)
5237         (ranged_convert, __mktime_internal, __mktime64):
5238         * time/timegm.c (__timegm64):
5239         Use __time64_t, not time_t.
5240         * time/mktime.c: Stop worrying about whether time_t is floating-point.
5241         (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
5242         Rename from mktime.
5243         (mktime) [_LIBC && __TIMESIZE != 64]: New function.
5244         * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
5245         for libc_hidden_def.
5246         Include errno.h.
5247         (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
5248         Rename from timegm.
5249         (timegm) [_LIBC && __TIMESIZE != 64]: New function.
5251 2019-04-30  Maciej W. Rozycki  <macro@wdc.com>
5253         [BZ #19444]
5254         * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
5255         from `-Wmaybe-uninitialized'.
5256         * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
5258 2019-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5260         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
5261         function.
5262         * sysdeps/powerpc/fpu/round_to_integer.h: New file.
5263         * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
5264         * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
5265         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
5266         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5267         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
5268         (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
5269         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
5270         Remove file.
5271         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
5272         Likewise.
5273         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
5274         Likewise.
5275         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
5276         Likewise.
5277         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
5278         New file.
5279         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
5280         Likewise.
5281         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
5282         Likewise.
5283         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
5284         Likewise.
5285         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
5286         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
5287         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
5288         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
5289         Likewise.
5290         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
5291         Likewise.
5292         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
5293         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
5294         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
5295         file.
5296         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
5297         Likewise.
5298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
5299         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
5300         * here.
5301         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
5302         (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
5303         s_ceilf-power5+, and s_ceilf-ppc64.
5304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
5305         file.
5306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
5307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
5308         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
5309         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
5310         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
5311         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
5312         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
5314         * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
5315         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
5316         * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
5318 2019-04-29  Yann Droneaud  <ydroneaud@opteya.com>
5320         * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
5321         (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
5322         (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
5323         (sem_getvalue): Likewise.
5325 2019-04-26  Florian Weimer  <fweimer@redhat.com>
5327         elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
5328         * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
5330 2019-04-26  Florian Weimer  <fweimer@redhat.com>
5332         Makeconfig: Move -Wl,-rpath-link options before library references.
5333         * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
5334         (link-libc): Remove $(link-libc-rpath-link).
5336 2019-04-25  Florian Weimer  <fweimer@redhat.com>
5338         * Makeconfig (+link-pie-before-libc): Remove $(CC).
5339         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
5340         (+link-static-before-libc): Remove $(CC).
5341         (+link-static, +link-static-tests): Add $(CC).
5342         (+link-before-libc): Remove $(CC).
5343         (+link, +link-pie, +link-pie-printers): Add $(CC).
5345 2019-04-26  Florian Weimer  <fweimer@redhat.com>
5347         * Makeconfig (+link-pie-before-libc): Remove $(CC).
5348         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
5349         (+link-static-before-libc): Remove $(CC).
5350         (+link-static, +link-static-tests): Add $(CC).
5351         (+link-before-libc): Remove $(CC).
5352         (+link, +link-pie, +link-pie-printers): Add $(CC).
5354 2019-04-25  David Abdurachmanov  <david.abdurachmanov@gmail.com>
5356         [BZ#24484]
5357         * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
5359 2019-04-25  Florian Weimer  <fweimer@redhat.com>
5361         benchtests: Enable BIND_NOW if configured with --enable-bind-now.
5362         * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
5363         (bench-link-targets): New variable.
5364         ($(binaries-bench) â€Š): Use it.  Set LDFLAGS accordingly.
5366 2019-04-25  Florian Weimer  <fweimer@redhat.com>
5368         Also enable BIND_NOW for programs if --enable-bind-now.
5369         * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
5370         (+link-pie): Use $(link-extra-flags).
5371         (+link-static): Likewise.
5372         [! $(build-pie-default)] (+link): Likewise.
5373         * manual/install.texi (Configuring and compiling): Update
5374         --enable-bind-now description.
5375         * INSTALL: Regenerated.
5377 2019-04-24  Wilco Dijkstra  <wdijkstr@arm.com>
5379         * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
5380         * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
5382 2019-04-24  Mike Frysinger  <vapier@gentoo.org>
5384         [BZ #18465]
5385         * malloc/Makefile (others): Add memusagestat.
5386         ($(objpfx)memusagestat): Delete rule.
5387         (LDLIBS-memusagestat): New variable.
5389 2019-04-24  Florian Weimer  <fweimer@redhat.com>
5391         * locale/Makefile (tests-special): Guard setting by
5392         $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
5393         to run while cross-compiling.
5395 2019-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5397         [BZ #18035]
5398         * elf/Makefile (tests-container): Add tst-pldd.
5399         * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
5400         (E(find_maps)): Avoid use alloca, use default read file operations
5401         instead of explicit LFS names, and fix infinite loop.
5402         * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
5403         (get_process_info): Use _Static_assert instead of assert, use default
5404         directory operations instead of explicit LFS names, and free some
5405         leadek pointers.
5406         * elf/tst-pldd.c: New file.
5408 2019-04-23  H.J. Lu  <hongjiu.lu@intel.com>
5410         * malloc/arena.c (do_set_mallopt_check): Removed.
5412 2019-04-23  Florian Weimer  <fweimer@redhat.com>
5414         locale: Add LOCPATH diagnostics to the locale program.
5415         * locale/programs/locale.c (setlocale_failed): New variable.
5416         (try_setlocale): New function.
5417         (quote_string): Likewise.
5418         (setlocale_diagnostics): Likewise.
5419         (main): Call try_setlocale instead of setlocale.  Call
5420         setlocale_diagnostics.
5421         * locale/Makefile (tests-special): Add tst-locale-locpath.out.
5422         (tst-locale-locpath.out): New target.
5423         * locale/tst-locale-locpath.sh: New file.
5425 2019-04-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5427         * NEWS: Move memory allocation changes of BZ#23741 from 2.29
5428         to 2.30 notes.
5430 2019-04-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5432         [BZ #23741]
5433         * malloc/hooks.c (malloc_check, realloc_check): Use
5434         __builtin_add_overflow on overflow check and adapt to
5435         checked_request2size change.
5436         * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
5437         __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
5438         allocation size to PTRDIFF_MAX.
5439         (REQUEST_OUT_OF_RANGE): Remove macro.
5440         (checked_request2size): Change to inline function and limit maximum
5441         requested size to PTRDIFF_MAX.
5442         (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
5443         maximum allocation size to PTRDIFF_MAX.
5444         (_mid_memalign): Use _int_memalign call for overflow check.
5445         (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
5446         (__libc_calloc): Use __builtin_mul_overflow for overflow check and
5447         limit maximum requested size to PTRDIFF_MAX.
5448         * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
5449         valloc, pvalloc): Add __attribute_alloc_size__.
5450         * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
5451         * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
5452         larger than PTRDIFF_MAX.
5453         * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
5454         around tests of malloc with negative sizes.
5455         * malloc/tst-posix_memalign.c (do_test): Likewise.
5456         * malloc/tst-pvalloc.c (do_test): Likewise.
5457         * malloc/tst-valloc.c (do_test): Likewise.
5458         * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
5459         with resulting size allocation larger than PTRDIFF_MAX with
5460         reallocarray_nowarn.
5461         (reallocarray_nowarn): New function.
5462         * NEWS: Mention the malloc function semantic change.
5464 2019-04-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5466         * sysdeps/powerpc/fpu/s_fma.c: Fix format.
5467         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
5469         * sysdeps/powerpc/fpu/s_fma.S: Remove file.
5470         * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
5471         * sysdeps/powerpc/fpu/s_fma.c: New file.
5472         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
5474         * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
5475         * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
5477         * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
5478         the magic flag store.
5479         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
5480         Likewise.
5481         * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
5482         Likewise.
5483         * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
5484         Remove rt_sigreturn call.
5486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
5487         Remove rt_sigreturn call.
5488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
5489         Likewise.
5490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
5491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
5493         * support/Makefile (libsupport-routines): Add support_subprocess,
5494         xposix_spawn, xposix_spawn_file_actions_addclose, and
5495         xposix_spawn_file_actions_adddup2.
5496         (tst-support_capture_subprocess-ARGS): New rule.
5497         * support/capture_subprocess.h (support_capture_subprogram): New
5498         prototype.
5499         * support/support_capture_subprocess.c (support_capture_subprocess):
5500         Refactor to use support_subprocess and support_capture_poll.
5501         (support_capture_subprogram): New function.
5502         * support/tst-support_capture_subprocess.c (write_mode_to_str,
5503         str_to_write_mode, test_common, parse_int, handle_restart,
5504         do_subprocess, do_subprogram, do_multiple_tests): New functions.
5505         (do_test): Add support_capture_subprogram tests.
5506         * support/subprocess.h: New file.
5507         * support/support_subprocess.c: Likewise.
5508         * support/xposix_spawn.c: Likewise.
5509         * support/xposix_spawn_file_actions_addclose.c: Likewise.
5510         * support/xposix_spawn_file_actions_adddup2.c: Likewise.
5511         * support/xspawn.h: Likewise.
5513 2019-04-17  Mike Gerow  <gerow@google.com>
5515         * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
5516         groups limit.
5518 2019-04-11  Florian Weimer  <fweimer@redhat.com>
5520         * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
5521         domain with empty string.
5522         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
5524 2019-04-11  Florian Weimer  <fweimer@redhat.com>
5526         * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
5527         comment.
5528         (alloc_buffer_next): Change return type to non-const.  Update
5529         comment.
5531 2019-04-10  TAMUKI Shoichi  <tamuki@linet.gr.jp>
5533         * manual/time.texi (Formatting Calendar Time): Add missing percent
5534         sign to conversion specifier.
5536 2019-04-09  Carlos O'Donell  <carlos@redhat.com>
5537             Kwok Cheung Yeung  <kcy@codesourcery.com>
5539         [BZ #16573]
5540         * malloc/mtrace.c: Define prototypes for all hooks.
5541         (set_default_hooks): New function.
5542         (set_trace_hooks): Likewise.
5543         (save_default_hooks): Likewise.
5544         (tr_freehook): Use new s*_hooks functions.
5545         (tr_mallochook): Likewise.
5546         (tr_reallochook): Likewise.
5547         (tr_memalignhook): Likewise.
5548         (mtrace): Likewise.
5549         (muntrace): Likewise.
5551 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
5553         * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
5554         (generic_stpcpy): New function.
5555         * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
5556         (generic_stpncpy): New function.
5557         * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
5558         (generic_strcat): New function.
5559         * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
5560         (generic_strcpy): New function.
5561         * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
5562         (STUPID_STRNCAT): Remove function.
5563         (generic_strncat): New function.
5564         * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
5565         (STUPID_STRNCPY): Remove function.
5566         (generic_strncpy): New function.
5567         * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
5568         (generic_strnlen): New function.
5569         (memchr_strnlen): New function.
5570         * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
5571         (memchr_strlen): Likewise.
5573 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
5575         * benchtests/bench-strstr.c (input): Add realistic input text.
5576         (stupid_strstr): Remove function.
5577         (basic_strstr): Add function.
5578         (twoway_strstr): Add function.
5579         (do_one_test): Add result checking.
5580         (do_test): Use new input text.  Remove accidental early matches.
5581         (test_main): Improve range of tests, reduce unaligned cases.
5583 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
5585         * benchtests/bench-memmem.c (simple_memmem): Remove function.
5586         (basic_memmem): Add function.
5587         (twoway_memmem): Add function.
5589 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
5591         * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
5592         * benchtests/bench-malloc-thread.c: Likewise.
5593         * benchtests/bench-skeleton.c: Likewise.
5594         * benchtests/bench-strtod.c: Likewise.
5595         * benchtests/bench-timing.h: Likewise.
5597 2019-04-08  Florian Weimer  <fweimer@redhat.com>
5599         * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
5600         definitions.
5601         * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
5602         RES_INSECURE2 security checks.
5603         * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
5604         RES_INSECURE2 handling.
5606 2019-04-08  Florian Weimer  <fweimer@redhat.com>
5608         resolv: Remove support for RES_USE_INET6 and the inet6 option.
5609         * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
5610         * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
5611         GETHOSTBYNAME.
5612         * resolv/Makefile (tests): Remove tst-res_use_inet6.
5613         (tests-internal): Update justification for tst-resolv-res_init,
5614         tst-resolv-res_init-thread.
5615         (tst-res_use_inet6): Remove target.
5616         (CFLAGS-tst-res_use_inet6.c): Do not set variable.
5617         * resolv/res_debug.c (p_option): Remove "inet6" support.
5618         * resolv/res_init.c (res_setoptions): Likewise.
5619         * resolv/res_use_inet6.h: Remove file.
5620         * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
5621         definition.
5622         (res_use_inet6): Always return false.
5623         * resolv/resolv.h (RES_USE_INET6): Remove definition.
5624         * resolv/resolv_context.h: Adjust file comment.
5625         (struct resolv_context): Update comment on __next field.
5626         (__resolv_context_put): Update comment.
5627         * resolv/tst-res_use_inet6.c: Remove file.
5628         * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
5629         "inet6" support.
5630         (test_cases): Adjust test case.
5631         * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
5632         (thread_byname2_af_inet6): Use old byname_inet6 code.
5633         (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
5634         (gai): Remove do_inet6 argument.
5635         (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
5636         (thread_gai_inet_inet6, thread_gai_inet6_inet6)
5637         (thread_gai_unspec_inet6): Remove functions.
5638         (do_test): Adjust thread_funcs.
5639         * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
5640         RES_USE_INET6 flag.
5641         (gaih_inet): Do not disable RES_USE_INET6 flag.
5643 2019-04-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
5645         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
5646         and remove redundant code.
5648 2019-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5650         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
5651         New rule.
5652         * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
5653         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
5654         Likewise.
5655         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
5656         Likewise.
5657         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
5658         Likewise.
5659         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
5660         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
5661         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
5662         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
5663         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
5664         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
5665         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5666         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
5667         wcsrchr-power7.
5668         (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
5669         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5670         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5671         Remove wcsrchr optimizations.
5672         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5674         * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
5675         the loop unroll.
5677         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
5678         New rule.
5679         * sysdeps/powerpc/power6/wcschr.c: Remove file.
5680         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
5681         Likewise.
5682         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
5683         Likewise.
5684         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
5685         Likewise.
5686         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
5687         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
5688         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
5689         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
5690         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
5691         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
5692         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5693         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
5694         wcschr-power7.
5695         (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
5696         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5697         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5698         Remove wcschr optimizations.
5699         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5701         * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
5702         the loop unroll.
5704         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
5705         New rule.
5706         * sysdeps/powerpc/power6/wcscpy.c: Remove file.
5707         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
5708         Likewise.
5709         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
5710         Likewise.
5711         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
5712         Likewise.
5713         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
5714         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
5715         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
5716         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
5717         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
5718         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
5719         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5720         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
5721         wcscpy-power7.
5722         (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
5723         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5724         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5725         Remove wcscpy optimizations.
5726         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5728         * include/loop_unroll.h: New file.
5729         * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
5730         besides generic implementation.
5732 2019-04-03  DJ Delorie  <dj@redhat.com>
5734         * time/tst-strftime3.c (tm_to_printed): Disable warning about
5735         snprintf truncating output.
5737 2019-04-02  DJ Delorie  <dj@redhat.com>
5739         * time/tst-strftime3.c: Add new Japanese era tests.  Fix printf
5740         warning.
5742 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
5744         [BZ #22964]
5745         * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
5746         era.
5747         * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
5748         (mkreftable): Add rules for the new Japanese era and the new dates.
5750 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
5751             RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
5753         * time/tst-strftime2.c (date_t): Explicitly define the type.
5754         (dates): Use natural month and year numbers to express a date.
5755         (is_before): New function to compare dates.
5756         (mkreftable): Minor improvements to simplify maintenance.
5757         (do_test): Reflect the changes in dates array.
5759         [BZ #24293]
5760         * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
5761         hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
5762         * time/tst-strftime2.c (locales): Likewise.
5763         (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
5764         2010-04-01, and 2011-04-01.
5765         (mkreftable): Add rules for the new locales and the new dates.
5767 2019-04-01  Carlos O'Donell  <carlos@redhat.com>
5769         * localedata/locales/ja_JP: Add comments to era entries.
5771 2019-04-01  DJ Delorie  <dj@redhat.com>
5773         [BZ #24394]
5774         * time/strptime_l.c (%Ey): Fix fencepost error.
5775         * time/tst-strftime3.c: New.
5776         * time/Makefile (tests): Add tst-strftime3.
5778 2019-04-01  UroĆĄ Bizjak  <ubizjak@gmail.com>
5780         * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
5781         conditional branch to DIVBYZERO.  Fix unwind info.
5782         * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
5783         excb after conditional branch to $powerof2.  Add missing unop
5784         instructions and .align directives and reorder instructions to
5785         match __divqu.
5787 2019-04-01  Richard Henderson  <rth@twiddle.net>
5789         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
5790         Do not redefine.
5791         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
5792         Do not redefine.
5794 2019-03-30  Maciej W. Rozycki  <macro@wdc.com>
5796         * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
5797         $libc_cv_riscv_float_abi in `test' invocation.
5798         * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
5800 2019-03-29  Paul A. Clarke  <pc@us.ibm.com>
5802         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
5803         asm with builtin.
5804         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
5805         Likewise.
5806         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5807         (_GET_SI_FPSCR): Likewise.
5808         (_SET_SI_FPSCR): Likewise.
5810 2019-03-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5812         * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
5813         clang 2.8.
5814         (signbit): Use builtin for clang 3.3.
5815         (isinf): Use builtin for clang 3.7.
5817 2019-03-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5819         * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
5821 2019-03-25  Andreas K. HĂŒttel  <dilfridge@gentoo.org>
5823         * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
5824         quote in printf.
5826 2019-03-25  Mike Crowe  <mac@mcrowe.com>
5828         * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
5829         pthread_rwlock_timedrdlock with calls to
5830         pthread_rwlock_timedwrlock to ensure that the latter is tested
5831         too. Use new function name in diagnostic messages too.
5833         * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
5834         (do_test) Use libsupport test macros rather than hand-coded
5835         conditionals and error messages. Ensure that sem_init returns zero
5836         rather than not -1. Use <support/test-driver.c> rather than
5837         test-skeleton.c.
5839         * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
5840         test macros rather than hand-coded conditionals and error messages.
5841         Use <support/test-driver.c> rather than test-skeleton.c.
5843 2019-03-25  Joseph Myers  <joseph@codesourcery.com>
5845         * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
5847         * elf/elf.h (NT_ARM_PAC_MASK): New macro.
5848         (NT_MIPS_MSA): Likewise.
5850 2019-03-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5852         * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
5853         * benchtests/README: Update description.
5854         * benchtests/bench-timing.h: Default to hp-timing.
5855         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
5856         HP_TIMING_PRINT): Remove.
5857         (HP_TIMING_NOW): Add generic implementation.
5858         (hp_timing_t): Change to uint64_t.
5860         * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
5861         HP_TIMING_INLINE.
5862         * nptl/descr.h: Likewise.
5863         * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
5864         RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
5865         (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
5866         Abstract hp-timing usage with RTLD_* macros.
5867         * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
5868         (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
5869         * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
5870         HP_TIMING_NONAVAIL): Likewise.
5871         * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5872         Likewise.
5873         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
5874         HP_SMALL_TIMING_AVAIL): Likewise.
5875         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
5876         HP_SMALL_TIMING_AVAIL): Likewise.
5877         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
5878         HP_SMALL_TIMING_AVAIL): Likewise.
5879         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
5880         HP_SMALL_TIMING_AVAIL): Likewise.
5881         * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5882         Likewise.
5883         * sysdeps/generic/hp-timing-common.h: Update comment with
5884         HP_TIMING_AVAIL removal.
5886         * include/random-bits.h: New file.
5887         * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
5888         (__res_context_mkquery): Remove usage hp-timing usage and replace with
5889         random_bits.
5890         * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
5891         * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
5892         Likewise.
5894         * include/libc-internal.h (__get_clockfreq): Remove prototype.
5895         * rt/Makefile (clock-routines): Remove get_clockfreq.
5896         * rt/get_clockfreq.c: Remove file.
5897         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5898         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
5899         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
5900         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
5901         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
5903         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
5904         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
5905         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
5906         (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
5907         _SC_CPUTIME, and _SC_THREAD_CPUTIME.
5909         * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
5910         pthread_clock_settime.
5911         * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
5912         * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
5913         (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
5914         * elf/rtld.c (_dl_start_final): Likewise.
5915         * nptl/allocatestack.c (__find_thread_by_id): Remove function.
5916         * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
5917         Remove.
5918         * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
5919         (_dl_cpuclock_offset): Remove.
5920         * nptl/descr.h (struct pthread): Rename cpuclock_offset to
5921         cpuclock_offset_ununsed.
5922         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5923         cpuclock_offset set.
5924         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5925         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5926         * nptl/pthread_clock_gettime.c: Remove file.
5927         * nptl/pthread_clock_settime.c: Likewise.
5928         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5929         [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5930         and CLOCK_PROCESS_CPUTIME_ID support.
5931         * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5932         [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5933         * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5934         [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5935         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5936         Likewise.
5937         (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5939 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
5941         * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5942         * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5943         MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5944         New defines.
5945         * sysdeps/s390/memmem-arch13.S: New file.
5946         * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5947         if it is only used as fallback.
5948         * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5949         * sysdeps/s390/multiarch/ifunc-impl-list.c
5950         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5952 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
5954         * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5955         * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5956         STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5957         New defines.
5958         * sysdeps/s390/multiarch/ifunc-impl-list.c
5959         (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5960         * sysdeps/s390/strstr-arch13.S: New file.
5961         * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5962         if it is only used as fallback.
5963         * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5965 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
5967         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5968         HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5969         * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5970         * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5971         ifunc selector.
5972         * sysdeps/s390/multiarch/ifunc-impl-list.c
5973         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5974         * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5975         S390_IS_ARCH13_MIE3): New defines.
5977 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
5979         * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5980         HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5981         * sysdeps/s390/configure.ac: Add checks for arch13 support.
5982         * sysdeps/s390/configure: Regenerated.
5984 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
5986         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5987         Add vxe2, vxp, dflt, sort flags.
5988         * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5989         HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5990         capabilities.
5991         (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5992         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5993         (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5994         HWCAP_S390_DFLT): Define.
5996 2019-03-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5998         [BZ #24372]
5999         * iconv/iconvconfig.c (write_output): Add parentheses to get rid
6000         of compiler warning.
6001         * locale/programs/ld-collate.c (collate_output): Likewise.
6003 2019-03-21  DJ Delorie  <dj@redhat.com>
6005         [BZ #24372]
6006         * iconv/iconvconfig.c (write_output): Replace floating point math
6007         with integer math to avoid imprecise results.
6008         * locale/programs/ld-collate.c (collate_output): Likewise.
6010 2019-03-21  Stefan Liebler  <stli@linux.ibm.com>
6012         * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
6013         Add HWCAP_S390_VX and HWCAP_S390_VXE.
6015 2019-03-20  mansayk  <6688000@gmail.com>
6017         [BZ #24296]
6018         * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
6019         (abday): Likewise, but remove the trailing dots.
6021 2019-03-19  Joseph Myers  <joseph@codesourcery.com>
6023         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
6024         macro.
6025         (HWCAP_PACA): Likewise.
6026         (HWCAP_PACG): Likewise.
6027         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
6028         Increase to 32.
6029         (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
6031 2019-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6033         * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
6034         should be handled.
6036 2019-03-15  Joseph Myers  <joseph@codesourcery.com>
6038         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6039         version to 5.0.
6040         (old_getpagesize): New syscall.
6042 2019-03-15  Felix Yan  <felixonmars@archlinux.org>
6044         [BZ #24293]
6045         * localedata/locales/zh_TW (era): Add, support Minguo calendar.
6046         * localedata/locales/cmn_TW (era): Likewise.
6047         * localedata/locales/hak_TW (era): Likewise.
6048         * localedata/locales/lzh_TW (era): Likewise.
6049         * localedata/locales/nan_TW (era): Likewise.
6051 2019-03-14  Adam Maris  <amaris@redhat.com>
6053         * malloc/malloc.c (_int_malloc): Check for large bin list
6054         corruption when inserting unsorted chunk.
6056 2019-03-14  Florian Weimer  <fweimer@redhat.com>
6058         Remove obsolete, never-implemented XSI STREAMS declarations.
6059         * manual/terminal.texi (Allocation): Remove portability note and
6060         adjust example.
6061         * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
6062         _SC_STREAMS.
6063         * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
6064         * sysdeps/unix/inet/Subdirs (streams): Remove.
6065         * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
6066         (conformtest-headers-UNIX98): Likewise.
6067         (conformtest-headers-XOPEN2K): Likewise.
6068         (conformtest-headers-POSIX2008): Likewise.
6069         * posix/compat-streams.c: New file.
6070         * posix/Makefile (routines): Add it.
6071         * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
6072         getpmsg, isastream, putmsg, putpmsg.
6073         (GLIBC_2.30): New section.
6074         * bits/stropts.h: Remove file.
6075         * bits/xtitypes.h: Likewise.
6076         * conform/data/stropts.h-data: Likewise.
6077         * include/stropts.h: Likewise.
6078         * include/sys/stropts.h: Likewise.
6079         * include/xtitypes.h: Likewise.
6080         * streams/Makefile: Likewise.
6081         * streams/fattach.c: Likewise.
6082         * streams/fdetach.c: Likewise.
6083         * streams/getmsg.c: Likewise.
6084         * streams/getpmsg.c: Likewise.
6085         * streams/isastream.c: Likewise.
6086         * streams/putmsg.c: Likewise.
6087         * streams/putpmsg.c: Likewise.
6088         * streams/stropts.h: Likewise.
6089         * streams/sys/stropts.h: Likewise.
6090         * sysdeps/ia64/bits/xtitypes.h: Likewise.
6091         * sysdeps/s390/bits/xtitypes.h: Likewise.
6092         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
6093         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
6094         * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
6095         * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
6096         * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
6097         * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
6098         * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
6099         * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
6100         * sysdeps/x86/bits/xtitypes.h: Likewise.
6102 2019-03-14  Florian Weimer  <fweimer@redhat.com>
6104         * nss/tst-nss-files-alias-truncated.c (do_test): Load
6105         libnss_files.
6106         * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
6107         but not with libnss_files.
6108         (tst-nss-files-alias-truncated.out): Depend on libnss_files.
6110 2019-03-14  Zack Weinberg  <zackw@panix.com>
6112         * scripts/check-obsolete-constructs.py (HeaderChecker.check):
6113         Specify encoding="utf-8" when opening headers to check.
6115 2019-03-13  Joseph Myers  <joseph@codesourcery.com>
6117         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6118         version to 5.0.
6119         (Context.checkout_tar): Handle variable major version for Linux
6120         kernel.
6122 2019-03-13  Florian Weimer  <fweimer@redhat.com>
6124         [BZ #24047]
6125         * sysdeps/mach/hurd/res_enable_icmp.c: New file.
6127 2019-03-13  Zack Weinberg  <zackw@panix.com>
6129         * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
6130         Move to stdlib.
6131         * include/inttypes.h: Adjust to match.
6132         * include/stdint.h: New wrapper.
6134 2019-03-13  Zack Weinberg  <zackw@panix.com>
6136         * scripts/check-obsolete-constructs.py: New test script.
6137         * scripts/check-installed-headers.sh: Remove tests for
6138         obsolete typedefs, superseded by check-obsolete-constructs.py.
6139         * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
6140         as a special test.  Update commentary.
6141         * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
6142         (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
6143         Update commentary.
6144         * posix/sys/types.h (__u_intN_t): Remove.
6145         (u_int8_t): Typedef using __uint8_t.
6146         (u_int16_t): Typedef using __uint16_t.
6147         (u_int32_t): Typedef using __uint32_t.
6148         (u_int64_t): Typedef using __uint64_t.
6150 2019-03-13  Stefan Liebler  <stli@linux.ibm.com>
6152         * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
6153         call _dl_procinfo.
6154         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
6155         Ignore types other than AT_HWCAP.
6156         * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
6157         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
6158         Likewise.
6159         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
6160         in the case of falling back to generic output mechanism.
6161         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
6162         Likewise.
6164 2019-03-12  Florian Weimer  <fweimer@redhat.com>
6166         * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
6168 2019-03-12  Florian Weimer  <fweimer@redhat.com>
6170         [BZ #24047]
6171         resolv: Enable full ICMP errors for UDP DNS sockets
6172         * resolv/res_enable_icmp.c: New file.
6173         * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
6174         * resolv/resolv-internal.h (__res_enable_icmp): Declare.
6175         * resolv/res_send.c (reopen): Call __res_enable_icmp on new
6176         socket.
6178 2019-03-11  Mao Han  <han_mao@c-sky.com>
6180         * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
6181         (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
6183 2019-03-11  Mao Han  <han_mao@c-sky.com>
6185         * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
6186         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
6187         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
6189 2019-03-11  Mao Han  <han_mao@c-sky.com>
6191         * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
6192         directly.
6193         * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
6194         definition.
6196 2019-03-11  Mao Han  <han_mao@c-sky.com>
6198         * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
6199         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
6200         in mcontext_t
6202 2019-03-08  Mike FABIAN  <mfabian@redhat.com>
6204         [BZ #24307]
6205         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
6206         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
6207         Unicode 12.0.0.
6208         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
6209         * localedata/unicode-gen/PropList.txt: Likewise.
6210         * localedata/unicode-gen/UnicodeData.txt: Likewise.
6211         * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
6212         became "Alphabetic" in Unicode 12.0.0. Adapt test case.
6213         * localedata/charmaps/UTF-8: Regenerate.
6214         * localedata/locales/i18n_ctype: Likewise.
6215         * localedata/locales/tr_TR: Likewise.
6216         * localedata/locales/translit_circle: Likewise.
6217         * localedata/locales/translit_cjk_compat: Likewise.
6218         * localedata/locales/translit_combining: Likewise.
6219         * localedata/locales/translit_compat: Likewise.
6220         * localedata/locales/translit_font: Likewise.
6221         * localedata/locales/translit_fraction: Likewise.
6223 2019-03-07  Joseph Myers  <joseph@codesourcery.com>
6225         * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
6226         than after operators.
6227         * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
6228         (setitimer_locked): Likewise.
6229         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
6230         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
6231         * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
6232         * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
6233         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
6234         (PPC_CPU_SUPPORTED): Likewise.
6235         * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
6236         * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
6237         (stat_overflow): Likewise.
6238         (statfs_overflow): Likewise.
6239         * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
6240         * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
6241         (eq_ttyname_r): Likewise.
6242         (run_chroot_tests): Likewise.
6244 2019-03-07  Florian Weimer  <fweimer@redhat.com>
6246         * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
6247         header check.
6249 2019-03-07  Martin Liska  <mliska@suse.cz>
6251         * math/Makefile: Change location where math-vector-fortran.h is
6252         installed.
6253         * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
6254         * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
6255         from sysdeps/x86/fpu/bits/math-vector-fortran.h.
6256         * scripts/check-installed-headers.sh: Skip Fortran header files.
6257         * scripts/check-wrapper-headers.py: Likewise.
6259 2019-03-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6261         * nptl/nptl-init.c (__have_futex_clock_realtime,
6262         __have_futex_clock_realtime): Remove definition.
6263         (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
6264         check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
6265         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
6266         __ASSUME_FUTEX_CLOCK_REALTIME support.
6267         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
6268         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6269         * sysdeps/unix/sysv/linux/kernel-features.h
6270         (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
6271         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
6272         Adjust comment.
6274 2019-03-05  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6276         * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
6277         __wcscpy, then use libc_hidden_def and weak_alias to bind it to
6278         __GI___wcscpy and wcscpy.
6280 2019-03-04  Florian Weimer  <fweimer@redhat.com>
6282         * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
6283         declaration.
6284         * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
6285         defined.
6287 2019-03-04  Stefan Liebler  <stli@linux.ibm.com>
6289         * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
6290         * sysdeps/s390/s390-32/sysdep.h: Likewise.
6292 2019-03-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
6294         [BZ #24162]
6295         * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
6296         gan-nen from 2 to 1.  Problem reported by Morimitsu, Junji.
6298 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6300         * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
6301         tests.
6302         (do_test): Likewise.
6303         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
6304         (do_test_call_varg): Likewise.
6305         (do_test_call_rarg): Likewise.
6306         * sysdeps/ieee754/ldbl-opt/Makefile
6307         [subdir == misc] (tests-internal): Add tst-nldbl-warn,
6308         tst-nldbl-error.
6309         ($(objpfx)tst-nldbl-warn.c): New rule.
6310         ($(objpfx)tst-nldbl-error.c): Likewise.
6311         (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
6312         New variables.
6314 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6316         [BZ #23984]
6317         * include/bits/error-ldbl.h: New file.
6318         * include/error.h: Include stdarg.h.  Declare internal functions
6319         __error_internal and __error_at_line_internal.
6320         * misc/Makefile (headers): Add bits/error-ldbl.h.
6321         * misc/bits/error-ldbl.h: New file.
6322         * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
6323         avoid the inclusion of bits/error.h.
6324         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
6325         and __nldbl_error_at_line.
6326         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
6327         (__nldbl_error, __ndlbl_error_at_line): New functions.
6328         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
6329         Redirect error and error_at_line.
6330         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
6331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6332         Likewise.
6333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6334         Likewise.
6335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6336         Likewise.
6337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6338         Likewise.
6339         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6340         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6341         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6343 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6345         [BZ #23984]
6346         * include/bits/err-ldbl.h: New file.
6347         * include/err.h: Add prototypes for the internal functions:
6348         __vwarnx_internal and __vwarn_internal.
6349         * misc/Makefile (headers): Add bits/err-ldbl.h.
6350         * misc/bits/err-ldbl.h: New file.
6351         * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
6352         defined, i.e.: when -mlong-double-64 is in use.
6353         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
6354         __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
6355         __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
6356         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
6357         (VA_CALL): New macro.
6358         (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
6359         (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
6360         functions.
6361         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
6362         declare prototypes for the new functions.
6363         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
6364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6365         Likewise.
6366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6367         Likewise.
6368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6369         Likewise.
6370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6371         Likewise.
6372         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6373         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6374         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6376 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6378         * sysdeps/ieee754/ldbl-opt/Makefile
6379         [subdir == argp] (tests-internal): Add tst-nldbl-argp.
6380         [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
6381         [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
6383 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6385         [BZ #23983]
6386         * argp/Makefile (headers): Add bits/argp-ldbl.h.
6387         * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
6388         * argp/bits/argp-ldbl.h: New file.
6389         * include/argp.h: Include stdarg.h.  Add prototypes for internal
6390         functions: __argp_error_internal and __argp_failure_internal.
6391         * include/bits/argp-ldbl.h: New file.
6392         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
6393         __nldbl_argp_error and __nldbl_argp_failure.
6394         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
6395         (__nldbl_argp_error, __nldbl_argp_failure): New functions.
6396         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
6397         Redirect argp_error and argp_failure calls.
6398         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
6399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6400         Likewise.
6401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6402         Likewise.
6403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6404         Likewise.
6405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6406         Likewise.
6407         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6408         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6409         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6411 2019-03-01  Florian Weimer  <fweimer@redhat.com>
6413         [BZ #20419]
6414         * elf/tst-big-note-lib.S: Create a syntactically valid note.
6415         * elf/Makefile (tst-big-note-lib.so): Do not link with startup
6416         code, to avoid creating an ABI tag note.
6417         (modules-names-nobuild): Add tst-big-note-lib.
6419 2019-03-01  Stefan Liebler  <stli@linux.ibm.com>
6421         * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
6422         __wcscpy, __GI___wcscpy and weak alias to wcscpy.
6424 2019-03-01  Florian Weimer  <fweimer@redhat.com>
6426         [BZ #20271]
6427         * sysdeps/unix/sysv/linux/netlink_assert_response.c
6428         (__netlink_assert_response): Add additional missing newlines.
6430 2019-02-28  Joseph Myers  <joseph@codesourcery.com>
6432         * sysdeps/powerpc/powerpc32/dl-machine.c
6433         (__elf_machine_fixup_plt): Use space before '('.
6434         (__process_machine_rela): Likewise.
6435         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
6436         Likewise.
6437         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
6438         Likewise.
6439         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
6440         Likewise.
6441         * sysdeps/powerpc/test-arith.c (union_t): Likewise.
6442         (pattern): Likewise.
6443         (delta): Likewise.
6444         (check_result): Likewise.
6445         (check_excepts): Likewise.
6446         (check_op): Likewise.
6447         (fail_xr): Likewise.
6448         * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
6449         * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
6450         (SCNHSZ): Likewise.
6451         * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
6452         Likewise.
6453         (ARGS): Likewise.
6454         (__makecontext): Likewise.
6455         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
6456         Likewise.
6458 2019-02-28  Florian Weimer  <fweimer@redhat.com>
6460         [BZ #23937]
6461         elf: Add test with a local IFUNC resolver.
6462         * elf/ifuncmain9.c: New file.
6463         * elf/ifuncmain9pic.c: Likewise.
6464         * elf/ifuncmain9picstatic.c: Likewise.
6465         * elf/ifuncmain9pie.c: Likewise.
6466         * elf/ifuncmain9static.c: Likewise.
6467         * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
6468         ifuncmain9static, ifuncmain9picstatic.
6469         * elf/Makefile [multi-arch && build-shared] (tests-internal):
6470         Add ifuncmain9, ifuncmain9pic.
6471         * elf/Makefile [multi-arch && build-shared && have-fpie]
6472         (ifunc-pie-tests): Add ifuncmain9pie.
6473         (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
6474         (CFLAGS-ifuncmain9picstatic.c): Likewise.
6475         (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
6477 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
6479         * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
6480         * configure: Regenerated.
6481         * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
6483 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6485         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
6486         symbol as __wcspcy instead of wcscpy.
6488 2019-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6490         * include/stdio.h (__renameat2): New hidden prototype.
6491         * stdio-common/renameat2.c (__renameat2): Add hidden definition.
6492         * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
6493         * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
6494         * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
6496 2019-02-27  Joseph Myers  <joseph@codesourcery.com>
6498         * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
6499         if statement.
6501         * benchtests/bench-strcpy.c (do_test): Use space before '('.
6502         * benchtests/bench-string.h (cmdline_process_function): Likewise.
6503         * benchtests/bench-strlen.c (do_test): Likewise.
6504         (test_main): Likewise.
6505         * catgets/gencat.c (read_old): Likewise.
6506         * elf/cache.c (load_aux_cache): Likewise.
6507         * iconvdata/bug-iconv8.c (do_test): Likewise.
6508         * math/test-tgmath-ret.c (do_test): Likewise.
6509         * nis/nis_call.c (rec_dirsearch): Likewise.
6510         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6511         * nptl/tst-audit-threads.c (do_test): Likewise.
6512         * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
6513         * nss/nss_test1.c (init): Likewise.
6514         * nss/test-netdb.c (test_hosts): Likewise.
6515         * posix/execvpe.c (maybe_script_execute): Likewise.
6516         * stdio-common/tst-fmemopen4.c (do_test): Likewise.
6517         * stdio-common/tst-printf.c (do_test): Likewise.
6518         * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
6519         * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
6520         * stdlib/qsort.c (STACK_SIZE): Likewise.
6521         * stdlib/test-canon.c (do_test): Likewise.
6522         * stdlib/tst-swapcontext1.c (do_test): Likewise.
6523         * string/memcmp.c (OPSIZ): Likewise.
6524         * string/test-strcpy.c (do_test): Likewise.
6525         (do_random_tests): Likewise.
6526         * string/test-strlen.c (do_test): Likewise.
6527         (test_main): Likewise.
6528         * string/test-strrchr.c (do_test): Likewise.
6529         (do_random_tests): Likewise.
6530         * string/tester.c (test_memrchr): Likewise.
6531         (test_memchr): Likewise.
6532         * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
6533         * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
6534         * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
6535         (read_encoded_value_with_base): Likewise.
6536         * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
6537         * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
6538         * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
6539         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6540         * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
6541         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
6542         Likewise.
6543         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
6544         Likewise.
6545         * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
6546         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
6547         * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
6548         Likewise.
6549         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
6550         Likewise.
6551         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
6552         Likewise.
6553         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6554         Likewise.
6555         * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
6556         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
6557         (FP_XSTATE_MAGIC2_SIZE): Likewise.
6558         * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
6559         * time/test_time.c (main): Likewise.
6561 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6563         * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
6565         * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
6566         wmemcpy.
6568         * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
6569         wmemcpy.
6571         * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
6573         * include/wchar.h (__wcscpy): New prototype.
6574         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
6575         (__wcscpy): Route internal symbol to generic implementation.
6576         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
6577         Add internal __wcscpy alias.
6578         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
6579         * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
6580         * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
6581         * wcsmbs/wcscpy.c (wcscpy): Add
6582         * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
6583         use generic implementation.
6584         * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
6586         * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
6587         wmemset.
6589         * sysdeps/m68k/wcpcpy.c: Remove file.
6590         * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
6592 2019-02-26  Joseph Myers  <joseph@codesourcery.com>
6594         * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
6595         than after operators.
6596         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
6597         * sysdeps/mach/hurd/getcwd.c
6598         (__hurd_canonicalize_directory_name_internal): Likewise.
6599         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
6600         (pthread_mutex_consistent): Likewise.
6601         * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
6602         Likewise.
6603         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
6604         (__pthread_mutex_transfer_np): Likewise.
6605         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
6606         (__pthread_mutex_unlock): Likewise.
6607         * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
6608         (mtx_owned_p): Likewise.
6609         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
6610         (pthread_mutexattr_getrobust): Likewise.
6611         * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
6612         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6613         Likewise.
6614         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6615         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
6616         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
6617         * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
6618         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6619         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
6620         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
6621         Likewise.
6622         * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
6623         Likewise.
6624         * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
6625         * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
6626         * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
6627         (____longjmp_chk): Likewise.
6628         * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
6629         Likewise.
6630         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
6631         (INTERNAL_SYSCALL): Likewise.
6632         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6633         (INTERNAL_SYSCALL): Likewise.
6634         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6635         (__get_clockfreq_via_cpuinfo): Likewise.
6637         * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
6638         comments.
6639         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
6640         * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
6641         (WORD_COPY_BWD): Likewise.
6642         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6643         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6644         Likewise.
6645         * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
6646         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
6647         comment.
6648         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
6650 2019-02-25  Joseph Myers  <joseph@codesourcery.com>
6652         * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
6653         && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
6654         rather than after operators.
6655         * elf/cache.c (print_cache): Likewise.
6656         * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
6657         * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
6658         * hurd/hurdinit.c (_hurd_setproc): Likewise.
6659         * hurd/hurdkill.c (_hurd_sig_post): Likewise.
6660         * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
6661         * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
6662         (reauth_proc): Likewise.
6663         * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
6664         (__file_name_split_at): Likewise.
6665         (__directory_name_split_at): Likewise.
6666         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6667         * hurd/port2fd.c (_hurd_port2fd): Likewise.
6668         * iconv/gconv_dl.c (do_print): Likewise.
6669         * inet/netinet/in.h (struct sockaddr_in): Likewise.
6670         * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
6671         * locale/setlocale.c (new_composite_name): Likewise.
6672         * malloc/memusagestat.c (main): Likewise.
6673         * misc/fstab.c (fstab_convert): Likewise.
6674         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
6675         Likewise.
6676         * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
6677         (getgrent_next_file): Likewise.
6678         (internal_getgrnam_r): Likewise.
6679         (internal_getgrgid_r): Likewise.
6680         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
6681         Likewise.
6682         (internal_getgrent_r): Likewise.
6683         * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
6684         (getpwent_next_nss): Likewise.
6685         (getpwent_next_file): Likewise.
6686         (internal_getpwnam_r): Likewise.
6687         (internal_getpwuid_r): Likewise.
6688         * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
6689         Likewise.
6690         (getspent_next_nss): Likewise.
6691         (internal_getspnam_r): Likewise.
6692         * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
6693         * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
6694         * string/strchr.c (STRCHR): Likewise.
6695         * string/strchrnul.c (STRCHRNUL): Likewise.
6696         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
6697         * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6698         * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
6699         * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
6700         * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
6701         Likewise.
6702         * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
6703         * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6704         * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6705         * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
6706         * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
6707         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
6708         (open_file): Likewise.
6709         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
6710         (pthread_mutexattr_setprotocol): Likewise.
6711         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6712         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6713         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6714         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6715         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
6716         Likewise.
6717         (elf_machine_rela): Likewise.
6718         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6719         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6720         * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
6721         * sysdeps/posix/rename.c (rename): Likewise.
6722         * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
6723         * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
6724         * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
6725         * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
6726         * sysdeps/unix/grantpt.c (grantpt): Likewise.
6727         * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
6728         * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
6729         Likewise.
6730         * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
6731         Likewise.
6732         * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
6733         * time/tzfile.c (__tzfile_compute): Likewise.
6735 2019-02-22  Joseph Myers  <joseph@codesourcery.com>
6737         * benchtests/bench-memmem.c (simple_memmem): Break lines before
6738         rather than after operators.
6739         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
6740         * crypt/md5.c (md5_finish_ctx): Likewise.
6741         * crypt/sha256.c (__sha256_finish_ctx): Likewise.
6742         * crypt/sha512.c (__sha512_finish_ctx): Likewise.
6743         * elf/cache.c (load_aux_cache): Likewise.
6744         * elf/dl-load.c (open_verify): Likewise.
6745         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
6746         * elf/readelflib.c (process_elf_file): Likewise.
6747         * elf/rtld.c (dl_main): Likewise.
6748         * elf/sprof.c (generate_call_graph): Likewise.
6749         * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
6750         * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
6751         * hurd/dtable.c (reauth_dtable): Likewise.
6752         * hurd/getdport.c (__getdport): Likewise.
6753         * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
6754         * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
6755         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
6756         Likewise.
6757         * hurd/hurdioctl.c (fioctl): Likewise.
6758         * hurd/hurdselect.c (_hurd_select): Likewise.
6759         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
6760         (STOPSIGS): Likewise.
6761         * hurd/hurdstartup.c (_hurd_startup): Likewise.
6762         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
6763         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6764         * hurd/msgportdemux.c (msgport_server): Likewise.
6765         * hurd/setauth.c (_hurd_setauth): Likewise.
6766         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
6767         * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
6768         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
6769         * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
6770         * login/tst-utmp.c (do_check): Likewise.
6771         (simulate_login): Likewise.
6772         * mach/lowlevellock.h (lll_lock): Likewise.
6773         (lll_trylock): Likewise.
6774         * math/test-fenv.c (ALL_EXC): Likewise.
6775         * math/test-fenvinline.c (ALL_EXC): Likewise.
6776         * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
6777         * nis/nis_call.c (__do_niscall3): Likewise.
6778         * nis/nis_callback.c (cb_prog_1): Likewise.
6779         * nis/nis_defaults.c (searchaccess): Likewise.
6780         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6781         * nis/nis_ismember.c (internal_ismember): Likewise.
6782         * nis/nis_local_names.c (nis_local_principal): Likewise.
6783         * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
6784         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
6785         Likewise.
6786         * nis/ypclnt.c (yp_match): Likewise.
6787         (yp_first): Likewise.
6788         (yp_next): Likewise.
6789         (yp_master): Likewise.
6790         (yp_order): Likewise.
6791         * nscd/hstcache.c (cache_addhst): Likewise.
6792         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6793         * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
6794         (internal_getpwuid_r): Likewise.
6795         * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
6796         * posix/glob.h (__GLOB_FLAGS): Likewise.
6797         * posix/regcomp.c (peek_token): Likewise.
6798         (peek_token_bracket): Likewise.
6799         (parse_expression): Likewise.
6800         * posix/regexec.c (sift_states_iter_mb): Likewise.
6801         (check_node_accept_bytes): Likewise.
6802         * posix/tst-spawn3.c (do_test): Likewise.
6803         * posix/wordexp-test.c (testit): Likewise.
6804         * posix/wordexp.c (parse_tilde): Likewise.
6805         (exec_comm): Likewise.
6806         * posix/wordexp.h (__WRDE_FLAGS): Likewise.
6807         * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
6808         * setjmp/sigjmp.c (__sigjmp_save): Likewise.
6809         * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
6810         * stdio-common/tst-fileno.c (do_test): Likewise.
6811         * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
6812         * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
6813         * stdlib/strtod_l.c (round_and_return): Likewise.
6814         (____STRTOF_INTERNAL): Likewise.
6815         * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
6816         * string/strcspn.c (STRCSPN): Likewise.
6817         * string/test-memmem.c (simple_memmem): Likewise.
6818         * termios/tcsetattr.c (tcsetattr): Likewise.
6819         * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
6820         * time/asctime.c (asctime_internal): Likewise.
6821         * time/strptime_l.c (__strptime_internal): Likewise.
6822         * time/sys/time.h (timercmp): Likewise.
6823         * time/tzfile.c (__tzfile_compute): Likewise.
6825 2019-02-21  Patsy Griffin Franklin  <pfrankli@redhat.com>
6827         [BZ #21915]
6828         * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
6830 2019-02-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6832         * argp/argp-help.c (__argp_error_internal): New function,
6833         renamed from __argp_error, but that takes a 'mode_flags'
6834         parameter to control the format of long double parameters.
6835         (__argp_error): Converted into a call __argp_error_internal.
6836         (__argp_failure_internal): New function, renamed from
6837         __argp_failure, but that takes a 'mode_flags' parameter.
6838         (__argp_failure): Converted into a call __argp_failure_internal.
6839         * misc/err.c (__vwarnx_internal): New function, renamed from
6840         vwarnx, but that takes a 'mode_flags' parameter.
6841         (vwarnx): Converted into a call to __vwarnx_internal.
6842         (__vwarn_internal): New function, renamed from vwarn, but that
6843         takes a 'mode_flags' parameter.
6844         (vwarn): Converted into a call to __vwarn_internal.
6845         * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
6846         call to __vfxprintf with 'mode_flags'.
6847         (__error_internal): New function, renamed from error, but that
6848         takes a 'mode_flags' parameter.
6849         (error): Converted into a call to __error_internal.
6850         (__error_at_line_internal): New function, renamed from
6851         error_at_line, but that takes a 'mode_flags' parameter.
6852         (error_at_line): Converted into a call to
6853         __error_at_line_internal.
6854         * include/stdio.h (__vfxprintf): Add mode_flags parameter.
6855         * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
6856         Likewise.
6858 2019-02-20  Martin Liska  <mliska@suse.cz>
6860         * math/Makefile: Install math-vector-fortran.h.
6861         * bits/math-vector-fortran.h: New file.
6862         * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
6864 2019-02-20  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6866         * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
6867         * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
6869 2019-02-19  Wolfram Sang  <wsa@the-dreams.de>
6871         * nptl/pthread_mutex_trylock.c: Fix comment.
6873 2019-02-19  Carlos O'Donell  <carlos@redhat.com>
6875         * nptl/pthread_tryjoin.c: Fix comment.
6877 2019-02-18  Joseph Myers  <joseph@codesourcery.com>
6879         [BZ #24231]
6880         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
6881         after R_SPARC_H34 case.
6883 2019-02-18  Florian Weimer  <fweimer@redhat.com>
6885         * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
6886         (getanswer): Do not call Dprintf.
6887         (res_gethostbyname2_context): Likewise.
6888         (res_gethostbyaddr_context): Likewise.
6890 2019-02-18  Florian Weimer  <fweimer@redhat.com>
6892         * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
6893         declaration.
6894         * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6895         Remove definitions.
6896         * libio/stdfiles.c: Update comment.
6897         * libio/oldstdfiles.c (_IO_check_libio): Update comment.  Do not
6898         set _IO_stdin, _IO_stdout, _IO_stderr.
6899         * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
6900         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
6901         inline function.
6902         (_IO_deallocate_file): New inline function.
6903         * libio/iolibio.h (_IO_vprintf): Remove definition.
6904         * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
6905         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6906         * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
6907         _IO_legacy_file.
6908         * libio/oldfileops.c (_IO_old_file_init_internal): Remove
6909         __builtin_expect.  Use _IO_legacy_file.
6911 2019-02-18  Stefan Liebler  <stli@linux.ibm.com>
6913         * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
6914         Initialize ctid with a known value and remove update of ctid
6915         after clone.
6916         (wait_tid): Adjust arguments and call futex_wait with ctid_val
6917         as assumed current value of ctid_ptr.
6919 2019-02-16  Florian Weimer  <fweimer@redhat.com>
6921         Check that non-sysdeps headers have wrapper headers.
6922         * scripts/check-wrapper-headers.py: New file.
6923         * Makefile (tests-special): Add check-wrapper-headers.out.
6924         (check-wrapper-headers.out): New target.
6925         * Rules (tests-special): Add check-wrapper-headers.out.
6926         (check-wrapper-headers.out): New target.
6928 2019-02-16  Florian Weimer  <fweimer@redhat.com>
6930         Add missing header wrappers under include/.
6931         * include/ar.h: New file.
6932         * include/bits/mqueue2.h: Likewise.
6933         * include/bits/stdio.h: Likewise.
6934         * include/bits/stdio2.h: Likewise.
6935         * include/fstab.h: Likewise.
6936         * include/fts.h: Likewise.
6937         * include/lastlog.h: Likewise.
6938         * include/netinet/icmp6.h: Likewise.
6939         * include/netinet/igmp.h: Likewise.
6940         * include/netinet/ip6.h: Likewise.
6941         * include/re_comp.h: Likewise.
6942         * include/regexp.h: Likewise.
6943         * include/rpcsvc/bootparam.h: Likewise.
6944         * include/rpcsvc/yp_prot.h: Likewise.
6945         * include/sys/random.h: Likewise.
6946         * include/sys/stropts.h: Likewise.
6947         * include/sys/ttychars.h: Likewise.
6948         * include/sys/vfs.h: Likewise.
6949         * include/wait.h: Likewise.
6951 2019-02-16  Florian Weimer  <fweimer@redhat.com>
6953         * nptl_db/proc_service.h: Move to ...
6954         * sysdeps/nptl/proc_service.h: ... here.
6955         * nptl_db/thread_db.h: Move to ...
6956         * sysdeps/nptl/thread_db.h: ... here.
6957         * nptl/descr.h: Include <thread_db.h>.
6959 2019-02-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6961         * io/Makefile (tests): Add tst-lockf.
6962         * io/lockf.c (lockf): Use __fcntl and only define for
6963         !__OFF_T_MATCHES_OFF64_T.
6964         * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6965         __OFF_T_MATCHES_OFF64_T case.
6966         * io/tst-lockf.c: New file.
6967         * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6968         * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6969         * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6970         * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6971         * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6973         * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6974         * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6975         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6977 2019-02-15  Florian Weimer  <fweimer@redhat.com>
6979         [BZ #24211]
6980         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6981         pd->result after the thread descriptor has been freed.
6983 2019-02-15  Joseph Myers  <joseph@codesourcery.com>
6985         * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6986         from function return type.
6988         * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6990 2019-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6992         * scripts/test_printers_common.py: Set TERM to a known harmless
6993         value.
6995 2019-02-14  Joseph Myers  <joseph@codesourcery.com>
6997         * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6998         (xdr_u_int): Likewise.
6999         (xdr_enum): Likewise.
7000         (xdr_bytes): Reword fall-through comment.
7001         (xdr_string): Likewise.
7003 2019-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7005         [BZ #2421]
7006         * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
7007         (tests): Add tst-join8 tst-join9.
7008         * nptl/lll_timedwait_tid.c: Remove file.
7009         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
7010         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
7011         * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
7012         * nptl/pthread_join_common.c (timedwait_tid): New function.
7013         (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
7014         is set.
7015         * nptl/tst-join5.c (thread_join): New function.
7016         (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
7017         check.
7018         * nptl/tst-join8.c: New file.
7019         * nptl/tst-join9.c: Likewise.
7020         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
7021         lll_futex_timed_wait_cancel): Add generic macros.
7022         * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
7023         Remove definitions.
7024         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
7025         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
7026         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
7027         * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
7028         Remove function.
7029         * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
7030         Likewise.
7031         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
7032         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7033         (lll_futex_timed_wait_cancel): New macro.
7035 2019-02-14  Wilco Dijkstra  <wdijkstr@arm.com>
7037         * benchtests/Makefile: Add malloc-simple benchmark.
7038         * benchtests/bench-malloc-simple.c: New benchmark.
7040 2019-02-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7042         * benchtests/bench-memmove.c (do_one_test): Remove unused
7043         ORIG_SRC.
7044         (do_test): Adjust.
7045         * benchtests/bench-memmove-large.c (do_one_test): Remove unused
7046         ORIG_SRC.
7047         (do_test): Adjust.
7049 2019-01-13  Jim Wilson  <jimw@sifive.com>
7051         [BZ #24040]
7052         * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
7053         * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
7054         (func): New.
7055         (main): If USE_PTHREADS, call pthread_create to run func.  Otherwise
7056         call func directly.
7057         * nptl/Makefile (tests): Add tst-unwind-thread.
7058         (CFLAGS-tst-unwind-thread.c): Define.
7059         * nptl/tst-unwind-thread.c: New file.
7060         * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
7061         as undefined.
7063 2019-02-13  Joseph Myers  <joseph@codesourcery.com>
7065         * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
7066         comment wording.
7067         * nis/nis_call.c (__do_niscall3): Likewise.
7069         * catgets/gencat.c (normalize_line): Use braces around empty
7070         'else' body.
7071         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
7072         (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
7073         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
7074         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
7075         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
7076         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
7077         * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
7078         definition.
7080         * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
7081         execlp returns.
7083 2019-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
7085         * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
7086         * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
7087         * benchtests/bench-strchr.c (stupid_strchr): Remove.
7088         * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
7089         * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
7090         * benchtests/bench-strlen.c (builtin_strlen): Remove.
7091         * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
7092         * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
7093         * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
7094         * benchtests/bench-strspn.c (stupid_strspn): Remove.
7095         * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
7096         * benchtests/bench-bcopy.c: Delete file.
7097         * benchtests/bench-bzero.c: Likewise.
7098         * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
7099         (simple_memccpy): Remove.
7100         (generic_memccpy): Add function.
7101         * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
7102         * benchtests/bench-memmove.c (simple_bcopy): Remove.
7103         * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
7104         (generic_mempcpy): Add new function.
7105         * benchtests/bench-memset.c (simple_bzero): Remove.
7106         (builtin_bzero): Remove.
7107         (builtin_memset): Remove.
7108         * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
7109         (generic_rawmemchr): Add new function.
7111 2019-02-12  Florian Weimer  <fweimer@redhat.com>
7113         * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
7115 2019-02-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7117         [BZ #24122]
7118         * elf/Makefile (tests): Add tst-audit13.
7119         (modules-names): Add tst-audit13mod1.
7120         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7121         rule.
7122         * elf/tst-audit13.c: New file.
7123         * elf/tst-audit13mod1.c: Likewise.
7125 2019-02-12  Florian Weimer  <fweimer@redhat.com>
7127         [BZ #24122]
7128         * elf/rtld.c (unload_audit_module): New function.
7129         (report_audit_module_load_error): Likewise.
7130         (load_audit_module): Likewise.  Extracted from dl_main.  Call
7131         _dl_close if the laversion symbol cannot be found.  Use early
7132         returns for error handling.  Add malloc error check.  Check for a
7133         zero return value from la_version.  Remove spurious comment about
7134         static TLS initialization.  Remove useless casts.
7135         (notify_audit_modules_of_loaded_object): New function.  Extracted
7136         from dl_main.
7137         (load_audit_module): Likewise.
7138         (dl_main): Call load_audit_modules.
7140 2019-02-12  Joseph Myers  <joseph@codesourcery.com>
7142         * elf/dl-exception.c (_dl_exception_create_format): Add
7143         fall-through comments.
7144         * elf/ldconfig.c (parse_conf_include): Likewise.
7145         * elf/rtld.c (print_statistics): Likewise.
7146         * locale/programs/charmap.c (parse_charmap): Likewise.
7147         * misc/mntent_r.c (__getmntent_r): Likewise.
7148         * posix/wordexp.c (parse_arith): Likewise.
7149         (parse_backtick): Likewise.
7150         * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
7151         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
7152         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7154 2019-02-11  Paul A. Clarke  <pc@us.ibm.com>
7156         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
7157         Use float instead of double.
7159 2019-02-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
7161         * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
7163 2019-02-08  Joseph Myers  <joseph@codesourcery.com>
7165         * sysdeps/powerpc/bits/mathinline.h: Remove.
7167 2019-02-08  Florian Weimer  <fweimer@redhat.com>
7169         math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
7170         * math/bits/math-finite.h: Move to ...
7171         * bits/math-finite.h: ... here.
7173 2019-02-08  Florian Weimer  <fweimer@redhat.com>
7175         * sysdeps/generic/bits/unistd_ext.h: Move to ...
7176         * bits/unistd_ext.h: here.
7178 2019-02-08  Patsy Griffin Franklin  <pfrankli@redhat.com>
7180         [BZ #21915]
7181         * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
7182         * nss/tst-nss-files-hosts-long.c: New file.
7183         * nss/tst-nss-files-hosts-long.root: New directory.
7184         * nss/tst-nss-files-hosts-long.root/etc: Likewise.
7185         * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
7187 2019-02-08  Florian Weimer  <fweimer@redhat.com>
7189         * include/bits/unistd_ext.h: Remove file.
7190         * posix/bits/unistd_ext.h: Move to ...
7191         * sysdeps/generic/bits/unistd_ext.h: ... here.
7193 2019-02-08  Florian Weimer  <fweimer@redhat.com>
7195         * include/bits/unistd_ext.h: New file.
7197 2019-02-08  TAMUKI Shoichi  <tamuki@linet.gr.jp>
7199         * time/tst-strftime2.c: Use array_length macros instead of magic
7200         numbers.
7202 2019-02-08  Florian Weimer  <fweimer@redhat.com>
7204         [BZ #24161]
7205         * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
7206         argument.
7207         * nptl/register-atfork.c (__run_fork_handlers): Only perform
7208         locking if the new do_locking argument is true.
7209         * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
7210         __run_fork_handlers.
7212 2019-02-08  Florian Weimer  <fweimer@redhat.com>
7214         [BZ #6399]
7215         Linux: Add gettid system call wrapper.
7216         * posix/Makefile (headers): Add bits/unistd_ext.h.
7217         * posix/bits/unistd_ext.h: New file.
7218         * posix/unistd.h: Include it.
7219         * manual/process.texi (Process Identification): Document gettid.
7220         * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
7221         tst-gettid, tst-gettid-kill.
7222         (tst-gettid): Link with $(shared-thread-library).
7223         * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
7224         * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
7225         * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
7226         * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
7227         * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
7228         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
7229         Add gettid.
7230         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
7231         Likewise.
7232         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
7233         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
7234         Likewise.
7235         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
7236         Likewise.
7237         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
7238         Likewise.
7239         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
7240         Likewise.
7241         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
7242         Likewise.
7243         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
7244         Likewise.
7245         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
7246         Likewise.
7247         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7248         (GLIBC_2.30): Likewise.
7249         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7250         (GLIBC_2.30): Likewise.
7251         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7252         (GLIBC_2.30): Likewise.
7253         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7254         (GLIBC_2.30): Likewise.
7255         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
7256         Likewise.
7257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7258         (GLIBC_2.30): Likewise.
7259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7260         (GLIBC_2.30): Likewise.
7261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
7262         (GLIBC_2.30): Likewise.
7263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
7264         (GLIBC_2.30): Likewise.
7265         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
7266         Likewise.
7267         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
7268         Likewise.
7269         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
7270         Likewise.
7271         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
7272         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
7273         Likewise.
7274         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
7275         Likewise.
7276         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
7277         Likewise.
7278         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
7279         Likewise.
7280         * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
7282 2019-02-08  Florian Weimer  <fweimer@redhat.com>
7284         * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
7285         compatibility symbols.
7287 2019-02-07  Stefan Liebler  <stli@linux.ibm.com>
7289         [BZ #24180]
7290         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
7291         Add compiler barriers and comments.
7293 2019-02-07  Florian Weimer  <fweimer@redhat.com>
7295         * include/array_length.h (array_length): Do not use a statement
7296         expression and _Static_assert, so that array_length can be used at
7297         file scope and as a constant expression.
7299 2019-02-07  Florian Weimer  <fweimer@redhat.com>
7301         * support/xdlfcn.h (xdlmopen): Declare.
7302         * support/xdlmopen.c: New file.
7303         * support/Makefile (libsupport-routines): Add xdlmopen.
7305 2019-02-06  Joseph Myers  <joseph@codesourcery.com>
7307         * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
7308         before return type, without separate inline.
7309         * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
7310         * elf/dl-tunables.h (tunable_is_name): Likewise.
7311         * malloc/malloc.c (do_set_trim_threshold): Likewise.
7312         (do_set_top_pad): Likewise.
7313         (do_set_mmap_threshold): Likewise.
7314         (do_set_mmaps_max): Likewise.
7315         (do_set_mallopt_check): Likewise.
7316         (do_set_perturb_byte): Likewise.
7317         (do_set_arena_test): Likewise.
7318         (do_set_arena_max): Likewise.
7319         (do_set_tcache_max): Likewise.
7320         (do_set_tcache_count): Likewise.
7321         (do_set_tcache_unsorted_limit): Likewise.
7322         * nis/nis_subr.c (count_dots): Likewise.
7323         * nptl/allocatestack.c (advise_stack_range): Likewise.
7324         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
7325         (do_sin): Likewise.
7326         (reduce_sincos): Likewise.
7327         (do_sincos): Likewise.
7328         * sysdeps/unix/sysv/linux/x86/elision-conf.c
7329         (do_set_elision_enable): Likewise.
7330         (TUNABLE_CALLBACK_FNDECL): Likewise.
7332 2019-02-06  Florian Weimer  <fweimer@redhat.com>
7334         * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
7335         (xdlsym): Use dlerror to detect a NULL symbol.
7337 2019-02-06  Florian Weimer  <fweimer@redhat.com>
7339         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
7340         <stap-probe.h>.
7341         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
7343 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
7345         * libio/tst-bz24153.c (wide): Use wide char format specifier.
7347 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
7349         * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
7350         __wmemcmp and weak alias to wmemcmp.
7352 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
7354         [BZ #23403]
7355         * nptl/allocatestack.c (allocate_stack): Align pointer pd for
7356         TLS_TCB_AT_TP tls variant.
7357         * nptl/tst-tls1.c: Migrate to support/test-driver.c.
7358         Add alignment checks.
7359         * support/Makefile (libsupport-routines): Add xposix_memalign and
7360         xpthread_setstack.
7361         * support/support.h: Add xposix_memalign.
7362         * support/xthread.h: Add xpthread_attr_setstack.
7363         * support/xposix_memalign.c: New File.
7364         * support/xpthread_attr_setstack.c: Likewise.
7366 2019-02-05  Florian Weimer  <fweimer@redhat.com>
7368         [BZ #24164]
7369         arm: Use "nr" constraint for Systemtap probes, to avoid the
7370         compiler using memory operands for constants, due to the "o"
7371         alternative in the default "nor" constraint.
7372         * include/stap-probe.h [USE_STAP_PROBE]: Include
7373         <stap-probe-machine.h>
7374         * sysdeps/generic/stap-probe-machine.h: New file.
7375         * sysdeps/arm/stap-probe-machine.h: Likewise.
7377 2019-02-04  Joseph Myers  <joseph@codesourcery.com>
7379         * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
7380         with 0, not tcache->entries[tc_idx].
7382         * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
7383         once.
7385 2019-02-04  Andreas Schwab  <schwab@suse.de>
7387         [BZ #16976]
7388         [BZ #17396]
7389         * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
7390         looking up collating elements match against (wide) character
7391         sequence instead of name.  Correct alignment adjustment.
7392         * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
7393         (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
7394         * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
7395         (LOCALES): Add cs_CZ.ISO-8859-2.
7396         * posix/tst-fnmatch4.c: New file.
7397         * posix/tst-fnmatch5.c: New file.
7398         * include/wchar.h (__wmemcmp): Declare.
7399         * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
7400         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
7401         * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
7402         * sysdeps/s390/wmemcmp.c: Likewise.
7404 2019-02-04  H.J. Lu  <hongjiu.lu@intel.com>
7406         [BZ #24155]
7407         CVE-2019-7309
7408         * NEWS: Updated for CVE-2019-7309.
7409         * sysdeps/x86_64/memcmp.S: Use RDX_LP for size.  Clear the
7410         upper 32 bits of RDX register for x32.  Use unsigned Jcc
7411         instructions, instead of signed.
7412         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
7413         * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
7415 2019-02-04  Florian Weimer  <fweimer@redhat.com>
7417         * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
7418         (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
7419         (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
7420         Likewise.
7421         (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
7422         (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
7423         (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
7424         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
7425         Likewise.
7426         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
7427         Likewise.
7428         (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
7429         Likewise.
7430         (posix_spawn_file_actions_addopen): Likewise.
7431         (posix_spawn_file_actions_addclose): Likewise.
7432         (posix_spawn_file_actions_adddup2): Likewise.
7433         (posix_spawn_file_actions_addchdir_np): Likewise.  Add __restrict
7434         qualifiers.
7435         (posix_spawn_file_actions_addfchdir_np): Likewise.
7437 2019-02-04  David Newall  <glibc@davidnewall.com>
7439         elf: Implement --preload option for the dynamic linker.
7440         * elf/rtld.c (preloadarg): New variable.
7441         (handle_preload_list): Pass through â€œwhere” argument to
7442         do_preload.
7443         (dl_main): Handle "--preload" and add second call to
7444         handle_preload_list.
7445         * elf/Makefile (tests-special): Add tst-rtld-preload.out.
7446         (tst-rtld-preload-OBJS): Set variable.
7447         (tst-rtld-preload.out): New target.
7448         * elf/tst-rtld-preload.sh: New file.
7450 2019-02-04  Matthew Malcomson  <matthew.malcomson@arm.com>
7452         * Makefile (testrun.sh): Exit in case of incorrect argument.
7454 2019-02-04  Florian Weimer  <fweimer@redhat.com>
7456         * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
7457         alignment gaps.
7459 2019-02-03  Florian Weimer  <fweimer@redhat.com>
7461         * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
7462         implicit overflow checks.
7464 2019-02-03  Aurelien Jarno  <aurelien@aurel32.net>
7466         * stdlib/isomac.c: Include <unistd.h>.
7468 2019-02-03  Florian Weimer  <fweimer@redhat.com>
7470         * include/time.h (__tzfile_default): Use int, not long int, for
7471         the GMT offsets.
7472         * time/tzfile.c (struct ttinfo): Change type of the offset member
7473         to int.
7474         (__tzfile_read): Remove useless cast.
7475         (__tzfile_default): Adjust prototype.
7476         * time/tzset.c (tz_rule): Change type of the offset member to int.
7477         (parse_offset): Change the type of the sign variable to int.
7479 2019-02-03  Florian Weimer  <fweimer@redhat.com>
7481         [BZ #24153]
7482         * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
7483         * libio/getchar.c (getchar): Likewise.
7484         * libio/getchar_u.c (getchar_unlocked): Likewise.
7485         * libio/getwchar.c (getwchar): Likewise.
7486         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7487         * libio/iogets.c (_IO_gets): Likewise.
7488         * libio/vscanf.c (_IO_vscanf): Likewise.
7489         * libio/vwscanf.c (__vwscanf): Likewise.
7490         * libio/tst-bz24153.c: New file.
7491         * libio/Makefile (tests): Add it.
7493 2019-02-02  Florian Weimer  <fweimer@redhat.com>
7495         [BZ #14829]
7496         * manual/resource.texi (Basic Scheduling Functions): Add
7497         portability note.  Change process to task throughout the section.
7498         Remove incorrect comment about sched_yield as it affects
7499         tasks/threads, not entire processes.
7500         * sysdeps/unix/sysv/linux/bits/posix_opt.h
7501         (_POSIX_PRIORITY_SCHEDULING): Update comment.
7503 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
7505         * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
7506         * configure: Regenerated.
7507         * manual/install.texi (Tools for Compilation): Update minimum GCC
7508         version.
7509         * INSTALL: Regenerated.
7511 2019-02-01  Florian Weimer  <fweimer@redhat.com>
7513         * support/support_test_compare_string.c
7514         (support_test_compare_string): Use "string" in error message.
7515         * support/tst-test_compare_string.c (do_test): Adjust.
7517 2019-02-01  Florian Weimer  <fweimer@redhat.com>
7519         * support/support_format_address_family.c
7520         (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
7522 2019-02-01  Florian Weimer  <fweimer@redhat.com>
7524         * manual/socket.texi (Internet Address Formats): Clarify the byte
7525         order of struct sockaddr_in, struct sockaddr_in6.  Document
7526         sin6_flowinfo and sin6_scope_id.
7528 2019-02-01  Wilco Dijkstra  <wdijkstr@arm.com>
7530         * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
7531         * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
7532         * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
7533         * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
7534         * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
7535         * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
7537 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
7539         * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
7540         [!MEMCHR](MEMCHR): Set to __memchr.
7541         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
7542         Add memchr_generic and memchr_nosimd.
7543         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7544         (__libc_ifunc_impl_list): Add memchr ifuncs.
7545         * sysdeps/aarch64/multiarch/memchr.c: New file.
7546         * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
7547         * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
7549 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
7551         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
7552         Add memset_emag.
7553         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7554         (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
7555         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
7556         Add IS_EMAG check for ifunc dispatch.
7557         * sysdeps/aarch64/multiarch/memset_base64.S: New file.
7558         * sysdeps/aarch64/multiarch/memset_emag.S: New file.
7560 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
7562         * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
7563         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7564         Add emag.
7565         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
7566         New macro.
7568 2019-02-01  Stefan Liebler  <stli@linux.ibm.com>
7570         * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
7572 2019-01-31  Vineet Gupta  <vgupta@synopsys.com>
7574         * sysdeps/unix/make-syscalls.sh: Fix comment referencing
7575         syscall-template file.
7577 2019-01-31  Carlos O'Donell  <carlos@redhat.com>
7578             Torvald Riegel  <triegel@redhat.com>
7579             Rik Prohaska  <prohaska7@gmail.com>
7581         [BZ# 23844]
7582         * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
7583         tst-rwlock-trywrlock-stall.
7584         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
7585         Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
7586         * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
7587         Set __wrphase_fute to 1 only if we started the write phase.
7588         * nptl/tst-rwlock-tryrdlock-stall.c: New file.
7589         * nptl/tst-rwlock-trywrlock-stall.c: New file.
7590         * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
7591         * support/xpthread_rwlock_destroy.c: New file.
7592         * support/xthread.h: Declare xpthread_rwlock_destroy.
7594 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
7596         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
7597         version to 4.0.2.
7599 2019-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
7601         [BZ #24051]
7602         * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
7603         * libio/fileops.c (_IO_new_file_underflow): Likewise
7604         * libio/wfileops.c (_IO_wfile_underflow): Likewise
7605         * libio/putchar.c (putchar): Likewise.
7606         * libio/putchar_u.c (putchar_unlocked): Likewise.
7607         * libio/putwchar.c (putchar): Likewise.
7608         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
7609         * libio/tst-bz24051.c: New test.
7610         * libio/Makefile (tests): Add tst-bz24051
7612 2019-01-31  Paul Eggert  <eggert@cs.ucla.edu>
7614         CVE-2019-9169
7615         regex: fix read overrun [BZ #24114]
7616         Problem found by AddressSanitizer, reported by Hongxu Chen in:
7617         https://debbugs.gnu.org/34140
7618         * posix/regexec.c (proceed_next_node):
7619         Do not read past end of input buffer.
7621 2019-01-31  Florian Weimer  <fweimer@redhat.com>
7623         [BZ #24059]
7624         * nss/nss_files/files-alias.c (get_next_alias): Handle
7625         continuation line without newline at the end.
7626         * nss/tst-nss-files-alias-truncated.c: New file.
7627         * nss/Makefile [$(build-shared)] (tests): Add
7628         tst-nss-files-alias-truncated.
7629         (tst-nss-files-alias-truncated): Link with libnss_files.so.
7630         * support/namespace.h (struct support_chroot_configuration): Add
7631         aliases member.
7632         (struct support_chroot): Add path_aliases member.
7633         * support/support_chroot.c (support_chroot_create): Handle
7634         aliases.
7635         (support_chroot_free): Free path_aliases.
7637 2019-01-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7639         * version.h (RELEASE): Set to "development".
7640         (VERSION): Set to "2.29.9000".
7641         * NEWS: Add section for 2.30.
7643         * version.h (RELEASE): Set to "stable".
7644         (VERSION): Set to "2.29".
7645         * include/features.h (__GLIBC_MINOR__): Set to 2.29.
7647         * NEWS: Add the list of bugs fixed in 2.29.
7648         * manual/contrib.texi: Update contributors list with some more
7649         names.
7650         * manual/install.texi: Update latest versions of packages
7651         tested.
7652         * INSTALL: Regenerated.
7654 2019-01-25  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7656         * po/be.po: Update translations.
7657         * po/bg.po: Likewise.
7658         * po/ca.po: Likewise.
7659         * po/cs.po: Likewise.
7660         * po/da.po: Likewise.
7661         * po/de.po: Likewise.
7662         * po/el.po: Likewise.
7663         * po/eo.po: Likewise.
7664         * po/es.po: Likewise.
7665         * po/fi.po: Likewise.
7666         * po/fr.po: Likewise.
7667         * po/gl.po: Likewise.
7668         * po/hr.po: Likewise.
7669         * po/hu.po: Likewise.
7670         * po/ia.po: Likewise.
7671         * po/id.po: Likewise.
7672         * po/it.po: Likewise.
7673         * po/ja.po: Likewise.
7674         * po/ko.po: Likewise.
7675         * po/lt.po: Likewise.
7676         * po/nb.po: Likewise.
7677         * po/nl.po: Likewise.
7678         * po/pl.po: Likewise.
7679         * po/pt_BR.po: Likewise.
7680         * po/ru.po: Likewise.
7681         * po/rw.po: Likewise.
7682         * po/sk.po: Likewise.
7683         * po/sl.po: Likewise.
7684         * po/sv.po: Likewise.
7685         * po/tr.po: Likewise.
7686         * po/uk.po: Likewise.
7687         * po/vi.po: Likewise.
7688         * po/zh_CN.po: Likewise.
7689         * po/zh_TW.po: Likewise.
7691 2019-01-24  UroĆĄ Bizjak  <ubizjak@gmail.com>
7693         [BZ #24130]
7694         * sysdeps/alpha/remqu.S (__remqu): Add missing restore
7695         of $f3 register on $y_is_neg path.
7697 2019-01-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7699         [BZ #24110]
7700         * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
7701         sigaltstack.ss_flags.
7703 2019-01-24  TAMUKI Shoichi  <tamuki@linet.gr.jp>
7705         [BZ #23758]
7706         * manual/time.texi (strftime): Document "%Ey".
7707         * time/strftime_l.c (__strftime_internal): Set the default width
7708         padding with zero of "%Ey" to 2.
7710         [BZ #24096]
7711         * manual/time.texi (strftime): Document "%EC" and "%EY".
7712         * time/Makefile (tests): Add tst-strftime2.
7713         (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
7714         * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
7715         override padding for "%Ey".
7716         If an optional flag ('_' or '-') is specified to "%EY", interpret the
7717         "%Ey" in the subformat as if decorated with that flag.
7718         * time/tst-strftime2.c: New file.
7720 2019-01-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7722         * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
7723         are not defined.
7725         [BZ #24122]
7726         * elf/Makefile (tests): Add tst-audit13.
7727         (modules-names): Add tst-audit13mod1.
7728         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7729         rule.
7730         * elf/rtld.c (dl_main): Handle invalid audit module version.
7731         * elf/tst-audit13.c: New file.
7732         * elf/tst-audit13mod1.c: Likewise.
7734 2019-01-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7736         * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
7737         returned by __hurd_at_flags.
7738         * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
7739         AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
7740         directly instead of __hurd_file_name_lookup.
7742 2019-01-21  Joseph Myers  <joseph@codesourcery.com>
7744         * scripts/build-many-glibcs.py (Context.checkout): Default
7745         binutils version to 2.32 branch.
7747 2019-01-21  Florian Weimer  <fweimer@redhat.com>
7749         [BZ #20018]
7750         CVE-2016-10739
7751         resolv: Reject trailing characters in host names
7752         * include/arpa/inet.h (__inet_aton_exact): Declare.
7753         (inet_aton): Remove hidden prototype.  No longer used internally.
7754         * nscd/gai.c (__inet_aton): Do not define.
7755         * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
7756         * nss/digits_dots.c (__inet_aton): Likewise.
7757         (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
7758         * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
7759         (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
7760         (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
7761         (tst-resolv-trailing): Likewise.
7762         * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
7763         libc.
7764         * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
7765         Make static.  Add endp parameter.
7766         (__inet_aton_exact): New function.
7767         (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
7768         (__inet_addr): Call inet_aton_end.
7769         * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
7770         not just IPv6.  Call __inet_aton_exact.
7771         * resolv/tst-aton.c: Switch to <support/test-driver.c>.
7772         (tests): Make const.  Add additional test cases with trailing
7773         characters.
7774         (do_test): Use array_length.
7775         * resolv/tst-inet_aton_exact.c: New file.
7776         * resolv/tst-resolv-trailing.c: Likewise.
7777         * resolv/tst-resolv-nondecimal.c: Likewise.
7778         * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
7780 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
7782         [BZ# 24097]
7783         CVE-2019-6488
7784         * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
7785         Clear the upper 32 bits of RSI register.
7786         * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
7787         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
7788         and tst-size_t-wcsnlen.
7789         * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
7790         * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
7792 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
7794         [BZ# 24097]
7795         CVE-2019-6488
7796         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
7797         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
7798         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
7799         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
7800         * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
7802 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
7804         [BZ# 24097]
7805         CVE-2019-6488
7806         * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
7807         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7808         * sysdeps/x86_64/strcmp.S: Likewise.
7809         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
7810         tst-size_t-strncmp and tst-size_t-wcsncmp.
7811         * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
7812         * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
7813         * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
7815 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
7817         [BZ# 24097]
7818         CVE-2019-6488
7819         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
7820         RDX_LP for length.  Clear the upper 32 bits of RDX register.
7821         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
7822         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
7823         * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
7824         * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
7826 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
7828         [BZ# 24097]
7829         CVE-2019-6488
7830         * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
7831         * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
7832         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
7833         * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
7835 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
7837         [BZ# 24097]
7838         CVE-2019-6488
7839         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
7840         length.  Clear the upper 32 bits of RDX register.
7841         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7842         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7843         Likewise.
7844         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7845         Likewise.
7846         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
7847         tst-size_t-wmemchr.
7848         * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
7850 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
7852         [BZ# 24097]
7853         CVE-2019-6488
7854         * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
7855         length.  Clear the upper 32 bits of RDX register.
7856         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
7857         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
7858         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
7859         tst-size_t-wmemcmp.
7860         * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
7861         * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
7863 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
7865         [BZ# 24097]
7866         CVE-2019-6488
7867         * sysdeps/x86_64/memchr.S: Use RDX_LP for length.  Clear the
7868         upper 32 bits of RDX register.
7869         * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
7870         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
7871         tst-size_t-wmemchr.
7872         * sysdeps/x86_64/x32/test-size_t.h: New file.
7873         * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
7874         * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
7876 2019-01-18  Florian Weimer  <fweimer@redhat.com>
7878         [BZ #24112]
7879         resolv: Do not send queries for non-host-names in nss_dns.
7880         * resolv/nss_dns/dns-host.c (check_name): New function.
7881         (_nss_dns_gethostbyname2_r): Use it.
7882         (_nss_dns_gethostbyname_r): Likewise.
7883         (_nss_dns_gethostbyname4_r): Likewise.
7885 2019-01-21  Florian Weimer  <fweimer@redhat.com>
7887         * resolv/inet_addr.c: Reformat to GNU style.
7888         (__inet_addr, __inet_aton): Update comment.
7890 2019-01-18  Florian Weimer  <fweimer@redhat.com>
7892         malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
7893         ("malloc: Use current (C11-style) atomics for fastbin access").
7894         This commit introduces a substantial performance regression on
7895         POWER and Aarch64.
7896         * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
7897         (REMOVE_FB): Define.
7898         (_int_malloc): Use it and reindent.
7899         (_int_free): Use CAS loop with
7900         catomic_compare_and_exchange_val_rel.
7901         (malloc_consolidate): Use atomic_exchange_acq.
7904 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
7906         * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New.  Set to
7907         -Wl,-z,now.
7908         (LDFLAGS-tst-minsigstksz-2): Likewise.
7909         (LDFLAGS-tst-minsigstksz-3): Likewise.
7910         (LDFLAGS-tst-minsigstksz-3a): Likewise.
7911         (LDFLAGS-tst-minsigstksz-4): Likewise.
7913 2019-01-18  TAMUKI Shoichi  <tamuki@linet.gr.jp>
7915         * manual/time.texi (strftime): Fix the wording to "alternative" rather
7916         than "alternate".
7918 2019-01-16  Paul A. Clarke  <pc@us.ibm.com>
7920         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
7922 2019-01-16  Zack Weinberg  <zackw@panix.com>
7924         * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7925         (xget_sigstack_location): New test support functions.
7926         * support/xsigstack.c: New file, implementing them.
7927         * support/tst-xsigstack.c: New test for them.
7928         * support/Makefile: Update.
7930         * signal/tst-minsigstksz-1.c
7931         * signal/tst-minsigstksz-2.c
7932         * signal/tst-minsigstksz-3.c
7933         * signal/tst-minsigstksz-3a.c
7934         * signal/tst-minsigstksz-4.c: New tests.
7935         * signal/Makefile: Run them.
7937 2019-01-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7939         * po/libc.pot: Regenerate.
7941 2019-01-15  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
7943         * math/libm-test-fma.inc (fma_test_data): Set
7944         XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7946 2019-01-15  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
7948         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7949         (do_test): Changed __vector __int128_t to __vector unsigned int.
7951 2019-01-14  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
7953         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7954         strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7955         stpcpy-avx2 and stpncpy-avx2.
7956         * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7957         (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7958         __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7959         and __stpncpy_avx2.
7960         * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7961         ifunc-strcpy.h}: rename header for a more generic name.
7962         * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7963         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7964         AVX unaligned load is fast and vzeroupper is preferred.
7965         * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7966         * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7967         * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7968         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7969         * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7970         * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7972 2019-01-12  Dmitry V. Levin  <ldv@altlinux.org>
7974         * argp/argp-help.c: Fix typo in comment.
7975         * misc/sys/cdefs.h: Likewise.
7976         * posix/regexec.c (sift_states_iter_mb): Likewise.
7977         * socket/sockatmark.c: Likewise.
7978         * socket/sys/socket.h: Likewise.
7979         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7980         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7981         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7982         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7983         * sysdeps/unix/sockatmark.c: Likewise.
7984         * time/strptime_l.c: Likewise.
7986 2019-01-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
7988         * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7989         missing space after the cast of "_NL_CURRENT".
7991 2019-01-11  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
7993         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7994         ifdef to fix read of VSCR.
7995         * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7996         tst-ucontext-ppc64-vscr.c to test list.
7997         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7999 2019-01-10  Andreas K. HĂŒttel  <dilfridge@gentoo.org>
8001         * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
8002         fall-through.
8004 2019-01-09  Jim Wilson  <jimw@sifive.com>
8006         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8008 2019-01-09  Wilco Dijkstra  <wdijkstr@arm.com>
8010         * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
8011         * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
8012         __memcpy_falkor for ares.
8013         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
8014         Add new define.
8015         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
8016         Add ares cpu.
8018 2019-01-07  H.J. Lu  <hongjiu.lu@intel.com>
8020         [BZ #24066]
8021         * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
8022         4_FP_W_TYPEs are used for IEEE quad precision.
8023         * soft-fp/extendhftf2.c: Likewise.
8024         * soft-fp/extendsftf2.c: Likewise.
8025         * soft-fp/extendxftf2.c: Likewise.
8026         * soft-fp/trunctfdf2.c: Likewise.
8027         * soft-fp/trunctfhf2.c: Likewise.
8028         * soft-fp/trunctfsf2.c: Likewise.
8029         * soft-fp/trunctfxf2.c: Likewise.
8030         * sysdeps/alpha/ots_cvttx.c: Likewise.
8031         * sysdeps/alpha/ots_cvtxt.c: Likewise.
8032         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
8033         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
8034         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
8035         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
8036         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
8037         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
8038         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
8039         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
8040         * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
8041         * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
8042         * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
8043         * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
8044         * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
8045         * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
8046         * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
8047         * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
8049 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
8051         [BZ #24024]
8052         * Makeconfig: Build libm with -fno-math-errno but build the remaining
8053         code with -fmath-errno.
8054         * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
8055         [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
8056         * string/test-strerror-errno.c: New file.
8058 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
8060         [BZ #24046]
8061         * localedata/locales/en_US (date_fmt): Add, set to
8062         "%a %d %b %Y %r %Z".
8064 2019-01-07  Florian Weimer  <fweimer@redhat.com>
8066         [BZ #24063]
8067         * manual/arith.texi (Math Error Reporting): Use @code{errno}
8068         instead of @var{errno}.
8069         (Parsing of Integers): Likewise.
8070         (Parsing of Floats): Likewise.
8071         * manual/filesys.texi (Working with Directory Trees): Likewise.
8072         (Temporary Files): Likewise.
8073         * manual/job.texi (Terminal Access Functions): Likewise.
8074         * manual/llio.texi (Synchronizing I/O): Likewise.
8075         * manual/math.texi (SVID Random): Likewise.
8076         * manual/message.texi (The catgets Functions): Likewise.
8077         (Translation with gettext): Likewise.
8078         (Locating gettext catalog): Likewise.
8079         (Charset conversion in gettext): Likewise.
8080         * manual/nss.texi (NSS Module Function Internals): Likewise.
8081         * manual/search.texi (Hash Search Function): Likewise.
8082         * manual/setjmp.texi (System V contexts): Likewise.
8083         * manual/time.texi (Sleeping): Likewise.
8084         * manual/users.texi (Lookup User): Likewise.
8085         (Lookup Group): Likewise.
8087 2019-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8089         * posix/tst-spawn.c (do_test): Extend spargv to new required size and
8090         fix typo.
8092 2019-01-04  Martin Jansa  <Martin.Jansa@gmail.com>
8094         [BZ #19444]
8095         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
8096         __builtin_unreachable for default case in switch.
8097         (__ieee754_yn): Likewise.
8098         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8099         (__ieee754_ynl): Likewise.
8100         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8101         (__ieee754_ynl): Likewise.
8102         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8103         (__ieee754_ynl): Likewise.
8105 2019-01-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8107         * manual/maint.texi: Use @{ and @}.
8109 2019-01-04  Florian Weimer  <fweimer@redhat.com>
8111         * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
8112         function.
8113         (do_in_chroot_1): Call it.
8114         (run_chroot_tests):
8115         Improve error reporting in case it is not possible to create a
8116         collision for the PTY name required by the test.
8118 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8120         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
8121         lll_wait_tid with timeout.
8122         * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
8123         * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
8124         futex_reltimed_wait_cancelable for cancelabla mode.
8125         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
8126         * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
8127         macros.
8128         * sysdeps/posix/sigwait.c (__sigwait): Likewise.
8129         * sysdeps/posix/waitid.c (__sigwait): Likewise.
8130         * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
8131         SYSCALL_CANCEL_NCS): New macro.
8132         * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
8133         (lll_timedwait_tid): Remove macro.
8134         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
8135         Likewise.
8136         (lll_timedwait_tid): Likewise.
8137         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
8138         Likewise.
8139         (lll_timedwait_tid): Likewise.
8140         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
8141         Likewise.
8142         (lll_timedwait_tid): Likewise.
8143         * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
8144         Use INTERNAL_SYSCALL_CANCEL.
8145         * sysdeps/unix/sysv/linux/futex-internal.h
8146         (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
8147         instead of __pthread_{enable,disable}_asynccancel.
8148         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
8149         (lll_futex_wait_cancel): New macro.
8151         * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
8152         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
8154         * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
8155         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
8157         * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
8158         in backtrace analysis.
8159         * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
8160         side-effects.
8161         (tf_send): Likewise.
8163         * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
8164         * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
8165         * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
8166         * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
8167         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
8168         * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
8169         * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
8170         * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
8171         * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
8172         * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
8173         * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
8174         * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
8175         Likewise.
8176         * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
8177         tst-cancel-wrappers.sh.
8178         (generated): Remove tst-cancel-wrappers.out.
8179         (tst-cancel-wrappers.out): Remove rule.
8180         * nptl/tst-cancel-wrappers.sh: Remove file.
8182 2019-01-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8184         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
8185         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
8186         Update.
8188 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8190         [BZ #23640]
8191         * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
8192         posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
8193         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
8194         close-on-exec reset for adddup2 file action.
8195         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8197 2019-01-03  Zack Weinberg  <zackw@panix.com>
8199         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
8200         parameter.  Only use deprecated scanf when __USE_GNU is defined
8201         and __STDC_VERSION__ is less than 199901L or __cplusplus is less
8202         than 201103L, whichever is relevant for the language being compiled.
8204         * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
8205         scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
8206         __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
8207         * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
8208         wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
8210         * libio/iovsscanf.c
8211         * libio/fwscanf.c
8212         * libio/iovswscanf.c
8213         * libio/swscanf.c
8214         * libio/vscanf.c
8215         * libio/vwscanf.c
8216         * libio/wscanf.c
8217         * stdio-common/fscanf.c
8218         * stdio-common/scanf.c
8219         * stdio-common/vfscanf.c
8220         * stdio-common/vfwscanf.c
8221         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8222         * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
8223         * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
8224         * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
8225         * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
8226         * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
8227         * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
8228         * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
8229         * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
8230         * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
8231         * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
8232         * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
8233         * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
8234         * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
8235         Override __GLIBC_USE_DEPRECATED_SCANF to 1.
8237         * stdio-common/sscanf.c: Likewise.  Remove ldbl_hidden_def for __sscanf.
8238         * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
8239         * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
8240         not sscanf.
8241         [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
8242         with a preprocessor macro.
8244         * stdio-common/bug21.c, stdio-common/scanf14.c:
8245         Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
8246         remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
8247         * stdio-common/scanf16.c: Likewise.  Add __attribute__ ((format (scanf)))
8248         to xscanf, xfscanf, xsscanf.
8250         * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
8251         %as, %aS, %a[].  Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
8252         * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
8253         %as, %aS, %a[].  Add __attribute__ ((format (scanf))) to xscanf,
8254         xfscanf, xsscanf.
8255         * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
8256         override feature selection macros or provide definitions of u_char etc.
8257         * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
8258         (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
8259         (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New.  Compile these files
8260         with -std=gnu89.
8262 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8264         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8265         bits/termios-misc.h.
8266         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
8267         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8268         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8269         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8270         * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
8271         * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
8273         * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
8274         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
8275         (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
8276         TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
8277         TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
8278         _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
8279         termios-misc.h.
8280         * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
8281         (sysdep_headers): Add termios-misc.h.
8283         * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
8284         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8285         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8287         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8288         termios-tcflow.h.
8289         * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
8290         * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
8291         * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
8292         TCSAFLUSH): Move to termios-tcflow.h.
8293         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8294         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8295         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8296         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8298         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8299         termios-c_lflag.h.
8300         * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
8301         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
8302         * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
8303         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
8304         * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
8305         ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
8306         [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
8307         [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
8308         Likewise.
8309         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8310         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8311         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8312         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8314         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8315         termios-c_cflag.h.
8316         * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
8317         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
8318         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
8319         * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
8320         CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
8321         termios-c_cflag.h.
8322         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8323         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8324         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8325         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8327         [BZ #23783]
8328         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8329         termios-baud.h.
8330         * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
8331         * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
8332         * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
8333         * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
8334         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
8335         B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
8336         B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
8337         __MAX_BAUD): Move to termios-baud.h.
8338         [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
8339         * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
8340         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8341         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8342         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8344         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
8345         termios-c_oflag.h.
8346         * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
8347         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
8348         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
8349         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
8350         * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
8351         ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1):  Move to
8352         termios-c_oflag.h.
8353         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
8354         CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
8355         FFR1): Likewise.
8356         [USE_MISC] (XTABS): Likewise.
8357         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8358         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8359         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8360         * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
8362         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
8363         termios-c_iflag.h.
8364         * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
8365         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
8366         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
8367         * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
8368         INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
8369         IUTF8): Move to termios-c_iflag.h.
8370         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8371         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8372         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8373         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8375         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
8376         termios-cc.h.
8377         * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
8378         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
8379         * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
8380         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
8381         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
8382         * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
8383         VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
8384         VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
8385         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8386         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8387         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8388         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8390         * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
8391         * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
8392         * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
8393         * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
8394         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8395         termios-struct.h.
8396         * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
8397         termios-struct.h.
8398         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
8399         Likewise.
8400         * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
8401         Likewise.
8402         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
8403         Likewise.
8404         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
8405         Likewise.
8406         * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
8407         _HAVE_C_OSPEED): Define.
8408         * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
8409         _HAVE_C_OSPEED): Likewise.
8410         * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
8411         _HAVE_C_OSPEED): Likewise.
8412         * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
8413         (cfsetospeed): Check for define value instead of existence.
8414         [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
8415         * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
8416         && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
8417         * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
8418         && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
8420         [BZ #17783]
8421         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
8422         Define.
8423         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
8424         (TIOCSER_TEMT): Likewise.
8425         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
8426         (TEOCSER_TEMT): Likewise.
8428 2019-01-02  PanderMusubi  <pander@users.sourceforge.net>
8430         [BZ #24011]
8431         * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
8433 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
8435         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8437 2019-01-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8439         * sysdeps/htl/pt-barrierattr-setpshared.c
8440         (pthread_barrierattr_setpshared): Add stub warning.
8441         * sysdeps/htl/pt-condattr-setpshared.c
8442         (pthread_condattr_setpshared): Likewise.
8443         * sysdeps/htl/pt-mutexattr-setpshared.c
8444         (pthread_mutexattr_setpshared): Likewise.
8445         * sysdeps/htl/pt-rwlockattr-setpshared.c
8446         (pthread_rwlockattr_setpshared): Likewise.
8447         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
8448         (pthread_mutexattr_setpshared): Likewise.
8450 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
8452         * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
8453         constants to match with Linux 4.20.
8455         * sysdeps/mips/mips32/libm-test-ulps: Update.
8456         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
8458 2019-01-02  Aurelien Jarno  <aurelien@aurel32.net>
8460         [BZ #24034]
8461         * sysdeps/unix/sysv/linux/arm/atomic-machine.h
8462         (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
8463         than __typeof (...) for the a_ptr variable.
8465 2019-01-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8467         * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
8468         * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
8469         * libio/Makefile (tests): Add tst-sprintf-ub and
8470         tst-sprintf-chk-ub.
8471         (CFLAGS-tst-sprintf-ub.c): New variable.
8472         (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
8473         * libio/iovsprintf.c (__vsprintf_internal): Only erase the
8474         destination buffer and check for overflows in fortified mode.
8475         * libio/libioP.h (PRINTF_CHK): New macro.
8476         * libio/tst-sprintf-chk-ub.c: New file.
8477         * libio/tst-sprintf-ub.c: Likewise.
8479 2019-01-02  Florian Weimer  <fweimer@redhat.com>
8481         [BZ #24018]
8482         * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
8483         failure.
8485 2019-01-02  Florian Weimer  <fweimer@redhat.com>
8487         * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
8489 2019-01-01  Joseph Myers  <joseph@codesourcery.com>
8491         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
8492         macro.
8494         * sysdeps/unix/sysv/linux/netpacket/packet.h
8495         (PACKET_IGNORE_OUTGOING): New macro.
8497         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
8498         macro.
8500         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8501         version to 4.20.
8502         (riscv_flush_icache): New syscall.
8504         * manual/texinfo.tex: Update to version 2018-12-28.17 with
8505         trailing whitespace removed.
8506         * scripts/config.guess: Update to version 2019-01-01.
8507         * scripts/config.sub: Update to version 2019-01-01.
8508         * scripts/move-if-change: Update from gnulib.
8510         * NEWS: Update copyright dates.
8511         * catgets/gencat.c (print_version): Likewise.
8512         * csu/version.c (banner): Likewise.
8513         * debug/catchsegv.sh: Likewise.
8514         * debug/pcprofiledump.c (print_version): Likewise.
8515         * debug/xtrace.sh (do_version): Likewise.
8516         * elf/ldconfig.c (print_version): Likewise.
8517         * elf/ldd.bash.in: Likewise.
8518         * elf/pldd.c (print_version): Likewise.
8519         * elf/sotruss.sh: Likewise.
8520         * elf/sprof.c (print_version): Likewise.
8521         * iconv/iconv_prog.c (print_version): Likewise.
8522         * iconv/iconvconfig.c (print_version): Likewise.
8523         * locale/programs/locale.c (print_version): Likewise.
8524         * locale/programs/localedef.c (print_version): Likewise.
8525         * login/programs/pt_chown.c (print_version): Likewise.
8526         * malloc/memusage.sh (do_version): Likewise.
8527         * malloc/memusagestat.c (print_version): Likewise.
8528         * malloc/mtrace.pl: Likewise.
8529         * manual/libc.texinfo: Likewise.
8530         * nptl/version.c (banner): Likewise.
8531         * nscd/nscd.c (print_version): Likewise.
8532         * nss/getent.c (print_version): Likewise.
8533         * nss/makedb.c (print_version): Likewise.
8534         * posix/getconf.c (main): Likewise.
8535         * scripts/test-installation.pl: Likewise.
8536         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
8538         * All files with FSF copyright notices: Update copyright dates
8539         using scripts/update-copyrights.
8540         * locale/programs/charmap-kw.h: Regenerated.
8541         * locale/programs/locfile-kw.h: Likewise.
8543 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
8545         * timezone/zdump.c: Update from tzcode 2018i.
8546         * timezone/zic.c: Likewise.
8548 2018-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8550         regex: improve Gnulib port to AIX
8551         From the glibc point of view, this removes duplicate macro
8552         definitions and is obviously safe.
8553         From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
8554         * posix/regex_internal.h:
8555         (__attribute__, __attribute_warn_unused_result__):
8556         Remove; already defined elsewhere.
8558 2018-12-31  Florian Weimer  <fw@deneb.enyo.de>
8560         [BZ #24027]
8561         * malloc/malloc.c (_int_realloc): Always call memcpy for the
8562         copying operation.  (ncopies had the wrong type, resulting in an
8563         integer wraparound and too few elements being copied.)
8565 2018-12-31  H.J. Lu  <hongjiu.lu@intel.com>
8567         [BZ #24022]
8568         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
8569         <asm/syscalls.h> exists with __has_include__ before including it.
8571 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
8573         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8574         version to 4.20.
8576 2018-12-28  Justus Winter  <4winter@informatik.uni-hamburg.de>
8578         * hurd/lookup-retry: Include <unistd.h>.
8579         (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
8580         Release it on return.  Handle "pid" magical lookup retry.
8582 2018-12-28  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
8584         [BZ #10496]
8585         * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
8586         (t_fmt_ampm): Likewise.
8587         * localedata/locales/aa_ER (t_fmt): Likewise.
8588         (t_fmt_ampm): Likewise.
8589         * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
8590         (t_fmt_ampm): Likewise.
8591         * localedata/locales/aa_ET (t_fmt): Likewise.
8592         (t_fmt_ampm): Likewise.
8593         * localedata/locales/am_ET (t_fmt): Likewise.
8594         (t_fmt_ampm): Likewise.
8595         * localedata/locales/byn_ER (t_fmt): Likewise.
8596         (t_fmt_ampm): Likewise.
8597         * localedata/locales/om_ET (t_fmt): Likewise.
8598         (t_fmt_ampm): Likewise.
8599         * localedata/locales/sid_ET (t_fmt): Likewise.
8600         (t_fmt_ampm): Likewise.
8601         * localedata/locales/so_DJ (t_fmt): Likewise.
8602         (t_fmt_ampm): Likewise.
8603         * localedata/locales/so_ET (t_fmt): Likewise.
8604         (t_fmt_ampm): Likewise.
8605         * localedata/locales/so_SO (t_fmt): Likewise.
8606         (t_fmt_ampm): Likewise.
8607         * localedata/locales/ti_ER (t_fmt): Likewise.
8608         (t_fmt_ampm): Likewise.
8609         * localedata/locales/ti_ET (t_fmt): Likewise.
8610         (t_fmt_ampm): Likewise.
8611         * localedata/locales/tig_ER (t_fmt): Likewise.
8612         (t_fmt_ampm): Likewise.
8613         * localedata/locales/wal_ET (t_fmt): Likewise.
8614         (t_fmt_ampm): Likewise.
8616         * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
8617         * localedata/locales/ar_IN (t_fmt): Likewise.
8618         * localedata/locales/bhb_IN (t_fmt): Likewise.
8619         * localedata/locales/bho_IN (t_fmt): Likewise.
8620         * localedata/locales/bi_VU (t_fmt): Likewise.
8621         * localedata/locales/bn_BD (t_fmt): Likewise.
8622         * localedata/locales/bn_IN (t_fmt): Likewise.
8623         * localedata/locales/brx_IN (t_fmt): Likewise.
8624         * localedata/locales/doi_IN (t_fmt): Likewise.
8625         * localedata/locales/en_HK (t_fmt): Likewise.
8626         (t_fmt_ampm): Likewise.
8627         * localedata/locales/en_IN (t_fmt): Likewise.
8628         * localedata/locales/en_PH (t_fmt): Likewise.
8629         * localedata/locales/gu_IN (t_fmt): Likewise.
8630         * localedata/locales/hi_IN (t_fmt): Likewise.
8631         * localedata/locales/hif_FJ (t_fmt): Likewise.
8632         * localedata/locales/hne_IN (t_fmt): Likewise.
8633         * localedata/locales/kn_IN (t_fmt): Likewise.
8634         * localedata/locales/kok_IN (t_fmt): Likewise.
8635         * localedata/locales/ks_IN (t_fmt): Likewise.
8636         * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
8637         * localedata/locales/mag_IN (t_fmt): Likewise.
8638         * localedata/locales/mai_IN (t_fmt): Likewise.
8639         * localedata/locales/mjw_IN (t_fmt): Likewise.
8640         * localedata/locales/ml_IN (t_fmt): Likewise.
8641         * localedata/locales/mni_IN (t_fmt): Likewise.
8642         * localedata/locales/mr_IN (t_fmt): Likewise.
8643         * localedata/locales/ms_MY (t_fmt): Likewise.
8644         * localedata/locales/pa_IN (t_fmt): Likewise.
8645         * localedata/locales/raj_IN (t_fmt): Likewise.
8646         * localedata/locales/sa_IN (t_fmt): Likewise.
8647         * localedata/locales/sat_IN (t_fmt): Likewise.
8648         * localedata/locales/sd_IN (t_fmt): Likewise.
8649         * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
8650         * localedata/locales/tcy_IN (t_fmt): Likewise.
8651         * localedata/locales/the_NP (t_fmt): Likewise.
8652         * localedata/locales/to_TO (t_fmt): Likewise.
8653         * localedata/locales/ur_IN (t_fmt): Likewise.
8655         * localedata/locales/hif_FJ (d_t_fmt): Set to
8656         "%A %d %b %Y %I:%M:%S %p".
8657         (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
8659         * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
8660         * localedata/locales/ar_BH (t_fmt): Likewise.
8661         * localedata/locales/ar_DZ (t_fmt): Likewise.
8662         * localedata/locales/ar_EG (t_fmt): Likewise.
8663         * localedata/locales/ar_IQ (t_fmt): Likewise.
8664         * localedata/locales/ar_JO (t_fmt): Likewise.
8665         * localedata/locales/ar_KW (t_fmt): Likewise.
8666         * localedata/locales/ar_LB (t_fmt): Likewise.
8667         * localedata/locales/ar_LY (t_fmt): Likewise.
8668         * localedata/locales/ar_OM (t_fmt): Likewise.
8669         * localedata/locales/ar_QA (t_fmt): Likewise.
8670         * localedata/locales/ar_SD (t_fmt): Likewise.
8671         * localedata/locales/ar_SS (t_fmt): Likewise.
8672         * localedata/locales/ar_SY (t_fmt): Likewise.
8673         * localedata/locales/ar_TN (t_fmt): Likewise.
8674         * localedata/locales/ar_YE (t_fmt): Likewise.
8676         * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
8677         (t_fmt_ampm): Likewise.
8678         * localedata/locales/gez_ET (t_fmt): Likewise.
8679         (t_fmt_ampm): Likewise.
8681         * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
8682         (t_fmt_ampm): Likewise.
8683         (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
8685         * localedata/locales/zh_HK (t_fmt):
8686         Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
8688         * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
8689         because this locale does not use the 12-hour clock.
8690         (t_fmt): Set to "%Z %H:%M:%S".
8691         (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
8693         * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
8694         because this locale does not use the 12-hour clock.
8695         (t_fmt): Set to "%H:%M:%S %Z".
8696         (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
8698         * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
8699         because this locale does not use the 12-hour clock.
8700         (t_fmt): Set to "%T".
8701         (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
8702         (date_fmt): Set to "%A, %B %e, %X %Z %Y".
8704         * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
8705         because this locale does not use the 12-hour clock.
8706         (t_fmt): Set to "%H:%M:%S %Z".
8707         (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
8709         * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
8710         because this locale does not use the 12-hour clock.
8711         * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
8712         * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
8714 2018-12-28  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
8716         [BZ #10496]
8717         [BZ #23724]
8718         * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
8719         (t_fmt_ampm): Likewise.
8720         (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
8721         (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
8722         (d_fmt): Set to "%-d.%-m.%y".
8724 2018-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8726         * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
8727         Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
8728         * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
8729         Likewise.
8730         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
8731         * malloc/reallocarray.c (__libc_reallocarray): Likewise.
8732         * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
8733         function.
8734         * support/blob_repeat.c (check_mul_overflow_size_t,
8735         (minimum_stride_size, support_blob_repeat_allocate): Likewise.
8737 2018-12-28  Aurelien Jarno  <aurelien@aurel32.net>
8739         * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
8741 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8743         regex: simplify Gnulib port
8744         This simplifies the code, by removing stuff intended for porting
8745         to Gnulib but no longer needed there.
8746         * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
8747         uses of libc_hidden_def, weak_alias.
8748         * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
8749         _Restrict_ except for public-facing headers.
8750         * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
8751         Remove; already defined elsewhere.
8752         * posix/regex.c, posix/regex_internal.h:
8753         Use __GNUC_PREREQ instead of rolling our own.
8754         * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
8756 2018-12-27  Wilco Dijkstra  <wdijkstr@arm.com>
8758         * benchtests/bench-strlen.c (generic_strlen): New function.
8759         (memchr_strlen): New function.
8761 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
8763         * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
8764         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
8765         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
8767 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
8769         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8771 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
8773         * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
8774         (sincos_t, sincosf_poly, sinf_poly): Moved to ...
8775         * sysdeps/ieee754/flt-32/sincosf_poly.h: Here.  New file.
8776         * sysdeps/x86/fpu/s_sincosf_data.c: New file.
8777         * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
8778         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
8779         <sysdeps/ieee754/flt-32/s_sincosf.c>.
8781 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
8783         [BZ #24023]
8784         * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
8785         PLT reference in libc.so.
8786         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
8787         _Q_lltoq and _Q_qtod PLT references in libc.so.
8789 2018-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
8791         * benchtests/bench-memchr.c: Cleanup defines.
8792         * benchtests/bench-memcmp.c: Likewise.
8793         * benchtests/bench-memset.c: Likewise.
8794         * benchtests/bench-memset-large.c: Likewise.
8795         * benchtests/bench-memset-walk.c: Likewise.
8796         * benchtests/bench-stpcpy.c: Likewise.
8797         * benchtests/bench-stpncpy.c: Likewise.
8798         * benchtests/bench-strcat.c: Likewise.
8799         * benchtests/bench-strchr.c: Likewise.
8800         * benchtests/bench-strcmp.c: Likewise.
8801         * benchtests/bench-strcpy.c: Likewise.
8802         * benchtests/bench-strcspn.c: Likewise.
8803         * benchtests/bench-string.h: Likewise.
8804         * benchtests/bench-strlen.c: Likewise.
8805         * benchtests/bench-strncat.c: Likewise.
8806         * benchtests/bench-strncmp.c: Likewise.
8807         * benchtests/bench-strncpy.c: Likewise.
8808         * benchtests/bench-strnlen.c: Likewise.
8809         * benchtests/bench-strpbrk.c: Likewise.
8810         * benchtests/bench-strrchr.c: Likewise.
8811         * benchtests/bench-strspn.c: Likewise.
8813 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
8815         * stdlib/longlong.h: Update from GCC.
8817         [BZ #23993]
8818         * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
8819         * configure: Regenerated.
8820         * manual/install.texi (Tools for Compilation): Update minimum GCC
8821         version.
8822         * INSTALL: Regenerated.
8824 2018-12-21  Istvan Kurucsai  <pistukem@gmail.com>
8826         * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
8828 2018-12-20  Istvan Kurucsai  <pistukem@gmail.com>
8830         * malloc/malloc.c (mremap_chunk): Additional checks.
8832 2018-12-21  Mao Han  <han_mao@c-sky.com>
8834         * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
8835         * scripts/build-many-glibcs.py: Add C-SKY targets.
8836         * sysdeps/csky/Implies: New file.
8837         * sysdeps/csky/Makefile: Likewise.
8838         * sysdeps/csky/abiv2/__longjmp.S: Likewise.
8839         * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
8840         * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
8841         * sysdeps/csky/abiv2/memcmp.S: Likewise.
8842         * sysdeps/csky/abiv2/memcpy.S: Likewise.
8843         * sysdeps/csky/abiv2/memmove.S: Likewise.
8844         * sysdeps/csky/abiv2/memset.S: Likewise.
8845         * sysdeps/csky/abiv2/setjmp.S: Likewise.
8846         * sysdeps/csky/abiv2/start.S: Likewise.
8847         * sysdeps/csky/abiv2/strcmp.S: Likewise.
8848         * sysdeps/csky/abiv2/strcpy.S: Likewise.
8849         * sysdeps/csky/abiv2/strlen.S: Likewise.
8850         * sysdeps/csky/abiv2/tls-macros.h: Likewise.
8851         * sysdeps/csky/abort-instr.h: Likewise.
8852         * sysdeps/csky/atomic-machine.h: Likewise.
8853         * sysdeps/csky/bits/endian.h: Likewise.
8854         * sysdeps/csky/bits/fenv.h: Likewise.
8855         * sysdeps/csky/bits/link.h: Likewise.
8856         * sysdeps/csky/bits/setjmp.h: Likewise.
8857         * sysdeps/csky/bsd-_setjmp.S: Likewise.
8858         * sysdeps/csky/bsd-setjmp.S: Likewise.
8859         * sysdeps/csky/configure: Likewise.
8860         * sysdeps/csky/configure.ac: Likewise.
8861         * sysdeps/csky/dl-machine.h: Likewise.
8862         * sysdeps/csky/dl-procinfo.c: Likewise.
8863         * sysdeps/csky/dl-procinfo.h: Likewise.
8864         * sysdeps/csky/dl-sysdep.h: Likewise.
8865         * sysdeps/csky/dl-tls.h: Likewise.
8866         * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
8867         * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
8868         * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
8869         * sysdeps/csky/fpu/fegetenv.c: Likewise.
8870         * sysdeps/csky/fpu/fegetexcept.c: Likewise.
8871         * sysdeps/csky/fpu/fegetmode.c: Likewise.
8872         * sysdeps/csky/fpu/fegetround.c: Likewise.
8873         * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
8874         * sysdeps/csky/fpu/fenv_libc.h: Likewise.
8875         * sysdeps/csky/fpu/fenv_private.h: Likewise.
8876         * sysdeps/csky/fpu/fesetenv.c: Likewise.
8877         * sysdeps/csky/fpu/fesetexcept.c: Likewise.
8878         * sysdeps/csky/fpu/fesetmode.c: Likewise.
8879         * sysdeps/csky/fpu/fesetround.c: Likewise.
8880         * sysdeps/csky/fpu/feupdateenv.c: Likewise.
8881         * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
8882         * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
8883         * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
8884         * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
8885         * sysdeps/csky/fpu/ftestexcept.c: Likewise.
8886         * sysdeps/csky/fpu/libm-test-ulps: Likewise.
8887         * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
8888         * sysdeps/csky/fpu_control.h: Likewise.
8889         * sysdeps/csky/gccframe.h: Likewise.
8890         * sysdeps/csky/jmpbuf-unwind.h: Likewise.
8891         * sysdeps/csky/ldsodefs.h: Likewise.
8892         * sysdeps/csky/libc-tls.c: Likewise.
8893         * sysdeps/csky/linkmap.h: Likewise.
8894         * sysdeps/csky/machine-gmon.h: Likewise.
8895         * sysdeps/csky/memusage.h: Likewise.
8896         * sysdeps/csky/nofpu/Implies: Likewise.
8897         * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
8898         * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
8899         * sysdeps/csky/nptl/Makefile: Likewise.
8900         * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
8901         * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
8902         * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
8903         * sysdeps/csky/nptl/pthreaddef.h: Likewise.
8904         * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
8905         * sysdeps/csky/nptl/tls.h: Likewise.
8906         * sysdeps/csky/preconfigure: Likewise.
8907         * sysdeps/csky/sfp-machine.h: Likewise.
8908         * sysdeps/csky/sotruss-lib.c: Likewise.
8909         * sysdeps/csky/stackinfo.h: Likewise.
8910         * sysdeps/csky/sysdep.h: Likewise.
8911         * sysdeps/csky/tininess.h: Likewise.
8912         * sysdeps/csky/tst-audit.h: Likewise.
8913         * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
8914         * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
8915         * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
8916         * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
8917         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
8918         * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
8919         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
8920         * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
8921         * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
8922         * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8923         * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8924         * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8925         * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8926         * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8927         * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8928         * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8929         * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8930         * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8931         * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8932         * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8933         * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8934         * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8935         * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8936         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8937         * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8938         * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8939         * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8940         * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8941         * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8942         * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8943         * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8944         * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8945         * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8946         * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8947         * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8948         * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8949         * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8950         * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8951         * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8952         * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8953         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8954         * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8955         * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8956         * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8958 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
8960         * include/time.h (__difftime64): Add.
8961         * time/difftime.c (subtract): convert to 64-bit time.
8962         * time/difftime.c (__difftime64): Add.
8963         * time/difftime.c (__difftime): Wrap around __difftime64.
8965 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
8967         * manual/examples/add.c: Remove redundant "if not".
8968         * manual/examples/argp-ex1.c: Likewise.
8969         * manual/examples/argp-ex2.c: Likewise.
8970         * manual/examples/argp-ex3.c: Likewise.
8971         * manual/examples/argp-ex4.c: Likewise.
8972         * manual/examples/atexit.c: Likewise.
8973         * manual/examples/db.c: Likewise.
8974         * manual/examples/dir.c: Likewise.
8975         * manual/examples/dir2.c: Likewise.
8976         * manual/examples/execinfo.c: Likewise.
8977         * manual/examples/filecli.c: Likewise.
8978         * manual/examples/filesrv.c: Likewise.
8979         * manual/examples/fmtmsgexpl.c: Likewise.
8980         * manual/examples/genpass.c: Likewise.
8981         * manual/examples/inetcli.c: Likewise.
8982         * manual/examples/inetsrv.c: Likewise.
8983         * manual/examples/isockad.c: Likewise.
8984         * manual/examples/longopt.c: Likewise.
8985         * manual/examples/memopen.c: Likewise.
8986         * manual/examples/memstrm.c: Likewise.
8987         * manual/examples/mkdirent.c: Likewise.
8988         * manual/examples/mkfsock.c: Likewise.
8989         * manual/examples/mkisock.c: Likewise.
8990         * manual/examples/mygetpass.c: Likewise.
8991         * manual/examples/pipe.c: Likewise.
8992         * manual/examples/popen.c: Likewise.
8993         * manual/examples/rprintf.c: Likewise.
8994         * manual/examples/search.c: Likewise.
8995         * manual/examples/select.c: Likewise.
8996         * manual/examples/setjmp.c: Likewise.
8997         * manual/examples/sigh1.c: Likewise.
8998         * manual/examples/sigusr.c: Likewise.
8999         * manual/examples/stpcpy.c: Likewise.
9000         * manual/examples/strdupa.c: Likewise.
9001         * manual/examples/strftim.c: Likewise.
9002         * manual/examples/subopt.c: Likewise.
9003         * manual/examples/swapcontext.c: Likewise.
9004         * manual/examples/termios.c: Likewise.
9005         * manual/examples/testopt.c: Likewise.
9006         * manual/examples/testpass.c: Likewise.
9007         * manual/examples/timeval_subtract.c: Likewise.
9009 2018-12-19  Joseph Myers  <joseph@codesourcery.com>
9011         * sysdeps/x86/fpu/math_private.h: New file.
9012         * sysdeps/x86/fpu/bits/mathinline.h: Remove.
9014         * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
9015         definition.
9016         (cosh): Likewise.
9017         (tanh): Likewise.
9019 2018-12-19  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
9021         * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
9022         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
9023         AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
9024         AT_L3_CACHEGEOMETRY.  Fix indentation when printing the other
9025         fields.
9026         (_dl_show_auxv): Give a special treatment to
9027         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
9028         and AT_L3_CACHEGEOMETRY.
9029         * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
9030         (_dl_procinfo): Fix indentation when printing AT_HWCAP and
9031         AT_HWCAP2.  Add support for AT_L1I_CACHEGEOMETRY,
9032         AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
9034 2018-12-19  Andreas Schwab  <schwab@suse.de>
9036         * nscd/connections.c (check_use): Don't abort on invalid len.
9038 2018-12-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9040         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
9041         values in the 64bit value cases.
9043 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
9045         * include/time.h
9046         (__ctime64_r): Add.
9047         * time/ctime_r.c
9048         (__ctime64_r): Add.
9049         [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
9051         * include/time.h
9052         (__ctime64): Add.
9053         * time/gmtime.c
9054         (__ctime64): Add.
9055         [__TIMESIZE != 64] (ctime): Turn into a wrapper.
9057         * include/time.h
9058         (__gmtime64_r): Add.
9059         * time/gmtime.c
9060         (__gmtime64_r): Add.
9061         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
9063         * include/time.h
9064         (__gmtime64): Add.
9065         * time/gmtime.c
9066         (__gmtime64): Add.
9067         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
9069         * include/time.h
9070         (__localtime64_r): Add.
9071         * time/localtime.c
9072         (__localtime64_r): Add.
9073         [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
9075 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9077         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
9078         kernel_sigction definition.
9080         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
9082         * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
9084         * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
9085         __syscall_rt_sigaction.
9086         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
9087         (kernel_sigaction): Use Linux generic defintion.
9088         (STUB): Define.
9089         (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
9090         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
9091         (__syscall_rt_sigaction): Remove implementation.
9092         (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
9093         hidden.
9094         * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
9095         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
9096         INTERNAL_SYSCALL): Remove definitions.
9097         * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
9098         action and signal set size.
9099         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
9100         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
9102 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9103             James Clarke  <jrtc27@jrtc27.com>
9105         [BZ #23967]
9106         * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
9107         Define if SA_RESTORER is defined.
9108         (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
9109         (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
9110         already defined.
9111         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
9112         kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
9113         definitions.
9114         (HAS_SA_RESTORER): Define.
9115         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
9116         SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
9117         (HAS_SA_RESTORER): Define.
9118         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
9119         kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
9120         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
9121         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
9122         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9124 2018-12-18  Joseph Myers  <joseph@codesourcery.com>
9126         * sysdeps/unix/sysv/linux/kernel-features.h
9127         (__ASSUME_ST_INO_64_BIT): Remove macro definition.
9128         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9129         (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
9130         * sysdeps/unix/sysv/linux/sh/kernel-features.h
9131         (__ASSUME_ST_INO_64_BIT): Likewise.
9132         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
9133         <kernel-features.h>.
9134         (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
9135         Remove conditional code.
9136         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
9137         <kernel-features.h>.
9138         (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
9139         Remove conditional code.
9140         * sysdeps/unix/sysv/linux/xstat64.c: Do not include
9141         <kernel-features.h>.
9142         (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
9143         Remove conditional code.
9144         * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
9145         <kernel-features.h>.
9146         (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
9147         [!_HAVE_STAT64___ST_INO]: Make code unconditional.
9149 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9151         * sysdeps/s390/multiarch/ifunc-resolve.h
9152         (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
9153         s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
9154         s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
9155         Delete macro definition.
9156         (s390_libc_ifunc_init): Rename to
9157         s390_libc_ifunc_expr_stfle_init.
9158         * sysdeps/s390/bzero: Use
9159         s390_libc_ifunc_expr_stfle_init instead of
9160         s390_libc_ifunc_init.
9161         * sysdeps/s390/memcmp.c: Likewise.
9162         * sysdeps/s390/memcpy.c: Likewise.
9163         * sysdeps/s390/mempcpy.c: Likewise.
9164         * sysdeps/s390/memset.c: Likewise.
9166 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9168         * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
9169         Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
9171 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9173         * sysdeps/s390/multiarch/Makefile
9174         (sysdep_routines): Remove wmemcmp variants.
9175         * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
9176         * sysdeps/s390/multiarch/ifunc-impl-list.c
9177         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
9178         * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
9179         * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
9180         * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
9181         * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
9182         * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
9183         * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
9184         * sysdeps/s390/ifunc-wmemcmp.h: New file.
9186 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9188         * sysdeps/s390/multiarch/Makefile
9189         (sysdep_routines): Remove wmemset variants.
9190         * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
9191         * sysdeps/s390/multiarch/ifunc-impl-list.c
9192         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
9193         * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
9194         * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
9195         * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
9196         * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
9197         * sysdeps/s390/multiarch/wmemset.c: Move to ...
9198         * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
9199         * sysdeps/s390/ifunc-wmemset.h: New file.
9201 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9203         * sysdeps/s390/multiarch/Makefile
9204         (sysdep_routines): Remove wmemchr variants.
9205         * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
9206         * sysdeps/s390/multiarch/ifunc-impl-list.c
9207         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
9208         * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
9209         * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
9210         * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
9211         * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
9212         * sysdeps/s390/multiarch/wmemchr.c: Move to ...
9213         * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
9214         * sysdeps/s390/ifunc-wmemchr.h: New file.
9216 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9218         * sysdeps/s390/multiarch/Makefile
9219         (sysdep_routines): Remove wcscspn variants.
9220         * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
9221         * sysdeps/s390/multiarch/ifunc-impl-list.c
9222         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
9223         * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
9224         * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
9225         * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
9226         * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
9227         * sysdeps/s390/multiarch/wcscspn.c: Move to ...
9228         * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
9229         * sysdeps/s390/ifunc-wcscspn.h: New file.
9231 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9233         * sysdeps/s390/multiarch/Makefile
9234         (sysdep_routines): Remove wcspbrk variants.
9235         * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
9236         * sysdeps/s390/multiarch/ifunc-impl-list.c
9237         (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
9238         * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
9239         * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
9240         * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
9241         * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
9242         * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
9243         * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
9244         * sysdeps/s390/ifunc-wcspbrk.h: New file.
9246 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9248         * sysdeps/s390/multiarch/Makefile
9249         (sysdep_routines): Remove wcsspn variants.
9250         * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
9251         * sysdeps/s390/multiarch/ifunc-impl-list.c
9252         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
9253         * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
9254         * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
9255         * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
9256         * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
9257         * sysdeps/s390/multiarch/wcsspn.c: Move to ...
9258         * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
9259         * sysdeps/s390/ifunc-wcsspn.h: New file.
9261 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9263         * sysdeps/s390/multiarch/Makefile
9264         (sysdep_routines): Remove wcsrchr variants.
9265         * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
9266         * sysdeps/s390/multiarch/ifunc-impl-list.c
9267         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
9268         * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
9269         * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
9270         * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
9271         * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
9272         * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
9273         * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
9274         * sysdeps/s390/ifunc-wcsrchr.h: New file.
9276 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9278         * sysdeps/s390/multiarch/Makefile
9279         (sysdep_routines): Remove wcschrnul variants.
9280         * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
9281         * sysdeps/s390/multiarch/ifunc-impl-list.c
9282         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
9283         * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
9284         * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
9285         * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
9286         * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
9287         * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
9288         * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
9289         * sysdeps/s390/ifunc-wcschrnul.h: New file.
9291 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9293         * sysdeps/s390/multiarch/Makefile
9294         (sysdep_routines): Remove wcschr variants.
9295         * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
9296         * sysdeps/s390/multiarch/ifunc-impl-list.c
9297         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
9298         * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
9299         * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
9300         * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
9301         * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
9302         * sysdeps/s390/multiarch/wcschr.c: Move to ...
9303         * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
9304         * sysdeps/s390/ifunc-wcschr.h: New file.
9306 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9308         * sysdeps/s390/multiarch/Makefile
9309         (sysdep_routines): Remove wcsncmp variants.
9310         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
9311         * sysdeps/s390/multiarch/ifunc-impl-list.c
9312         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
9313         * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
9314         * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
9315         * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
9316         * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
9317         * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
9318         * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
9319         * sysdeps/s390/ifunc-wcsncmp.h: New file.
9321 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9323         * sysdeps/s390/multiarch/Makefile
9324         (sysdep_routines): Remove wcscmp variants.
9325         * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
9326         * sysdeps/s390/multiarch/ifunc-impl-list.c
9327         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
9328         * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
9329         * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
9330         * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
9331         * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
9332         * sysdeps/s390/multiarch/wcscmp.c: Move to ...
9333         * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
9334         * sysdeps/s390/ifunc-wcscmp.h: New file.
9336 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9338         * sysdeps/s390/multiarch/Makefile
9339         (sysdep_routines): Remove wcsncat variants.
9340         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
9341         * sysdeps/s390/multiarch/ifunc-impl-list.c
9342         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
9343         * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
9344         * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
9345         * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
9346         * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
9347         * sysdeps/s390/multiarch/wcsncat.c: Move to ...
9348         * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
9349         * sysdeps/s390/ifunc-wcsncat.h: New file.
9351 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9353         * sysdeps/s390/multiarch/Makefile
9354         (sysdep_routines): Remove wcscat variants.
9355         * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
9356         * sysdeps/s390/multiarch/ifunc-impl-list.c
9357         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
9358         * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
9359         * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
9360         * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
9361         * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
9362         * sysdeps/s390/multiarch/wcscat.c: Move to ...
9363         * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
9364         * sysdeps/s390/ifunc-wcscat.h: New file.
9366 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9368         * sysdeps/s390/multiarch/Makefile
9369         (sysdep_routines): Remove wcpncpy variants.
9370         * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
9371         * sysdeps/s390/multiarch/ifunc-impl-list.c
9372         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
9373         * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
9374         * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
9375         * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
9376         * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
9377         * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
9378         * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
9379         * sysdeps/s390/ifunc-wcpncpy.h: New file.
9381 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9383         * sysdeps/s390/multiarch/Makefile
9384         (sysdep_routines): Remove wcsncpy variants.
9385         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
9386         * sysdeps/s390/multiarch/ifunc-impl-list.c
9387         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
9388         * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
9389         * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
9390         * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
9391         * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
9392         * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
9393         * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
9394         * sysdeps/s390/ifunc-wcsncpy.h: New file.
9396 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9398         * sysdeps/s390/multiarch/Makefile
9399         (sysdep_routines): Remove wcpcpy variants.
9400         * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
9401         * sysdeps/s390/multiarch/ifunc-impl-list.c
9402         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
9403         * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
9404         * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
9405         * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
9406         * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
9407         * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
9408         * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
9409         * sysdeps/s390/ifunc-wcpcpy.h: New file.
9411 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9413         * sysdeps/s390/multiarch/Makefile
9414         (sysdep_routines): Remove wcscpy variants.
9415         * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
9416         * sysdeps/s390/multiarch/ifunc-impl-list.c
9417         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
9418         * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
9419         * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
9420         * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
9421         * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
9422         * sysdeps/s390/multiarch/wcscpy.c: Move to ...
9423         * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
9424         * sysdeps/s390/ifunc-wcscpy.h: New file.
9426 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9428         * sysdeps/s390/multiarch/Makefile
9429         (sysdep_routines): Remove wcsnlen variants.
9430         * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
9431         * sysdeps/s390/multiarch/ifunc-impl-list.c
9432         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
9433         * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
9434         * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
9435         * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
9436         * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
9437         * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
9438         * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
9439         * sysdeps/s390/ifunc-wcsnlen.h: New file.
9441 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9443         * sysdeps/s390/multiarch/Makefile
9444         (sysdep_routines): Remove wcslen variants.
9445         * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
9446         * sysdeps/s390/multiarch/ifunc-impl-list.c
9447         (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
9448         * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
9449         * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
9450         * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
9451         * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
9452         * sysdeps/s390/multiarch/wcslen.c: Move to ...
9453         * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
9454         * sysdeps/s390/ifunc-wcslen.h: New file.
9456 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9458         * sysdeps/s390/multiarch/Makefile
9459         (sysdep_routines): Remove memrchr variants.
9460         * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
9461         * sysdeps/s390/multiarch/ifunc-impl-list.c
9462         (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
9463         * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
9464         * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
9465         * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
9466         * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
9467         * sysdeps/s390/multiarch/memrchr.c: Move to ...
9468         * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
9469         * sysdeps/s390/ifunc-memrchr.h: New file.
9471 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9473         * sysdeps/s390/multiarch/Makefile
9474         (sysdep_routines): Remove memccpy variants.
9475         * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
9476         * sysdeps/s390/multiarch/ifunc-impl-list.c
9477         (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
9478         * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
9479         * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
9480         * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
9481         * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
9482         * sysdeps/s390/multiarch/memccpy.c: Move to ...
9483         * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
9484         * sysdeps/s390/ifunc-memccpy.h: New file.
9486 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9488         * sysdeps/s390/multiarch/Makefile
9489         (sysdep_routines): Remove rawmemchr variants.
9490         * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
9491         * sysdeps/s390/multiarch/ifunc-impl-list.c
9492         (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
9493         * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
9494         * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
9495         * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
9496         * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
9497         * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
9498         * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
9499         * sysdeps/s390/ifunc-rawmemchr.h: New file.
9501 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9503         * sysdeps/s390/multiarch/Makefile
9504         (sysdep_routines): Remove memchr variants.
9505         * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
9506         * sysdeps/s390/multiarch/ifunc-impl-list.c
9507         (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
9508         * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
9509         * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
9510         * sysdeps/s390/multiarch/memchr.c: Move to ...
9511         * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
9512         * sysdeps/s390/ifunc-memchr.h: New file.
9513         * sysdeps/s390/s390-64/memchr.S: Move to ...
9514         * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
9515         for 31/64bit and ifunc handling.
9516         * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
9517         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
9518         * sysdeps/s390/s390-32/memchr.S: Likewise.
9520 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9522         * sysdeps/s390/multiarch/Makefile
9523         (sysdep_routines): Remove strcspn variants.
9524         * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
9525         * sysdeps/s390/multiarch/ifunc-impl-list.c
9526         (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
9527         * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
9528         * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
9529         * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
9530         * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
9531         * sysdeps/s390/multiarch/strcspn.c: Move to ...
9532         * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
9533         * sysdeps/s390/ifunc-strcspn.h: New file.
9535 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9537         * sysdeps/s390/multiarch/Makefile
9538         (sysdep_routines): Remove strpbrk variants.
9539         * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
9540         * sysdeps/s390/multiarch/ifunc-impl-list.c
9541         (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
9542         * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
9543         * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
9544         * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
9545         * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
9546         * sysdeps/s390/multiarch/strpbrk.c: Move to ...
9547         * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
9548         * sysdeps/s390/ifunc-strpbrk.h: New file.
9550 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9552         * sysdeps/s390/multiarch/Makefile
9553         (sysdep_routines): Remove strspn variants.
9554         * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
9555         * sysdeps/s390/multiarch/ifunc-impl-list.c
9556         (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
9557         * sysdeps/s390/multiarch/strspn-c.c: Move to ...
9558         * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
9559         * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
9560         * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
9561         * sysdeps/s390/multiarch/strspn.c: Move to ...
9562         * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
9563         * sysdeps/s390/ifunc-strspn.h: New file.
9565 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9567         * sysdeps/s390/multiarch/Makefile
9568         (sysdep_routines): Remove strrchr variants.
9569         * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
9570         * sysdeps/s390/multiarch/ifunc-impl-list.c
9571         (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
9572         * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
9573         * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
9574         * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
9575         * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
9576         * sysdeps/s390/multiarch/strrchr.c: Move to ...
9577         * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
9578         * sysdeps/s390/ifunc-strrchr.h: New file.
9580 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9582         * sysdeps/s390/multiarch/Makefile
9583         (sysdep_routines): Remove strchrnul variants.
9584         * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
9585         * sysdeps/s390/multiarch/ifunc-impl-list.c
9586         (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
9587         * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
9588         * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
9589         * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
9590         * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
9591         * sysdeps/s390/multiarch/strchrnul.c: Move to ...
9592         * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
9593         * sysdeps/s390/ifunc-strchrnul.h: New file.
9595 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9597         * sysdeps/s390/multiarch/Makefile
9598         (sysdep_routines): Remove strchr variants.
9599         * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
9600         * sysdeps/s390/multiarch/ifunc-impl-list.c
9601         (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
9602         * sysdeps/s390/multiarch/strchr-c.c: Move to ...
9603         * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
9604         * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
9605         * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
9606         * sysdeps/s390/multiarch/strchr.c: Move to ...
9607         * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
9608         * sysdeps/s390/ifunc-strchr.h: New file.
9610 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9612         * sysdeps/s390/multiarch/Makefile
9613         (sysdep_routines): Remove strncmp variants.
9614         * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
9615         * sysdeps/s390/multiarch/ifunc-impl-list.c
9616         (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
9617         * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
9618         * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
9619         * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
9620         * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
9621         * sysdeps/s390/multiarch/strncmp.c: Move to ...
9622         * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
9623         * sysdeps/s390/ifunc-strncmp.h: New file.
9625 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9627         * sysdeps/s390/multiarch/Makefile
9628         (sysdep_routines): Remove strcmp variants.
9629         * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
9630         * sysdeps/s390/multiarch/ifunc-impl-list.c
9631         (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
9632         * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
9633         * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
9634         * sysdeps/s390/multiarch/strcmp.c: Move to ...
9635         * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
9636         * sysdeps/s390/ifunc-strcmp.h: New file.
9637         * sysdeps/s390/s390-64/strcmp.S: Move to ...
9638         * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
9639         for 31/64bit and ifunc handling.
9640         * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
9641         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
9642         * sysdeps/s390/s390-32/strcmp.S: Likewise.
9644 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9646         * sysdeps/s390/multiarch/Makefile
9647         (sysdep_routines): Remove strncat variants.
9648         * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
9649         * sysdeps/s390/multiarch/ifunc-impl-list.c
9650         (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
9651         * sysdeps/s390/multiarch/strncat-c.c: Move to ...
9652         * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
9653         * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
9654         * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
9655         * sysdeps/s390/multiarch/strncat.c: Move to ...
9656         * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
9657         * sysdeps/s390/ifunc-strncat.h: New file.
9659 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9661         * sysdeps/s390/multiarch/Makefile
9662         (sysdep_routines): Remove strcat variants.
9663         * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
9664         * sysdeps/s390/multiarch/ifunc-impl-list.c
9665         (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
9666         * sysdeps/s390/multiarch/strcat-c.c: Move to ...
9667         * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
9668         * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
9669         * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
9670         * sysdeps/s390/multiarch/strcat.c: Move to ...
9671         * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
9672         * sysdeps/s390/ifunc-strcat.h: New file.
9674 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9676         * sysdeps/s390/multiarch/Makefile
9677         (sysdep_routines): Remove stpncpy variants.
9678         * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
9679         * sysdeps/s390/multiarch/ifunc-impl-list.c
9680         (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
9681         * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
9682         * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
9683         * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
9684         * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
9685         * sysdeps/s390/multiarch/stpncpy.c: Move to ...
9686         * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
9687         * sysdeps/s390/ifunc-stpncpy.h: New file.
9689 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9691         * sysdeps/s390/multiarch/Makefile
9692         (sysdep_routines): Remove strncpy variants.
9693         * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
9694         * sysdeps/s390/multiarch/ifunc-impl-list.c
9695         (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
9696         * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
9697         * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
9698         * sysdeps/s390/multiarch/strncpy.c: Move to ...
9699         * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
9700         * sysdeps/s390/ifunc-strncpy.h: New file.
9701         * sysdeps/s390/s390-64/strncpy.S: Move to ...
9702         * sysdeps/s390/s390-64/strncpy-z900.S: ... here
9703         and adjust ifunc handling.
9704         * sysdeps/s390/s390-32/strncpy.S: Move to ...
9705         * sysdeps/s390/s390-32/strncpy-z900.S: ... here
9706         and adjust ifunc handling.
9707         * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
9708         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
9710 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9712         * sysdeps/s390/multiarch/Makefile
9713         (sysdep_routines): Remove stpcpy variants.
9714         * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
9715         * sysdeps/s390/multiarch/ifunc-impl-list.c
9716         (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
9717         * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
9718         * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
9719         * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
9720         * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
9721         * sysdeps/s390/multiarch/stpcpy.c: Move to ...
9722         * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
9723         * sysdeps/s390/ifunc-stpcpy.h: New file.
9725 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9727         * sysdeps/s390/multiarch/Makefile
9728         (sysdep_routines): Remove strcpy variants.
9729         * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
9730         * sysdeps/s390/multiarch/ifunc-impl-list.c
9731         (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
9732         * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
9733         * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
9734         * sysdeps/s390/multiarch/strcpy.c: Move to ...
9735         * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
9736         * sysdeps/s390/ifunc-strcpy.h: New file.
9737         * sysdeps/s390/s390-64/strcpy.S: Move to ...
9738         * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
9739         for 31/64bit and ifunc handling.
9740         * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
9741         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
9742         * sysdeps/s390/s390-32/strcpy.S: Likewise.
9744 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9746         * sysdeps/s390/multiarch/Makefile
9747         (sysdep_routines): Remove strnlen variants.
9748         * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
9749         * sysdeps/s390/multiarch/ifunc-impl-list.c
9750         (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
9751         * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
9752         * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
9753         * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
9754         * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
9755         * sysdeps/s390/multiarch/strnlen.c: Move to ...
9756         * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
9757         * sysdeps/s390/ifunc-strnlen.h: New file.
9759 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9761         * sysdeps/s390/multiarch/Makefile
9762         (sysdep_routines): Remove strlen variants.
9763         * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
9764         * sysdeps/s390/multiarch/ifunc-impl-list.c
9765         (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
9766         * sysdeps/s390/multiarch/strlen-c.c: Move to ...
9767         * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
9768         * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
9769         * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
9770         * sysdeps/s390/multiarch/strlen.c: Move to ...
9771         * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
9772         * sysdeps/s390/ifunc-strlen.h: New file.
9774 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9776         * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
9777         * sysdeps/s390/multiarch/ifunc-impl-list.c
9778         (__libc_ifunc_impl_list): Add ifunc variants for memmem.
9779         * sysdeps/s390/ifunc-memmem.h: New file.
9780         * sysdeps/s390/memmem.c: Likewise.
9781         * sysdeps/s390/memmem-c.c: Likewise.
9782         * sysdeps/s390/memmem-vx.c: Likewise.
9784 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9786         * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
9787         * sysdeps/s390/multiarch/ifunc-impl-list.c
9788         (__libc_ifunc_impl_list): Add ifunc variants for strstr.
9789         * sysdeps/s390/ifunc-strstr.h: New file.
9790         * sysdeps/s390/strstr.c: Likewise.
9791         * sysdeps/s390/strstr-c.c: Likewise.
9792         * sysdeps/s390/strstr-vx.c: Likewise.
9794 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9796         * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
9797         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
9798         HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
9799         HAVE_MEMMOVE_C, MEMMOVE_C,  HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
9800         New defines.
9801         * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
9802         * sysdeps/s390/memmove-c.c: New file.
9803         * sysdeps/s390/memmove.c: Likewise.
9804         * sysdeps/s390/multiarch/ifunc-impl-list.c
9805         (__libc_ifunc_impl_list): Add ifunc variants for memmove.
9807 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9809         * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
9810         * sysdeps/s390/configure.ac: Add check for z13 support.
9811         * sysdeps/s390/configure: Regenerated.
9813 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9815         * sysdeps/s390/memcopy.h: New file.
9817 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9819         * sysdeps/s390/s390-32/bcopy.S: Remove.
9820         * sysdeps/s390/s390-64/bcopy.S: Likewise.
9822 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9824         * sysdeps/s390/ifunc-memcpy.h: New File.
9825         * sysdeps/s390/memcpy.S: Move to ...
9826         * sysdeps/s390/memcpy-z900.S ... here.
9827         Move implementations from memcpy-s390x.s to here.
9828         * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
9829         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9830         Remove memcpy/mempcpy variants.
9831         * sysdeps/s390/Makefile (sysdep_routines):
9832         Add memcpy/mempcpy variants.
9833         * sysdeps/s390/multiarch/ifunc-impl-list.c
9834         (__libc_ifunc_impl_list): Adjust ifunc variants for
9835         memcpy and mempcpy.
9836         * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
9837         to ...
9838         * sysdeps/s390/memcpy.c: ... here.
9839         Adjust ifunc variants for memcpy.
9840         * sysdeps/s390/multiarch/mempcpy.c: Move to ...
9841         * sysdeps/s390/mempcpy.c: ... here.
9842         Adjust ifunc variants for mempcpy.
9843         * sysdeps/s390/mempcpy.S: Delete file.
9845 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9847         * sysdeps/s390/s390-64/memcpy.S: Move to ...
9848         * sysdeps/s390/memcpy.S: ... here.
9849         Adjust to be usable for 31/64bit.
9850         * sysdeps/s390/s390-32/memcpy.S: Delete File.
9851         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
9852         * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
9853         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9854         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
9855         * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
9856         Adjust to be usable for 31/64bit.
9857         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
9858         * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
9859         * sysdeps/s390/multiarch/memcpy.c: ... here.
9860         * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
9862 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9864         * sysdeps/s390/ifunc-memcmp.h: New File.
9865         * sysdeps/s390/memcmp.S: Move to ...
9866         * sysdeps/s390/memcmp-z900.S ... here.
9867         Move implementations from memcmp-s390x.s to here.
9868         * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
9869         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9870         Remove memcmp variants.
9871         * sysdeps/s390/Makefile (sysdep_routines):
9872         Add memcmp variants.
9873         * sysdeps/s390/multiarch/ifunc-impl-list.c
9874         (__libc_ifunc_impl_list): Adjust ifunc variants for
9875         memcmp.
9876         * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
9877         to ...
9878         * sysdeps/s390/memcmp.c: ... here.
9879         Adjust ifunc variants for memcmp.
9881 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9883         * sysdeps/s390/s390-64/memcmp.S: Move to ...
9884         * sysdeps/s390/memcmp.S: ... here.
9885         Adjust to be usable for 31/64bit.
9886         * sysdeps/s390/s390-32/memcmp.S: Delete File.
9887         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
9888         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9889         Remove memcmp.
9890         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9891         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
9892         * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
9893         Adjust to be usable for 31/64bit.
9894         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
9895         * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
9896         * sysdeps/s390/multiarch/memcmp.c: ... here.
9897         * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
9899 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9901         * sysdeps/s390/s390-32/bzero.S: Delete file.
9902         * sysdeps/s390/s390-64/bzero.S: Likewise.
9903         * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
9904         * sysdeps/s390/bzero.c: New file.
9905         * sysdeps/s390/memset-z900.S: Add bzero entry points.
9906         * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
9907         * sysdeps/s390/multiarch/ifunc-impl-list.c
9908         (__libc_ifunc_impl_list): Add bzero ifunc variants.
9910 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9912         * sysdeps/s390/ifunc-memset.h: New File.
9913         * sysdeps/s390/memset.S: Move to ...
9914         * sysdeps/s390/memset-z900.S ... here.
9915         Move implementations from memset-s390x.s to here.
9916         * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
9917         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9918         Remove memset variants.
9919         * sysdeps/s390/Makefile (sysdep_routines):
9920         Add memset variants.
9921         * sysdeps/s390/multiarch/ifunc-impl-list.c
9922         (__libc_ifunc_impl_list): Adjust ifunc variants for
9923         memset.
9924         * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9925         to ...
9926         * sysdeps/s390/memset.c: ... here.
9927         Adjust ifunc variants for memset.
9929 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9931         * sysdeps/s390/s390-64/memset.S: Move to ...
9932         * sysdeps/s390/memset.S: ... here.
9933         Adjust to be usable for 31/64bit.
9934         * sysdeps/s390/s390-32/memset.S: Delete File.
9935         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9936         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9937         Remove memset.
9938         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9939         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9940         * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9941         Adjust to be usable for 31/64bit.
9942         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9943         * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9944         * sysdeps/s390/multiarch/memset.c: ... here.
9945         * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9947 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9949         * sysdeps/s390/multiarch/ifunc-resolve.h
9950         (s390_libc_ifunc_init, s390_libc_ifunc,
9951         s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9953 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
9955         * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9956         * sysdeps/s390/configure.ac: Add check for z10 support.
9957         * sysdeps/s390/configure: Regenerated.
9959 2018-12-18  H.J. Lu  <hongjiu.lu@intel.com>
9961         * sysdeps/i386/atomic-machine.h: Merged with ...
9962         * sysdeps/x86_64/atomic-machine.h: To ...
9963         * sysdeps/x86/atomic-machine.h: This.  New file.
9965 2018-12-18  Florian Weimer  <fweimer@redhat.com>
9967         Rewrite locale/gen-translit.pl in Python.
9968         * locale/Makefile (generated): Add C-translit.h.
9969         (before-compile): Add $(objpfx)C-translit.h.
9970         (C-translit.h): Move to $(objpfx).  Create target directory.
9971         Build using Python script.
9972         * locale/gen-translit.py: New file.
9973         * locale/gen-translit.pl: Remove file.
9974         * locale/C-translit.h.in: Change comment character to '#' for
9975         easier parsing without a C preprocessor.
9976         * locale/C-translit.h: Remove generated file.
9977         * manual/install.texi (Tools for Compilation): Do not mention
9978         C-translit.h.
9979         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9980         Remove locale/C-translit.h.
9981         * scripts/update-copyrights: Likewise.
9982         * INSTALL: Regenerate.
9984 2018-12-18  Florian Weimer  <fweimer@redhat.com>
9986         [BZ #23995]
9987         * localedata/locales/bi_VU: Remove executable bit from file.
9989 2018-12-17  Albert ARIBAUD  <albert.aribaud@3adev.fr>
9991         * include/time.h
9992         (__localtime64): Add.
9993         * manual/maint.texi: Document Y2038 symbol handling.
9994         * time/localtime.c
9995         (__localtime64): Add.
9996         [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
9998 2018-12-17  Joseph Myers  <joseph@codesourcery.com>
10000         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
10001         Do not clobber r12.
10003         * scripts/glibcextract.py (compare_macro_consts): Take parameters
10004         to allow extra macros from first or second sources.
10005         * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
10006         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10007         (tests-special): Add $(objpfx)tst-mman-consts.out.
10008         ($(objpfx)tst-mman-consts.out): New makefile target.
10010 2018-12-17  Mao Han  <han_mao@c-sky.com>
10012         * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
10013         * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
10014         without stat64 system call support.
10015         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
10016         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
10017         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
10018         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
10019         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
10020         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
10021         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
10022         * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
10023         * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
10024         * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
10025         * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
10027 2018-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10029         regex: fix storage-exhaustion error
10030         [BZ #18040]
10031         * posix/regexec.c (get_subexp):
10032         Do not continue if storage is exhausted.
10034 2018-12-15  Assaf Gordon  <assafgordon@gmail.com>
10036         regex: fix heap-use-after-free error
10037         [BZ #18040]
10038         Problem reported by Saito Takaaki <tails.saito@gmail.com> in
10039         https://debbugs.gnu.org/32592
10040         Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
10041         call extend_buffers which reallocates the re_string_t internal buffer.
10042         Local variable 'buf' was not updated in such case, resulting in
10043         use-after-free.
10044         * posix/regexec.c (get_subexp): Update 'buf' after call to
10045         get_subexp_sub.
10047 2018-12-15  Florian Weimer  <fweimer@redhat.com>
10049         * support/blob_repeat.c (check_mul_overflow_size_t): New function.
10050         (minimum_stride_size): Use it.
10051         (support_blob_repeat_allocate): Likewise.
10053 2018-12-14  Joseph Myers  <joseph@codesourcery.com>
10055         * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
10056         definition.
10057         (acosh): Likewise.
10058         (atanh): Likewise.
10060 2018-12-14  Florian Weimer  <fweimer@redhat.com>
10062         * manual/process.texi (Process Creation Concepts): Remove
10063         documentation of process (ID) lifetime.  List more process
10064         creation functions.  Reference Process Identification section.
10065         (Process Identification): Add information about process ID
10066         lifetime.  Describe Linux thread/task IDs.
10067         * manual/signal.texi (Signaling Another Process): Mention that the
10068         signal is always sent to the process.
10070 2018-12-14  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10072         * misc/Makefile (tests): Remove tst-efgcvt.  Add tst-dbl-efgcvt
10073         and tst-ldbl-efgcvt.
10074         * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
10075         * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
10076         (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
10077         (fcvt_tests, output_error, output_r_error, do_test): Use the
10078         macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
10079         select the type of floating-point variables and arguments; to
10080         produce extra tests for double and conversion specifiers for
10081         printf; and to set the names of called functions.
10082         * misc/tst-dbl-efgcvt.c: New file that defines the macros used
10083         in tst-efgcvt-template.c.
10084         * misc/tst-ldbl-efgcvt.c: Likewise.
10086 2018-12-14  Stefan Liebler  <stli@linux.ibm.com>
10088         * nss/Makefile (tst-nss-test3.out): New rule.
10090 2018-12-13  Joseph Myers  <joseph@codesourcery.com>
10092         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
10093         clobber sp.
10095 2018-12-13  fanjinke  <fanjinke@hygon.cn>
10097         * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
10098         "HygonGenuine".
10100 2018-12-13  Andreas Schwab  <schwab@suse.de>
10102         [BZ #23861]
10103         * nptl/pthread_rwlock_common.c: Reindent.  Fix typos.
10104         (__pthread_rwlock_rdlock_full): Update expected value for
10105         __readers while waiting on PTHREAD_RWLOCK_RWAITING.
10106         * nptl/tst-rwlock-pwn.c: New file.
10107         * nptl/Makefile (tests): Add tst-rwlock-pwn.
10109 2018-12-12  Joseph Myers  <joseph@codesourcery.com>
10111         * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
10112         definition.
10114 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
10116         * benchtests/scripts/compare_bench.py (do_compare): write to
10117         stderr in casestat is not present.
10118         * benchtests/scripts/compare_bench.py (plot_graphs): write to
10119         stderr in case timings field is not present. Also string showing
10120         the output filename goes into the stderr.
10122 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
10124         * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
10125         and ZeroDivisorError exceptions.
10126         * benchtests/scripts/compare_bench.py (compare_runs): Use stats
10127         argument to loop through user provided statistics.
10128         * benchtests/scripts/compare_bench.py (main): Include the --stats
10129         argument.
10131 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
10133         * benchtests/scripts/compare_bench.py (compare_runs): Continue
10134         instead of return.
10136 2018-12-12  Florian Weimer  <fweimer@redhat.com>
10138         * sysdeps/posix/timespec_get.c: Add missing â€œany later version”
10139         clause to copyright header.
10141 2018-12-12  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
10143         [BZ #23614]
10144         * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
10145         registers saved in the stack frame.
10146         * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
10147         * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
10149 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10151         * include/bits/monetary-ldbl.h: New file.
10152         * include/bits/printf-ldbl.h: Likewise.
10153         * include/bits/stdio-ldbl.h: Likewise.
10154         * include/bits/stdlib-ldbl.h: Likewise.
10155         * include/bits/syslog-ldbl.h: Likewise.
10156         * include/bits/wchar-ldbl.h: Likewise.
10158 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10160         * libio/libio.h: Remove redirection for _IO_vfprintf.
10162 2018-12-11  Andreas Schwab  <schwab@suse.de>
10164         * Makerules: Remove all references to abilist-pattern.
10165         (update-all-abi): Simplify find expression.
10167 2018-12-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10169         [BZ #23961]
10170         * math/auto-libm-test-in: Add new test case.
10171         * math/auto-libm-test-out-pow: Regenerated.
10172         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
10174 2018-12-10  DJ Delorie  <dj@redhat.com>
10176         [BZ #23948]
10177         * support/test-container.c: Move postclean step to before we
10178         change namespaces.
10180 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
10182         * scripts/gen-as-const.py (main): Handle --python option.
10183         * scripts/gen-py-const.awk: Remove.
10184         * Makerules (py-const-script): Use gen-as-const.py.
10185         ($(py-const)): Likewise.
10186         * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
10187         with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
10188         (MutexAttributesPrinter.read_values): Mask with 0xffffffff
10189         together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
10190         ~PTHREAD_MUTEX_NO_ELISION_NP.
10191         * manual/README.pretty-printers: Update reference to
10192         gen-py-const.awk.
10194         * scripts/glibcextract.py: New file.
10195         * scripts/gen-as-const.py: Do not import os.path, re, subprocess
10196         or tempfile.  Import glibcexctract.
10197         (compute_c_consts): Remove.  Moved to glibcextract.py.
10198         (gen_test): Update reference to compute_c_consts.
10199         (main): Likewise.
10200         * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
10201         * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
10202         * sysdeps/unix/sysv/linux/Makefile
10203         ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
10204         Redirect stderr as well as stdout.
10206 2018-12-10  Rafael Ăvila de EspĂ­ndola  <rafael@espindo.la>
10208         [BZ #19767]
10209         * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
10210         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
10211         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
10212         ALWAYS_USE_VSYSCALL.
10213         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
10214         ALWAYS_USE_VSYSCALL.
10215         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
10216         ALWAYS_USE_VSYSCALL.
10218 2018-12-10  Florian Weimer  <fweimer@redhat.com>
10220         [BZ #23972]
10221         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
10222         offset instead of count for clarity.  Fix typo in comment.
10223         (__old_getdents64): Keep track of previous offset.  Use it to call
10224         handle_overflow.
10225         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
10226         that d_off is never zero.
10228 2018-12-10  Andreas Schwab  <schwab@suse.de>
10230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
10231         sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
10232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
10233         sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
10234         * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
10236 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
10238         * timezone/private.h: Update from tzcode 2018g.
10239         * timezone/tzfile.h: Likewise.
10240         * timezone/tzselect.ksh: Likewise.
10241         * timezone/zdump.c: Likewise.
10242         * timezone/zic.c: Likewise.
10244 2018-12-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
10246         [BZ #23490]
10247         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
10248         (do_test): Adjust buffer size and fix format.
10250 2018-12-07  DJ Delorie  <dj@redhat.com>
10252         [BZ #23907]
10253         * malloc/tst-tcfree3.c: New.
10254         * malloc/Makefile: Add it.
10256 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
10258         * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
10260 2018-12-07  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10262         * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
10263         used as a mask for the mode argument of __vfscanf_internal and
10264         __vfwscanf_internal.
10265         * stdio-common/vfscanf-internal.c
10266         [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
10267         (__strtof128_internal): Define to __wcstof128_internal.
10268         [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
10269         __strtof128_internal or __wcstof128_internal when the format of
10270         long double is the same as _Float128.
10272 2018-12-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10274         * include/unistd.h (__confstr): Add prototype and hidden prototype.
10275         * posix/confstr.c (confstr): Rename to __confstr.
10276         (__confstr): Add hidden def.
10277         (confstr): Add weak alias for __confstr.
10278         * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
10279         confstr.
10281 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
10283         * NEWS: Mention getcpu.
10284         * include/sched.h (__getcpu): New libc_hidden_proto.
10285         * manual/resource.texi: Document getcpu.
10286         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
10287         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
10288         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
10289         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10290         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10291         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10292         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10293         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10294         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10295         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10296         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10297         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10298         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
10299         Likewise.
10300         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10301         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10302         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10304         Likewise.
10305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10306         Likewise.
10307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10308         Likewise.
10309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
10310         Likewise.
10311         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10312         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10313         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10314         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10315         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10316         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10317         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10318         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10319         * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
10320         * sysdeps/unix/sysv/linux/getcpu.c: New file.
10321         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
10322         Also check getcpu.
10324 2018-12-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10326         * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
10327         functions.
10328         (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
10330 2018-12-07  Florian Weimer  <fweimer@redhat.com>
10332         [BZ #17405]
10333         * posix/Makefile (routines): Add spawn_faction_addfchdir.
10334         * posix/Versions (GLIBC_2.29): Export
10335         posix_spawn_file_actions_addfchdir_np.
10336         * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
10337         * posix/spawn_faction_destroy.c
10338         (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
10339         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
10340         and the field action.fchdir_action.
10341         * posix/tst-spawn-chdir.c (add_chdir): New function.
10342         (do_test): Add do_fchdir loop.  Call add_chdir.
10343         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
10344         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
10345         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
10346         posix_spawn_file_actions_addfchdir_np.
10347         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
10348         Likewise.
10349         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
10350         Likewise.
10351         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
10352         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
10353         Likewise.
10354         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
10355         Likewise.
10356         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
10357         Likewise.
10358         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
10359         Likewise.
10360         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
10361         Likewise.
10362         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
10363         Likewise.
10364         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
10365         (GLIBC_2.29): Likewise.
10366         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
10367         (GLIBC_2.29): Likewise.
10368         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
10369         (GLIBC_2.29): Likewise.
10370         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
10371         (GLIBC_2.29): Likewise.
10372         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
10373         Likewise.
10374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
10375         (GLIBC_2.29): Likewise.
10376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
10377         (GLIBC_2.29): Likewise.
10378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
10379         (GLIBC_2.29): Likewise.
10380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
10381         (GLIBC_2.29): Likewise.
10382         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
10383         Likewise.
10384         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
10385         Likewise.
10386         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
10387         Likewise.
10388         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
10389         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
10390         Likewise.
10391         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
10392         Likewise.
10393         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
10394         Likewise.
10395         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
10396         Likewise.
10398 2018-12-06  Joseph Myers  <joseph@codesourcery.com>
10400         * manual/texinfo.tex: Update to version 2018-09-21.20 with
10401         trailing whitespace removed.
10402         * scripts/config.guess: Update to version 2018-11-28.
10403         * scripts/config.sub: Update to version 2018-11-28.
10404         * scripts/install-sh: Update to version 2018-03-11.20.
10405         * scripts/mkinstalldirs: Update to version 2018-03-07.03.
10406         * scripts/move-if-change: Update to version 2018-03-07 03:47.
10408 2018-12-07  Florian Weimer  <fweimer@redhat.com>
10410         [BZ #23927]
10411         CVE-2018-19591
10412         * inet/tst-if_index-long.c: New file.
10413         * inet/Makefile (tests): Add tst-if_index-long.
10415 2018-12-07  Florian Weimer  <fweimer@redhat.com>
10417         * support/check.h (support_record_failure_is_failed): Declare.
10418         * support/descriptors.h: New file.
10419         * support/support_descriptors.c: Likewise.
10420         * support/tst-support_descriptors.c: Likewise.
10421         * support/support_record_failure.c
10422         (support_record_failure_is_failed): New function.
10423         * support/Makefile (libsupport-routines): Add support_descriptors.
10424         (tests): Add tst-support_descriptors.
10426 2018-12-05  Zack Weinberg  <zackw@panix.com>
10427             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10429         * stdio-common/vfprintf-internal.c
10430         (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
10431         * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
10432         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
10433         and __no_long_double.
10434         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
10435         * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
10436         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
10437         libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
10438         and __nldbl_*syslog* functions.
10439         (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
10440         (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
10441         (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
10442         (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
10443         (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
10444         (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
10445         (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
10446         (__nldbl_vwprintf, __nldbl_wprintf):
10447         Directly call the appropriate __v*printf_internal routine, passing
10448         PRINTF_LDBL_IS_DBL.  Do not mess with __no_long_double. Normalize
10449         variable names.
10450         (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
10451         (__nldbl___printf_chk, __nldbl___snprintf_chk)
10452         (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
10453         (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
10454         (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
10455         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
10456         (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
10457         (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
10458         (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
10459         (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
10460         Likewise, and also pass PRINTF_FORTIFY when appropriate.
10461         (__nldbl_syslog, __nldbl_vsyslog):
10462         Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
10463         (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
10464         appropriate.
10465         (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
10466         appropriate.
10468 2018-12-05  Zack Weinberg  <zackw@panix.com>
10469             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10471         [BZ #11319]
10472         * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
10473         Moved here from debug/vsprintf_chk.c.
10474         (__vsprintf_internal): Add 'maxlen' argument.  Change the setup
10475         and completion logic for the strfile to match exactly what
10476         __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
10477         _IO_str_init_static_internal instead of maxlen-1.
10478         (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
10479         * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
10480         __vsprintf_internal.
10482         * debug/vsprintf_chk.c (__vsprintf_chk)
10483         * debug/sprintf_chk.c (__sprintf_chk):
10484         Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
10485         'flags' argument is positive, and slen as maxlen.  No need to lock
10486         the FILE and/or construct a temporary FILE.  Minimize and normalize
10487         header inclusions and variable names.  Do not libc_hidden_def anything.
10489         * debug/asprintf_chk.c (__asprintf_chk)
10490         * debug/dprintf_chk.c (__dprintf_chk)
10491         * debug/fprintf_chk.c (__fprintf_chk)
10492         * debug/fwprintf_chk.c (__fwprintf_chk)
10493         * debug/printf_chk.c (__printf_chk)
10494         * debug/snprintf_chk.c (__snprintf_chk)
10495         * debug/swprintf_chk.c (__swprintf_chk)
10496         * debug/vasprintf_chk.c (__vasprintf_chk)
10497         * debug/vdprintf_chk.c (__vdprintf_chk)
10498         * debug/vfprintf_chk.c (__vfprintf_chk)
10499         * debug/vfwprintf_chk.c (__vfwprintf_chk)
10500         * debug/vprintf_chk.c (__vprintf_chk)
10501         * debug/vsnprintf_chk.c (__vsnprintf_chk)
10502         * debug/vswprintf_chk.c (__vswprintf_chk)
10503         * debug/vwprintf_chk.c (__vwprintf_chk)
10504         * debug/wprintf_chk.c (__wprintf_chk):
10505         Directly call the corresponding vxxprintf_internal function, passing
10506         PRINTF_FORTIFY if 'flag' argument is positive.  No need to lock
10507         the FILE and/or construct a temporary FILE.  Minimize and normalize
10508         header inclusions and variable names.  Do not libc_hidden_def anything.
10510         * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
10511         __obstack_vprintf_internal.
10512         (__obstack_vprintf_chk): Convert into a wrapper that calls
10513         __obstack_vprintf_internal (these two functions already had the
10514         same code) and move to new file...
10515         * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here.  New
10516         file.
10517         * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
10518         the flags argument and the setting of _IO_FLAGS2_FORTIFY.
10519         * debug/Makefile (routines): Add vobprintf_chk.
10521         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10522         (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
10523         (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
10524         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
10525         (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
10526         (__nldbl___obstack_vfprintf_chk):
10527         Directly call the corresponding vxxprintf_internal function,
10528         passing PRINTF_FORTIFY if 'flag' argument is positive.  If necessary,
10529         duplicate comparison of slen with 0 or maxlen from the corresponding
10530         non-__nldbl function.
10532         * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
10533         (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
10534         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
10535         Remove libc_hidden_proto.
10537         * stdio-common/vfprintf-internal.c
10538         (__vfprintf_internal, __vfwprintf_internal):
10539         Do not check _IO_FLAGS2_FORTIFY.
10540         * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
10541         * libio/libioP.h: Update prototype of __vsprintf_internal and add
10542         a comment explaining why it has the maxlen argument.
10543         (_IO_acquire_lock_clear_flags2_fct): Remove.
10544         (_IO_acquire_lock_clear_flags2): Remove.
10545         (_IO_release_lock): Remove conditional statement which will
10546         now never execute.
10547         (_IO_acquire_lock): Remove variable which is now unused.
10548         * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
10549         * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
10551         * stdio-common/Makefile (tests): Add tst-bz11319 and
10552         tst-bz11319-fortify2.
10553         (CFLAGS-tst-bz11319-fortify2.c): New macro.
10554         * stdio-common/tst-bz11319-fortify2.c: New file.
10555         * stdio-common/tst-bz11319.c: Likewise.
10557 2018-12-05  Zack Weinberg  <zackw@panix.com>
10558             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10560         * misc/syslog.c: Include libioP.h, not iolibio.h.
10561         (__vsyslog_internal): New function with the former body of
10562         __vsyslog_chk; takes mode_flags argument same as
10563         __v*printf_internal.  Call __vfprintf_internal directly.
10565         (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
10566         Remove libc_hidden_def.
10567         (__syslog, __syslog_chk): Use __vsyslog_internal.
10568         (__vsyslog): Move to just below __syslog.  Use __vsyslog_internal.
10570         * include/sys/syslog.h: Add multiple inclusion guard.
10571         Add prototype for __vsyslog_internal.
10572         Remove declaration and libc_hidden_proto for __vsyslog_chk.
10574         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
10575         Use __vsyslog_internal.
10577 2018-12-05  Zack Weinberg  <zackw@panix.com>
10578             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10580         * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
10581         (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
10582         (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
10583         New functions.
10584         (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
10585         (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
10587         * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
10588         Include wctype.h here if COMPILE_WPRINTF is defined.
10589         Define __vfprintf_internal or __vfwprintf_internal, depending
10590         on COMPILE_WPRINTF.
10591         Temporarily, on entry to this function, update mode_flags
10592         according to the environmental settings corresponding to
10593         PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
10594         Throughout, check mode_flags instead of __ldbl_is_dbl and
10595         _IO_FLAGS2_FORTIFY on the destination FILE.
10596         * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
10597         Include vfprintf-internal.c.  Don't include wctype.h.
10598         * stdio-common/vfprintf.c: New file.  Just define __vfprintf
10599         as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
10600         and vfprintf.
10601         * stdio-common/vfwprintf.c: New file.  Just define __vfwprintf
10602         as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
10603         and vfwprintf.
10604         * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
10606         * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
10607         and add mode_flags argument; use __vfprintf_internal.
10608         (__vdprintf): New function.  Alias vdprintf to this.
10609         * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
10610         * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
10611         * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
10612         (__obstack_printf): Use __obstack_printf_internal.
10613         * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
10614         public aliases __vsnprintf and vsnprintf.
10615         Remove use of ldbl_hidden_def, since __vsnprintf is no longer
10616         called internally.
10617         * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
10618         public aliases _IO_vsprintf and vsprintf.
10619         * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
10620         * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
10621         * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
10622         * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
10623         * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
10625         * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
10626         * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
10627         * stdio-common/fprintf.c, stdio-common/fxprintf.c
10628         * stdio-common/printf.c: Use __vfprintf_internal.
10630         * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
10631         * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
10632         * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
10634         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
10635         __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
10636         __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
10637         __vfwprintf_internal.
10639         * libio/libio.h: Remove libc_hidden_proto and declaration for
10640         _IO_vfprintf.
10641         Remove declaration of _IO_vfwprintf.
10642         * libio/iolibio.h: Remove libc_hidden_proto and declaration for
10643         _IO_vsprintf.
10644         Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
10645         _IO_obstack_printf.
10646         * include/stdio.h: Add prototype for __vasprintf.
10647         (__vsnprintf): Remove declaration, because there are no more
10648         internal calls.
10649         * include/wchar.h (__vfwprintf, __vswprintf): Remove
10650         declaration, because there are no more internal calls.
10652         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
10653         __vsnprintf_internal, instead of _IO_vsnprintf.
10654         * argp/argp-help.c (__argp_error, __argp_failure): Use
10655         __vasprintf_internal, instead of _IO_vasprintf.
10656         * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
10657         redefine, because there are no more internal calls.
10659 2018-12-05  Zack Weinberg  <zackw@panix.com>
10660             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10662         * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
10663         * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
10664         Include libio/strfile.h instead of libioP.h.
10665         (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
10666         (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
10667         (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
10668         (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
10669         (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
10670         directly, passing SCANF_LDBL_IS_DBL.  Set up a strfile if
10671         necessary.  Do not set __no_long_double.  Normalize variable names.
10672         (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
10673         (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
10674         (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
10675         (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
10676         (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
10677         (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
10678         Call __vfscanf_internal / __vfwscanf_internal directly, passing
10679         SCANF_LDBL_IS_DBL | SCANF_ISOC99_A.  Set up a strfile if necessary.
10680         Do not set __no_long_double.  Normalize variable names.
10682 2018-12-05  Zack Weinberg  <zackw@panix.com>
10683             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10685         * stdio-common/isoc99_scanf.c
10686         * stdio-common/isoc99_fscanf.c
10687         * stdio-common/isoc99_sscanf.c
10688         * stdio-common/isoc99_vscanf.c
10689         * stdio-common/isoc99_vfscanf.c
10690         * stdio-common/isoc99_vsscanf.c
10691         * wcsmbs/isoc99_wscanf.c
10692         * wcsmbs/isoc99_fwscanf.c
10693         * wcsmbs/isoc99_swscanf.c
10694         * wcsmbs/isoc99_vwscanf.c
10695         * wcsmbs/isoc99_vfwscanf.c
10696         * wcsmbs/isoc99_vswscanf.c:
10697         Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
10698         Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
10699         No need to lock and unlock the FILE passed to that function.
10701         * stdio-common/vfscanf-internal.c
10702         (__vfscanf_internal, __vfwscanf_internal):
10703         Don't look at _IO_FLAGS2_SCANF_STD.
10704         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
10705         (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
10706         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
10708 2018-12-05  Zack Weinberg  <zackw@panix.com>
10709             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10711         * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
10712         (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
10713         * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
10714         * libio/strfile.h: Add multiple inclusion guard.
10715         (_IO_strfile_read, _IO_strfile_readw): New inline functions.
10717         * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
10718         consistency with the other version of this file.
10719         (ldbl_compat_symbol): New macro.
10720         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
10721         New macro.
10723         * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
10724         Define __vfscanf_internal or __vfwscanf_internal, depending on
10725         COMPILE_WSCANF; don't define any other public symbols.
10726         Remove errval and code to set errp.
10727         Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
10728         as the mode_flags argument.
10729         (encode_error, conv_error, input_error): Don't set errval.
10730         * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
10731         Include vfscanf-internal.c.
10732         * stdio-common/vfscanf.c: New file defining the public entry
10733         point vfscanf, which calls __vfscanf_internal.
10734         * stdio-common/vfwscanf.c: New file defining the public entry
10735         point vfwscanf, which calls __vfwscanf_internal.
10737         * stdio-common/iovfscanf.c: New file.
10738         * stdio-common/iovfwscanf.c: Likewise.
10740         * stdio-common/Makefile (routines): Add vfscanf-internal,
10741         vfwscanf-internal, iovfscanf, iovfwscanf.
10742         * stdio-common/Versions: Mention GLIBC_2.29, so that
10743         it can be used in SHLIB_COMPAT expressions.
10744         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
10745         Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
10746         Call __vfscanf_internal, instead of _IO_vfscanf.
10747         (__nldbl___vfscanf): Call __vfscanf_internal, instead of
10748         _IO_vfscanf.
10749         (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
10750         _IO_vfwscanf.
10752         * libio/iovsscanf.c: Clean up includes, when possible.  Use
10753         _IO_strfile_read or _IO_strfile_readw, when needed.  Call
10754         __vfscanf_internal or __vfwscanf_internal directly.
10755         * libio/iovswscanf.c: Likewise.
10756         * libio/swscanf.c: Likewise.
10757         * libio/vscanf.c: Likewise.
10758         * libio/vwscanf.c: Likewise.
10759         * libio/wscanf.c: Likewise.
10760         * stdio-common/isoc99_fscanf.c: Likewise.
10761         * stdio-common/isoc99_scanf.c: Likewise.
10762         * stdio-common/isoc99_sscanf.c: Likewise.
10763         * stdio-common/isoc99_vfscanf.c: Likewise.
10764         * stdio-common/isoc99_vscanf.c: Likewise.
10765         * stdio-common/isoc99_vsscanf.c: Likewise.
10766         * stdio-common/scanf.c: Likewise.
10767         * stdio-common/sscanf.c: Likewise.
10768         * wcsmbs/isoc99_fwscanf.c: Likewise.
10769         * wcsmbs/isoc99_swscanf.c: Likewise.
10770         * wcsmbs/isoc99_vfwscanf.c: Likewise.
10771         * wcsmbs/isoc99_vswscanf.c: Likewise.
10772         * wcsmbs/isoc99_vwscanf.c: Likewise.
10773         * wcsmbs/isoc99_wscanf.c: Likewise.
10775 2018-12-05  Albert ARIBAUD  <albert.aribaud@3adev.fr>
10777         * include/time.h
10778         (__tz_compute): Replace time_t with __time64_t.
10779         (__tz_convert): Replace time_t* with __time64_t.
10780         (__offtime): Replace time_t* with __time64_t.
10781         * time/gmtime.c
10782         (__gmtime_r): Adjust call to __tz_convert.
10783         (gmtime): Likewise.
10784         * time/localtime.c
10785         (__localtime_r): Likewise.
10786         (localtime): Likewise.
10787         * time/offtime.c: Replace time_t with __time64_t.
10788         * time/tzset.c: Likewise.
10790 2018-12-04  Joseph Myers  <joseph@codesourcery.com>
10792         * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
10793         dynamic linker unless [$(run-built-tests) = yes].
10795 2018-12-03  DJ Delorie  <dj@delorie.com>
10797         * support/test-container.c (check_for_unshare_hints): New.
10798         (main): Call it if unshare fails.  Add support for "su" scriptlet
10799         command.
10801 2018-12-03  Joseph Myers  <joseph@codesourcery.com>
10803         * scripts/gen-as-const.py (compute_c_consts): Take an argument
10804         'START' to indicate that start text should be output.
10805         (gen_test): Likewise.
10806         (main): Generate 'START' for first symbol or '--' line, or at end
10807         of input if not previously generated.
10809 2018-12-03  Rafael Ăvila de EspĂ­ndola  <rafael@espindo.la>
10811         [BZ #19767]
10812         * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
10813         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
10814         * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
10815         ALWAYS_USE_VSYSCALL.
10817 2018-12-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10819         [BZ #23913]
10820         * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
10821         new_argv by one.
10823 2018-12-03  Carlos O'Donell  <carlos@redhat.com>
10825         [BZ #23923]
10826         * locale/programs/localedef.c: Declare boolean hard_links default true.
10827         (options): Add --no-hard-links option.
10828         (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
10829         * locale/programs/localedef.h: Declare prototype for hard_links.
10830         * locale/programs/locfile.c (write_locale_data): Don't use hard
10831         links if hard_links is false.
10833 2018-12-03  H.J. Lu  <hongjiu.lu@intel.com>
10835         * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
10836         cpu_features_basic.
10837         (__cache_sysconf): Likewise.
10838         (init_cacheinfo): Likewise.
10839         * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
10840         populate COMMON_CPUID_INDEX_80000007 and
10841         COMMON_CPUID_INDEX_80000008.
10842         (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
10843         Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
10844         XSAVEC is available.  Set the bit_arch_XXX_Usable bits.
10845         (init_cpu_features): Use _Static_assert on
10846         index_arch_Fast_Unaligned_Load.
10847         __get_cpuid_registers and __get_arch_feature.  Updated for
10848         cpu_features_basic.  Set stepping in cpu_features.
10849         * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
10850         (FEATURE_INDEX_2): New.
10851         (FEATURE_INDEX_MAX): Changed to enum.
10852         (COMMON_CPUID_INDEX_D_ECX_1): New.
10853         (COMMON_CPUID_INDEX_80000007): Likewise.
10854         (COMMON_CPUID_INDEX_80000008): Likewise.
10855         (cpuid_registers): Likewise.
10856         (cpu_features_basic): Likewise.
10857         (CPU_FEATURE_USABLE): Likewise.
10858         (bit_arch_XXX_Usable): Likewise.
10859         (cpu_features): Use cpuid_registers and cpu_features_basic.
10860         (bit_arch_XXX): Reweritten.
10861         (bit_cpu_XXX): Likewise.
10862         (index_cpu_XXX): Likewise.
10863         (reg_XXX): Likewise.
10864         * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
10865         <support/check.h>.
10866         (CHECK_CPU_FEATURE): New.
10867         (CHECK_CPU_FEATURE_USABLE): Likewise.
10868         (cpu_kinds): Likewise.
10869         (do_test): Print vendor, family, model and stepping.  Check
10870         HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
10871         (TEST_FUNCTION): Removed.
10872         Include <support/test-driver.c> instead of
10873         "../../test-skeleton.c".
10874         * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
10875         Check POPCNT instead of POPCOUNT.
10876         * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
10878 2018-12-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10880         * scripts/gen-as-const.py (main): Avoid emitting empty line when
10881         there is no element in `consts'.
10883 2018-12-01  Florian Weimer  <fweimer@redhat.com>
10885         * support/support_capture_subprocess.c
10886         (support_capture_subprocess): Check that pipe descriptors have
10887         expected values.  Close original pipe descriptors in subprocess.
10889 2018-12-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10891         [BZ #23032]
10892         * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
10893         attr with __pthread_default_barrierattr.
10894         * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
10895         attr with __pthread_default_condattr.
10896         * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
10897         attr with __pthread_default_mutexattr.
10898         * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
10899         attr with __pthread_default_rwlockattr.
10901 2018-12-01  Kemi Wang  <kemi.wang@intel.com>
10903         * manual/tunables.texi (POSIX Thread Tunables): New node.
10904         * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
10905         * nptl/nptl-init.c: Include pthread_mutex_conf.h
10906         (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
10907         __pthread_tunables_init.
10908         * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
10909         (max_adaptive_count): Define.
10910         * nptl/pthread_mutex_conf.c: New file.
10911         * nptl/pthread_mutex_conf.h: New file.
10912         * sysdeps/generic/adaptive_spin_count.h: New file.
10913         * sysdeps/nptl/dl-tunables.list: New file.
10914         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
10915         max_adaptive_count () not MAX_ADAPTIVE_COUNT.
10916         * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
10917         Likewise.
10919 2018-12-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
10921         [BZ #20544]
10922         * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10923         * stdlib/on_exit.c (__on_exit): Likewise.
10924         * stdlib/Makefile (tests): Add tst-bz20544.
10925         * stdlib/tst-bz20544.c: New test.
10927 2018-11-30  Rafael Ăvila de EspĂ­ndola  <rafael@espindo.la>
10929         [BZ #19767]
10930         * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10931         * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10932         New.
10934 2018-11-30  Florian Weimer  <fweimer@redhat.com>
10936         * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10937         Extend error logging.
10938         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10939         symbol.
10941 2018-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10943         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10944         __sigismember instead of sigismember.
10945         * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10946         cancel_handler): New definitions.
10947         (do_system): Use posix_spawn instead of fork and execl and remove
10948         reentracy code.
10949         * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10950         * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10951         * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10952         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10953         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10954         * sysdeps/unix/sysv/linux/system.c: Likewise.
10956         [BZ #22834]
10957         [BZ #17490]
10958         * NEWS: Add new semantic for atfork with popen and system.
10959         * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10960         fork and execl.
10962 2018-11-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
10964         [BZ #23690]
10965         * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10966         modification order when accessing reloc_result->addr.
10967         * include/link.h (reloc_result): Add field init.
10968         * nptl/Makefile (tests): Add tst-audit-threads.
10969         (modules-names): Add tst-audit-threads-mod1 and
10970         tst-audit-threads-mod2.
10971         Add rules to build tst-audit-threads.
10972         * nptl/tst-audit-threads-mod1.c: New file.
10973         * nptl/tst-audit-threads-mod2.c: Likewise.
10974         * nptl/tst-audit-threads.c: Likewise.
10975         * nptl/tst-audit-threads.h: Likewise.
10977 2018-11-30  Joseph Myers  <joseph@codesourcery.com>
10979         * scripts/gen-as-const.py: New file.
10980         * scripts/gen-as-const.awk: Remove.
10981         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10982         gen-as-const.py.
10983         ($(objpfx)test-as-const-%.c): Likewise.
10985 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
10987         * elf/dl-exception.c: Include <_itoa.h>.
10989 2018-11-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10991         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10992         returned by __f_setlk.
10994 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
10995             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10997         * elf/Makefile (tests-internal): Add tst-create_format1.
10998         * elf/dl-exception.c (_dl_exception_create_format): Support
10999         %x, %lx and %zx.
11000         * elf/tst-create_format1.c: New file.
11002 2018-11-29  Charles-Antoine Couret  <charles-antoine.couret@essensium.com>
11004         * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
11005         conditional on calls to _IO_fwide and putwc_unlocked.  (Merge from
11006         gnulib.)
11007         * argp/argp-help.c (__argp_failure): Likewise.
11009 2018-11-29  Mao Han  <han_mao@c-sky.com>
11011         * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
11012         (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
11013         (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
11014         (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
11015         (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
11016         (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
11017         (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
11018         (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
11019         (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
11020         (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
11021         (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
11022         (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
11023         (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
11024         (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
11025         (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
11026         (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
11027         (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
11028         (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
11029         (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
11030         (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
11031         (R_CKCORE_TLS_TPOFF32): New defines.
11033 2018-11-29  Florian Weimer  <fweimer@redhat.com>
11035         * posix/Makefile (before-compile): Remove testcases.h and
11036         ptestcases.h.
11037         (generated): Add testcases.h and ptestcases.h.
11038         (testcases.h, ptestcases.h): Move to $(objpfx).
11039         (runtests.o): Add dependency on testcases.h.
11040         (runptests.o): Add dependency on ptestcases.h.
11041         * posix/testcases.h, posix/ptestcases.h: Remove files.
11042         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
11043         not touch posix/testcases.h and posix/ptestcases.h.
11045 2018-11-28  Florian Weimer  <fweimer@redhat.com>
11047         support: Add signal support to support_capture_subprocess_check.
11048         * support/capture_subprocess.h (support_capture_subprocess_check):
11049         Adjust comment and rename parameter.
11050         * support/support_capture_subprocess_check.c
11051         (print_actual_status): New function.
11052         (support_capture_subprocess_check): Support negative
11053         status_or_signal.  Call print_actual_status.
11054         * support/tst-support_capture_subprocess.c (do_test): Call
11055         support_capture_subprocess_check.
11056         * libio/tst-vtables-common.c (termination_status)
11057         (init_termination_status): Remove.
11058         (check_for_termination): Adjust support_capture_subprocess_check
11059         call.
11060         (do_test): Remove call to init_termination_status.
11062 2018-11-28  Joseph Myers  <joseph@codesourcery.com>
11064         * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
11065         source directory instead of a copy.
11066         (CommandList.create_copy_dir): Remove.
11068 2018-11-28  Stefan Liebler  <stli@linux.ibm.com>
11070         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11072 2018-11-28  Florian Weimer  <fweimer@redhat.com>
11074         * support/support.h (support_quote_string): Do not use str
11075         parameter name.
11077 2018-11-27  Joseph Myers  <joseph@codesourcery.com>
11079         * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
11080         $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
11082 2018-11-27  Florian Weimer  <fweimer@redhat.com>
11084         * support/support.h (support_quote_string): Declare.
11085         * support/support_quote_string.c: New file.
11086         * support/tst-support_quote_string.c: Likewise.
11087         * support/Makefile (libsupport-routines): Add
11088         support_quote_string.
11089         (tests): Add tst-support_quote_string.
11091 2018-11-27  Florian Weimer  <fweimer@redhat.com>
11093         [BZ #23927]
11094         CVE-2018-19591
11095         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
11096         descriptor leak in case of ENODEV error.
11098 2018-11-27  Rafael Ăvila de EspĂ­ndola  <rafael@espindo.la>
11100         [BZ #19767]
11101         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
11102         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
11103         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
11105 2018-11-26  Carlos O'Donell  <carlos@redhat.com>
11107         * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
11108         Error for unknown lines.
11110 2018-11-26  Joseph Myers  <joseph@codesourcery.com>
11112         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
11113         Touch additional files.
11115 2018-11-26  Florian Weimer  <fweimer@redhat.com>
11117         [BZ #23907]
11118         * malloc/malloc.c (_int_free): Validate tc_idx before checking for
11119         double-frees.
11121 2018-11-26  Rafael Ăvila de EspĂ­ndola  <rafael@espindo.la>
11123         [BZ #19767]
11124         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
11125         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
11126         SHARED.  Include sysdep.h.
11127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
11128         ALWAYS_USE_VSYSCALL.
11129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
11130         ALWAYS_USE_VSYSCALL.
11132 2018-11-23  Rafael Ăvila de EspĂ­ndola  <rafael@espindo.la>
11134         [BZ #19767]
11135         * nptl/Makefile (tests-static): Add tst-cond11-static.
11136         (tests): Likewise.
11137         * nptl/tst-cond11-static.c: New File.
11138         * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
11139         tst-affinity-static.
11140         (tests): Likewise.
11141         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
11142         instead of SHARED.
11143         * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
11144         (USE_VSYSCALL): Likewise.
11145         * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
11146         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
11147         instead of SHARED.
11148         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
11149         SHARED.
11150         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
11151         New.
11153 2018-11-23  Joseph Myers  <joseph@codesourcery.com>
11155         [BZ #23915]
11156         * sysdeps/unix/sysv/linux/arm/kernel-features.h
11157         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
11158         Undefine.
11160 2018-11-23  H.J. Lu  <hongjiu.lu@intel.com>
11162         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
11163         (tst-cet-legacy-1a-ARGS): New.
11164         ($(objpfx)tst-cet-legacy-1a): New target.
11165         * sysdeps/x86/tst-cet-legacy-1a.c: New file.
11167 2018-11-22  Joseph Myers  <joseph@codesourcery.com>
11169         * conform/conformtest.py (CompileSubTest.__init__): Set
11170         self.run_early to False.
11171         (ExecuteSubTest.__init__): Likewise.
11172         (HeaderTests.run): Try running all non-optional, non-XFAILed
11173         compilation tests in a single execution of the compiler.
11175         * conform/conformtest.py (CompileSubTest): New class.
11176         (ExecuteSubTest): Likewise.
11177         (ElementTest.run): Rename to gen_subtests.  Append tests to
11178         self.subtests instead of running them.
11179         (ConstantTest.run): Likewise.
11180         (SymbolTest.run): Likewise.
11181         (TypeTest.run): Likewise.
11182         (TagTest.run): Likewise.
11183         (FunctionTest.run): Likewise.
11184         (VariableTest.run): Likewise.
11185         (MacroFunctionTest.run): Likewise.
11186         (MacroStrTest.run): Likewise.
11187         (HeaderTests.handle_test_line): Generate subtests for tests.
11188         (HeaderTests.run): Run subtests for tests.
11190 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11192         * math/Versions (GLIBC_2.29): Add pow.
11193         * math/w_pow_compat.c (__pow_compat): Change to versioned compat
11194         symbol.
11195         * math/w_pow.c: New file.
11196         * sysdeps/i386/fpu/w_pow.c: New file.
11197         * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
11198         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
11199         and add necessary aliases.
11200         * sysdeps/ieee754/dbl-64/w_pow.c: New file.
11201         * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
11202         * sysdeps/mach/hurd/i386/libm.abilist: Update.
11203         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11204         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
11205         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
11206         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
11207         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11208         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
11209         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
11210         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
11211         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
11212         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
11213         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
11214         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
11215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
11216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
11217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
11218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
11219         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
11220         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
11221         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
11222         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
11223         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
11224         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
11225         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
11226         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
11227         __pow.
11228         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
11229         * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
11230         * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
11232 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11234         * math/Versions (GLIBC_2.29): Add log2.
11235         * math/w_log2_compat.c (__log2_compat): Change to versioned compat
11236         symbol.
11237         * math/w_log2.c: New file.
11238         * sysdeps/i386/fpu/w_log2.c: New file.
11239         * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
11240         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
11241         and add necessary aliases.
11242         * sysdeps/ieee754/dbl-64/w_log2.c: New file.
11243         * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
11244         * sysdeps/mach/hurd/i386/libm.abilist: Update.
11245         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11246         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
11247         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
11248         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
11249         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11250         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
11251         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
11252         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
11253         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
11254         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
11255         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
11256         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
11257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
11258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
11259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
11260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
11261         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
11262         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
11263         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
11264         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
11265         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
11266         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
11267         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
11269 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11271         * math/Versions (GLIBC_2.29): Add log.
11272         * math/w_log_compat.c (__log_compat): Change to versioned compat
11273         symbol.
11274         * math/w_log.c: New file.
11275         * sysdeps/i386/fpu/w_log.c: New file.
11276         * sysdeps/ia64/fpu/e_log.S: Update.
11277         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
11278         and add necessary aliases.
11279         * sysdeps/ieee754/dbl-64/w_log.c: New file.
11280         * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
11281         * sysdeps/mach/hurd/i386/libm.abilist: Update.
11282         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11283         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
11284         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
11285         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
11286         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11287         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
11288         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
11289         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
11290         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
11291         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
11292         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
11293         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
11294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
11295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
11296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
11297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
11298         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
11299         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
11300         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
11301         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
11302         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
11303         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
11304         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
11305         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
11306         __log.
11307         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
11308         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
11309         * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
11310         * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
11312 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11314         * math/Versions (GLIBC_2.29): Add exp and exp2.
11315         * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
11316         symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
11317         * math/w_exp_compat.c (__exp_compat): Likewise.
11318         * math/w_exp.c: New file.
11319         * math/w_exp2.c: New file.
11320         * sysdeps/i386/fpu/w_exp.c: New file.
11321         * sysdeps/i386/fpu/w_exp2.c: New file.
11322         * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
11323         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
11324         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
11325         and add necessary aliases.
11326         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
11327         and add necessary aliases.
11328         * sysdeps/ieee754/dbl-64/w_exp.c: New file.
11329         * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
11330         * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
11331         * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
11332         * sysdeps/mach/hurd/i386/libm.abilist: Update.
11333         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11334         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
11335         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
11336         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
11337         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11338         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
11339         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
11340         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
11341         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
11342         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
11343         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
11344         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
11345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
11346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
11347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
11348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
11349         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
11350         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
11351         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
11352         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
11353         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
11354         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
11355         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
11356         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
11357         (__ieee754_exp): Rename to __exp.
11358         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
11359         (__ieee754_exp): Rename to __exp.
11360         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
11361         (__ieee754_exp): Rename to __exp.
11362         * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
11363         __exp.
11364         * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
11366 2018-11-20  DJ Delorie  <dj@redhat.com>
11368         * malloc/malloc.c (tcache_entry): Add key field.
11369         (tcache_put): Set it.
11370         (tcache_get): Likewise.
11371         (_int_free): Check for double free in tcache.
11372         * malloc/tst-tcfree1.c: New.
11373         * malloc/tst-tcfree2.c: New.
11374         * malloc/Makefile: Run the new tests.
11375         * manual/probes.texi: Document memory_tcache_double_free probe.
11377         * dlfcn/dlerror.c (check_free): Prevent double frees.
11379 2018-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
11381         * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
11383 2018-11-20  Joseph Myers  <joseph@codesourcery.com>
11385         * conform/conformtest.py (ElementTest.run): Use unique identifiers
11386         in tests.  Use names for format arguments.
11387         (ConstantTest.run): Likewise.
11388         (SymbolTest.run): Likewise.
11389         (TypeTest.run): Likewise.
11390         (TagTest.run): Likewise.
11391         (FunctionTest.run): Likewise.
11392         (VariableTest.run): Likewise.
11393         (MacroFunctionTest.run): Likewise.
11394         (MacroStrTest.run): Likewise.
11395         (HeaderTests.__init__): Set self.num_tests.
11396         (HeaderTests.handle_test_line): Set test.num.  Increment
11397         self.num_tests.
11399 2018-11-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11401         * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
11402         (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
11403         SEEK_SET.
11405 2018-11-19  Mao Han  <han_mao@c-sky.com>
11407         * scripts/config.guess: Update to version 2018-08-29.
11408         * scripts/config.sub: Update to version 2018-08-29.
11410 2018-11-19  Florian Weimer  <fweimer@redhat.com>
11412         support: Print timestamps in timeout handler.
11413         * support/support_test_main.c (print_timestamp): New function.
11414         (signal_handler): Use it to print the termination time and the
11415         time of the last write to standard output.
11417 2018-11-16  Zack Weinberg  <zackw@panix.com>
11418             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11420         * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
11421         (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
11422         argument.
11423         * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
11424         and add flags argument.  Check flags instead of __ldbl_is_dbl when
11425         deciding whether to set is_long_double.
11426         (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
11427         passing zero for flags argument.
11428         * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
11430         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
11431         (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
11432         (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
11433         directly, passing STRFMON_LDBL_IS_DBL for flags argument.  Normalize
11434         variable names.  Remove libc_hidden_def/libc_hidden_proto from
11435         __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
11436         longer called from within the library.
11437         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
11438         for __nldbl___vstrfmon_l, declare it explicitly.
11440         * manual/locale.texi: Update a reference to vstrfmon_l in comments.
11442 2018-11-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11444         * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
11445         macros
11446         [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
11447         F_SETLK64, F_SETLKW64, respectively.
11448         * sysdeps/mach/hurd/f_setlk.c: New file.
11449         * sysdeps/mach/hurd/f_setlk.h: New file.
11450         * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
11451         f_setlk.
11452         * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
11453         (__libc_fcntl): Move non-flock operations to...
11454         * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
11455         * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
11457 2018-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11459         mktime: DEBUG_MKTIME cleanup
11460         The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
11461         And it’s no longer needed now that glibc and Gnulib both have
11462         their own testing mechanisms for mktime.
11463         * time/mktime.c (DEBUG_MKTIME): Remove.  All uses removed.
11465         mktime: fix non-EOVERFLOW errno handling
11466         [BZ#23789]
11467         mktime was not properly reporting failures when the underlying
11468         localtime_r fails with errno != EOVERFLOW; it incorrectly treated
11469         them like EOVERFLOW failures, and set errno to EOVERFLOW.
11470         The problem could happen on non-glibc platforms, with Gnulib.
11471         * time/mktime.c (guess_time_tm): Remove, replacing with ...
11472         (tm_diff): ... this simpler function, which does not change errno.
11473         All callers changed to deal with errno themselves.
11474         (ranged_convert, __mktime_internal): Return failure immediately if
11475         the underlying function reports any failure other than EOVERFLOW.
11476         (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
11477         gap code fails.
11479         mktime: fix bug with Y2038 DST transition
11480         [BZ#23789]
11481         * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
11482         mishandle a DST transition that jumps over the Y2038 boundary.
11483         No such DST transitions are known so this is only a theoretical
11484         bug, but we might as well do things right.
11486         mktime: make more room for overflow
11487         [BZ#23789]
11488         * time/mktime.c (long_int): Now 4⚯ int, not just 3⚯.
11489         This is so that we can add tm_diff results to a previous guess,
11490         which will be useful in a later patch.
11492         mktime: simplify offset guess
11493         [BZ#23789]
11494         * time/mktime.c (__mktime_internal): Omit excess precision.
11496         mktime: new test for mktime failure
11497         [BZ#23789]
11498         Based on a test suggested by Albert Aribaud in:
11499         https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
11500         * time/Makefile (tests): Add bug-mktime4.
11501         * time/bug-mktime4.c: New file.
11503         mktime: fix EOVERFLOW bug
11504         [BZ#23789]
11505         * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
11506         Include libc-config.h, not config.h, for __set_errno.
11507         (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
11509 2018-11-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11511         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
11512         __attribute_copy__ to copy attributes from name. Drop static qualifier
11513         to avoid warnings about leaf attribute not having effect on static
11514         functions.
11516 2018-11-13  Florian Weimer  <fweimer@redhat.com>
11518         * malloc/malloc.c (fastbin_push_entry): New function.
11519         (fastbin_pop_entry): Likewise.  Replaces REMOVE_FB.
11520         (REMOVE_FB): Remove macro.
11521         (_int_malloc): Use fastbin_pop_entry and reindent.
11522         (_int_free): Use fastbin_push_entry.
11523         (malloc_consolidate): Use atomic_exchange_acquire.
11525 2018-11-13  Joseph Myers  <joseph@codesourcery.com>
11527         * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
11528         alias attribute, not with strong_alias.
11530         * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
11531         (__hidden_ver2): New macro.  Use old definition of __hidden_ver1
11532         with additional parameter thread.
11533         [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
11534         in terms of __hidden_ver2.
11535         (hidden_tls_def): New macro.
11536         (libc_hidden_tls_def): Likewise.
11537         (rtld_hidden_tls_def): Likewise.
11538         (libm_hidden_tls_def): Likewise.
11539         (libmvec_hidden_tls_def): Likewise.
11540         (libresolv_hidden_tls_def): Likewise.
11541         (librt_hidden_tls_def): Likewise.
11542         (libdl_hidden_tls_def): Likewise.
11543         (libnss_files_hidden_tls_def): Likewise.
11544         (libnsl_hidden_tls_def): Likewise.
11545         (libnss_nisplus_hidden_tls_def): Likewise.
11546         (libutil_hidden_tls_def): Likewise.
11547         (libutil_hidden_tls_def): Likweise.
11548         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
11549         libc_hidden_tls_def.
11550         (__sim_disabled_exceptions_thread): Likewise.
11551         (__sim_round_mode_thread): Likewise.
11553         * sysdeps/sparc/sparc-ifunc.h [SHARED]
11554         (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
11555         copy attributes from name.
11557 2018-11-12  Joseph Myers  <joseph@codesourcery.com>
11559         * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
11560         Use __attribute_copy__ to copy attributes from name.
11562         * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
11563         with __hidden_ver1 call.
11564         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
11565         * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
11566         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
11567         (__cosf): Do not declare here.
11568         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
11569         (__sincosf): Do not declare here.
11570         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
11571         (__sinf): Do not declare here.
11573         * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
11574         (__BIG_ENDIAN): Likewise.
11575         (__BYTE_ORDER): Likewise.
11576         (strong_alias): Likewise.
11577         (_strong_alias): Likewise.
11579 2018-11-12  Florian Weimer  <fweimer@redhat.com>
11581         * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
11582         function.  Move after the definition of in_smallbin_range.  Do not
11583         use __builtin_expect for paths that lead to a noreturn function.
11584         Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
11585         because it is unclear whether this is in fact an unlikely
11586         condition.
11587         (_int_malloc, _int_free): Adjust.
11588         (malloc_consolidate, _int_realloc): Adjust.  Remove bck, fwd
11589         variables.
11590         * malloc/arena.c (heap_trim): Likewise.
11592 2018-11-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11594         * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
11595         it, free it if needed.
11596         (reauthenticate): Test and use ccwdir.
11597         (child_init_port): In non-resetids case, test and use ccwdir.
11598         (child_chdir): New nested function to set ccwdir.
11599         * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
11600         * hurd/hurd/port.h (_hurd_port_move): New function.
11601         * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
11602         (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
11603         * hurd/Versions (_hurd_port_move): Export function.
11604         * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
11605         symbol.
11606         * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
11607         of dtablesize for allocating dtable_cloexec.
11609 2018-11-09  Martin Sebor  <msebor@redhat.com>
11611         * include/libc-symbols.h (__attribute_copy__): Define macro unless
11612         it's already defined.
11613         (_strong_alias): Use __attribute_copy__.
11614         (_weak_alias,  __hidden_ver1,  __hidden_nolink2): Same.
11615         * misc/sys/cdefs.h (__attribute_copy__): New macro.
11616         * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
11617         * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
11618         * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
11619         * sysdeps/x86_64/multiarch/memset.c (memset): Same.
11620         * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
11621         * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
11622         * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
11623         * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
11624         * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
11625         * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
11626         * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
11627         * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
11628         * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
11629         * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
11630         * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
11631         * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
11632         * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
11634 2018-11-09  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11636         * misc/tst-efgcvt.c: Include support/check.h and
11637         support/test-driver.c.  Do not include test-skeleton.c.
11638         (error_count): Remove.
11639         (output_error): Replace increments to error_count with calls to
11640         support_record_failure.
11641         (output_r_error): Likewise.
11642         (special): Likewise.
11643         (do_test): Unconditionally return zero.
11644         (TEST_FUNCTION): Remove.
11646 2018-11-09  Joseph Myers  <joseph@codesourcery.com>
11648         * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
11649         not $(@D)/scratch.
11650         ($(linknamespace-header-tests)): Likewise.
11652         * conform/conformtest.py: New file.
11653         * conform/conformtest.pl: Remove.
11654         * conform/GlibcConform.pm: Likewise.
11655         * conform/glibcconform.py (KEYWORDS_C90): New constant.
11656         (KEYWORDS_C99): Likewise.
11657         (KEYWORDS): Likewise.
11658         * conform/Makefile ($(conformtest-header-tests)): Use
11659         conformtest.py instead of conformtest.pl.  Do not pass --tmpdir
11660         option.  Use --header instead of --headers.
11661         * conform/data/arpa/inet.h-data: Remove trailing semicolons on
11662         function entries.
11663         * conform/data/spawn.h-data: Likewise.
11664         * conform/data/fcntl.h-data (openat): Add space after function
11665         name.
11666         * conform/data/wchar.h-data (wcscasecmp): Likewise.
11667         (wcscasecmp_l): Likewise.
11668         * conform/data/termios.h-data (c_cc): Add space after element
11669         name.
11671 2018-11-08  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11673         * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
11674         instead of manually comparing and reporting mismatching strings.
11675         * misc/tst-ldbl-error.c (do_one_test): Likewise.
11676         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
11678 2018-11-08  Joseph Myers  <joseph@codesourcery.com>
11680         * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
11681         __ASSUME_SOCKETCALL.
11682         * sysdeps/unix/sysv/linux/i386/kernel-features.h
11683         (__ASSUME_SOCKETCALL): Remove.
11684         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11685         (__ASSUME_SOCKETCALL): Likewise.
11686         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11687         (__ASSUME_SOCKETCALL): Likewise.
11688         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11689         (__ASSUME_SOCKETCALL): Likewise.
11690         * sysdeps/unix/sysv/linux/s390/kernel-features.h
11691         (__ASSUME_SOCKETCALL): Likewise.
11692         * sysdeps/unix/sysv/linux/sh/kernel-features.h
11693         (__ASSUME_SOCKETCALL): Likewise.
11694         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11695         (__ASSUME_SOCKETCALL): Likewise.
11697 2018-11-08  H.J. Lu  <hongjiu.lu@intel.com>
11699         [BZ #23509]
11700         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
11701         note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
11702         Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
11703         Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
11704         * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits,  Add
11705         lc_unknown.
11707 2018-11-08  Alexandra HĂĄjkovĂĄ  <ahajkova@redhat.com>
11709         [BZ #17630]
11710         * resolv/tst-resolv-network.c: Add test for getnetbyname.
11712 2018-11-07  Joseph Myers  <joseph@codesourcery.com>
11714         [BZ #23867]
11715         * sysdeps/unix/sysv/linux/arm/kernel-features.h
11716         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11717         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11718         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11720 2018-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11722         * support/support_test_compare_string.c
11723         (support_test_compare_string): Fix printf format.
11725 2018-11-07  Florian Weimer  <fweimer@redhat.com>
11727         Implement TEST_COMPARE_STRING.
11728         * support/check.h (TEST_COMPARE_STRING): Define.
11729         (support_test_compare_string): Declare.
11730         * support/Makefile (libsupport-routines): Add
11731         support_test_compare_string.
11732         (tests): Add tst-test_compare_string.
11733         * support/support_test_compare_string.c: New file.
11734         * support/tst-test_compare_string.c: Likewise.
11736 2018-11-07  Andreas Schwab  <schwab@suse.de>
11738         [BZ #23864]
11739         * sysdeps/unix/sysv/linux/riscv/kernel-features.h
11740         (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
11741         Undef.
11743 2018-11-06  Joseph Myers  <joseph@codesourcery.com>
11745         [BZ #23862]
11746         * sysdeps/unix/sysv/linux/sh/kernel-features.h
11747         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
11748         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
11749         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
11750         Likewise.
11752 2018-11-06  Florian Weimer  <fweimer@redhat.com>
11754         [BZ #17405]
11755         * posix/Makefile (routines): Add spawn_faction_addchdir.
11756         (tests): Add tst-spawn-chdir.
11757         * posix/Versions (GLIBC_2.29): Add
11758         posix_spawn_file_actions_addchdir_np.
11759         * posix/spawn_faction_addchdir.c: New file.
11760         * posix/spawn_faction_destroy.c
11761         (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
11762         * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
11763         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
11764         chdir_action.
11765         * posix/tst-spawn-chdir.c: New file.
11766         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
11767         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11768         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
11769         posix_spawn_file_actions_addchdir_np.
11770         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
11771         Likewise.
11772         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
11773         Likewise.
11774         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
11775         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
11776         Likewise.
11777         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
11778         Likewise.
11779         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
11780         Likewise.
11781         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
11782         Likewise.
11783         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
11784         Likewise.
11785         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
11786         Likewise.
11787         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
11788         (GLIBC_2.29): Likewise.
11789         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
11790         (GLIBC_2.29): Likewise.
11791         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
11792         (GLIBC_2.29): Likewise.
11793         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
11794         (GLIBC_2.29): Likewise.
11795         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
11796         Likewise.
11797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
11798         (GLIBC_2.29): Likewise.
11799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
11800         (GLIBC_2.29): Likewise.
11801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
11802         (GLIBC_2.29): Likewise.
11803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
11804         (GLIBC_2.29): Likewise.
11805         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
11806         Likewise.
11807         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
11808         Likewise.
11809         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
11810         Likewise.
11811         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
11812         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
11813         Likewise.
11814         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
11815         Likewise.
11816         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
11817         Likewise.
11818         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
11819         Likewise.
11821 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11823         * misc/Makefile (tests): Add tst-ldbl-error.
11824         * misc/tst-ldbl-error.c: New file.
11826 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11828         * misc/Makefile (tests): Add tst-ldbl-warn.
11829         * misc/tst-ldbl-warn.c: New file.
11831 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11833         * argp/Makefile (tests): Add tst-ldbl-argp.
11834         * argp/tst-ldbl-argp.c: New file.
11836 2018-11-05  Arjun Shankar  <arjun@redhat.com>
11838         * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
11839         __gconv_path_elem and call __gconv_get_path unconditionally.
11841 2018-11-05  Andreas Schwab  <schwab@suse.de>
11843         [BZ #22927]
11844         * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
11845         creating the first helper thread failed.
11847 2018-11-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11849         * sysdeps/mach/hurd/msync.c: New file.
11851 2018-11-02  Florian Weimer  <fweimer@redhat.com>
11853         * support/shell-container.c (copy_func): Call
11854         support_copy_file_range instead of copy_file_range to support
11855         cross-device copies.
11857 2018-11-02  Florian Weimer  <fweimer@redhat.com>
11859         * support/test-container.c: Include <libc-pointer-arith.h> for
11860         ALIGN_UP.
11862 2018-11-01  Zong Li  <zong@andestech.com>
11864         * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
11865         (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
11866         (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
11867         (__FP_FRAC_SET_8): Add implementation for RV32 use.
11869         * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
11870         variable to avoid overlap arguments.
11872 2018-11-01  Joseph Myers  <joseph@codesourcery.com>
11874         * posix/bug-regex22.c (main): Use puts with distinct error
11875         messages for unexpected success of re_compile_pattern, not printf
11876         with NULL argument to %s.
11878         * stdio-common/bug22.c: Include <libc-diag.h>.
11879         (do_test): Disable -Wformat-overflow= warnings around fprintf
11880         calls outputting more than INT_MAX characters.
11881         * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
11882         around printf call with NULL %s argument.
11884         [BZ #23848]
11885         * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
11886         __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
11887         Undefine.
11888         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11889         (__ASSUME_RECVMSG_SYSCALL): Likewise.
11890         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11891         (__ASSUME_SENDTO_SYSCALL): Likewise.
11892         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11893         (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
11894         [!__arch64__].
11895         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11896         (__ASSUME_CONNECT_SYSCALL): Likewise.
11897         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11898         (__ASSUME_RECVFROM_SYSCALL): Likewise.
11899         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
11900         Define.
11901         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
11902         Likewise.
11903         [__LINUX_KERNEL_VERSION >= 0x040400]
11904         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
11905         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
11906         Remove.
11907         (listen): Likewise.
11908         (setsockopt): Likewise.
11910 2018-11-01  Fredrik Noring  <noring@nocrew.org>
11912         * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
11913         with the ISA override.
11915 2018-10-31  Rafael Ăvila de EspĂ­ndola  <rafael@espindo.la>
11917         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
11918         #endif.
11920 2018-10-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11922         * manual/errno.texi (EIEIO): Document how translators should
11923         translate the error message.
11924         * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d.  Avoid
11925         printing trailing whitespaces refused by git.
11926         * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11927         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11928         * hurd/Makefile (user-interfaces): Add pci.
11930 2018-10-30  Joseph Myers  <joseph@codesourcery.com>
11932         * conform/linknamespace.py: New file.
11933         * conform/linknamespace.pl: Remove file.
11934         * conform/Makefile ($(linknamespace-header-tests)): Use
11935         linknamespace.py instead of linknamespace.pl.  Do not use --tmpdir
11936         option.
11938 2018-10-30  Florian Weimer  <fweimer@redhat.com>
11940         * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11941         memory leaks.
11943 2018-10-30  Florian Weimer  <fweimer@redhat.com>
11945         * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11947 2018-10-30  Florian Weimer  <fweimer@redhat.com>
11949         * stdlib/tst-strtod-overflow.c (do_test): Switch to
11950         support_blob_repeat.
11952 2018-10-30  Florian Weimer  <fweimer@redhat.com>
11954         Avoid spurious test failures in stdlib/test-bz22786.
11955         * support/Makefile (libsupport-routines): Add blob_repeat.
11956         (tests): Add tst-support_blob_repeat.
11957         * support/blob_repeat.h: New file.
11958         * support/blob_repeat.c: Likewise.
11959         * support/tst-support_blob_repeat.c: Likewise.
11960         * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11961         support_blob_repeat_allocate.
11963 2018-10-30  Andreas Schwab  <schwab@suse.de>
11965         [BZ #23125]
11966         * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11967         Don't use tail call.
11968         * elf/tst-unwind-main.c: New file.
11969         * elf/Makefile (tests): Add tst-unwind-main.
11970         (CFLAGS-tst-unwind-main.c): Define.
11972 2018-10-29  Sergi Almacellas Abellana  <sergi@koolpi.com>
11974         [BZ #23791]
11975         * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11976         n_cs_precedes to 0.
11977         * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11979 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
11981         * conform/glibcconform.py: Do not import shutil.
11982         (list_exported_functions): Use tempfile.TemporaryDirectory instead
11983         of mkdtemp.
11985         * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER.  Set
11986         critic_missing for versions before 3.4.
11987         * configure: Regenerated.
11988         * manual/install.texi (Tools for Compilation): Document
11989         requirement for Python to build glibc.
11990         * INSTALL: Regenerated.
11991         * Rules [PYTHON]: Make code unconditional.
11992         * benchtests/Makefile [PYTHON]: Likewise.
11993         * conform/Makefile [PYTHON]: Likewise.
11994         * manual/Makefile [PYTHON]: Likewise.
11995         * math/Makefile [PYTHON]: Likewise.
11997 2018-10-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11999         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
12000         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
12001         answer to interrupt_operation, return EIEIO instead of EINTR.
12002         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
12003         _hurd_intr_rpc_msg_about_to global point to start of controlled
12004         assembly snippet. Make it check canceled flag.
12005         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
12006         the _hurd_intr_rpc_msg_about_to point.
12007         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
12008         issue, remove cancel flag check.
12010 2018-10-26  Joseph Myers  <joseph@codesourcery.com>
12012         * scripts/build-many-glibcs.py: Remove compatibility for missing
12013         os.cpu_count and re.fullmatch.
12015 2018-10-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12017         [BZ #23822]
12018         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
12019         * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
12020         * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
12022 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
12024         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
12025         macro.
12027 2018-10-25  Florian Weimer  <fweimer@redhat.com>
12029         [BZ #23562]
12030         [BZ #23821]
12031         XFAIL siginfo_t si_band conform test on sparc64.
12032         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
12033         (__SI_BAND_TYPE): Only override long int default type on sparc64.
12034         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
12035         (conformtest-xfail-conds): Add sparc64-linux.
12036         * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
12037         sparc64.
12038         * conform/data/sys/wait.h-data (siginfo_t): Likewise.
12040 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
12042         * elf/elf.h (NT_MIPS_DSP): New macro.
12043         (NT_MIPS_FP_MODE): Likewise.
12045 2018-10-25  Zong Li  <zong@andestech.com>
12047         * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
12048         name by adding the file extension (.so).
12050 2018-10-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12052         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12053         (test-xfail-ISO11/threads.h/linknamespace,
12054         test-xfail-ISO11/threads.h/conform): Add.
12056 2018-10-24  Joseph Myers  <joseph@codesourcery.com>
12058         * math/gen-libm-test.py: Import os.
12059         (ALL_FLOATS_MANUAL): New constant.
12060         (ALL_FLOATS_SUFFIX): Likewise.
12061         (Ulps.all_functions): New function.
12062         (real_all_ulps): Likewise.
12063         (generate_err_table_sub): Likewise.
12064         (generate_err_table): Likewise.
12065         (main): Handle -s and -m options.
12066         * manual/libm-err-tab.pl: Remove.
12067         * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
12068         instead of libm-err-tab.pl.
12069         [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
12070         != no].
12071         * manual/install.texi (Tools for Compilation): Document
12072         requirement for Python to build manual.
12073         * INSTALL: Regenerated.
12075 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
12077         * bits/time64.h: New file.
12078         * include/time.h: Replace internal_time_t with __time64_t.
12079         * posix/bits/types (__time64_t): Add.
12080         * stdlib/Makefile: Add bits/time64.h to includes.
12081         * time/tzfile.c: Replace internal_time_t with __time64_t.
12083 2018-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12085         * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
12086         __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
12087         __posix_spawn_file_actions_init, __posix_spawnattr_init,
12088         __posix_spawnattr_destroy, __posix_spawnattr_setflags,
12089         __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
12090         prototype.
12091         * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
12092         * posix/spawn_faction_addclose.c
12093         (__posix_spawn_file_actions_addclose): Add hidden definition.
12094         * posix/spawn_faction_adddup2.c
12095         (__posix_spawn_file_actions_adddup2): Likewise.
12096         * posix/spawn_faction_destroy.c
12097         (__posix_spawn_file_actions_destroy): Likewise.
12098         * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
12099         Likewise.
12100         * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
12101         * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
12102         * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
12103         Likewise.
12104         * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
12105         * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
12106         Likewise.
12108 2018-10-24  Andreas Schwab  <schwab@suse.de>
12110         [BZ #18093]
12111         * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
12112         format cache.
12113         * elf/cache.c (print_cache): Likewise.
12115 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
12117         * bits/timesize.h: New file.
12118         * stdlib/Makefile (headers): Add bits/timesize.h.
12119         * sysdeps/unix/sysv/linux/bits/msq-pad.h
12120         (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
12121         * sysdeps/unix/sysv/linux/bits/sem-pad.h
12122         (__SEM_PAD_AFTER_TIME): Likewise.
12123         * sysdeps/unix/sysv/linux/bits/shm-pad.h
12124         (__SHM_PAD_AFTER_TIME): Likewise.
12125         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
12126         (__MSQ_PAD_BEFORE_TIME): Likewise.
12127         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
12128         (__SEM_PAD_BEFORE_TIME): Likewise.
12129         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
12130         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
12131         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
12132         (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
12133         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
12134         (__MSQ_PAD_BEFORE_TIME): Likewise.
12135         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
12136         (__SEM_PAD_BEFORE_TIME): Likewise.
12137         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
12138         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
12139         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
12140         (__MSQ_PAD_BEFORE_TIME): Likewise.
12141         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
12142         (__SEM_PAD_BEFORE_TIME): Likewise.
12143         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
12144         (__SHM_PAD_BEFORE_TIME): Likewise.
12145         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
12146         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
12147         * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
12149 2018-10-24  H.J. Lu  <hongjiu.lu@intel.com>
12151         * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
12152         USE_RDTSCP is defined.
12153         * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
12154         USE_RDTSCP is defined.
12156 2018-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12158         * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
12159         defined.
12161         [BZ #23709]
12162         * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
12163         independently of other flags.
12165 2018-10-23  Florian Weimer  <fweimer@redhat.com>
12167         * time/tst-mktime2.c (N_STRINGS): Remove.
12168         (set_timezone): New function.
12169         (spring_forward_gap): Call it.  Use FAIL_EXIT1.
12170         (mktime_test1): Report localtime failure and check errno value.
12171         Use TEST_COMPARE.
12172         (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
12173         (do_test): Remove alarm call. Use set_timezone and array_length.
12175 2018-10-23  Andreas Schwab  <schwab@suse.de>
12177         * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
12178         (__start_context): Use END instead of PSEUDO_END.
12180 2018-10-22  Joseph Myers  <joseph@codesourcery.com>
12182         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12183         version to 4.19.
12185         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12186         version to 4.19.
12188         [BZ #23793]
12189         * wcsmbs/c32rtomb.c: New file.
12190         * wcsmbs/mbrtoc32.c: Likewise.
12191         * wcsmbs/tst-c32-state.c: Likewise.
12192         * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
12193         * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
12194         * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
12195         (tests): Add tst-c32-state.
12196         [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
12197         $(gen-locales).
12199 2018-10-21  H.J. Lu  <hongjiu.lu@intel.com>
12201         * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
12202         (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
12204 2018-10-19  Joseph Myers  <joseph@codesourcery.com>
12206         [BZ #23794]
12207         * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
12208         pair and return 0 in that case, and use saved character to
12209         interpret following character.
12210         * wcsmbs/tst-c16-surrogate.c: New file.
12211         * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
12212         [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
12213         Depend on $(gen-locales)
12215 2018-10-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
12217         [BZ #23562]
12218         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
12219         (struct siginfo_t): Use correct type for si_band.
12221 2018-10-19  Florian Weimer  <fweimer@redhat.com>
12223         [BZ #23689]
12224         * resource/bits/types/struct_rusage.h (struct rusage): Update
12225         comment on struct.  Remove extraneous field comment.
12227 2018-10-18  David S. Miller  <davem@davemloft.net>
12229         * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
12230         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
12231         * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
12232         sysdep_routines in subdir elf.
12233         * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
12234         version for __vdso_clock_gettime.
12235         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
12236         Define.
12237         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
12238         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
12240         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
12242 2018-10-17  H.J. Lu  <hongjiu.lu@intel.com>
12244         * sysdeps/i386/init-arch.h: Removed.
12245         * sysdeps/i386/i586/init-arch.h: Likewise.
12246         * sysdeps/i386/i686/init-arch.h: Likewise.
12247         * sysdeps/i386/i686/hp-timing.h: Likewise.
12248         * sysdeps/x86_64/hp-timing.h: Likewise.
12249         * sysdeps/i386/isa.h: New file.
12250         * sysdeps/i386/i586/isa.h: Likewise.
12251         * sysdeps/i386/i686/isa.h: Likewise.
12252         * sysdeps/x86_64/isa.h: Likewise.
12253         * sysdeps/x86/hp-timing.h: New file.
12254         * sysdeps/x86/init-arch.h: Include <isa.h>.
12256 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
12258         * math/libm-test-pow.inc (pow_test_data): Do not allow
12259         divide-by-zero exception for pow(+/- 0, -Inf).
12261 2018-10-17  Zack Weinberg  <zackw@panix.com>
12263         * manual/job.texi (Job Control is Optional): Remove node, as
12264         job control has not been optional in quite some time.
12265         (Job Control): Mention briefly that systems older than
12266         POSIX.1-2001 might not support job control.
12267         * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
12268         defined on systems conforming to POSIX.1-2001.
12270 2018-10-17  Arjun Shankar  <arjun@redhat.com>
12272         [BZ #22062]
12273         * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
12274         indentation.
12275         * (__gconv_read_conf): Mark function static.
12276         * (once): New static variable.
12277         * (__gconv_load_conf): New function.
12278         * iconv/gconv_int.h (__gconv_load_conf): Likewise.
12279         * iconv/gconv_db.c (once): Remove static variable.
12280         * (__gconv_compare_alias): Use __gconv_load_conf instead of
12281         __gconv_read_conf.
12282         * (__gconv_find_transform): Likewise.
12283         * iconv/tst-iconv-mt.c: New test.
12284         * iconv/Makefile: Add tst-iconv_mt.
12286 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
12288         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12289         bits/shm-pad.h.
12290         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
12291         (shmatt_t): Define as __syscall_ulong_t.
12292         (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
12293         and [__SHM_PAD_AFTER_TIME].
12294         (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
12295         Define shm_segsz and associated padding based on
12296         [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
12297         Use __syscall_ulong_t instead of unsigned long int.
12298         [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
12299         unsigned long int.
12300         [__USE_MISC] (struct shm_info): Likewise.
12301         * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
12302         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
12303         * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
12304         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
12305         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
12306         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
12307         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
12308         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
12309         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
12310         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
12311         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
12313         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12314         bits/shmlba.h.
12315         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
12316         (SHMLBA): Remove macro.
12317         (__getpagesize): Remove function declaration.
12318         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
12319         <bits/shmlba.h>.
12320         (SHMLBA): Remove macro.
12321         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
12322         <bits/shmlba.h>.
12323         (SHMLBA): Remove macro.
12324         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
12325         <bits/shmlba.h>.
12326         (SHMLBA): Remove macro.
12327         (__getpagesize): Remove function declaration.
12328         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
12329         <bits/shmlba.h>.
12330         (SHMLBA): Remove macro.
12331         (__getshmlba): Remove function declaration.
12332         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
12333         (SHMLBA): Remove macro.
12334         (__getpagesize): Remove function declaration.
12335         * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
12336         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
12337         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
12338         * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
12339         * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
12340         * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
12341         * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
12342         * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
12343         * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
12344         * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
12346 2018-10-17  Stefan Liebler  <stli@linux.ibm.com>
12348         [BZ #23275]
12349         * nptl/tst-mutex10.c: New File.
12350         * nptl/Makefile (tests): Add tst-mutex10.
12351         (tst-mutex10-ENV): New variable.
12352         * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
12353         Ensure that elision path is used if elision is available.
12354         * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
12355         Likewise.
12356         * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
12357         Likewise.
12358         * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
12359         (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
12360         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
12361         * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
12362         Likewise.
12363         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
12364         (__pthread_mutex_cond_lock_adjust): Likewise.
12365         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
12366         Likewise.
12367         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
12368         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
12369         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
12370         * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
12371         Add comments.
12372         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
12373         Use atomic_load_relaxed and atomic_store_relaxed.
12374         * nptl/pthread_mutex_init.c (__pthread_mutex_init):
12375         Use atomic_store_relaxed.
12377 2018-10-17  Andreas Schwab  <schwab@suse.de>
12379         * benchtests/bench-strtod.c (TIMEOUT): Don't define.
12380         * crypt/badsalttest.c (TIMEOUT): Likewise.
12381         * crypt/sha256c-test.c (TIMEOUT): Likewise.
12382         * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
12383         * io/test-lfs.c (TIMEOUT): Likewise.
12384         * libio/tst-atime.c (TIMEOUT): Likewise.
12385         * localedata/tst-leaks.c (TIMEOUT): Likewise.
12386         * nptl/tst-cancel19.c (TIMEOUT): Likewise.
12387         * nptl/tst-cancel22.c (TIMEOUT): Likewise.
12388         * nptl/tst-cancel25.c (TIMEOUT): Likewise.
12389         * nptl/tst-cancel7.c (TIMEOUT): Likewise.
12390         * nptl/tst-cond-except.c (TIMEOUT): Likewise.
12391         * nptl/tst-cond11.c (TIMEOUT): Likewise.
12392         * nptl/tst-cond14.c (TIMEOUT): Likewise.
12393         * nptl/tst-cond15.c (TIMEOUT): Likewise.
12394         * nptl/tst-cond24.c (TIMEOUT): Likewise.
12395         * nptl/tst-cond25.c (TIMEOUT): Likewise.
12396         * nptl/tst-kill2.c (TIMEOUT): Likewise.
12397         * nptl/tst-kill3.c (TIMEOUT): Likewise.
12398         * nptl/tst-mutex4.c (TIMEOUT): Likewise.
12399         * nptl/tst-mutex5.c (TIMEOUT): Likewise.
12400         * nptl/tst-mutex9.c (TIMEOUT): Likewise.
12401         * nptl/tst-once2.c (TIMEOUT): Likewise.
12402         * nptl/tst-once3.c (TIMEOUT): Likewise.
12403         * nptl/tst-once4.c (TIMEOUT): Likewise.
12404         * nptl/tst-robust8.c (TIMEOUT): Likewise.
12405         * nptl/tst-robust9.c (TIMEOUT): Likewise.
12406         * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
12407         * nptl/tst-sem14.c (TIMEOUT): Likewise.
12408         * nptl/tst-sem6.c (TIMEOUT): Likewise.
12409         * nptl/tst-signal3.c (TIMEOUT): Likewise.
12410         * nptl/tst-spin4.c (TIMEOUT): Likewise.
12411         * nptl/tst-tls3.c (TIMEOUT): Likewise.
12412         * nptl/tst-tls4.c (TIMEOUT): Likewise.
12413         * posix/tst-chmod.c (TIMEOUT): Likewise.
12414         * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
12415         * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
12416         * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
12417         * posix/tst-regex2.c (TIMEOUT): Likewise.
12418         * posix/tst-waitid.c (TIMEOUT): Likewise.
12419         * rt/tst-aio.c (TIMEOUT): Likewise.
12420         * rt/tst-aio10.c (TIMEOUT): Likewise.
12421         * rt/tst-aio4.c (TIMEOUT): Likewise.
12422         * rt/tst-aio5.c (TIMEOUT): Likewise.
12423         * rt/tst-aio6.c (TIMEOUT): Likewise.
12424         * rt/tst-aio64.c (TIMEOUT): Likewise.
12425         * rt/tst-aio7.c (TIMEOUT): Likewise.
12426         * rt/tst-aio9.c (TIMEOUT): Likewise.
12427         * rt/tst-clock.c (TIMEOUT): Likewise.
12428         * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
12429         * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
12430         * rt/tst-mqueue2.c (TIMEOUT): Likewise.
12431         * rt/tst-mqueue4.c (TIMEOUT): Likewise.
12432         * rt/tst-mqueue5.c (TIMEOUT): Likewise.
12433         * rt/tst-timer4.c (TIMEOUT): Likewise.
12434         * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
12435         * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
12436         * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
12437         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
12438         * time/tst-ftime.c (TIMEOUT): Likewise.
12439         * timezone/tst-tzset.c (TIMEOUT): Likewise.
12441 2018-10-16  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
12443         * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
12444         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
12445         for thunderX2.
12447 2018-10-15  Joseph Myers  <joseph@codesourcery.com>
12449         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12450         bits/sem-pad.h.
12451         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
12452         instead of <bits/wordsize.h>.
12453         (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
12454         and [__SEM_PAD_AFTER_TIME].
12455         (struct semid_ds): Define time fields using __SEM_PAD_TIME.  Use
12456         __syscall_ulong_t instead of unsigned long int.
12457         * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
12458         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
12459         * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
12460         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
12461         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
12462         * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
12463         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
12464         * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
12465         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
12466         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
12467         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
12469 2018-10-14  Paul Eggert  <eggert@cs.ucla.edu>
12471         regex: simplify by using intprops.h
12472         [BZ#23744]
12473         * posix/regex_internal.h [_LIBC]: Include intprops.h.
12474         (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
12475         intprops.h defines them.
12477         regex: __builtin_expect â†’ __glibc_unlikely
12478         [BZ#23744]
12479         This refactoring was prompted by a problem when the regex code is
12480         used as part of Gnulib and when the builder’s compiler does not grok
12481         __builtin_expect.  Problem reported for Gawk by Nelson H.F. Beebe in:
12482         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
12483         Although this refactoring does not fix the problem directly,
12484         we might as well have Gawk use the now-preferred glibc style for when
12485         __builtin_expect is unavailable.
12486         * posix/regex_internal.h (BE): Remove.
12487         All uses replaced by __glibc_unlikely or __glibc_likely.
12489 2018-10-11  Joseph Myers  <joseph@codesourcery.com>
12491         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12492         bits/msq-pad.h.
12493         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
12494         instead of <bits/wordsize.h>.
12495         (msgqnum_t): Define as __syscall_ulong_t.
12496         (msglen_t): Likewise.
12497         (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
12498         and [__MSQ_PAD_AFTER_TIME].
12499         (struct msqid_ds): Define time fields using __MSQ_PAD_TIME.  Use
12500         __syscall_ulong_t instead of unsigned long int.
12501         * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
12502         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
12503         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
12504         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
12505         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
12506         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
12507         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
12508         * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
12509         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
12510         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
12511         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
12513 2018-10-10  Joseph Myers  <joseph@codesourcery.com>
12515         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
12516         (struct shmid_ds): Condition padding after time fields on
12517         [__WORDSIZE == 32].
12518         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
12519         * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
12520         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
12522         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
12523         (struct semid_ds): Condition padding after time fields on
12524         [__WORDSIZE == 32].
12525         * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
12526         * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
12527         * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
12528         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
12530         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
12531         (struct msqid_ds): Condition padding after time fields on
12532         [__WORDSIZE == 32].
12533         * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
12534         * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
12535         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
12536         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
12538 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12540         * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
12542 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12544         * libio/tst-readline.c (TIMEOUT): Define.
12546 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12548         mktime fix for Gnulib + coreutils
12549         [BZ#23745]
12550         This fix affects only Gnulib.  Problem discovered when
12551         mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
12552         * time/mktime.c:
12553         (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
12554         Do not define since it is not used.  Defining an unused static
12555         function prompts a warning from GCC when Coreutils is configured
12556         with --enable-gcc-warnings.
12558 2018-10-08  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
12560         * benchtests/scripts/compare_bench.py (main): set float type on
12561         threshold argument.
12563 2018-10-08  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
12565         [BZ #23740]
12566         * localedata/locales/kl_GL (mon): Update, the relative case.
12567         (alt_mon): Add, fill with month names in the nominative case.
12568         (d_t_fmt): Set to "%a %b %d %Y %T %Z".
12569         (d_fmt): Set to "%b %d %Y".
12571 2018-10-04  Joseph Myers  <joseph@codesourcery.com>
12573         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
12574         <bits/mman-linux.h>.
12575         (PROT_READ): Don't define here.
12576         (PROT_WRITE): Likewise.
12577         (PROT_EXEC): Likewise.
12578         (PROT_NONE): Likewise.
12579         (PROT_GROWSDOWN): Likewise.
12580         (PROT_GROWSUP): Likewise.
12581         (MAP_SHARED): Likewise.
12582         (MAP_PRIVATE): Likewise.
12583         [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
12584         [__USE_MISC] (MAP_FILE): Likewise.
12585         [__USE_MISC] (MAP_ANONYMOUS): Likewise.
12586         [__USE_MISC] (MAP_ANON): Likewise.
12587         [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
12588         [__USE_MISC] (MAP_HUGE_MASK): Likewise.
12589         (MCL_CURRENT): Likewise.
12590         (MCL_FUTURE): Likewise.
12591         (MCL_ONFAULT): Likewise.
12592         [__USE_MISC] (MADV_NORMAL): Likewise.
12593         [__USE_MISC] (MADV_RANDOM): Likewise.
12594         [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
12595         [__USE_MISC] (MADV_WILLNEED): Likewise.
12596         [__USE_MISC] (MADV_DONTNEED): Likewise.
12597         [__USE_MISC] (MADV_FREE): Likewise.
12598         [__USE_MISC] (MADV_REMOVE): Likewise.
12599         [__USE_MISC] (MADV_DONTFORK): Likewise.
12600         [__USE_MISC] (MADV_DOFORK): Likewise.
12601         [__USE_MISC] (MADV_HWPOISON): Likewise.
12602         [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
12603         [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
12604         [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
12605         [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
12606         [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
12607         (__MAP_ANONYMOUS): New macro.
12608         [__USE_MISC] (MAP_TYPE): Undefine and redefine after
12609         <bits/mman-linux.h> inclusion.
12610         (MAP_FIXED): Likewise.
12611         (MS_SYNC): Likewise.
12612         (MS_ASYNC): Likewise.
12613         (MS_INVALIDATE): Likewise.
12614         [__USE_MISC] (MADV_MERGEABLE): Likewise.
12615         [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
12616         [__USE_MISC] (MADV_HUGEPAGE): Likewise.
12617         [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
12618         [__USE_MISC] (MADV_DONTDUMP): Likewise.
12619         [__USE_MISC] (MADV_DODUMP): Likewise.
12620         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
12621         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
12623         [BZ #23735]
12624         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
12625         Define.
12626         * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
12627         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
12628         Add test-nldbl-redirect.
12629         [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
12630         [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
12631         $(objpfx)libnldbl_nonshared.a.
12633 2018-10-04  Stefan Liebler  <stli@linux.ibm.com>
12635         * support/support.h (support_objdir_elf_ldso): New variable.
12636         * support/support_paths.c (support_objdir_elf_ldso): Likewise.
12637         * support/Makefile (CFLAGS-support_paths.c): Add definition
12638         for OBJDIR_ELF_LDSO_PATH.
12639         * support/test-container.c (main): Search for the ld.so
12640         which is also used by the testsuite.
12642 2018-10-02  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
12644         [BZ #20209]
12645         * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
12646         should be "sap" rather than "sab".
12647         (day): Fix spelling of Sunday, should be "sapaat" rather than
12648         "sabaat".
12650 2018-10-02  Joseph Myers  <joseph@codesourcery.com>
12652         * math/libm-test-fma.inc (fma_test_data): Add more tests.
12654 2018-10-02  Martin Jansa  <Martin.Jansa@gmail.com>
12656         [BZ #19444]
12657         * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
12658         DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
12659         DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
12661 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12663         * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
12665 2018-10-02  H.J. Lu  <hongjiu.lu@intel.com>
12667         * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
12668         Add -mrtm.
12669         (CFLAGS-elision-unlock.c): Likewise.
12670         (CFLAGS-elision-timed.c): Likewise.
12671         (CFLAGS-elision-trylock.c): Likewise.
12672         * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
12674 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12676         [BZ #21037]
12677         * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
12678         * libio/freopen.c (freopen): Sync stream before reopen and adjust to
12679         new fd_to_filename interface.
12680         * libio/freopen64.c (freopen64): Likewise.
12681         * libio/tst-memstream.h: New file.
12682         * libio/tst-memstream4.c: Likewise.
12683         * libio/tst-wmemstream4.c: Likewise.
12684         * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
12685         * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
12686         and remove internal dynamic allocation.
12688 2018-10-01  Joseph Myers  <joseph@codesourcery.com>
12690         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
12691         (MREMAP_MAYMOVE): Do not define here.
12692         [__USE_GNU] (MREMAP_FIXED): Likewise.
12693         * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
12694         (MREMAP_MAYMOVE): Define here instead.
12695         [__USE_GNU] (MREMAP_FIXED): Likewise.
12696         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
12697         (MREMAP_MAYMOVE): Remove.
12698         [__USE_GNU] (MREMAP_FIXED): Likewise.
12700 2018-09-28  Joseph Myers  <joseph@codesourcery.com>
12702         * math/fromfp.h: Do not include <math_private.h>.
12703         * math/s_cacosh_template.c: Likewise.
12704         * math/s_casin_template.c: Likewise.
12705         * math/s_casinh_template.c: Likewise.
12706         * math/s_ccos_template.c: Likewise.
12707         * math/s_cproj_template.c: Likewise.
12708         * math/s_fdim_template.c: Likewise.
12709         * math/s_fmaxmag_template.c: Likewise.
12710         * math/s_fminmag_template.c: Likewise.
12711         * math/s_iseqsig_template.c: Likewise.
12712         * math/s_ldexp_template.c: Likewise.
12713         * math/s_nextdown_template.c: Likewise.
12714         * math/w_log1p_template.c: Likewise.
12715         * math/w_scalbln_template.c: Likewise.
12716         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12717         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12718         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12719         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12720         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12721         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12722         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12723         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12724         * sysdeps/i386/fpu/s_atanl.c: Likewise.
12725         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12726         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12727         * sysdeps/i386/fpu/s_fdim.c: Likewise.
12728         * sysdeps/i386/fpu/s_logbl.c: Likewise.
12729         * sysdeps/i386/fpu/s_rintl.c: Likewise.
12730         * sysdeps/i386/fpu/s_significandl.c: Likewise.
12731         * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
12732         * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
12733         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12734         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12735         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12736         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12737         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12738         * sysdeps/ieee754/k_standardf.c: Likewise.
12739         * sysdeps/ieee754/k_standardl.c: Likewise.
12740         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12741         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
12742         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
12743         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
12744         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
12745         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
12746         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12747         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12748         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12749         * sysdeps/ieee754/s_signgam.c: Likewise.
12750         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
12751         * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
12752         * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
12753         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12754         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12755         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12756         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12757         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12758         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12759         * sysdeps/riscv/rvd/s_finite.c: Likewise.
12760         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12761         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12762         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12763         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12764         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12765         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12766         * sysdeps/riscv/rvf/fegetround.c: Likewise.
12767         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12768         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12769         * sysdeps/riscv/rvf/fesetround.c: Likewise.
12770         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12771         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12772         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12773         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12774         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12775         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12776         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12777         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12778         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12779         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12780         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12781         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12782         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12783         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12784         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12785         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12786         * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
12787         <math_private.h>.
12788         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12790 2018-09-28  H.J. Lu  <hongjiu.lu@intel.com>
12792         [BZ #23716]
12793         * sysdeps/i386/dl-cet.c: Removed.
12794         * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
12795         prototype.
12796         (_dl_runtime_profile_shstk): Likewise.
12797         (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
12798         _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
12800 2018-09-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12802         [BZ #23579]
12803         * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
12804         do_test_with_invalid_iov): New tests.
12805         * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
12806         Call do_test_with_invalid_fd and do_test_with_invalid_iov.
12807         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
12808         errno is ENOSYS.
12809         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12810         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12811         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
12813 2018-09-27  Joseph Myers  <joseph@codesourcery.com>
12815         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12816         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
12817         (MATH_REDIRECT_BINARY_ARGS): New macro.
12818         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12819         && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
12820         * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
12821         header inclusion.
12822         * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
12823         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12824         * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
12825         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12826         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12827         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12828         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12829         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12830         Likewise.
12831         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12832         Likewise.
12833         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
12834         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
12835         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12836         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
12838         Likewise.
12839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
12840         Likewise.
12841         * sysdeps/generic/math_private_calls.h
12842         [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
12843         Do not declare and define as an inline function.
12844         * math/divtc3.c (__divtc3): Use copysign functions instead of
12845         __copysign variants.
12846         * math/multc3.c (__multc3): Likewise.
12847         * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
12848         * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
12849         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
12850         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12851         Likewise.
12852         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
12853         (__ieee754_yn): Likewise.
12854         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
12855         * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
12856         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
12857         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12858         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
12859         (__sin): Likewise.
12860         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12861         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12862         Likewise.
12863         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12864         Likewise.
12865         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12866         Likewise.
12867         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
12868         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12869         Likewise.
12870         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
12871         (__ieee754_ynf): Likewise.
12872         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
12873         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12874         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12875         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12876         Likewise.
12877         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
12878         (__ieee754_ynl): Likewise.
12879         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12880         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12881         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12882         Likewise.
12883         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12884         (__ieee754_ynl): Likewise.
12885         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
12886         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12887         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12888         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12889         Likewise.
12890         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
12891         (__ieee754_ynl)
12892         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
12893         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12894         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
12895         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12896         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12898         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12899         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
12900         using MATH_REDIRECT.
12901         * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
12902         header inclusion.
12903         * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
12904         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12905         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12906         * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
12907         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12908         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12909         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
12911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
12912         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
12913         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
12914         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12915         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12916         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12917         (round): Redirect to __round.
12918         (__roundl): Call round instead of __round.
12919         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
12920         Remove macro.
12921         [_ARCH_PWR5X] (__roundf): Likewise.
12922         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12923         functions instead of __round variants.
12924         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12925         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12926         Likewise.
12927         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12928         Likewise.
12929         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12930         Likewise.
12931         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12932         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12933         __lroundl.
12934         (__ieee754_expl): Call roundl instead of __roundl.
12936 2018-09-27  Andreas Schwab  <schwab@suse.de>
12938         [BZ #23717]
12939         * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12940         (do_test): Make st1 static.
12942 2018-09-26  Andreas Schwab  <schwab@suse.de>
12944         [BZ #23707]
12945         * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12946         * elf/Makefile (tests): Add tst-unwind-ctor.
12947         (modules-names): Add tst-unwind-ctor-lib.
12948         ($(objpfx)tst-unwind-ctor): Depend on
12949         $(objpfx)tst-unwind-ctor-lib.so.
12951 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
12953         * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12954         file.  Most contents moved from ....
12955         * sysdeps/unix/sysv/linux/bits/mman.h: ... here.  Move contents to
12956         and include <bits/mman-map-flags-generic.h>.
12957         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12958         (sysdep_headers): Add bits/mman-map-flags-generic.h.
12959         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12960         <bits/mman-map-flags-generic.h>.
12961         [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12962         macros defined in <bits/mman-map-flags-generic.h>.
12963         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12964         <bits/mman-map-flags-generic.h>.
12965         [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12966         defined in <bits/mman-map-flags-generic.h>.
12968 2018-09-26  Andreas Schwab  <schwab@suse.de>
12970         * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12971         output.
12973 2018-09-25  Adam J. Richte  <adam_richter2004@yahoo.com>
12974             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12975             Fangrui Song  <maskray@google.com>
12977         [BZ #20480]
12978         * config.make.in (have-textrel_ifunc): New define.
12979         * configure.ac: Add check if linker supports textrel relocation with
12980         ifunc.
12981         * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12982         tst-ifunc-textrel.
12983         (CFLAGS-tst-ifunc-textrel.c): New rule.
12984         * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12985         DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12986         * elf/tst-ifunc-textrel.c: New file.
12988 2018-09-25  Joseph Myers  <joseph@codesourcery.com>
12990         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12991         <bits/procfs-prregset.h>.
12992         (prgregset_t): Define using __prgregset_t.
12993         (prfpregset_t): Define using __prfpregset_t.
12994         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12995         (sysdep_headers): Add bits/procfs-prregset.h.
12996         * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12997         * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12998         * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12999         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
13001         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
13002         <bits/procfs-id.h> and <bits/procfs-extra.h>.
13003         (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
13004         pr_uid and pr_gid.
13005         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13006         (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
13007         * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
13008         * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
13009         * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
13010         * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
13011         * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
13012         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
13013         * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
13014         * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
13015         * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
13016         * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
13017         * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
13018         * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
13019         * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
13020         * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
13021         * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
13022         * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
13023         * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
13024         * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
13025         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
13026         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
13027         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
13028         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
13030         * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
13031         AArch64 version.  Include <bits/procfs.h>.
13032         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13033         (sysdep_headers): Add bits/procfs.h.
13034         * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
13035         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
13036         * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
13037         * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
13038         * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
13039         * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
13040         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
13041         * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
13042         * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
13043         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
13044         * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
13045         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
13046         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
13047         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
13048         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
13049         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
13050         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
13052 2018-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13054         * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
13055         Use libsupport.
13057 2018-09-25  Arjun Shankar  <arjun@redhat.com>
13059         * iconv/gconv_int.h (__gconv_path_elem): Remove.
13060         (__gconv_max_path_elem_len): Likewise.
13061         (__gconv_nmodules): Likewise.
13062         (__gconv_get_path): Likewise.
13063         (path_elem): Move to ...
13064         * iconv/gconv_conf.c: ... here.
13065         (__gconv_get_path): Mark function static.
13066         * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
13067         * iconv/gconv_open.c: ... here.
13069 2018-09-24  Andreas Schwab  <schwab@suse.de>
13071         * scripts/haveversions.awk: New file.
13072         * Makerules ($(common-objpfx)Versions.def)
13073         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
13074         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
13075         Move rules ...
13076         * Makeconfig ($(common-objpfx)Versions.def)
13077         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
13078         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
13079         ... here.
13080         ($(common-objpfx)Versions.mk): New rule.  Include it.
13081         * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
13082         Emit error if build-obsolete-nsl = yes.
13083         * manual/install.texi (Configuring and compiling): Describe
13084         --enable-obsolete-nsl as unavaiable after version 2.28.
13085         * INSTALL: Regenerate.
13087 2018-09-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13089         * NEWS: Add note about new TLE support on powerpc64le.
13090         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
13091         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
13092         __ununsed1.
13093         (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
13094         (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
13095         * sysdeps/powerpc/powerpc32/sysdep.h,
13096         sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
13097         ABORT_TRANSACTION): Remove macros.
13098         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
13099         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
13100         __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
13101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
13102         sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
13103         sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
13104         usage.
13105         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
13107 2018-09-21  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
13109         [BZ #10425]
13110         * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
13111         (date_fmt): Use "%a %-d %b %Y, %T, %Z".
13112         * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
13113         which is the same as in it_IT.
13114         (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
13115         (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
13117 2018-09-20  Joseph Myers  <joseph@codesourcery.com>
13119         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13120         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
13121         using MATH_REDIRECT.
13122         * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
13123         header inclusion.
13124         * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
13125         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
13126         * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
13127         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
13128         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
13129         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
13130         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
13131         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
13132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
13133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
13134         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13135         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13136         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
13137         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
13138         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
13139         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
13140         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
13141         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13142         (ceil): Redirect to __ceil.
13143         (floor): Redirect to __floor.
13144         (trunc): Redirect to __trunc.
13145         (__truncl): Call trunc instead of __trunc.
13146         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
13147         Remove macro.
13148         [_ARCH_PWR5X] (__truncf): Likewise.
13149         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
13150         trunc functions instead of __trunc variants.
13151         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
13152         Likewise.
13153         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
13154         Likewise.
13155         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13156         Likewise.
13157         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
13158         Likewise.
13160         * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
13161         [__i586__ || __pentium__].
13162         [__i486__]: Handle explicitly.
13163         (HAS_CPUID): Define to 1 if above macros are undefined.
13164         (HAS_I586): Likewise.
13165         (HAS_I686): Likewise.
13167 2018-09-20  Florian Weimer  <fweimer@redhat.com>
13169         * misc/tst-gethostid.c: New file.
13170         * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
13171         (tst-gethostid): Link with -ldl.
13173 2018-09-20  Mingli Yu  <Mingli.Yu@windriver.com>
13175         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
13176         value from gethostbyname_r.
13178 2018-09-19  Carlos O'Donell  <carlos@redhat.com>
13180         * stdlib/tst-setcontext9.c (f1): Rename to...
13181         (f1a): ... this.
13182         (f1b): New function implementing lower half of f1 in alternate stack.
13184 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13186         Fix mktime localtime offset confusion
13187         [BZ #23603]
13188         * include/time.h (__mktime_internal): The localtime offset is now
13189         of type long int instead of time_t.  This is the longstanding type
13190         in glibc, and it is more than enough to represent difference
13191         between localtime and gmtime even if it is 32 bits and time_t is
13192         64.  Changing it now will let us avoid an unnecessary change when
13193         time_t is widened to 64 bits on 32-bit platforms.
13194         * time/mktime-internal.h (mktime_offset_t): Now long int.
13196         Merge mktime, timegm from upstream Gnulib
13197         [BZ #23603][BZ #16346]
13198         This fixes some obscure problems with integer overflow.
13199         Although it looks scary, it is almost all a byte-for-byte copy
13200         from Gnulib, and the Gnulib code has been tested reasonably well.
13201         * include/intprops.h: New file, copied from Gnulib.
13202         * include/verify.h, time/mktime-internal.h:
13203         New tiny files, simplified from Gnulib.
13204         * time/mktime.c: Copy from Gnulib.  This has the following changes:
13205         Do not include config.h if DEBUG_MKTIME is nonzero.
13206         Include stdbool.h, intprops.h, verify.h.
13207         Include string.h only if needed.
13208         Include stdlib.h on MS-Windows.
13209         Include mktime-internal.h.
13210         (DEBUG_MKTIME): Default to 0, and simplify later uses.
13211         (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
13212         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
13213         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
13214         simplify later conditionals; default the others to zero.  Use
13215         these conditionals to express only the code needed on the current
13216         platform.  In uses of these conditionals, explicitly spell out how
13217         _LIBC affects things, so it’s easier to review from a glibc
13218         viewpoint.
13219         (WRAPV): Remove; no longer needed now that we have
13220         systematic overflow checking.
13221         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
13222         compartmentalize tzset issues.  Move system-dependent tzsettish
13223         code here from mktime.
13224         (verify): Remove; now done by verify.h.  All uses changed.
13225         (long_int): Use a more-conservative definition, to avoid
13226         integer overflow.
13227         (SHR): Remove, replacing with ...
13228         (shr): New function, which means we needn’t worry about side
13229         effects in args, and conversion analysis is simpler.
13230         (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
13231         (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
13232         (time_t_avg, time_t_add_ok): Remove.
13233         (mktime_min, mktime_max): New constants.
13234         (leapyear, isdst_differ): Use bool for booleans.
13235         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
13236         Use long_int, not time_t, for mktime differences.
13237         (long_int_avg): New function, replacing time_t_avg.
13238         INT_ADD_WRAPV replaces time_t_add_ok.
13239         (guess_time_tm): 6th arg is now long_int, not time_t const *.
13240         All uses changed.
13241         (convert_time): New function.
13242         (ranged_convert): Use it.
13243         (__mktime_internal): Last arg now points to mktime_offset_t, not
13244         time_t.  All uses changed.  This is a no-op on glibc, where
13245         mktime_offset_t is always time_t.  Use int, not time_t, for UTC
13246         offset guess.  Directly check for integer overflow instead of
13247         using a heuristic that works only 99.9...% of the time.
13248         Access *OFFSET only once, to avoid an unlikely race if the
13249         compiler delays a load and if this cascades into a signed integer
13250         overflow.
13251         (mktime): Move tzsettish code to my_tzset, and move
13252         localtime_offset to within mktime so that it doesn’t
13253         need a separate ifdef.
13254         (main) [DEBUG_MKTIME]: Speed up by using localtime_r
13255         instead of localtime.
13256         * time/timegm.c: Copy from Gnulib.  This has the following changes:
13257         Include mktime-internal.h.
13258         [!_LIBC]: Include config.h and time.h.  Do not include
13259         timegm.h or time_r.h.  Make __mktime_internal a macro,
13260         and include mktime-internal.h to get its declaration.
13261         (timegm): Temporary is now mktime_offset_t, not time_t.
13262         This affects only Gnulib.
13264 2018-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
13266         [BZ #23637]
13267         * string/test-strstr.c (pr23637): New function.
13268         (test_main): Add tests with longer needles.
13269         * string/strcasestr.c (AVAILABLE): Fix readahead distance.
13270         * string/strstr.c (AVAILABLE): Likewise.
13272 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13274         * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
13276 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13278         * NEWS: Mention pow improvements.
13279         * math/Makefile (type-double-routines): Add e_pow_log_data.
13280         * sysdeps/generic/math_private.h (__exp1): Remove.
13281         * sysdeps/i386/fpu/e_pow_log_data.c: New file.
13282         * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
13283         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
13284         contraction.
13285         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
13286         (exp_inline): Remove.
13287         (__ieee754_exp): Only single double input is handled.
13288         * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
13289         * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
13290         * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
13291         (__pow_log_data): Define.
13292         * sysdeps/ieee754/dbl-64/upow.h: Remove.
13293         * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
13294         * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
13295         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
13296         contraction.
13297         (CFLAGS-e_pow-fma4.c): Likewise.
13299 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13301         Simplify tzfile fstat failure code
13302         [BZ #21716]
13303         * time/tzfile.c (__tzfile_read): Simplify slightly.
13305         Fix tzfile low-memory assertion failure
13306         [BZ #21716]
13307         * time/tzfile.c (__tzfile_read): Check for memory exhaustion
13308         when registering time zone abbreviations.
13310 2018-09-18  Joseph Myers  <joseph@codesourcery.com>
13312         * sysdeps/unix/sysv/linux/bits/mman.h: New file.
13313         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
13314         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
13315         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
13316         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
13317         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
13318         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
13319         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13320         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13322         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
13323         __ceil.
13324         (__ceill): Call ceil instead of __ceil.
13325         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
13326         __floor.
13327         (__floorl): Call floor instead of __floor.
13329 2018-09-17  Joseph Myers  <joseph@codesourcery.com>
13331         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13332         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
13333         using MATH_REDIRECT.
13334         * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
13335         header inclusion.
13336         * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
13337         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13338         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13339         * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
13340         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13341         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13342         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13343         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
13344         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
13345         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
13346         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
13347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
13348         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13349         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13350         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
13351         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
13352         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
13353         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
13354         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
13355         Remove macro.
13356         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
13357         functions instead of __ceil variants.
13358         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13359         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
13360         Likewise.
13361         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
13362         Likewise.
13363         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
13364         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
13365         Likewise.
13366         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
13367         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
13369         [BZ #21286]
13370         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
13371         constant.
13372         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
13373         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
13374         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
13375         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
13376         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
13377         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
13378         [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
13379         [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
13380         [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
13381         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
13382         (ILL_BADIADDR): Remove constant.
13383         (TRAP_BRANCH): Likewise.
13384         (TRAP_HWBKPT): Likewise.
13386 2018-09-14  Joseph Myers  <joseph@codesourcery.com>
13388         [BZ #23656]
13389         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
13390         Remove [_MIPS_SIM = _ABIN32] conditional case.
13391         (struct elf_prpsinfo): Likewise.
13393         [BZ #23649]
13394         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
13395         elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
13396         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
13397         Likewise.
13398         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
13399         elf_prpsinfo): Likewise.
13400         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
13401         elf_prpsinfo): Likewise.
13402         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
13403         Likewise.
13405         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13406         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
13407         using MATH_REDIRECT.
13408         * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
13409         header inclusion.
13410         * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
13411         * sysdeps/alpha/fpu/s_rint.c: Likewise.
13412         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
13413         * sysdeps/i386/fpu/s_rintl.c: Likewise.
13414         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13415         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13416         * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
13417         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13418         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13419         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13420         * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
13421         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
13422         * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
13423         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
13424         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
13425         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13426         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13427         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
13428         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
13429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
13430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
13431         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
13432         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
13433         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
13434         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
13435         * sysdeps/x86_64/fpu/math_private.h: Remove file.
13436         * math/e_scalb.c (invalid_fn): Use rint functions instead of
13437         __rint variants.
13438         * math/e_scalbf.c (invalid_fn): Likewise.
13439         * math/e_scalbl.c (invalid_fn): Likewise.
13440         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
13441         Likewise.
13442         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
13443         Likewise.
13444         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
13445         * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
13446         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
13447         Likewise.
13448         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13449         Likewise.
13450         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
13451         Likewise.
13452         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
13453         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
13455         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13456         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
13457         New macro.
13458         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13459         && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
13460         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13461         && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
13462         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13463         && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
13464         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13465         && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
13466         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13467         && !NO_MATH_REDIRECT] (floor): Likewise.
13468         * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
13469         header inclusion.
13470         * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
13471         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13472         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13473         * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
13474         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13475         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13476         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13477         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
13478         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
13479         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
13480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
13481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
13482         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13483         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13484         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
13485         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
13486         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
13487         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
13488         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
13489         Remove macro.
13490         [_ARCH_PWR5X] (__floorf): Likewise.
13491         * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
13492         inline function.
13493         [__SSE4_1__] (__floorf): Likewise.
13494         * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
13495         instead of __floor variants.
13496         * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
13497         * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
13498         * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
13499         * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
13500         * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
13501         * math/w_tgamma_compat.c (__tgamma): Likewise.
13502         * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
13503         * math/w_tgammaf_compat.c (__tgammaf): Likewise.
13504         * math/w_tgammal_compat.c (__tgammal): Likewise.
13505         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
13506         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
13507         Likewise.
13508         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
13509         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
13510         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
13511         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
13512         Likewise.
13513         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13514         * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
13515         Likewise.
13516         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
13517         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
13518         Likewise.
13519         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13520         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
13521         Likewise.
13522         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13523         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
13524         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
13525         * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
13526         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
13527         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
13529 2018-09-12  Joseph Myers  <joseph@codesourcery.com>
13531         * elf/Makefile (modules-names-tests): New variable.
13533 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13535         * NEWS: Mention log2 improvements.
13536         * math/Makefile (type-double-routines): Add e_log2_data.
13537         * sysdeps/i386/fpu/e_log2_data.c: New file.
13538         * sysdeps/ia64/fpu/e_log2_data.c: New file.
13539         * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
13540         * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
13541         * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
13542         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
13543         * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
13545 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13547         * NEWS: Mention log improvement.
13548         * math/Makefile (type-double-routines): Add e_log_data.
13549         * sysdeps/i386/fpu/e_log_data.c: New file.
13550         * sysdeps/ia64/fpu/e_log_data.c: New file.
13551         * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
13552         * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
13553         * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
13554         * sysdeps/ieee754/dbl-64/ulog.h: Remove.
13555         * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
13556         * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
13558 2018-09-12  H.J. Lu  <hongjiu.lu@intel.com>
13559             Xuepeng Guo  <xuepeng.guo@intel.com>
13561         [BZ #23606]
13562         * sysdeps/i386/start.S: Include <sysdep.h>
13563         (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
13564         enabled.  Add cfi_undefined (eip).
13566 2018-09-11  Joseph Myers  <joseph@codesourcery.com>
13568         * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
13569         (MOVQ): Likewise.
13570         (EXTRACT_WORDS64): Likewise.
13571         (INSERT_WORDS64): Likewise.
13572         (GET_FLOAT_WORD): Likewise.
13573         (SET_FLOAT_WORD): Likewise.
13575         * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
13576         argument.
13577         (Config.build_gcc): Use --disable-libsanitizer for first GCC
13578         build, but not for second build if --full-gcc.  Use
13579         --enable-languages=all for second build if --full-gcc.
13580         (get_parser): Add --full-gcc option.
13581         (main): Update call to Context.
13583 2018-09-10  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
13585         [BZ #10797]
13586         * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
13587         Single Quotation Mark).
13588         (thousands_sep): Likewise.
13589         * localedata/locales/it_CH (LC_NUMERIC): Use â€œcopy "de_CH"”.
13590         * localedata/locales/it_IT (thousands_sep): Use ".".
13591         (grouping): Use "3;3".
13593 2018-09-10  Joseph Myers  <joseph@codesourcery.com>
13595         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13596         x86_64 and i686 configs using --enable-obsolete-rpc
13597         --enable-obsolete-nsl.
13599 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
13601         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13603 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
13605         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
13606         Increment size of new_argv by one.
13608 2018-09-05  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
13610         [BZ #17426]
13611         * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
13612         * localedata/locales/ar_IN (d_fmt): Likewise.
13613         * localedata/locales/bhb_IN (d_fmt): Likewise.
13614         * localedata/locales/bho_IN (d_fmt): Likewise.
13615         * localedata/locales/bn_BD (d_fmt): Likewise.
13616         * localedata/locales/bn_IN (d_fmt): Likewise.
13617         * localedata/locales/doi_IN (d_fmt): Likewise.
13618         * localedata/locales/gu_IN (d_fmt): Likewise.
13619         * localedata/locales/hi_IN (d_fmt): Likewise.
13620         * localedata/locales/hne_IN (d_fmt): Likewise.
13621         * localedata/locales/kn_IN (d_fmt): Likewise.
13622         * localedata/locales/mag_IN (d_fmt): Likewise.
13623         * localedata/locales/mai_IN (d_fmt): Likewise.
13624         * localedata/locales/mjw_IN (d_fmt): Likewise.
13625         * localedata/locales/ml_IN (d_fmt): Likewise.
13626         * localedata/locales/mni_IN (d_fmt): Likewise.
13627         * localedata/locales/mr_IN (d_fmt): Likewise.
13628         * localedata/locales/pa_IN (d_fmt): Likewise.
13629         * localedata/locales/raj_IN (d_fmt): Likewise.
13630         * localedata/locales/sat_IN (d_fmt): Likewise.
13631         * localedata/locales/sd_IN (d_fmt): Likewise.
13632         * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
13633         * localedata/locales/ta_IN (d_fmt): Likewise.
13634         * localedata/locales/ta_LK (d_fmt): Likewise.
13635         * localedata/locales/tcy_IN (d_fmt): Likewise.
13636         * localedata/locales/ur_IN (d_fmt): Likewise.
13638         * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
13639         * localedata/locales/ks_IN (d_fmt): Likewise.
13640         * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
13642         * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
13643         * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
13644         * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
13645         * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
13647 2018-09-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13649         * NEWS: Mention exp and exp2 improvements.
13650         * math/Makefile (libm-support): Remove t_exp.
13651         (type-double-routines): Add math_err and e_exp_data.
13652         * sysdeps/aarch64/libm-test-ulps: Update.
13653         * sysdeps/arm/libm-test-ulps: Update.
13654         * sysdeps/i386/fpu/e_exp_data.c: New file.
13655         * sysdeps/i386/fpu/math_err.c: New file.
13656         * sysdeps/i386/fpu/t_exp.c: Remove.
13657         * sysdeps/ia64/fpu/e_exp_data.c: New file.
13658         * sysdeps/ia64/fpu/math_err.c: New file.
13659         * sysdeps/ia64/fpu/t_exp.c: Remove.
13660         * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
13661         * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
13662         * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
13663         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
13664         * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
13665         * sysdeps/ieee754/dbl-64/math_config.h: New file.
13666         * sysdeps/ieee754/dbl-64/math_err.c: New file.
13667         * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
13668         * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
13669         * sysdeps/ieee754/dbl-64/uexp.h: Remove.
13670         * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
13671         * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
13672         * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
13673         * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
13674         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13675         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13677 2018-09-05  Joseph Myers  <joseph@codesourcery.com>
13679         * sysdeps/alpha/fpu/math_private.h: Remove.
13681         * sysdeps/generic/math_private.h
13682         [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
13683         Move this inline function ....
13684         [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
13685         * include/math.h [!_ISOMAC]: To here....
13687 2018-09-04  Joseph Myers  <joseph@codesourcery.com>
13689         * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
13690         code ....
13691         [!FE_HAVE_ROUNDING_MODES]: And this code ....
13692         * include/fenv.h [!_ISOMAC]: ... to here.
13693         * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
13694         (feraiseexcept): Likewise.
13695         * math/fromfp.h: Do not include <fenv_private.h>.
13696         * math/s_cexp_template.c: Likewise.
13697         * math/s_csin_template.c: Likewise.
13698         * math/s_csinh_template.c: Likewise.
13699         * math/s_ctan_template.c: Likewise.
13700         * math/s_ctanh_template.c: Likewise.
13701         * math/s_iseqsig_template.c: Likewise.
13702         * math/w_acos_compat.c: Likewise.
13703         * math/w_acosf_compat.c: Likewise.
13704         * math/w_acosl_compat.c: Likewise.
13705         * math/w_asin_compat.c: Likewise.
13706         * math/w_asinf_compat.c: Likewise.
13707         * math/w_asinl_compat.c: Likewise.
13708         * math/w_j0_compat.c: Likewise.
13709         * math/w_j0f_compat.c: Likewise.
13710         * math/w_j0l_compat.c: Likewise.
13711         * math/w_j1_compat.c: Likewise.
13712         * math/w_j1f_compat.c: Likewise.
13713         * math/w_j1l_compat.c: Likewise.
13714         * math/w_jn_compat.c: Likewise.
13715         * math/w_jnf_compat.c: Likewise.
13716         * math/w_log10_compat.c: Likewise.
13717         * math/w_log10f_compat.c: Likewise.
13718         * math/w_log10l_compat.c: Likewise.
13719         * math/w_log2_compat.c: Likewise.
13720         * math/w_log2f_compat.c: Likewise.
13721         * math/w_log2l_compat.c: Likewise.
13722         * math/w_log_compat.c: Likewise.
13723         * math/w_logf_compat.c: Likewise.
13724         * math/w_logl_compat.c: Likewise.
13725         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13726         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13727         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13728         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13729         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13730         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13731         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13732         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13733         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13734         * sysdeps/ieee754/k_standardl.c: Likewise.
13735         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13736         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13737         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13738         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13739         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13740         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13741         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13742         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13743         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13744         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13745         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13746         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13747         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13748         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13749         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13750         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13751         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13752         * math/w_ilogb_template.c: Include <fenv.h> instead of
13753         <fenv_private.h>.
13754         * math/w_llogb_template.c: Likewise.
13755         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13756         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13758 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
13760         * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
13761         * math/fromfp.h: Include <fenv_private.h>.
13762         * math/math-narrow.h: Likewise.
13763         * math/s_cexp_template.c: Likewise.
13764         * math/s_csin_template.c: Likewise.
13765         * math/s_csinh_template.c: Likewise.
13766         * math/s_ctan_template.c: Likewise.
13767         * math/s_ctanh_template.c: Likewise.
13768         * math/s_iseqsig_template.c: Likewise.
13769         * math/w_acos_compat.c: Likewise.
13770         * math/w_acosf_compat.c: Likewise.
13771         * math/w_acosl_compat.c: Likewise.
13772         * math/w_asin_compat.c: Likewise.
13773         * math/w_asinf_compat.c: Likewise.
13774         * math/w_asinl_compat.c: Likewise.
13775         * math/w_ilogb_template.c: Likewise.
13776         * math/w_j0_compat.c: Likewise.
13777         * math/w_j0f_compat.c: Likewise.
13778         * math/w_j0l_compat.c: Likewise.
13779         * math/w_j1_compat.c: Likewise.
13780         * math/w_j1f_compat.c: Likewise.
13781         * math/w_j1l_compat.c: Likewise.
13782         * math/w_jn_compat.c: Likewise.
13783         * math/w_jnf_compat.c: Likewise.
13784         * math/w_llogb_template.c: Likewise.
13785         * math/w_log10_compat.c: Likewise.
13786         * math/w_log10f_compat.c: Likewise.
13787         * math/w_log10l_compat.c: Likewise.
13788         * math/w_log2_compat.c: Likewise.
13789         * math/w_log2f_compat.c: Likewise.
13790         * math/w_log2l_compat.c: Likewise.
13791         * math/w_log_compat.c: Likewise.
13792         * math/w_logf_compat.c: Likewise.
13793         * math/w_logl_compat.c: Likewise.
13794         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
13795         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
13796         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
13797         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
13798         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13799         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13800         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13801         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13802         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13803         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13804         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13805         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13806         * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
13807         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13808         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13809         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13810         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13811         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13812         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13813         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13814         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13815         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13816         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13817         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13818         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13819         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13820         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13821         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
13822         * sysdeps/ieee754/float128/float128_private.h: Likewise.
13823         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13824         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13825         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13826         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13827         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13828         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13829         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13830         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13831         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13832         * sysdeps/ieee754/k_standardl.c: Likewise.
13833         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13834         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13835         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13836         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13837         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
13838         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
13839         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13840         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13841         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13842         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13843         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13844         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13845         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13846         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13847         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13848         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13849         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13850         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
13851         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13852         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13853         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13854         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13855         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13856         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13857         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13858         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13859         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13860         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
13861         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
13862         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13863         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13864         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13865         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13866         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13867         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13868         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13869         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13870         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13871         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13872         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13873         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13874         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13875         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13876         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13877         * sysdeps/riscv/rvd/s_finite.c: Likewise.
13878         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13879         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13880         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13881         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13882         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13883         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13884         * sysdeps/riscv/rvf/fegetround.c: Likewise.
13885         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13886         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13887         * sysdeps/riscv/rvf/fesetround.c: Likewise.
13888         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13889         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13890         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13891         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13892         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13893         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13894         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13895         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13896         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13897         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13898         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13899         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13900         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13901         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13902         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13903         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13905 2018-08-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13907         [BZ #20271]
13908         * include/stdio.h (__libc_fatal): Mention newline in comment.
13909         * grp/initgroups.c (internal_getgrouplist): Add missing newline.
13910         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
13911         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13912         * nss/nsswitch.c (__nss_next2): Likewise.
13913         * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
13914         * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
13915         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
13916         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
13917         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
13918         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
13919         * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
13920         * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
13921         * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
13922         * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13923         * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13924         * sysdeps/unix/sysv/linux/netlink_assert_response.c
13925         (__netlink_assert_response): Likewise.
13927 2018-08-31  Joseph Myers  <joseph@codesourcery.com>
13929         * conform/glibcconform.py: New file.
13930         * conform/list-header-symbols.py: Likewise.
13931         * conform/list-header-symbols.pl: Remove.
13932         * conform/Makefile (tests-special): Only add linknamespace tests
13933         if [PYTHON].
13934         ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13936 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
13938         [BZ #23597]
13939         * support/Makefile (libsupport-routines): Add
13940         support_copy_file_range and xcopy_file_range.
13941         * support/support.h: Include <sys/types.h>.
13942         (support_copy_file_range): New prototype.
13943         * support/support_copy_file_range.c: New file.  Copied and
13944         modified from io/copy_file_range-compat.c.
13945         * support/test-container.c (copy_one_file): Call xcopy_file_rang
13946         instead of copy_file_range.
13947         * support/xcopy_file_range.c: New file.
13948         * support/xunistd.h (xcopy_file_range): New prototype.
13950 2018-08-30  Carlos O'Donell  <carlos@redhat.com>
13952         * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13953         xpthread_create and xpthread_join.
13955 2018-08-30  Florian Weimer  <fweimer@redhat.com>
13957         * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13959 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
13961         * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13962         if malloc fails.
13964 2018-08-29  Joseph Myers  <joseph@codesourcery.com>
13966         * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13967         and minus_oflow as non-finite.
13969 2018-08-28  Joseph Myers  <joseph@codesourcery.com>
13971         * sysdeps/aarch64/fpu/fenv_private.h: New file.  Based on ....
13972         * sysdeps/aarch64/fpu/math_private.h: ... this file.  All contents
13973         moved to fenv_private.h except for ...
13974         (TOINT_INTRINSICS): Kept in math_private.h.
13975         (roundtoint): Likewise.
13976         (converttoint): Likewise.
13977         * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13978         [ARM_FENV_PRIVATE_H].  Include next <fenv_private.h>.
13979         * sysdeps/arm/math_private.h: Remove.
13980         * sysdeps/generic/fenv_private.h: New file.  Contents moved from
13981         ....
13982         * sysdeps/generic/math_private.h: ... this file.  Include
13983         <stdbool.h>.  Do not include <fenv.h> or <get-rounding-mode.h>.
13984         Include <fenv_private.h>.  Remove functions and macros moved to
13985         fenv_private.h.
13986         * sysdeps/i386/fpu/math_private.h: Remove.
13987         * sysdeps/mips/math_private.h: Move to ....
13988         * sysdeps/mips/fpu/fenv_private.h: ... here.  Change
13989         multiple-include guard to [MIPS_FENV_PRIVATE_H].  Remove
13990         [__mips_hard_float] conditional.  Include next <fenv_private.h>.
13991         * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13992         guard to [POWERPC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
13993         * sysdeps/powerpc/fpu/math_private.h: Do not include
13994         <fenv_private.h>.
13995         * sysdeps/riscv/rvf/math_private.h: Move to ....
13996         * sysdeps/riscv/rvf/fenv_private.h: ... here.  Change
13997         multiple-include guard to [RISCV_FENV_PRIVATE_H].  Include next
13998         <fenv_private.h>.
13999         * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
14000         to [SPARC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
14001         * sysdeps/sparc/fpu/math_private.h: Remove.
14002         * sysdeps/i386/fpu/fenv_private.h: Move to ....
14003         * sysdeps/x86/fpu/fenv_private.h: ... here.  Change
14004         multiple-include guard to [X86_FENV_PRIVATE_H].  Include next
14005         <fenv_private.h>.
14006         * sysdeps/x86_64/fpu/math_private.h: Do not include
14007         <sysdeps/i386/fpu/fenv_private.h>.
14009 2018-08-28  Florian Weimer  <fweimer@redhat.com>
14011         [BZ #23578]
14012         * posix/tst-regcomp-truncated.c: New file.
14013         * posix/Makefile (tests): Add it.
14014         (tst-regcomp-truncated.out): Depend on generated locales.
14016 2018-08-28  Florian Weimer  <fweimer@redhat.com>
14018         * support/test-container.c (main): Treat unshare failure with
14019         EPERM as an unsupported test.
14021 2018-08-28  Florian Weimer  <fweimer@redhat.com>
14023         [BZ #23520]
14024         nscd: Fix use-after-free in addgetnetgrentX and its callers.
14025         * nscd/netgroupcache.c
14026         (addgetnetgrentX): Add tofreep parameter.  Do not free
14027         heap-allocated buffer.
14028         (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
14029         (addgetnetgrentX_ignore): New function.
14030         (addgetnetgrent): Call it.
14031         (readdgetnetgrent): Likewise.
14033 2018-08-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14035         * string/memmem.c: Use memcmp for first match.
14037 2018-08-28  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
14039         [BZ #17426]
14040         * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
14042 2018-08-27  DJ Delorie  <dj@redhat.com>
14044         * support/Makefile (others): Don't list programs explicitly as a
14045         dependency of "others".
14047 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
14049         * sysdeps/generic/math-tests-trap-force.h: New file.
14050         * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
14051         (EXCEPTION_SET_FORCES_TRAP): Do not define here.
14052         * sysdeps/powerpc/math-tests.h: Remove file.
14053         * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
14055 2018-08-27  Martin Kuchta  <martin.kuchta@netapp.com>
14056             Torvald Riegel  <triegel@redhat.com>
14058         [BZ #23538]
14059         * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
14060         Update r to include the set wake-request flag if waiters are
14061         remaining after spinning.
14063 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
14065         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
14067 2018-08-25  Paul Eggert  <eggert@cs.ucla.edu>
14069         [BZ #23578]
14070         regex: fix uninitialized memory access
14071         I introduced this bug into gnulib in commit
14072         8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
14073         eventually it was merged into glibc.  The bug was found by
14074         project-repo <bugs@feusi.co> and reported here:
14075         https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
14076         Diagnosis and draft fix reported by Assaf Gordon here:
14077         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
14078         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
14079         * posix/regex_internal.c (build_wcs_upper_buffer):
14080         Fix bug when mbrtowc returns 0.
14082 2018-08-24  Carlos O'Donell  <carlos@redhat.com>
14084         * po/be.po: Update translation.
14086 2018-08-24  DJ Delorie  <dj@delorie.com>
14088         * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
14089         $(libunwind).
14091 2018-08-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
14093         [BZ #23400]
14094         * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
14095         create temporary files in source tree.
14097 2018-08-24  Joseph Myers  <joseph@codesourcery.com>
14099         * sysdeps/generic/math-tests-trap.h: New file.
14100         * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
14101         (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
14102         * sysdeps/aarch64/math-tests.h: Remove file.
14103         * sysdeps/arm/math-tests.h: Likewise.
14104         * sysdeps/riscv/math-tests.h: Likewise.
14105         * sysdeps/aarch64/math-tests-trap.h: New file.
14106         * sysdeps/arm/math-tests-trap.h: Likewise.
14107         * sysdeps/riscv/math-tests-trap.h: Likewise.
14109 2018-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
14111         * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
14112         Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
14113         * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
14114         * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
14115         * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
14116         * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
14117         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
14118         * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
14119         * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
14120         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14121         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14122         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14123         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14124         * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
14125         * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
14126         * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
14127         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
14128         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
14130 2018-08-23  Joseph Myers  <joseph@codesourcery.com>
14132         * sysdeps/generic/math-tests-exceptions.h: New file.
14133         * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
14134         (EXCEPTION_TESTS_float): Do not define here.
14135         (EXCEPTION_TESTS_double): Likewise.
14136         (EXCEPTION_TESTS_long_double): Likewise.
14137         (EXCEPTION_TESTS_float128): Likewise.
14138         * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
14139         Likewise.
14140         [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
14141         [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
14142         * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
14143         * sysdeps/m68k/coldfire/math-tests.h: Remove file.
14144         * sysdeps/mips/math-tests.h: Likewise.
14145         * sysdeps/nios2/math-tests.h: Likewise.
14146         * sysdeps/riscv/math-tests.h [!__riscv_flen]
14147         (EXCEPTION_TESTS_float): Do not define here.
14148         [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
14149         [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
14150         * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
14152 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
14154         * NEWS: Move optimized sinf entry to 2.29.
14156 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
14158         * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
14160 2018-08-22  DJ Delorie  <dj@redhat.com>
14162         * Makefile (testroot.pristine): New rules to initialize the
14163         test-in-container "testroot".
14164         * Makerules (all-testsuite): Add tests-container.
14165         * Rules (tests-expected): Add tests-container.
14166         (binaries-all-tests): Likewise.
14167         (tests-container): New, run these tests in the testroot container.
14168         * support/Makefile (others): Add *-container, support_paths.c,
14169         xmkdirp, and links-dso-program.
14170         * support/links-dso-program-c.c: New.
14171         * support/links-dso-program.cc: New.
14172         * support/test-container.c: New.
14173         * support/shell-container.c: New.
14174         * support/echo-container.c: New.
14175         * support/true-container.c: New.
14176         * support/xmkdirp.c: New.
14177         * support/xsymlink.c: New.
14178         * support/support_paths.c: New.
14179         * support/support.h: Add support paths prototypes.
14180         * support/xunistd.h: Add xmkdirp () and xsymlink ().
14182         * nss/tst-nss-test3.c: Convert to test-in-container.
14183         * nss/tst-nss-test3.root/: New.
14185 2018-08-22  Paul Eggert  <eggert@cs.ucla.edu>
14187         regex: port Gnulib code to z/OS POSIX environment
14188         Problem reported by Arnold Robbins in:
14189         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
14190         * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
14191         Undef.
14193 2018-08-22  Joseph Myers  <joseph@codesourcery.com>
14195         * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
14196         (ROUNDING_TESTS_double): Remove.
14197         * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
14198         (ROUNDING_TESTS_double): Remove.
14199         * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
14200         (ROUNDING_TESTS_double): Remove.
14201         * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
14202         (ROUNDING_TESTS_float): Remove.
14203         * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
14204         (ROUNDING_TESTS_float): Remove.
14205         * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
14206         (ROUNDING_TESTS_float): Remove.
14207         * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
14208         !TEST_MATHVEC here.
14209         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
14210         (IF_ROUND_INIT_FE_UPWARD): Likewise.
14212         * sysdeps/generic/math-tests-rounding.h: New file.
14213         * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
14214         (ROUNDING_TESTS_float): Do not define here.
14215         (ROUNDING_TESTS_double): Likewise.
14216         (ROUNDING_TESTS_long_double): Likewise.
14217         (ROUNDING_TESTS_float128): Likewise.
14218         * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
14219         (ROUNDING_TESTS_double): Undefine before defining.
14220         * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
14221         (ROUNDING_TESTS_double): Undefine before defining.
14222         * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
14223         (ROUNDING_TESTS_double): Undefine before defining.
14224         * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
14225         (ROUNDING_TESTS_float): Undefine before defining.
14226         * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
14227         (ROUNDING_TESTS_float): Undefine before defining.
14228         * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
14229         (ROUNDING_TESTS_float): Undefine before defining.
14230         * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
14231         * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
14232         not define here.
14233         [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
14234         [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
14235         * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
14236         * sysdeps/riscv/math-tests.h [!__riscv_flen]
14237         (ROUNDING_TESTS_float): Do not define here.
14238         [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
14239         [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
14240         * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
14241         (ROUNDING_TESTS_float): Likewise.
14242         [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
14243         [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
14244         * sysdeps/mips/math-tests.h [__mips_soft_float]
14245         (ROUNDING_TESTS_float): Likewise.
14246         [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
14247         [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
14248         * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
14249         (ROUNDING_TESTS_double): Likewise.
14250         (ROUNDING_TESTS_long_double): Likewise.
14252 2018-08-21  Tobias Klauser  <tklauser@distanz.ch>
14254         * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
14255         (PF_XDP): New macro.
14256         (AF_XDP): New macro.
14257         (SOL_XDP): New macro.
14259 2018-08-21  Joseph Myers  <joseph@codesourcery.com>
14261         * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
14262         (TCP_INQ): Likewise.
14263         (TCP_CM_INQ): Likewise.
14264         (TCP_REPAIR_ON): Likewise.
14265         (TCP_REPAIR_OFF): Likewise.
14266         (TCP_REPAIR_OFF_NO_WP): Likewise.
14267         (struct tcp_zerocopy_receive): New type.
14269 2018-08-21  Florian Weimer  <fweimer@redhat.com>
14271         * support/support.h (support_descriptor_supports_holes): Declare.
14272         * support/Makefile (libsupport-routines): Add
14273         support_descriptor_supports_holes.
14274         * support/support_descriptor_supports_holes.c: New file.
14275         * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
14276         and stop testing if holes are not supported.
14277         * io/test-lfs.c (do_prepare): Likewise.
14278         * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
14279         Likewise.
14280         * timezone/tst-tzset.c (create_tz_file): Likewise.
14281         * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
14282         variable.
14283         (do_prepare): Set it.
14284         * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
14286 2018-08-21  Florian Weimer  <fweimer@redhat.com>
14288         [BZ #17248]
14289         * Makeconfig (+cflags): Do not sort (and deduplicate).
14291 2018-08-21  Florian Weimer  <fweimer@redhat.com>
14293         * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
14294         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
14296 2018-08-20  Florian Weimer  <fweimer@redhat.com>
14298         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
14299         HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
14301 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
14303         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
14304         signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
14305         and ssi_arch members.
14307         * elf/elf.c (NT_VMCOREDD): New macro.
14308         (AT_MINSIGSTKSZ): Likewise.
14310 2018-08-20  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14312         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
14313         (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
14314         s_cosf-ppc64 and s_cosf-power8.
14315         * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
14316         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
14317         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
14318         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
14319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
14320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
14321         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
14322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
14323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
14324         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
14325         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
14326         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
14328 2018-08-17  Florian Weimer  <fweimer@redhat.com>
14330         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
14332 2018-08-17  Istvan Kurucsai  <pistukem@gmail.com>
14334         * malloc/malloc.c (_int_malloc): Additional binning code checks.
14336 2018-08-16  Florian Weimer  <fweimer@redhat.com>
14338         * configure.ac: Add --with-nonshared-cflags option.
14339         * config.make.in (extra-nonshared-cflags): Set variable.
14340         * Makeconfig (CFLAGS-.oS): Use it.
14341         * manual/install.texi (Configuring and compiling): Document
14342         --with-nonshared-cflags.
14343         * configure: Regenerate.
14344         * INSTALL: Likewise.
14346 2018-08-16  Florian Weimer  <fweimer@redhat.com>
14348         * Makeconfig (ASFLAGS): Always append required assembler flags.
14350 2018-08-16  Moritz Eckert  <m.eckert@cs.ucsb.edu>
14352         * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
14353         (malloc_consolidate): Likewise.
14355 2018-08-16  Pochang Chen  <johnchen902@gmail.com>
14357         * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
14359 2018-08-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14361         * benchtests/bench-strlen.c (do_test): Allocate buffers before
14362         every strlen call.
14364         * benchtests/bench-strlen.c: Print performance numbers in json.
14366 2018-08-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14368         * sysdeps/powerpc/powerpc64/multiarch/Makefile
14369         (sysdep_routines): Build strcmp-power9 and strncmp-power9
14370         only for little endian.
14371         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
14372         (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
14373         (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
14374         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
14375         Add check for little endian.
14376         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
14377         (__strcmp_power9): Add check for little endian.
14378         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
14379         Add check for little endian.
14380         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
14381         (__strncmp_power9): Add check for little endian.
14382         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
14383         __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
14384         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
14385         * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
14386         * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
14388 2018-08-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14390         * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
14391         [!STRLEN](STRLEN): Set to __strlen.
14392         * sysdeps/aarch64/multiarch/strlen.c: New file.
14393         * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
14394         * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
14395         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
14396         (__libc_ifunc_impl_list): Add strlen.
14397         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
14398         strlen_generic and strlen_asimd.
14400 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
14402         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
14403         * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
14404         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
14406 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
14408         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
14410 2018-08-14  Florian Weimer  <fweimer@redhat.com>
14412         [BZ #23519]
14413         * include/stdio.h (__vfxprintf): Declare.
14414         * stdio-common/fxprintf.c (__vfxprintf): New function.
14415         (__fxprintf): Call it.
14416         * misc/err.c (convert_and_print): Remove function.
14417         (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
14418         * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
14419         * misc/Makefile (tests): Add tst-warn-wide.
14420         * misc/tst-warn-wide.c: New file.
14422 2018-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
14423             Szabolcs Nagy  <szabolcs.nagy@arm.com>
14425         * NEWS: Mention sinf, cosf, sincosf.
14426         * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
14427         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
14428         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
14429         constants rather than including generic sincosf.h.
14430         * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
14431         * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
14432         * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
14433         (reduced_cos): Remove.
14434         (sinf_poly): New function.
14435         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
14437 2018-08-14  Florian Weimer  <fweimer@redhat.com>
14439         [BZ #23521]
14440         [BZ #23522]
14441         * nss/nss_files/files-alias.c (get_next_alias): During :include:
14442         processing, bail out if no room, and close the stream before
14443         returning ERANGE.
14444         * nss/Makefile (tests): Add tst-nss-files-alias-leak.
14445         (tst-nss-files-alias-leak): Link with libdl.
14446         (tst-nss-files-alias-leak.out): Depend on nss_files.
14448         * nss/tst-nss-files-alias-leak.c: New file.
14450 2018-08-14  Florian Weimer  <fweimer@redhat.com>
14452         * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
14453         server_user, stat_user.
14455 2018-08-13  Joseph Myers  <joseph@codesourcery.com>
14457         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14458         version to 4.18.
14459         (io_pgetevents): New syscall.
14460         (rseq): Likewise.
14462         * manual/install.texi (Configuring and compiling): Do not list
14463         tools used for testing pretty printers here.
14464         (Tools for Compilation): List Python, PExpect and GDB here.
14465         Update descriptions of uses of Perl and Python.
14466         * INSTALL: Regenerate.
14468         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
14469         version to 4.18.
14471 2018-08-13  Florian Weimer  <fweimer@redhat.com>
14473         * misc/error.c (error): Add missing va_end call.
14474         (error_at_line): Likewise.
14476 2018-08-13  Florian Weimer  <fweimer@redhat.com>
14478         * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
14480 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14482         * benchtests/scripts/benchout.schema.json (properties): Add
14483         new properties.
14485         * benchtests/bench-skeleton.c (main): Add duration and
14486         iterations attributes.
14488 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14490         regex: Gnulib unibyte RRI uses bytes not chars
14491         Adjust the non-glibc code to agree with what Gawk needs for
14492         rational range interpretation (RRI) for regular expression ranges.
14493         In unibyte locales, Gawk wants ranges to use the underlying byte
14494         rather than the character code point.  This change does not affect
14495         glibc proper.
14496         * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
14497         In unibyte locales, use the byte value rather than
14498         running it through btowc.
14500 2018-08-10  Joseph Myers  <joseph@codesourcery.com>
14502         * sysdeps/generic/math-tests-snan.h: New file.
14503         * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
14504         (SNAN_TESTS_float): Do not define here.
14505         (SNAN_TESTS_double): Likewise.
14506         (SNAN_TESTS_long_double): Likewise.
14507         (SNAN_TESTS_float128): Likewise.
14508         * sysdeps/i386/fpu/math-tests-snan.h: New file.
14509         * sysdeps/i386/fpu/math-tests.h: Remove file.
14510         * sysdeps/ia64/math-tests-snan.h: New file.
14511         * sysdeps/ia64/math-tests.h: Remove file.
14512         * sysdeps/x86/math-tests.h: Likewise.
14513         * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
14515 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
14516             Szabolcs Nagy  <szabolcs.nagy@arm.com>
14518         * math/Makefile: Add s_sincosf_data.c.
14519         * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
14520         * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
14521         (sincosf_poly): Likewise.
14522         (reduce_small): Likewise.
14523         (reduce_large): Likewise.
14524         * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
14525         * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
14526         * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
14527         * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
14529 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
14530             Szabolcs Nagy  <szabolcs.nagy@arm.com>
14532         * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
14533         (converttoint): Use lround.
14534         * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
14535         document the semantics when TOINT_INTRINSICS is set.
14536         (converttoint): Likewise.
14537         (TOINT_RINT): Remove.
14538         (TOINT_SHIFT): Remove.
14539         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
14540         path.
14542 2018-08-10  Florian Weimer  <fweimer@redhat.com>
14544         [BZ #23497]
14545         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
14546         function.
14547         (__old_getdents64): Use getdents64.  Convert entries without
14548         moving them.
14549         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
14550         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
14551         tst-readdir64-compat.
14553 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
14555         * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
14556         Fix unwind.
14558 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
14560         * sysdeps/s390/s390-64/Versions (__fentry__): Add.
14561         * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
14562         code to s390x-mcount.h and #include it.
14563         * sysdeps/s390/s390-64/s390x-mcount.h: New file.
14564         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
14565         (__fentry__): Add.
14567 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
14569         * stdlib/Versions: Remove __fentry__.
14570         * sysdeps/i386/Versions: Add __fentry__.
14571         * sysdeps/x86_64/Versions: Add __fentry__.
14573 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
14575         * sysdeps/s390/Makefile: Register the new tests.
14576         * sysdeps/s390/tst-dl-runtime-mod.S: New file.
14577         * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
14578         * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
14579         * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
14580         * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
14581         * sysdeps/s390/tst-dl-runtime.c: New file.
14583 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
14585         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
14586         Do not clobber R0.
14588 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
14590         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
14591         Do not clobber R0.
14593 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
14595         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
14596         Do not clobber R0.
14598 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
14600         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
14601         Do not clobber R0.
14603 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
14605         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
14606         Use symbolic offsets for stack variables.
14608 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
14610         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
14611         Use symbolic offsets for stack variables.
14613 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
14615         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
14616         Use symbolic offsets for stack variables.
14618 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
14620         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
14621         Use symbolic offsets for stack variables.
14623 2018-08-09  Joseph Myers  <joseph@codesourcery.com>
14625         * math/gen-libm-test.py: New file.
14626         * math/gen-libm-test.pl: Remove.
14627         * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
14628         ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
14629         gen-libm-test.pl.
14630         ($(libm-test-c-noauto-obj)): Likewise.
14631         ($(libm-test-c-auto-obj)): Likewise.
14632         ($(libm-test-c-narrow-obj)): Likewise.
14633         (regen-ulps): Likewise.
14634         * math/README.libm-test: Update references to gen-libm-test.pl.
14635         * math/libm-test-driver.c (struct test_fj_f_data): Update comment
14636         referencing gen-libm-test.pl.
14637         * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
14638         * math/libm-test-support.c: Likewise.
14639         * math/libm-test-support.h: Likewise.
14640         * sysdeps/generic/libm-test-ulps: Likewise.
14642 2018-08-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14644         * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
14645         Fix value.
14647 2018-08-08  Joseph Myers  <joseph@codesourcery.com>
14649         * math/libm-test-nextdown.inc (do_test): Move comment to ....
14650         * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
14652 2018-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14654         * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
14655         symbols.
14656         * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
14657         __pthread_setspecific): Add hidden proto.
14658         * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
14659         * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
14661 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14663         * benchtests/bench-string.h (buf1_size, buf2_size): New
14664         variables.
14665         (init_sizes): New function.
14666         (test_init): Use it.
14667         (alloc_buf, exit_error): New functions.
14668         (alloc_bufs): Use ALLOC_BUF.
14669         (realloc_bufs): Remove.
14670         * benchtests/bench-memcmp.c (do_test): Adjust.
14671         * benchtests/bench-memset-large.c (do_test): Likewise.
14672         * benchtests/bench-memset-walk.c (do_test): Likewise.
14673         * benchtests/bench-memset.c (do_test): Likewise.
14674         * benchtests/bench-strncmp.c (do_test): Likewise.
14676 2018-08-06  Andreas Schwab  <schwab@suse.de>
14678         * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
14679         of CONST_THREAD_AREA.
14681 2018-08-06  H.J. Lu  <hongjiu.lu@intel.com>
14683         * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
14684         (STATE_SAVE_MASK): Likewise.
14685         Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
14686         * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
14687         (STATE_SAVE_MASK): Likewise.
14688         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
14689         instead of <cpu-features.h>.
14691 2018-08-03  DJ Delorie  <dj@redhat.com>
14693         * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
14694         Move libc_fesetround_riscv after libc_feholdexcept_riscv.
14696         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
14698 2018-08-03  Joseph Myers  <joseph@codesourcery.com>
14700         * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
14701         after TEST_* calls.
14702         * math/libm-test-llogb.inc (llogb_test_data): Likewise.
14703         * math/libm-test-logb.inc (logb_test_data): Likewise.
14705 2018-08-03  Wilco Dijkstra  <wdijkstr@arm.com>
14707         * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
14708         * string/strstr.c (AVAILABLE): Likewise.
14710 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
14712         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
14713         <init-arch.h>.
14714         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
14715         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
14716         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
14718 2018-08-03  Carlos O'Donell  <carlos@redhat.com>
14720         * po/be.po: Update translation.
14722         * po/be.po: Update translation.
14724 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
14726         * sysdeps/x86/cpu-features-offsets.sym
14727         (rtld_global_ro_offsetof): Removed.
14728         (CPU_FEATURES_SIZE): Likewise.
14729         (CPUID_OFFSET): Likewise.
14730         (CPUID_SIZE): Likewise.
14731         (CPUID_EAX_OFFSET): Likewise.
14732         (CPUID_EBX_OFFSET): Likewise.
14733         (CPUID_ECX_OFFSET): Likewise.
14734         (CPUID_EDX_OFFSET): Likewise.
14735         (FAMILY_OFFSET): Likewise.
14736         (MODEL_OFFSET): Likewise.
14737         (FEATURE_OFFSET): Likewise.
14738         (FEATURE_SIZ): Likewise.
14739         (COMMON_CPUID_INDEX_1): Likewise.
14740         (COMMON_CPUID_INDEX_7): Likewise.
14741         (FEATURE_INDEX_1): Likewise.
14742         (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
14744 2018-08-02  Carlos O'Donell  <carlos@redhat.com>
14746         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
14747         (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
14748         (INSTALL-SUPPORTED-LOCALE-FILES): Define.
14749         (install-locales): Depend on install-locale-archive.
14750         (install-locale-archive): Define.
14751         (install-locale-files): Define.
14752         (build-one-locale): Define macro.
14753         * manual/install.texi (Running make install): Document.
14754         * manual/INSTALL: Regenerate.
14756 2018-08-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14758         * benchtests/scripts/compare_strings.py: Import traceback.
14759         (parse_file): Pretty-print error.
14761         * NEWS: Mention the change.
14762         * elf/dl-tunables.list: Rename tune namespace to cpu.
14763         * sysdeps/powerpc/dl-tunables.list: Likewise.
14764         * sysdeps/x86/dl-tunables.list: Likewise.
14765         * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
14766         cpu.name.
14767         * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
14768         * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
14769         * manual/README.tunables: Likewise.
14770         * manual/tunables.texi: Likewise.
14771         * sysdeps/powerpc/cpu-features.c: Likewise.
14772         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14773         (init_cpu_features): Likewise.
14774         * sysdeps/x86/cpu-features.c: Likewise.
14775         * sysdeps/x86/cpu-features.h: Likewise.
14776         * sysdeps/x86/cpu-tunables.c: Likewise.
14777         * sysdeps/x86_64/Makefile: Likewise.
14778         * sysdeps/x86/dl-cet.c: Likewise.
14780 2018-08-02  Joseph Myers  <joseph@codesourcery.com>
14782         [BZ #23479]
14783         * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
14784         [__mips_hard_float].
14785         (FE_UNDERFLOW): Likewise.
14786         (FE_OVERFLOW): Likewise.
14787         (FE_DIVBYZERO): Likewise.
14788         (FE_INVALID): Likewise.
14789         (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
14790         (FE_TOWARDZERO): Define only if [__mips_hard_float].
14791         (FE_UPWARD): Likewise.
14792         (FE_DOWNWARD): Likewise.
14793         (__FE_UNDEFINED): Define if [!__mips_hard_float]
14794         (FE_NOMASK_ENV): Define only if [__mips_hard_float].
14795         * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
14796         [__mips_hard_float].
14797         (FP_ROUNDMODE): Likewise.
14798         (FP_RND_NEAREST): Likewise.
14799         (FP_RND_ZERO): Likewise.
14800         (FP_RND_PINF): Likewise.
14801         (FP_RND_MINF): Likewise.
14802         (FP_EX_INVALID): Likewise.
14803         (FP_EX_OVERFLOW): Likewise.
14804         (FP_EX_UNDERFLOW): Likewise.
14805         (FP_EX_DIVZERO): Likewise.
14806         (FP_EX_INEXACT): Likewise.
14807         (FP_INIT_ROUNDMODE): Likewise.
14808         * sysdeps/mips/nofpu/fesetenv.c: New file.
14809         * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
14811 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
14813         * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
14814         code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
14815         FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
14816         conditional on [FE_UPWARD].
14818 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14820         regex: fix memory leak in Gnulib
14821         Problem and fix reported by Assaf Gordon in:
14822         https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
14823         * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
14824         range_ends members too, as they are defined in 'struct
14825         re_charset_t' even if not _LIBC.  This affects only Gnulib.
14827 2018-08-01  H.J. Lu  <hongjiu.lu@intel.com>
14829         * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
14830         ...
14831         (get_common_indices): This.
14832         (init_cpu_features): Updated.
14834 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
14836         * sysdeps/generic/math-tests-snan-payload.h: New file.
14837         * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
14838         * sysdeps/mips/math-tests-snan-payload.h: Likewise.
14839         * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
14840         * sysdeps/generic/math-tests.h: Include
14841         <math-tests-snan-payload.h>.
14842         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14843         * sysdeps/hppa/math-tests.h: Remove file.
14844         * sysdeps/mips/math-tests.h [!__mips_nan2008]
14845         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14846         * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
14847         Likewise.
14849         * sysdeps/generic/math-tests-snan-cast.h: New file.
14850         * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
14851         * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
14852         (SNAN_TESTS_TYPE_CAST): Do not define macro here.
14853         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
14855 2018-08-01  Carlos O'Donell  <carlos@redhat.com>
14857         * version.h (RELEASE): Set to "development".
14858         (VERSION): Set to "2.28.9000".
14859         * NEWS (2.29): New section.
14861         * version.h (RELEASE): Set to "stable".
14862         (VERSION): Set to "2.28".
14863         * include/features.h (__GLIBC_MINOR__): Set to 2.28.
14864         * NEWS: Add the list of bugs fixed in 2.28.
14866         * po/ca.po: Update to latest version.
14867         * po/cs.po: Likewise
14868         * po/da.po: Likewise
14869         * po/el.po: Likewise
14870         * po/eo.po: Likewise
14871         * po/es.po: Likewise
14872         * po/fi.po: Likewise
14873         * po/fr.po: Likewise
14874         * po/gl.po: Likewise
14875         * po/hu.po: Likewise
14876         * po/ia.po: Likewise
14877         * po/id.po: Likewise
14878         * po/it.po: Likewise
14879         * po/ja.po: Likewise
14880         * po/ko.po: Likewise
14881         * po/lt.po: Likewise
14882         * po/nb.po: Likewise
14883         * po/nl.po: Likewise
14884         * po/pt_BR.po: Likewise
14885         * po/ru.po: Likewise
14886         * po/rw.po: Likewise
14887         * po/sk.po: Likewise
14888         * po/sl.po: Likewise
14889         * po/tr.po: Likewise
14890         * po/zh_CN.po: Likewise
14891         * po/zh_TW.po: Likewise
14893 2018-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14895         * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
14896         initialization...
14897         (init): ... before initializing libpthread.
14899         * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
14900         * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
14901         (__mach_setup_tls): ... new function.
14902         (mach_setup_tls): New alias.
14903         * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
14904         __mach_setup_thread.
14905         * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
14906         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
14907         * mach/Versions [libc] (mach_setup_tls): Add symbol.
14908         * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
14910 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
14912         * manual/install.texi: Update versions.
14913         * INSTALL: Regenerate.
14915         * manual/contrib.texi (Contributors): Update contributions.
14917 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
14919         * po/be.po: Update translations.
14921 2018-07-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14923         * sysdeps/sh/libm-test-ulps: Update.
14925 2018-07-30  Carlos O'Donell  <carlos@redhat.com>
14927         * po/bg.po: Update translations.
14928         * po/de.po: Likewise.
14929         * po/hr.po: Likewise.
14930         * po/pt_BR.po: Likewise.
14931         * po/sv.po: Likewise.
14932         * po/vi.po: Likewise.
14934 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
14936         [BZ #23467]
14937         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14938         tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14939         (CFLAGS-tst-cet-property-1.o): New.
14940         (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14941         ($(objpfx)tst-cet-property-2): Likewise.
14942         ($(objpfx)tst-cet-property-2.out): Likewise.
14943         * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14944         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14945         * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14946         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14947         each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14949 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
14951         [BZ #23458]
14952         * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14954 2018-07-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14956         * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14957         __sbrk): Do not set attribute_hidden.
14958         * sysdeps/mach/hurd/not-errno.h: New file.
14959         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14960         * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14962 2018-07-27  Carlos O'Donell  <carlos@redhat.com>
14964         * po/uk.po: Update translations.
14965         * po/cs.po: Likewise.
14966         * po/pl.po: Likewise.
14968 2018-07-27  H.J. Lu  <hongjiu.lu@intel.com>
14970         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14971         parse beyond the note end.
14973 2018-07-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14975         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14976         kernel does not support OFD locks.
14977         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14979 2018-07-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14981         * sysdeps/mach/hurd/Versions (libc): Make __access and
14982         __access_noerrno external so they can override the ld symbols.
14983         (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14984         __writev, __open64, __access_noerrno extern so they can be overrided.
14985         * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14986         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14988 2018-07-26  Carlos O'Donell  <carlos@redhat.com>
14990         * po/libc.pot: Regenerate.
14992 2018-07-26  Joseph Myers  <joseph@codesourcery.com>
14994         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14996 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
14998         [BZ #23459]
14999         * sysdeps/x86/cpu-features.c (get_extended_indices): New
15000         function.
15001         (init_cpu_features): Call get_extended_indices for both Intel
15002         and AMD CPUs.
15003         * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
15004         Remove "for AMD" comment.
15006 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
15008         [BZ # 23456]
15009         * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
15010         COMMON_CPUID_INDEX_80000001.
15012 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
15014         * string/tst-xbzero-opt.c (use_test_buffer): New function.
15015         (prepare_test_buffer): Call use_test_buffer as compiler barrier.
15017 2018-07-26  Florian Weimer  <fweimer@redhat.com>
15019         * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
15020         aliases for symbols not in the implementation namespace.
15022 2018-07-25  Carlos O'Donell  <carlos@redhat.com>
15024         [BZ #23393]
15025         * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
15026         lowercase in LATIN script.
15027         * localedata/Makefile (test-input): Add en_US.UTF-8.
15028         * localedata/en_US.UTF-8.in: New file.
15029         * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
15030         and restore old tests.
15031         * posix/tst-regexloc.c (do_test): Add back range expression test.
15033 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
15035         * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
15037 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15039         * nptl/threads.h: Move to ...
15040         * sysdeps/nptl/threads.h: ... here.
15041         * sysdeps/hurd/stdc-predef.h: New file.
15043 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
15045         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
15046         tst-cet-setcontext-1 if CET is enabled.
15047         (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
15048         * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
15050 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15052         * include/threads.h: Move to ...
15053         * sysdeps/nptl/threads.h: ... here.
15054         * sysdeps/htl/threads.h: New file.
15055         * conform/Makefile (linknamespace-libs-ISO11): Use
15056         static-thread-library instead of linking libpthread.
15057         (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
15059 2018-07-25  Florian Weimer  <fweimer@redhat.com>
15061         * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
15062         nanoseconds into seconds.
15063         * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
15064         (do_test): Likewise.
15065         * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
15066         (do_test): Likewise.  Avoid nanosecond overflow and spurious
15067         timeouts due to system load.
15068         * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
15069         (child_wait): Increment it.
15070         (do_test): Wait as long as necessary until all expected threads
15071         have arrived.
15073 2018-07-25  Vedvyas Shanbhogue  <vedvyas.shanbhogue@intel.com>
15074             H.J. Lu  <hongjiu.lu@intel.com>
15076         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
15077         __ssp.
15078         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
15079         <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
15080         (__push___start_context): New.
15081         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
15082         <asm/prctl.h>.
15083         (__getcontext): Record the current shadow stack base.  Save the
15084         caller's shadow stack pointer and base.
15085         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
15086         <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
15087         (__push___start_context): New prototype.
15088         (__makecontext): Call __push___start_context to allocate a new
15089         shadow stack, push __start_context onto the new stack as well
15090         as the new shadow stack.
15091         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
15092         <asm/prctl.h>.
15093         (__setcontext): Restore the target shadow stack.
15094         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
15095         <asm/prctl.h>.
15096         (__swapcontext): Record the current shadow stack base.  Save
15097         the caller's shadow stack pointer and base. Restore the target
15098         shadow stack.
15099         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
15100         (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
15101         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
15103 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
15105         * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
15106         tst-setcontext8 and tst-setcontext9.
15107         * stdlib/tst-setcontext6.c: New file.
15108         * stdlib/tst-setcontext7.c: Likewise.
15109         * stdlib/tst-setcontext8.c: Likewise.
15110         * stdlib/tst-setcontext9.c: Likewise.
15112 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
15114         * stdlib/Makefile ((tests): Add tst-setcontext5.
15115         * stdlib/tst-setcontext5.c: New file.
15117 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
15119         * stdlib/Makefile (tests): Add tst-setcontext4.
15120         * stdlib/tst-setcontext4.c: New file.
15122 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
15124         * stdlib/Makefile (tests): Add tst-swapcontext1.
15125         * stdlib/tst-swapcontext1.c: New test.
15127 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
15129         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
15130         tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
15131         tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
15132         and tst-cet-legacy-4c.
15133         (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
15134         and tst-cet-legacy-mod-4.
15135         (CFLAGS-tst-cet-legacy-2.c): New.
15136         (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
15137         (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
15138         (CFLAGS-tst-cet-legacy-3.c): Likewise.
15139         (CFLAGS-tst-cet-legacy-4.c): Likewise.
15140         (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
15141         ($(objpfx)tst-cet-legacy-1): Likewise.
15142         ($(objpfx)tst-cet-legacy-2): Likewise.
15143         ($(objpfx)tst-cet-legacy-2.out): Likewise.
15144         ($(objpfx)tst-cet-legacy-2a): Likewise.
15145         ($(objpfx)tst-cet-legacy-2a.out): Likewise.
15146         ($(objpfx)tst-cet-legacy-4): Likewise.
15147         ($(objpfx)tst-cet-legacy-4.out): Likewise.
15148         ($(objpfx)tst-cet-legacy-4a): Likewise.
15149         ($(objpfx)tst-cet-legacy-4a.out): Likewise.
15150         (tst-cet-legacy-4a-ENV): Likewise.
15151         ($(objpfx)tst-cet-legacy-4b): Likewise.
15152         ($(objpfx)tst-cet-legacy-4b.out): Likewise.
15153         (tst-cet-legacy-4b-ENV): Likewise.
15154         ($(objpfx)tst-cet-legacy-4c): Likewise.
15155         ($(objpfx)tst-cet-legacy-4c.out): Likewise.
15156         (tst-cet-legacy-4c-ENV): Likewise.
15157         * sysdeps/x86/tst-cet-legacy-1.c: New file.
15158         * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
15159         * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
15160         * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
15161         * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
15162         * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
15163         * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
15164         * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
15165         * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
15166         * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
15167         * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
15169 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
15171         * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
15172         * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
15173         with ssp_base.
15174         * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
15175         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
15176         with ssp_base.
15178 2018-07-25  Andreas Schwab  <schwab@suse.de>
15180         [BZ #23442]
15181         * locale/weightwc.h (findidx): Handle the case where usrc is a
15182         prefix of cp but one character too short.
15184 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15186         * NEWS: Add ISO C threads addition.
15188 2018-07-24  Florian Weimer  <fweimer@redhat.com>
15190         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15191         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
15192         (__ASSUME_COPY_FILE_RANGE): Undefine.  Kernel support was added in
15193         4.13.
15195 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15197         * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
15198         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
15199         <sys/prctl.h> and <asm/prctl.h>.
15200         (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
15201         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
15202         and <asm/prctl.h>.
15203         (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
15204         ARCH_CET_LEGACY_BITMAP.
15205         (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
15206         (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
15207         * sysdeps/x86/libc-start.c: Include <startup.h>.
15209 2018-07-24  Florian Weimer  <fweimer@redhat.com>
15211         * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
15212         Undefine.  Suggested by Romain Naour <romain.naour@gmail.com>.
15214 2018-07-24  Rical Jasan  <rj@2c3t.io>
15215             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15216             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
15218         [BZ #14092]
15219         * manual/debug.texi: Update adjacent chapter name.
15220         * manual/probes.texi: Likewise.
15221         * manual/threads.texi (ISO C Threads): New section.
15222         (POSIX Threads): Convert to a section.
15224 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15225             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
15227         [BZ# 14092]
15228         * nptl/Makefile (tests): Add new test files.
15229         * nptl/tst-call-once.c : New file. Tests C11 functions and types.
15230         * nptl/tst-cnd-basic.c: Likewise.
15231         * nptl/tst-cnd-broadcast.c: Likewise.
15232         * nptl/tst-cnd-timedwait.c: Likewise.
15233         * nptl/tst-mtx-basic.c: Likewise.
15234         * nptl/tst-mtx-recursive.c: Likewise.
15235         * nptl/tst-mtx-timedlock.c: Likewise.
15236         * nptl/tst-mtx-trylock.c: Likewise.
15237         * nptl/tst-thrd-basic.c: Likewise.
15238         * nptl/tst-thrd-detach.c: Likewise.
15239         * nptl/tst-thrd-sleep.c: Likewise.
15240         * nptl/tst-tss-basic.c: Likewise.
15242 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15244         [BZ #14092]
15245         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15246         (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
15247         symbols.
15248         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15249         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
15250         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15251         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15252         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15253         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15254         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15255         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15256         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15257         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15258         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15259         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15261         Likewise.
15262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15263         Likewise.
15264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
15265         Likewise.
15266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15267         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15268         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15269         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15270         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15271         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15272         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15273         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15274         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15275         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
15276         (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
15277         cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
15278         mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
15279         thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
15280         Likewise.
15281         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
15282         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
15283         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
15284         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
15285         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
15286         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
15287         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
15288         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
15289         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
15290         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
15291         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
15292         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
15293         ikewise.
15294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
15295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
15296         Likewise.
15297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
15298         Likewise.
15299         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
15300         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
15301         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
15302         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
15303         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
15304         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
15305         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
15306         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
15308         [BZ #14092]
15309         * conform/data/threads.h-data (thread_local): New macro.
15310         (TSS_DTOR_ITERATIONS): Likewise.
15311         (tss_t): New type.
15312         (tss_dtor_t): Likewise.
15313         (tss_create): New function.
15314         (tss_get): Likewise.
15315         (tss_set): Likewise.
15316         (tss_delete): Likewise.
15317         * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
15318         tss_get, and tss_set objects.
15319         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
15320         * nptl/tss_create.c: New file.
15321         * nptl/tss_delete.c: Likewise.
15322         * nptl/tss_get.c: Likewise.
15323         * nptl/tss_set.c: Likewise.
15324         * sysdeps/nptl/threads.h (thread_local): New define.
15325         (TSS_DTOR_ITERATIONS): Likewise.
15326         (tss_t): New typedef.
15327         (tss_dtor_t): Likewise.
15328         (tss_create): New prototype.
15329         (tss_get): Likewise.
15330         (tss_set): Likewise.
15331         (tss_delete): Likewise.
15333         [BZ #14092]
15334         * conform/data/threads.h-data (cnd_t): New type.
15335         (cnd_init): New function.
15336         (cnd_signal): Likewise.
15337         (cnd_broadcast): Likewise.
15338         (cnd_wait): Likewise.
15339         (cnd_timedwait): Likewise.
15340         (cnd_destroy): Likewise.
15341         * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
15342         cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
15343         object.
15344         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
15345         * nptl/cnd_broadcast.c: New file.
15346         * nptl/cnd_destroy.c: Likewise.
15347         * nptl/cnd_init.c: Likewise.
15348         * nptl/cnd_signal.c: Likewise.
15349         * nptl/cnd_timedwait.c: Likewise.
15350         * nptl/cnd_wait.c: Likewise.
15351         * sysdeps/nptl/threads.h (cnd_t): New type.
15352         (cnd_init): New prototype.
15353         (cnd_signa): Likewise.
15354         (cnd_broadcast): Likewise.
15355         (cnd_wait): Likewise.
15356         (cnd_timedwait): Likewise.
15357         (cnd_destroy): Likewise.
15359         [BZ #14092]
15360         * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
15361         (once_flag): New type.
15362         (call_once): New function.
15363         * nptl/Makefile (libpthread-routines): Add call_once object.
15364         * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
15365         * nptl/call_once.c: New file.
15366         * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
15367         (once_flag): New type.
15368         (call_once): New prototype.
15370         [BZ #14092]
15371         * conform/data/threads.h-data (mtx_plain): New constant.
15372         (mtx_recursive): Likewise.
15373         (mtx_timed): Likewise.
15374         (mtx_t): New type.
15375         (mtx_init): New function.
15376         (mtx_lock): Likewise.
15377         (mtx_timedlock): Likewise.
15378         (mtx_trylock): Likewise.
15379         (mtx_unlock): Likewise.
15380         (mtx_destroy): Likewise.
15381         * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
15382         mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
15383         * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
15384         mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
15385         * nptl/mtx_destroy.c: New file.
15386         * nptl/mtx_init.c: Likewise.
15387         * nptl/mtx_lock.c: Likewise.
15388         * nptl/mtx_timedlock.c: Likewise.
15389         * nptl/mtx_trylock.c: Likewise.
15390         * nptl/mtx_unlock.c: Likewise.
15391         * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
15392         (mtx_recursive): Likewise.
15393         (mtx_timed): Likewise.
15394         (mtx_t): New type.
15395         (mtx_init): New prototype.
15396         (mtx_lock): Likewise.
15397         (mtx_timedlock): Likewise.
15398         (mtx_trylock): Likewise.
15399         (mtx_unlock): Likewise.
15400         (mtx_destroy): Likewise.
15402         [BZ #14092]
15403         * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
15404         (linknamespace-libs-ISO11): Add libpthread.a.
15405         * conform/data/threads.h-data: New file: add C11 thrd_* types and
15406         functions.
15407         * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
15408         * nptl/Makefile (headers): Add threads.h.
15409         (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
15410         thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
15411         thrd_yield.
15412         * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
15413         thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
15414         thrd_join, thrd_sleep, and thrd_yield symbols.
15415         * nptl/descr.h (struct pthread): Add c11 field.
15416         * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
15417         * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
15418         routine with expected function prototype.
15419         (__pthread_create_2_1): Add C11 threads check based on attribute
15420         value.
15421         * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
15422         * nptl/thrd_create.c: New file.
15423         * nptl/thrd_current.c: Likewise.
15424         * nptl/thrd_detach.c: Likewise.
15425         * nptl/thrd_equal.c: Likewise.
15426         * nptl/thrd_exit.c: Likewise.
15427         * nptl/thrd_join.c: Likewise.
15428         * nptl/thrd_priv.h: Likewise.
15429         * nptl/thrd_sleep.c: Likewise.
15430         * nptl/thrd_yield.c: Likewise.
15431         * include/threads.h: Likewise.
15433 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15435         * bits/indirect-return.h: New file.
15436         * misc/sys/cdefs.h (__glibc_has_attribute): New.
15437         * sysdeps/x86/bits/indirect-return.h: Likewise.
15438         * stdlib/Makefile (headers): Add bits/indirect-return.h.
15439         * stdlib/ucontext.h: Include <bits/indirect-return.h>.
15440         (swapcontext): Add __INDIRECT_RETURN.
15441         * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
15442         (prepare_test_buffer): Use it.
15444 2018-07-24  Andreas Schwab  <schwab@suse.de>
15446         [BZ #23448]
15447         * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
15448         (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
15450 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15452         * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
15453         Redefine if shadow stack is enabled.
15454         (SYSCALL_ERROR_LABEL): Likewise.
15455         (__vfork): Pop shadow stack and jump back to to caller directly
15456         when shadow stack is in use.
15457         * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
15458         Redefine if shadow stack is enabled.
15459         (SYSCALL_ERROR_LABEL): Likewise.
15460         (__vfork): Pop shadow stack and jump back to to caller directly
15461         when shadow stack is in use.
15463 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15465         * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
15466         enabled.
15467         (foo): Likewise.
15468         * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
15469         (foo): Likewise.
15471 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
15473         * scripts/build-many-glibcs.py (Context.checkout): Default
15474         binutils version to 2.31 branch.
15476 2018-07-20  Zong Li  <zong@andestech.com>
15478         * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
15479         URL of gcc's tarball.
15481 2018-07-20  Florian Weimer  <fweimer@redhat.com>
15483         [BZ #23396]
15484         * posix/regcomp.c (build_equiv_class): When comparing weights, do
15485         not compare an extra byte after the end of the weights.
15487 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15489         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
15490         to 1.
15491         * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
15492         hidden prototypes.
15493         * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
15494         * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
15495         * scripts/check-execstack.awk: Consider `xfail' variable containing a
15496         list of libraries whose stack executability is expected.
15497         * elf/Makefile ($(objpfx)check-execstack.out): Pass
15498         $(check-execstack-xfail) to check-execstack.awk through `xfail'
15499         variable.
15500         * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
15501         libc.so libpthread.so.
15503 2018-07-20  Thomas Schwinge  <tschwinge@gnu.org>
15505         * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
15506         SOCK_NONBLOCK.
15507         * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
15508         and SOCK_NONBLOCK.
15509         * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c.  Evolve it to
15510         implement __pipe2.
15511         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
15513 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
15515         * benchtests/scripts/compare_bench.py (__main__): use the argparse
15516         library to improve command line parsing.
15517         (__main__): make schema file as optional parameter (--schema),
15518         defaulting to benchtests/scripts/benchout.schema.json.
15519         (main): move out of the parsing stuff to __main_  and leave it
15520         only as caller of main comparison functions.
15522 2018-07-19  H.J. Lu  <hongjiu.lu@intel.com>
15524         * NEWS: Add a note for Intel CET status.
15525         * manual/install.texi: Likewise.
15526         * INSTALL: Regenerated.
15528 2018-07-18  Quentin PAGÈS  <provaires@quentino.fr>
15530         [BZ #23140]
15531         * localedata/locales/oc_FR (mon): Rename to...
15532         (alt_mon): This, then update October (typo fix).
15533         (mon): New content (genitive case, month names preceded by
15534         "de" or "d’").
15536         [BZ #23422]
15537         * localedata/locales/oc_FR (abday): Update all items.
15538         (day): Update Wednesday and Saturday (typo fixes).
15539         (abmon): Update all items, except May.
15540         (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
15541         (LC_IDENTIFICATION): Bump the revision number and date.
15542         Keep the "category" entries in alphabetic order.
15543         (LC_ADDRESS): Remove no longer needed comment.
15544         (LC_COLLATE): Use â€œcopy "ca_ES"”.
15545         (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
15546         "name_mrs".
15548 2018-07-18  Joseph Myers  <joseph@codesourcery.com>
15550         * grp/tst_fgetgrent.c: Include <unistd.h>.
15551         (main): Use mkstemp instead of tmpnam.
15552         * io/test-utime.c (main): Likewise.
15553         * posix/annexc.c (macrofile): Change to modifiable array.
15554         (main): Remove macrofile here.
15555         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
15556         macrofile here.
15557         (check_header): Do not remove macrofile here.
15558         * posix/bug-getopt1.c: Include <stdlib.h>.
15559         (do_test): Use mkstemp instead of tmpnam.
15560         * posix/bug-getopt2.c: Include <stdlib.h>.
15561         (do_test): Use mkstemp instead of tmpnam.
15562         * posix/bug-getopt3.c: Include <stdlib.h>.
15563         (do_test): Use mkstemp instead of tmpnam.
15564         * posix/bug-getopt4.c: Include <stdlib.h>.
15565         (do_test): Use mkstemp instead of tmpnam.
15566         * posix/bug-getopt5.c: Include <stdlib.h>.
15567         (do_test): Use mkstemp instead of tmpnam.
15568         * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
15569         (main): Use mkstemp instead of tmpnam.
15570         * stdio-common/tst-fdopen.c: Include <stdlib.h>.
15571         (main): Use mkstemp instead of tmpnam.
15572         * stdio-common/tst-ungetc.c: Include <stdlib.h>.
15573         (main): use mkstemp instead of tmpnam.
15574         * stdlib/isomac.c (macrofile): Change to modifiable array.
15575         (main): Remove macrofile here.
15576         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
15577         macrofile here.
15578         (check_header): Do not remove macrofile here.
15580 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15582         * manual/tunables.texi: Document glibc.tune.x86_ibt and
15583         glibc.tune.x86_shstk.
15585 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15587         * NEWS: Mention --enable-cet.
15588         * manual/install.texi: Document --enable-cet.
15589         * INSTALL: Regenerated.
15591 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15593         * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
15594         Add _CET_NOTRACK before indirect jump to jump table.
15596 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15598         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
15599         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15600         to jump table.
15602 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15604         * sysdeps/i386/i686/multiarch/strcat-sse2.S
15605         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15606         to jump table.
15608 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15610         * sysdeps/i386/i686/multiarch/strcpy-sse2.S
15611         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15612         to jump table.
15614 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15616         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
15617         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15618         to jump table.
15620 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15622         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
15623         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15624         to jump table.
15625         (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
15627 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15629         * sysdeps/i386/i686/multiarch/memcmp-sse4.S
15630         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15631         to jump table.
15633 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15635         * sysdeps/i386/i686/multiarch/memset-sse2.S
15636         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15637         to jump table.
15639 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15641         * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
15642         indirect jump to jump table.
15644 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15646         * sysdeps/x86_64/multiarch/memcpy-ssse3.S
15647         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15648         to jump table.
15649         (MEMCPY): Likewise.
15651 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15653         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
15654         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15655         to jump table.
15656         (MEMCPY): Likewise.
15658 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15660         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15661         _CET_NOTRACK before indirect jump to jump table.
15663 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15665         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
15666         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15667         to jump table.
15669 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
15671         * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
15672         indirect jump to jump table.
15674 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
15676         [BZ #22241]
15677         * localedata/Makefile (test-input): Add sah_RU.UTF-8.
15678         (LOCALES): Likewise.
15679         * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
15680         * localedata/locales/sah_RU: New file.
15681         * localedata/sah_RU.UTF-8.in: New file.
15683 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
15685         * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
15686         "sysdep.h".
15687         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
15688         _CET_ENDBR to indirect jump targets and adjust jump destination
15689         for _CET_ENDBR.
15690         * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
15691         "sysdep.h".
15692         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
15693         _CET_ENDBR to indirect jump targets and adjust jump destination
15694         for _CET_ENDBR.
15695         * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
15696         "sysdep.h".
15697         (__mpn_sub_n): Save and restore %ebx if IBT is enabed.  Add
15698         _CET_ENDBR to indirect jump targets and adjust jump destination
15699         for _CET_ENDBR.
15701 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
15703         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15704         _CET_ENDBR.
15706 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
15708         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
15709         _CET_ENDBR.
15710         (_dl_tlsdesc_undefweak): Likewise.
15711         (_dl_tlsdesc_dynamic): Likewise.
15712         (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
15713         (_dl_tlsdesc_resolve_rel): Likewise.
15714         (_dl_tlsdesc_resolve_rela): Likewise.
15715         (_dl_tlsdesc_resolve_hold): Likewise.
15716         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
15717         (_dl_tlsdesc_undefweak): Likewise.
15718         (_dl_tlsdesc_dynamic): Likewise.
15719         (_dl_tlsdesc_resolve_rela): Likewise.
15720         (_dl_tlsdesc_resolve_hold): Likewise.
15722 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
15724         * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
15725         (_fini): Likewise.
15726         * sysdeps/x86_64/crti.S (_init): Likewise.
15727         (_fini): Likewise.
15729 2018-07-17  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
15731         [BZ #23140]
15732         * localedata/locales/os_RU (mon): Rename to...
15733         (alt_mon): This.
15734         (mon): Import from CLDR (genitive case).
15736 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
15738         * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
15739         cet-tunables.h> when CET is enabled.
15741 2018-07-16  H.J. Lu  <hongjiu.lu@intel.com>
15743         [BZ #21598]
15744         * configure.ac: Add --enable-cet.
15745         * configure: Regenerated.
15746         * elf/Makefille (all-built-dso): Add a comment.
15747         * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
15748         Include <dl-prop.h>.
15749         (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
15750         segment.
15751         * elf/dl-open.c: Include <dl-prop.h>.
15752         (dl_open_worker): Call _dl_open_check.
15753         * elf/rtld.c: Include <dl-prop.h>.
15754         (dl_main): Call _rtld_process_pt_note on PT_NOTE segment.  Call
15755         _rtld_main_check.
15756         * sysdeps/generic/dl-prop.h: New file.
15757         * sysdeps/i386/dl-cet.c: Likewise.
15758         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
15759         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
15760         * sysdeps/x86/cet-tunables.h: Likewise.
15761         * sysdeps/x86/check-cet.awk: Likewise.
15762         * sysdeps/x86/configure: Likewise.
15763         * sysdeps/x86/configure.ac: Likewise.
15764         * sysdeps/x86/dl-cet.c: Likewise.
15765         * sysdeps/x86/dl-procruntime.c: Likewise.
15766         * sysdeps/x86/dl-prop.h: Likewise.
15767         * sysdeps/x86/libc-start.h: Likewise.
15768         * sysdeps/x86/link_map.h: Likewise.
15769         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
15770         _CET_ENDBR.
15771         (_dl_runtime_profile): Likewise.
15772         (_dl_runtime_resolve_shstk): New.
15773         (_dl_runtime_profile_shstk): Likewise.
15774         * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
15775         if CET is enabled.
15776         (CFLAGS-.o): Add -fcf-protection if CET is enabled.
15777         (CFLAGS-.os): Likewise.
15778         (CFLAGS-.op): Likewise.
15779         (CFLAGS-.oS): Likewise.
15780         (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
15781         is enabled.
15782         (tests-special): Add $(objpfx)check-cet.out.
15783         (cet-built-dso): New.
15784         (+$(cet-built-dso:=.note)): Likewise.
15785         (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
15786         ($(objpfx)check-cet.out): New.
15787         (generated): Add check-cet.out.
15788         * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
15789         <cet-tunables.h>.
15790         (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
15791         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15792         (init_cpu_features): Call get_cet_status to check CET status
15793         and update dl_x86_feature_1 with CET status.  Call
15794         TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
15795         (set_x86_shstk).  Disable and lock CET in libc.a.
15796         * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
15797         (TUNABLE_CALLBACK (set_x86_ibt)): New function.
15798         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15799         * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
15800         (_CET_ENDBR): Define if not defined.
15801         (ENTRY): Add _CET_ENDBR.
15802         * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
15803         x86_shstk.
15804         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
15805         _CET_ENDBR.
15806         (_dl_runtime_profile): Likewise.
15808 2018-07-16  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
15810         [BZ #21895]
15811         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
15812         restore r2 on longjmp.
15813         * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
15814         test list.
15815         Added rules to build test tst-setjmp-bug21895-static.
15816         Added module setjmp-bug21895 and rules to build a shared object from it.
15817         * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
15818         * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
15820 2018-07-15  Wilco Dijkstra  <wdijkstr@arm.com>
15822         * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
15823         * benchtests/bench-strstr.c: Likewise.
15824         * string/memmem.c (FASTSEARCH): Define.
15825         * string/str-two-way.h (two_way_short_needle): Minor cleanups.
15826         Add support for FASTSEARCH.
15827         * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
15828         * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
15829         (FASTSEARCH): Define.
15830         * string/test-strcasestr.c: Rename __strnlen to strnlen.
15831         * string/test-strstr.c: Likewise.
15833 2018-07-15  H.J. Lu  <hongjiu.lu@intel.com>
15835         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
15836         SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
15838 2018-07-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
15839             H.J. Lu  <hongjiu.lu@intel.com>
15841         * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
15842         (__longjmp): Restore shadow stack pointer if shadow stack is
15843         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15844         isn't defined for __longjmp_cancel.
15845         * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
15846         (_setjmp): Save shadow stack pointer if shadow stack is enabled
15847         and SHADOW_STACK_POINTER_OFFSET is defined.
15848         * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
15849         (setjmp): Save shadow stack pointer if shadow stack is enabled
15850         and SHADOW_STACK_POINTER_OFFSET is defined.
15851         * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
15852         (__sigsetjmp): Save shadow stack pointer if shadow stack is
15853         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15854         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
15855         <jmp_buf-ssp.h>.
15856         (____longjmp_chk): Restore shadow stack pointer if shadow stack
15857         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15858         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
15859         Remove jmp_buf-ssp.sym.
15860         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15861         <jmp_buf-ssp.h>.
15862         (____longjmp_chk): Restore shadow stack pointer if shadow stack
15863         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15864         * sysdeps/x86/Makefile (gen-as-const-headers): Add
15865         jmp_buf-ssp.sym.
15866         * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
15867         * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
15868         (__longjmp): Restore shadow stack pointer if shadow stack is
15869         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15870         isn't defined for __longjmp_cancel.
15871         * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
15872         (__sigsetjmp): Save shadow stack pointer if shadow stack is
15873         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15875 2018-07-14  H.J. Lu  <hongjiu.lu@intel.com>
15877         [BZ #22563]
15878         * nptl/pthread_create.c: Include <tls-setup.h>.
15879         (__pthread_create_2_1): Call tls_setup_tcbhead.
15880         * sysdeps/generic/tls-setup.h: New file.
15881         * sysdeps/x86/nptl/tls-setup.h: Likewise.
15882         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15883         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
15884         Likewise.
15885         * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
15886         to feature_1.
15887         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
15888         * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
15889         (X86_FEATURE_1_SHSTK): Likewise.
15890         (CET_ENABLED): Likewise.
15891         (IBT_ENABLED): Likewise.
15892         (SHSTK_ENABLED): Likewise.
15894 2018-07-13  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
15896         [BZ #23208]
15897         * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
15898         (LOCALES): Likewise.
15899         * localedata/dsb_DE.UTF-8.in: New file.
15900         * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
15902 2018-07-12  Florian Weimer  <fweimer@redhat.com>
15904         * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
15905         __mprotect, not mprotect.
15907 2018-07-11  Florian Weimer  <fweimer@redhat.com>
15909         * io/Makefile (headers): Add bits/statx.h.
15911 2018-07-10  Mike FABIAN  <mfabian@redhat.com>
15913         * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
15914         * localedata/locales/i18n_ctype: Use correct Unicode version in comments
15915         and headers.
15916         * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
15917         * localedata/unicode-gen/Makefile: Use option to specify Unicode version
15918         for utf8_gen.py
15920 2018-07-10  Florian Weimer  <fweimer@redhat.com>
15922         * io/Makefile (routines): Add statx.
15923         (tests-internal): Add tst-statx.
15924         * io/Versions (GLIBC_2.28): Export statx.
15925         * io/bits/statx.h: New file.
15926         * io/sys/stat.h [__USE_GNU]: Include it.
15927         * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15928         (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15929         Define.
15930         * io/statx.c: New file.
15931         * io/statx_generic.: Likewise.
15932         * io/tst-statx.: Likewise.
15933         * include/bits/statx.h: Likewise.
15934         * sysdeps/unix/sysv/linux/kernel-features.h
15935         [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15936         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15937         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15938         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15939         Undefine.
15940         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15941         [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15942         * sysdeps/unix/sysv/linux/statx.c: New file.
15943         * manual/filesys.texi: Note that statx is undocumented.
15944         * sysdeps/**/libc*.abilist: Update.
15946 2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15948         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15949         a kernel issue which lead to test failure in some cases.
15951 2018-07-10  Florian Weimer  <fweimer@redhat.com>
15953         [BZ #23036]
15954         * posix/regexec.c (check_node_accept_bytes): When comparing
15955         weights, do not compare an extra byte after the end of the
15956         weights.
15958 2018-07-10  Florian Weimer  <fweimer@redhat.com>
15960         * libio/readline.c: Fix copyright year.
15961         * libio/tst-readline.c Likewise.
15962         * nss/tst-nss-files-hosts-getent.c: Likewise.
15964 2018-07-06  Florian Weimer  <fweimer@redhat.com>
15966         [BZ #18991]
15967         * nss/nss_files/files-XXX.c (internal_getent): Use
15968         __libc_readline_unlocked.  Seek back to the start of the line if
15969         parsing failes with ERANGE.
15970         (get_contents_ret, get_contents): Remove.
15971         * nss/tst-nss-files-hosts-getent.c: New file.
15972         * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15973         (tst-nss-files-hosts-getent): Link with -ldl.
15975 2018-07-06  Florian Weimer  <fweimer@redhat.com>
15977         * include/stdio.h (__libc_readline_unlocked): Declare.
15978         (__ftello64, __fseeko64): Declare aliases.
15979         * libio/readline.c: New file.
15980         * libio/tst-readline.c: Likewise.
15981         (routines): Add readline.
15982         (tests-internal): Add tst-readlime.
15983         * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15984         __libc_readline_unlocked.
15985         * libio/fseeko.c (__fseeko): Rename from fseeko.
15986         (fseeko): Add alias.
15987         [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15988         * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15989         (fseeko64): Add alias.
15990         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15991         * libio/ftello64.c (__ftello64): Rename from ftello64.
15992         (ftello64): Add alias.
15994 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15996         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15997         HWCAP_ATOMICS.
15999 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16001         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
16002         Use dl_hwcap without masking.
16003         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
16004         Remove HWCAP_CPUID.
16006 2018-07-06  Florian Weimer  <fweimer@redhat.com>
16008         * conform/conformtest.pl (checknamespace): Escape literal braces
16009         in regular expressions.
16011 2018-07-06  Amit Pawar  <amit.pawar@amd.com>
16013         * sysdeps/x86/cpu-features.c (get_common_indeces):
16014         AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
16015         * sysdeps/x86/cpu-features.c (init_cpu_features):
16016         AVX_Fast_Unaligned_Load is disabled for Excavator core.
16018 2018-07-05  Florian Weimer  <fweimer@redhat.com>
16020         * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
16021         protector.
16022         (CFLAGS-elf-init.oS): Likewise.
16024 2018-07-05  Florian Weimer  <fweimer@redhat.com>
16025             Carlos O'Donell  <carlos@redhat.com>
16027         * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
16028         $(no-stack-protector).  stack_chk_fail_local.c can be compiled
16029         with stack protector enabled because there is no risk of infinite
16030         recursion.
16032 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
16034         [BZ #19818]
16035         [BZ #23307]
16036         * libc-abis (ABSOLUTE): New ABI.
16037         * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
16038         * NEWS: Mention the new ABI.
16040 2018-07-05  Florian Weimer  <fweimer@redhat.com>
16042         [BZ # 17662]
16043         * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
16044         (RENAME_WHITEOUT): Define.
16045         [__USE_GNU] (renameat2): Declare.
16046         * stdio-common/Makefile (routines): Add renameat2.
16047         (tests): Add tst-renameat2.
16048         * stdio-common/Versions (GLIBC_2_28): Export renameat2.
16049         * stdio-common/renameat2.c: New file.
16050         * stdio-common/tst-renameat2.c: Likewise.
16051         * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
16052         * manual/filesys.texi (Temporary Files): Note that renameat2 is
16053         undocumented.
16054         * sysdeps/unix/sysv/linux/kernel-features.h
16055         [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
16056         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
16057         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
16058         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16059         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
16060         * sysdeps/unix/sysv/linux/sh/kernel-features.h
16061         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
16062         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16063         [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
16064         * include/stdio.h (__renameat): Add alias for renameat.
16065         * stdio-common/renameat.c (__renameat): Rename from renameat.
16066         Add hidden definition and alias.
16067         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
16068         * sysdeps/mach/hurd/renameat.c: Likewise.
16069         * sysdeps/**/libc*.abilist: Add renameat2.
16071 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16073         * posix/bug-regex33.c: Fix build after regex sync.
16075 2018-07-04  Carlos O'Donell  <carlos@redhat.com>
16077         [BZ #23164]
16078         * localedata/tst-langinfo-setlocale.c: New file.
16079         * localedata/tst-langinfo-setlocale-static.c: New file.
16080         * localedata/tst-langinfo-newlocale.c: New file.
16081         * localedata/tst-langinfo-newlocale-static.c: New file.
16082         * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
16083         tst-langinfo-setlocale, tst-langinfo-setlocale-static,
16084         tst-langinfo-newlocale, tst-langinfo-newlocale-static.
16085         (tests-static): Remove tst-langinfo-static. Add
16086         tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
16087         (tests-special): Remove $(objpfx)tst-langinfo.out,
16088         $(objpfx)tst-langinfo-static.out. Add
16089         $(objpfx)tst-langinfo-setlocale.out,
16090         $(objpfx)tst-langinfo-newlocale.out,
16091         $(objpfx)tst-langinfo-setlocale-static.out,
16092         $(objpfx)tst-langinfo-newlocale-static.out.
16093         ($(objpfx)tst-langinfo.out): Remove.
16094         ($(objpfx)tst-langinfo-static.out): Remove.
16095         ($(objpfx)tst-langinfo-newlocale.out): New target.
16096         ($(objpfx)tst-langinfo-newlocale-static.out): New target.
16097         (test-xfail-tst-langinfo-newlocale-static): Add.
16098         ($(objpfx)tst-langinfo-setlocale.out): New target.
16099         ($(objpfx)tst-langinfo-setlocale-static.out): New target.
16100         * localedata/tst-langinfo.c: Call test_locale.
16101         * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
16102         data.
16104 2018-07-04  Florian Weimer  <fweimer@redhat.com>
16106         testrun.sh: Implement --tool=strace, --tool=valgrind
16107         * Makefile (testrun-script): Define variable.
16108         (testrun.sh): Use variable.
16109         * manual/install.texi (Tools for Compilation): make 4.0 or later
16110         is required.
16111         * configure.ac: Check for make 4.0 or later.
16112         * INSTALL: Regenerate.
16113         * configure: Likewise.
16115 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16117         [BZ #23233]
16118         [BZ #21163]
16119         [BZ #18986]
16120         [BZ #13762]
16121         * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
16122         * posix/PCRE.tests: Remove invalid test.
16123         * posix/bug-regex28.c: Fix expected values for used syntax.
16124         * posix/bug-regex37.c: New file.
16125         * posix/bug-regex38.c: Likewise.
16126         * posix/regcomp.c: Sync with gnulib.
16127         * posix/regex.c: Likewise.
16128         * posix/regex.h: Likewise.
16129         * posix/regex_internal.c: Likewise.
16130         * posix/regex_internal.h: Likewise.
16131         * posix/regexec.c: Likewise.
16133 2018-06-26  Mike FABIAN  <mfabian@redhat.com>
16135         [BZ #23308]
16136         * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
16137         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
16138         * localedata/unicode-gen/EastAsianWidth.txt: likewise.
16139         * localedata/unicode-gen/PropList.txt: likewise.
16140         * localedata/unicode-gen/UnicodeData.txt: likewise.
16141         * localedata/charmaps/UTF-8: Regenerate.
16142         * localedata/locales/i18n_ctype: likewise.
16143         * localedata/locales/tr_TR: likewise.
16144         * localedata/locales/translit_circle: likewise.
16145         * localedata/locales/translit_cjk_compat: likewise.
16146         * localedata/locales/translit_combining: likewise.
16147         * localedata/locales/translit_compat: likewise.
16148         * localedata/locales/translit_font: likewise.
16149         * localedata/locales/translit_fraction: likewise.
16151 2018-07-03  Florian Weimer  <fweimer@redhat.com>
16153         [BZ #23363]
16154         * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
16155         * stdio-common/tst-printf.sh: Adjust expected output.
16156         * LICENSES: Update.
16158 2018-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16160         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
16161         symbol.
16163 2018-07-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
16165         * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
16166         (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
16167         ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
16168         * stdio-common/tst-printfsz-islongdouble.c: New file.
16169         * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
16170         * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
16171         [subdir == stdio-common] (routines): Add ieee128-printf_size.
16172         [subdir == stdio-common] (tests-internal): Add
16173         test-printf-size-ieee128, and test-printf-size-ibm128.
16174         [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
16175         (CFLAGS-test-printf-size-ibm128.c): New variables.
16176         [subdir == stdio-common] (tests-special): Add
16177         $(objpfx)test-printf-size-ieee128.out and
16178         $(objpfx)test-printf-size-ibm128.out.
16179         [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
16180         ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
16181         * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
16182         __printf_sizeieee128.
16183         * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
16184         New file.
16185         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
16186         Likewise.
16187         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
16188         Likewise.
16190 2018-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16192         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
16193         (exp2f_inline): Likewise.
16194         * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
16195         (__math_uflowf): Likewise.
16196         (__math_may_uflowf): Likewise.
16197         (__math_divzerof): Likewise.
16198         (__math_invalidf): Likewise.
16199         * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
16200         (__math_oflowf): Likewise.
16201         (__math_uflowf): Likewise.
16202         (__math_may_uflowf): Likewise.
16203         (__math_divzerof): Likewise.
16204         (__math_invalidf): Likewise.
16206 2018-06-29  DJ Delorie  <dj@redhat.com>
16207             Carlos O'Donell  <carlos@redhat.com>
16209         [BZ #23329]
16210         * include/libc-symbols.h: Comment the freeres framework.
16211         * include/set-hooks.h: Include libc-symbols.h.  Fix comment.
16212         * dlfcn/Makefile (libdl-routines): Add dlfreeres.
16213         * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
16214         * dlfcn/dlerror.c: Include libc-symbols.h
16215         (__dlerror_main_freeres): New function.
16216         * dlfcn/dlfreeres.c: New file.
16217         * dlfcn/sdlfreeres.c: New file.
16218         * include/dlfcn.h: Declare __dlerror_main_freeres.
16219         * malloc/set-freeres.c: Declare __libdl_freeres, and
16220         __libpthread_freeres.
16221         (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
16222         the releavant libraries are loaded.
16223         * malloc/thread-freeres.c: Add comments.
16224         * nptl/Makefile (libpthread-routines): Add nptlfreeres.
16225         * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
16226         * nptl/allocatestack.c (__nptl_free_stacks): New function.
16227         (__free_stacks): Rename to...
16228         (free_stacks): ...this. Mark static.
16229         (queue_stack): Call free_stacks.
16230         * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
16231         * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
16232         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
16233         ptr_freeres element from struct.
16234         (pthread_functions): Remove .ptr_freeres from struct initializer.
16235         [SHARED] (nptl_freeres): Remove.
16236         * nptl/nptlfreeres.c: New file.
16237         * nptl/pthreadP.h
16238         [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
16239         [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this.  Mark
16240         attribute_hidden.
16241         (__free_stacks): Rename to...
16242         (__nptl_stacks_freeres): ...this.
16243         (__shm_directory_freeres): Declare.
16244         * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
16245         (__nptl_unwind_freeres): ...this.
16246         * resolv/res-close.c: Add comment.
16247         * resolv/resolv_conf.c: Include libc-symbols.h.
16248         * string/strerror_l.c: Include libc-symbols.h.
16249         * sunrpc/rpc_thread.c: Include libc-symbols.h.
16250         * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
16251         * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
16252         [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
16254 2018-06-29  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16256         * stdlib/tst-strfmon_l.c: Add tests for long double.
16258 2018-06-29  Michael Wolf  <milupo@sorbzilla.de>
16260         [BZ #23208]
16261         * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
16262         * localedata/locales/dsb_DE: New file.
16264 2018-06-29  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
16266         [BZ #23140]
16267         * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
16268         genitive case).
16269         (alt_mon): New entry, import from CLDR (nominative case).
16271 2018-06-29  Sylvain Lesage  <severo@rednegra.net>
16273         [BZ #22996]
16274         * localedata/locales/es_BO (LC_PAPER): Change to â€œcopy "en_US"”.
16276 2018-06-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16278         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
16279         Use vector registers.
16281         * sysdeps/aarch64/multiarch/memmove_falkor.S
16282         (__memcpy_falkor): Use vector registers.
16284 2018-06-29  Martin Sebor  <msebor@redhat.com>
16286         * manual/stdio.texi (Customizing Printf): Mention interaction
16287         with GCC built-ins.
16289 2018-06-29  Maciej W. Rozycki  <macro@mips.com>
16291         [BZ #23307]
16292         * elf/dl-lookup.c (check_match): Do not reject a symbol whose
16293         `st_value' is 0 if `st_shndx' is SHN_ABS.
16294         * elf/tst-absolute-zero.c: New file.
16295         * elf/tst-absolute-zero-lib.c: New file.
16296         * elf/tst-absolute-zero-lib.lds: New file.
16297         * elf/Makefile (tests): Add `tst-absolute-zero'.
16298         (modules-names): Add `tst-absolute-zero-lib'.
16299         (LDLIBS-tst-absolute-zero-lib.so): New variable.
16300         ($(objpfx)tst-absolute-zero-lib.so): New dependency.
16301         ($(objpfx)tst-absolute-zero: New dependency.
16303 2018-06-29  Zack Weinberg  <zackw@panix.com>
16305         * configure.ac: New command-line option --disable-crypt.
16306         Force --disable-nss-crypt when --disable-crypt is given, with a
16307         warning if it was explicitly enabled.
16308         * configure: Regenerate.
16309         * config.make.in: New boolean substitution variable $(build-crypt).
16310         * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
16311         when $(build-crypt).
16312         * manual/install.texi: Document --disable-crypt.
16313         * INSTALL: Regenerate.
16315         * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
16316         which is never set.
16317         * conform/Makefile: Only include libcrypt.a in
16318         linknamespace-libs-xsi and linknamespace-libs-XPG4
16319         when $(build-crypt).
16320         * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
16321         USE_CRYPT to 1 when $(build-crypt).
16322         (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
16323         (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
16324         * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
16326 2018-06-29  Zack Weinberg  <zackw@panix.com>
16328         * crypt/crypt.h, posix/unistd.h: Update comments and
16329         prototypes for crypt and crypt_r.
16331         * manual/crypt.texi (Cryptographic Functions): New initial
16332         exposition.
16333         (crypt): Section renamed to 'Passphrase Storage'.  Full rewrite.
16334         (Unpredictable Bytes): Improve initial exposition.  Clarify error
16335         behavior of getentropy and getrandom.
16336         * manual/examples/genpass.c: Generate a salt using getentropy
16337         instead of the current time. Use hash $5$ (SHA-2-256).
16338         * manual/examples/testpass.c: Demonstrate validation against
16339         hashes generated with three different one-way functions.
16341         * manual/intro.texi: crypt.texi does not need an overview
16342         anymore.
16344         * manual/nss.texi, manual/memory.texi, manual/socket.texi
16345         * manual/terminal.texi: Consistently refer to "passphrases"
16346         * instead of "passwords", and to the "user database" instead
16347         * of the "password database".
16348         * manual/users.texi: Similarly.  Add notes about how actual
16349         passphrase hashes are now stored in the shadow database.
16350         Remove 20-year-old junk todo note.
16352 2018-06-29  Zack Weinberg  <zackw@panix.com>
16354         * manual/crypt.texi: Use a normal top-level @node declaration.
16355         Move most of the introductory text to the 'crypt' section.
16356         Move the example programs below the @deftypefun for 'crypt_r'.
16357         Move the 'getpass' section...
16358         * manual/terminal.texi: ...here.
16360 2018-06-29  Zack Weinberg  <zackw@panix.com>
16361             Florian Weimer <fweimer@redhat.com>
16363         * posix/unistd.h: Do not declare encrypt.
16364         (_XOPEN_CRYPT): Remove macro definition.
16365         (crypt): Declare only for _USE_MISC.
16366         * stdlib/stdlib.h: Do not declare setkey.
16367         * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
16368         * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
16370         * crypt/crypt-entry.c: Make fcrypt a compat symbol.
16371         * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
16372         into compat symbols.  Don't define initial_perm if it's not
16373         going to be used.
16374         * crypt/cert.c: Link explicitly with the expected versions for
16375         setkey and encrypt.  If they are not available at all, mark
16376         the test as unsupported.
16378         * sunrpc/des_crypt.c: Unconditionally block linkage with
16379         cbc_crypt and ecb_crypt for new binaries.
16380         * sunrpc/des_soft.c: Unconditionally block linkage with
16381         des_setparity for new binaries.
16383         * manual/crypt.texi: Remove the entire "DES Encryption"
16384         section.  Also remove the paragraph talking about FIPS 140-2
16385         from the introduction.
16386         * manual/string.texi (strfry, memfrob): Revise.  Recommend use
16387         of libgcrypt for "real" encryption, not DES.
16388         * manual/conf.texi (Constants for Sysconf): Mention that
16389         _XOPEN_CRYPT is no longer impelemented.
16391         * conform/data/unistd.h-data: Remove crypt function declaration.
16393 2018-06-29  Florian Weimer  <fweimer@redhat.com>
16395         [BZ #23351]
16396         * malloc/hooks.c: Update comments on restoring of dumped heaps.
16397         (disallow_malloc_check): Remove variable.
16398         (__malloc_check_init): Adjust.
16399         (malloc_set_state): Update comment.
16400         * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
16401         declarations.
16403 2018-06-29  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
16405         [BZ #23140]
16406         * localedata/locales/ast_ES (mon): Rename to...
16407         (alt_mon): This.
16408         (mon): Import from CLDR (genitive case).
16410 2018-06-29  Daniel Alvarez  <dalvarez@redhat.com>
16411             Jakub Sitnicki  <jkbs@redhat.com>
16413         [BZ #21812]
16414         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
16415         on NLM_F_DUMP_INTR.
16417 2018-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16419         * manual/llio.texi: Remove spurious space.
16421 2018-06-28  Florian Weimer  <fweimer@redhat.com>
16423         [BZ #23349]
16424         * time/bits/types/struct_timespec.h: Change header inclusion guard to
16425         _STRUCT_TIMESPEC.
16427 2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16429         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
16430         __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
16431         * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
16432         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
16433         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
16434         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
16435         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
16437 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
16439         [BZ #23266]
16440         * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
16441         Copy and null-terminate entries that are not terminated, in
16442         addition to empty ones.
16444 2018-06-27  Florian Weimer  <fweimer@redhat.com>
16446         [BZ #18023]
16447         * include/alloca.h (stackinfo_alloca_round, extend_alloca)
16448         (extend_alloca_account): Remove.
16449         * manual/stdio.texi (Variable Arguments Output): Update comment.
16451 2018-06-27  Joseph Myers  <joseph@codesourcery.com>
16453         * nptl/sockperf.c: Remove file.
16455 2018-06-27  Florian Weimer  <fweimer@redhat.com>
16457         [BZ #18023]
16458         * elf/dl-deps.c (_dl_map_object_deps): Use struct
16459         scratch_buffer instead of extend_alloca.
16461 2018-06-27  Florian Weimer  <fweimer@redhat.com>
16463         [BZ #18023]
16464         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
16465         scratch_buffer instead of extend_alloca.  Update comments.
16467 2018-06-27  Florian Weimer  <fweimer@redhat.com>
16469         [BZ #18023]
16470         * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
16471         instead of extend_alloca.
16473 2018-06-26  Joseph Myers  <joseph@codesourcery.com>
16475         [BZ #13888]
16476         * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
16477         * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
16478         /tmp.
16479         * scripts/test-installation.pl: Put temporary files in build
16480         directory, not /tmp.
16481         * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
16482         (CFLAGS-bug4.c): Likewise.
16483         (CFLAGS-bug5.c): Likewise.
16484         (CFLAGS-test-fseek.c): Likewise.
16485         (CFLAGS-test-popen.c): Likewise.
16486         (CFLAGS-test_rdwr.c): Likewise.
16487         * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
16488         /tmp.
16489         * stdio-common/bug4.c (main): Likewise.
16490         * stdio-common/bug5.c (main): Likewise.
16491         * stdio-common/test-fseek.c (TESTFILE): Likewise.
16492         * stdio-common/test-popen.c (do_test): Likewise.
16493         * stdio-common/test_rdwr.c (main): Likewise.
16495 2018-06-26  Patsy Franklin  <pfrankli@redhat.com>
16497         * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
16498         (sem_open): Set sem.newsem.pad to zero for valgrind.
16500 2018-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16502         [BZ #20251]
16503         * NEWS: Mention fcntl64 addition.
16504         * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
16505         * login/utmp_file.c: Likewise.
16506         * sysdeps/posix/fdopendir.c: Likewise.
16507         * sysdeps/posix/opendir.c: Likewise.
16508         * sysdeps/unix/pt-fcntl.c: Likewise.
16509         * include/fcntl.h (__libc_fcntl64, __fcntl64,
16510         __fcntl64_nocancel_adjusted): New prototype.
16511         (__fcntl_nocancel_adjusted): Remove prototype.
16512         * io/Makefile (routines): Add fcntl64.
16513         (CFLAGS-fcntl64.c): New rule.
16514         * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
16515         [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
16516         * io/fcntl.h (fcntl64): Add prototype and redirect if
16517         __USE_FILE_OFFSET64 is defined.
16518         * io/fcntl64.c: New file.
16519         * manual/llio.text: Add a note for which commands fcntl acts a
16520         cancellation point.
16521         * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
16522         * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
16523         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
16524         New symbols.
16525         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
16526         F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
16527         non-LFS case.
16528         * sysdeps/unix/sysv/linux/fcntl64.c: New file.
16529         * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
16530         to __fcntl64_nocancel.
16531         (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
16532         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
16533         to __fcntl64_nocancel.
16534         * sysdeps/generic/not-cancel.h: Likewise.
16535         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
16536         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
16537         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
16538         (fcntl64): New symbol.
16539         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
16540         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
16541         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
16542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
16543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
16544         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16545         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
16546         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
16547         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
16548         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
16549         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
16550         fcntl64): Likewise.
16551         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
16552         * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
16553         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
16554         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
16555         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
16556         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
16557         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
16558         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
16559         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
16560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
16561         Likewise.
16562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
16563         Likewise.
16564         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
16565         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
16566         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
16568 2018-06-26  Florian Weimer  <fweimer@redhat.com>
16570         Run thread shutdown functions in an explicit order.
16571         * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
16572         definition.
16573         (__libc_thread_freeres): Call thread shutdown functions
16574         explicitly.
16575         * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
16576         * include/string.h (__strerror_thread_freeres): Declare.
16577         * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
16578         arena_thread_freeres.  No longer static.  Remove thread shutdown
16579         hook registration.
16580         * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
16581         Declare.
16582         * resolv/res-close.c (__res_thread_freeres): Renamed from
16583         res_thread_freeres.  No longer static.  Remove thread shutdown
16584         hook registration.
16585         * resolv/resolv-internal.h (__res_thread_freeres): Declare.
16586         * resolv/resolv_conf.c (freeres): Remove incorrect section
16587         attribute and use libc_freeres_fn.
16588         * string/strerror_l.c (__strerror_thread_freeres): Renamed from
16589         strerror_thread_freeres.  No longer static.  Remove thread
16590         shutdown hook registration.
16591         * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
16592         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
16593         shutdown hook registration.
16594         * Makerules (shlib.lds): Do not provide section boundary symbols
16595         for __libc_thread_subfreeres.
16596         * manual/memory.texi (Basic Allocation): Update comment.
16598 2018-06-26  Florian Weimer  <fweimer@redhat.com>
16600         Remove always-defined _RPC_THREAD_SAFE_ macro.
16601         * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
16602         Do not define _RPC_THREAD_SAFE_.
16603         * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
16604         conditional.
16605         * sunrpc/clnt_perr.c: Likewise.
16606         * sunrpc/clnt_raw.c: Likewise.
16607         * sunrpc/clnt_simp.c: Likewise.
16608         * sunrpc/key_call.c: Likewise.
16609         * sunrpc/rpc_common.c: Likewise.
16610         * sunrpc/rpc_main.c: Likewise.
16611         * sunrpc/rpc_thread.c: Likewise.
16612         * sunrpc/svc.c: Likewise.
16613         * sunrpc/svc_raw.c: Likewise.
16614         * sunrpc/svc_simple.c: Likewise.
16615         * sumrpc/svcauth_des.c: Likewise.
16617 2018-06-26  Florian Weimer  <fweimer@redhat.com>
16619         * libio/Makefile (tests-internal): Add tst-vtables,
16620         tst-vtables-interposed.
16621         * libio/tst-vtables.c: New file.
16622         * libio/tst-vtables-common.c: Likewise.
16623         * libio/tst-vtables-interposed.c: Likewise.
16625 2018-06-26  Florian Weimer  <fweimer@redhat.com>
16627         * support/support_test_main.c (support_test_main): Only call
16628         setvbuf if not disables.
16629         * support/test-driver.c (main): Check TEST_NO_SETVBUF.
16630         * support/test-driver.h (struct test_config): Add no_setvbuf member.
16632 2018-06-26  Florian Weimer  <fweimer@redhat.com>
16634         [BZ #23313]
16635         * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
16637 2018-06-25  Florian Weimer  <fweimer@redhat.com>
16639         [BZ #18023]
16640         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16641         Use struct scratch_buffer instead of extend_alloca.
16643 2018-06-25  Florian Weimer  <fweimer@redhat.com>
16645         [BZ #18023]
16646         * nss/getent.c (initgroups_keys): Use dynarray instead of
16647         extend_alloca.
16649 2018-06-25  Florian Weimer  <fweimer@redhat.com>
16651         [BZ #18023]
16652         * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
16653         Use struct scratch_buffer instead of extend_alloca.
16655 2018-06-25  Florian Weimer  <fweimer@redhat.com>
16657         [BZ #18023]
16658         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
16659         back to malloc directly, without stack allocations.
16661 2018-06-25  Florian Weimer  <fweimer@redhat.com>
16663         [BZ #18023]
16664         * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
16665         of extend_alloca.
16667 2018-06-25  Florian Weimer  <fweimer@redhat.com>
16669         [BZ #18023]
16670         * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
16671         of extend_alloca.
16672         * nscd/hstcache.c (addhstbyX): Likewise.
16673         * nscd/pwdcache.c (addpwbyX): Likewise.
16674         * nscd/servicescache.c (addservbyX): Likewise.
16676 2018-06-25  Florian Weimer  <fweimer@redhat.com>
16678         [BZ #18023]
16679         * nscd/connections.c (read_cmdline): New function.
16680         (restart): Use it.  Update comment.
16682 2018-06-25  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
16684         [BZ #23140]
16685         * localedata/locales/csb_PL (mon): Rename to...
16686         (alt_mon): This.
16687         (abmon): Rename to...
16688         (ab_alt_mon): This.
16689         (mon): Add with proper genitive forms, copy from Wikipedia.
16690         (abmon): Likewise.
16692 2018-06-25  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
16694         [BZ #19485]
16695         * localedata/locales/csb_PL (mon): Fix typos:
16696         "Ć‚ĆŒĂ«kwiĂŽt" -> "Ć‚ĆŒĂ«kwiat" (April); "lĂ«pinc" -> "lĂ«piƄc" (July).
16697         (yesstr): Add, value is "jo".
16698         (nostr): Add, value is "niĂ©".
16700 2018-06-22  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
16702         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
16703         all log1p and significand functions on m680x0.
16704         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
16705         of s_significand.c..
16706         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
16707         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
16708         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
16709         * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
16710         s_log1p.c and include it..
16712 2018-06-21  Vincent Chen  <vincentc@andestech.com>
16714         * elf/elf.h (R_NDS32_NONE): New define.
16715         (R_NDS32_32_RELA): Likewise.
16716         (R_NDS32_COPY): Likewise.
16717         (R_NDS32_GLOB_DAT): Likewise.
16718         (R_NDS32_JUMP_SLOT): Likewise.
16719         (R_NDS32_RELATIVE): Likewise.
16720         (R_NDS32_TLS_TPOFF): Likewise.
16721         (R_NDS32_TLS_DESC): Likewise.
16723 2018-06-21  Mark Wielaard  <mark@klomp.org>
16725         * elf/elf.h (R_BPF_MAP_FD): Removed.
16726         (R_BPF_64_64, R_BPF_64_32): New.
16728 2018-06-21  Florian Weimer  <fweimer@redhat.com>
16730         [BZ #23253]
16731         * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
16732         Renamed from libc_feholdsetround_ctx.
16733         (default_libc_feresetround_ctx): Renamed from
16734         libc_feresetround_ctx.
16735         (default_libc_feholdsetround_noex_ctx): Renamed from
16736         libc_feholdsetround_noex_ctx.
16737         (default_libc_feresetround_noex_ctx): Renamed from
16738         libc_feresetround_noex_ctx.
16739         [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
16740         (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
16741         forwardning to the old implementations under the new names.
16742         * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
16743         (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
16744         (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
16745         (libc_feresetround_ctx): Forward to default implements for i386
16746         and MATH_SET_BOTH_ROUNDING_MODES.
16747         * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
16748         Add -DMATH_SET_BOTH_ROUNDING_MODES.
16750 2018-06-20  Joseph Myers  <joseph@codesourcery.com>
16752         * string/tst-cmp.c: Include <libc-diag.h>.
16753         (strncmp_max): Disable -Wstringop-overflow= around call to
16754         strncmp.
16755         (strncasecmp_max): Disable -Wstringop-overflow= around call to
16756         strncasecmp.
16758         * string/bug-strpbrk1.c: Include <libc-diag.h>.
16759         (main): Disable -Wunused-value around call to strpbrk.
16760         * string/bug-strspn1.c: Include <libc-diag.h>.
16761         (main): Disable -Wunused-value around call to strspn.
16763 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
16764             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
16766         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
16767         * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
16769 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
16771         * math/Makefile (libm-calls): Move s_significandF to...
16772         (gen-libm-calls): ... here.
16773         * math/s_significand_template.c: New file.
16774         * math/s_significand.c: Removed.
16775         * math/s_significandf.c: Removed.
16776         * math/s_significandl.c: Removed.
16777         * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
16778         * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
16780         * math/e_exp2_template.c (declare_mgen_finite_alias,
16781         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
16782         * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
16783         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
16785 2018-06-20  Florian Weimer  <fweimer@redhat.com>
16787         * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
16789 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
16791         [BZ #23280]
16792         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
16793         floating-point number to strtod functions rather than possibly
16794         negating result of those functions.
16795         * stdio-common/tst-scanf-round.c: New file.
16796         * stdio-common/Makefile (tests): Add tst-scanf-round.
16797         ($(objpfx)tst-scanf-round): Depend on $(libm).
16799 2018-06-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16801         * sysdeps/mach/hurd/localplt.data: Move to...
16802         * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
16803         R_386_GLOB_DAT like on Linux i386.
16805 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
16807         * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
16808         (SHM_STAT_ANY): New macro.
16809         * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
16810         (SHM_STAT_ANY): Likewise.
16811         * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
16812         (SHM_STAT_ANY): Likewise.
16813         * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
16814         (SHM_STAT_ANY): Likewise.
16815         * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
16816         (SHM_STAT_ANY): Likewise.
16817         * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
16818         (SHM_STAT_ANY): Likewise.
16819         * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
16820         (SHM_STAT_ANY): Likewise.
16821         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
16822         (SHM_STAT_ANY): Likewise.
16823         * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
16824         (SHM_STAT_ANY): Likewise.
16825         * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
16826         (SHM_STAT_ANY): Likewise.
16827         * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
16828         (SHM_STAT_ANY): Likewise.
16829         * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
16830         (SHM_STAT_ANY): Likewise.
16832         * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
16833         (SEM_STAT_ANY): New macro.
16834         * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
16835         (SEM_STAT_ANY): Likewise.
16836         * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
16837         (SEM_STAT_ANY): Likewise.
16838         * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
16839         (SEM_STAT_ANY): Likewise.
16840         * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
16841         (SEM_STAT_ANY): Likewise.
16842         * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
16843         (SEM_STAT_ANY): Likewise.
16844         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
16845         (SEM_STAT_ANY): Likewise.
16846         * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
16847         (SEM_STAT_ANY): Likewise.
16848         * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
16849         (SEM_STAT_ANY): Likewise.
16850         * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
16851         (SEM_STAT_ANY): Likewise.
16853         * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
16854         (MSG_STAT_ANY): New macro.
16855         * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
16856         (MSG_STAT_ANY): Likewise.
16857         * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
16858         (MSG_STAT_ANY): Likewise.
16859         * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
16860         (MSG_STAT_ANY): Likewise.
16861         * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
16862         (MSG_STAT_ANY): Likewise.
16863         * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
16864         (MSG_STAT_ANY): Likewise.
16865         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
16866         (MSG_STAT_ANY): Likewise.
16867         * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
16868         (MSG_STAT_ANY): Likewise.
16869         * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
16870         (MSG_STAT_ANY): Likewise.
16871         * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
16872         (MSG_STAT_ANY): Likewise.
16874         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16875         (MAP_TYPE): Change value to 0x2b.
16877 2018-06-18  Florian Weimer  <fweimer@redhat.com>
16879         [BZ #15722]
16880         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
16881         socket with SOCK_CLOEXEC.
16883 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
16885         [BZ #23303]
16886         * sysdeps/powerpc/powerpc64/le/Makefile
16887         (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
16888         (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
16889         (gnulib-tests): Also add $(f128-loader-link) for
16890         tst-strtod-nan-sign abd tst-wcstod-nan-sign.
16892 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16894         * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
16895         * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
16896         of sendfile.
16897         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
16898         (sendfile64): New strong alias.
16899         * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
16900         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
16901         returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
16902         * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
16903         attribute.
16904         * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
16905         ___pthread_get_cleanup_stack.
16906         * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
16907         * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
16908         * mach/shortcut.awk: Make syscall stubs include
16909         <mach-shortcuts-hidden.h> and add hidden definition.
16910         * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
16911         (__mach_msg): Add hidden prototype.
16912         * mach/msg.c: Include <mach.h>.
16913         (__mach_msg): Add hidden definition.
16914         * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
16915         * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
16916         __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
16917         __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
16918         * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
16919         __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
16920         * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
16921         prototype and definition.
16922         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16923         hidden target for _hurd_self_sigstate.
16925 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
16927         [BZ #23007]
16928         * stdlib/tst-strtod-nan-sign-main.c: New file.
16929         * stdlib/tst-strtod-nan-sign.c: Likewise.
16930         * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16931         * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16932         ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16933         * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16934         ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16936 2018-06-15  Herman ten Brugge  <hermantenbrugge@home.nl>
16938         [BZ #23007]
16939         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16940         appropriate sign.
16942 2018-06-14  Florian Weimer  <fweimer@redhat.com>
16944         [BZ #23290]
16945         * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16946         that the result stays within the ISO-8859-1 range.
16947         * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16948         characters are defined in IBM273.
16950 2018-06-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16952         * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16953         __mach_task_self): Remove attribute_hidden.
16955 2018-06-14  Joseph Myers  <joseph@codesourcery.com>
16957         * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16958         ignore -Wrestrict for one test.
16960 2018-06-14  Steve Ellcey  <sellcey@caviumnetworks.com>
16961             Szabolcs Nagy  <szabolcs.nagy@arm.com>
16963         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16965 2018-06-14  Florian Weimer  <fweimer@redhat.com>
16967         * scripts/update-abilist.sh: Accept empty list of files to patch.
16969 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16971         * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16972         test-xfail-check-abi-libmachuser): Add.
16973         * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16974         __libc_read and __libc_write to __read and __write.
16975         * sysdeps/hurd/include/hurd/port.h: New file.
16976         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16977         __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16978         __thread_switch, __evc_wait): Move declarations to...
16979         * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16980         attribute_hidden.
16981         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16982         use PLT to call _hurd_self_sigstate.
16984 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
16986         [BZ #23279]
16987         * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16988         MAX_EXP as overflowing.
16989         * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16990         overflow flag.
16991         (round_str): Output also whether result overflows in each rounding
16992         mode.
16993         * stdlib/tst-strtod-round-data: Add more tests.
16994         * stdlib/tst-strtod-round-data.h: Regenerated.
16995         * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16996         (TEST): Handle extra arguments for overflow flags.
16997         (struct test_overflow): New type.
16998         [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16999         (GEN_ONE_TEST): Clear all exceptions.  Test overflow flag.
17000         (test_in_one_mode): Take argument with overflow information.
17001         (do_test): Update calls to test_in_one_mode.
17003 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
17005         * elf/dl-load (_dl_dst_substitute): Correct comment.
17006         (_dl_dst_count): Likewise.
17008         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
17009         lll_futex_timed_wait.
17011 2018-06-12  Joseph Myers  <joseph@codesourcery.com>
17013         [BZ #23277]
17014         * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
17015         attribute.
17016         * math/test-nan-const.c: New file.
17017         * math/Makefile (tests): Add test-nan-const.
17018         (CFLAGS-test-nan-const.c): New variable.
17020 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
17022         * benchtests/scripts/compare_strings.py (process_results): Add
17023         funcs argument.  Compare only functions which are selected.
17024         (main): Check if base function is among selected functions.
17025         Pass selected functions to process_results.
17026         (__main__): Add -f/--functions argument.
17028 2018-06-12  Minfeng Kang  <minfeng.kang@hxt-semitech.com>
17029             Hongbo Zhang  <hongbo.zhang@linaro.org>
17031         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
17032         __memcpy_falkor for phecda core.
17033         * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
17034         __memmove_falkor for phecda core.
17035         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
17036         __memset_falkor for phecda core.
17037         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
17038         for phecda core.
17039         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
17040         macro to identify phecda core.
17042 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
17043             Andreas Schwab  <schwab@suse.de>
17044             Dmitry V. Levin  <ldv@altlinux.org>
17045             Florian Weimer  <fweimer@redhat.com>
17047         [BZ #23102]
17048         [BZ #21942]
17049         [BZ #18018]
17050         [BZ #23259]
17051         CVE-2011-0536
17052         * elf/dl-dst.h: Remove DL_DST_COUNT.
17053         * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
17054         * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
17055         (is_dst): Comment.  Support ELF gABI.
17056         (_dl_dst_count): Comment.  Simplify and count DSTs.
17057         (_dl_dst_substitute): Comment.  Support __libc_enable_secure handling.
17058         (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
17059         locals.
17061 2018-06-12  Zack Weinberg  <zackw@panix.com>
17063         * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
17064         * sysdeps/unix/sysv/linux/dl-sysdep.c
17065         Include not-cancel.h.  Use __close_nocancel instead of __close,
17066         __open64_nocancel instead of __open, __read_nocancel instead of
17067         __libc_read, and __write_nocancel instead of __libc_write.
17069         * csu/check_fds.c (check_one_fd)
17070         * sysdeps/posix/fdopendir.c (__fdopendir)
17071         * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
17072         instead of __fcntl and/or __libc_fcntl.
17074         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
17075         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
17076         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
17077         Use __open64_nocancel instead of __open_nocancel.
17079         * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
17080         hidden_proto declarations to the end and issue them if either
17081         IS_IN(libc) or IS_IN(rtld).
17082         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
17083         Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
17084         open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
17085         read_nocancel, waitpid_nocancel, write_nocancel.
17087         * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
17088         __fcntl_nocancel, __open64_nocancel, __write_nocancel.
17089         * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
17091         * nptl/pt-fcntl.c: New file.
17092         * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
17093         (libpthread-routines): Add pt-fcntl.
17094         * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
17095         (__libc_fcntl): Remove attribute_hidden.
17096         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
17097         __fcntl_nocancel_adjusted, not fcntl_common.
17098         (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
17099         (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
17100         to fcntl_nocancel.c.
17101         * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
17102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
17103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17104         Define FCNTL_ADJUST_CMD here, as a self-contained macro.
17106         * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
17107         * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
17108         * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
17109         * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
17110         * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
17111         * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
17112         * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
17113         * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
17114         * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
17115         * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
17116         * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
17117         * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
17118         * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
17119         * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
17120         * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
17121         * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
17122         * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
17123         * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
17124         * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
17125         * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
17127         * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
17128         libpthread-routines.
17129         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
17130         defines nothing.
17132         * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
17133         __libc_read, and __write instead of __libc_write.  Define
17134         __open64 in addition to __open.
17136 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
17138         [BZ #23250]
17139         [BZ #10686]
17140         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
17141         to _private_tm[3] and add __glibc_reserved2.
17142         Add _Static_assert of offset of __private_ss == 0x30.
17143         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
17144         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
17146 2018-06-12  Florian Weimer  <fweimer@redhat.com>
17148         x86: Make strncmp usable from rtld.
17149         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
17150         __strncmp_ia32 if in libc (and not in rtld).
17151         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
17152         strncmp if not in libc (and not to __strncmp_sse2).
17154 2018-06-12  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
17156         [BZ #23140]
17157         * localedata/locales/gd_GB (mon): Rename to...
17158         (alt_mon): This.
17159         (mon): Import from CLDR (genitive case).
17160         * localedata/locales/hsb_DE (mon): Rename to...
17161         (alt_mon): This.
17162         (mon): Import from CLDR (genitive case).
17163         * localedata/locales/wa_BE (mon): Rename to...
17164         (alt_mon): This.
17165         (mon): Add, fill with the proper genitive forms, but CLDR data
17166         is incomplete; completed according to the comments in this file.
17167         (d_t_fmt): Do not use "di" before the month name, no longer needed.
17169         * localedata/locales/wa_BE (country_name): Reword
17170         "Beljike" -> "Beldjike".
17172 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
17174         [BZ #23272]
17175         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
17176         cases of non-finite arguments.
17177         * math/libm-test-fma.inc (fma_test_data): Add more tests.
17179 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
17181         [BZ #23174]
17182         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
17184 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17186         [BZ #23264]
17187         * include/unistd.h (__execvpex): New prototype.
17188         * posix/Makefile (tests): Add tst-spawn4.
17189         (tests-internal): Add tst-spawn4-compat.
17190         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
17191         * posix/tst-spawn4-compat.c: New file.
17192         * posix/tst-spawn4.c: Likewise.
17193         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
17194         binaries as shell scripts.
17195         * sysdeps/posix/spawni.c (__spawni): Likewise.
17197 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
17199         [BZ #23145]
17200         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
17201         ($(all-built-dso:=.dynsym): New target.
17202         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
17203         ($(objpfx)check-initfini.out): New target.
17204         (generated): Add check-initfini.out.
17205         * scripts/check-initfini.awk: New file.
17206         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
17207         (_fini): Likewise.
17208         * sysdeps/alpha/crti.S (_init): Mark as hidden.
17209         (_fini): Likewise.
17210         * sysdeps/arm/crti.S (_init): Mark as hidden.
17211         (_fini): Likewise.
17212         * sysdeps/hppa/crti.S (_init): Mark as hidden.
17213         (_fini): Likewise.
17214         * sysdeps/i386/crti.S (_init): Mark as hidden.
17215         (_fini): Likewise.
17216         * sysdeps/ia64/crti.S (_init): Mark as hidden.
17217         (_fini): Likewise.
17218         * sysdeps/m68k/crti.S (_init): Mark as hidden.
17219         (_fini): Likewise.
17220         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
17221         (_fini): Likewise.
17222         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
17223         (_fini): Likewise.
17224         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
17225         (_fini): Likewise.
17226         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
17227         (_fini): Likewise.
17228         * sysdeps/nios2/crti.S (_init): Mark as hidden.
17229         (_fini): Likewise.
17230         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
17231         (_fini): Likewise.
17232         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
17233         (_fini): Likewise.
17234         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
17235         (_fini): Likewise.
17236         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
17237         (_fini): Likewise.
17238         * sysdeps/sh/crti.S (_init): Mark as hidden.
17239         (_fini): Likewise.
17240         * sysdeps/sparc/crti.S (_init): Mark as hidden.
17241         (_fini): Likewise.
17242         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
17243         (_fini): Likewise.
17245 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
17247         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
17248         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
17249         and TF redirection to KFtype and KF only when the default
17250         long double type is not the IEEE 128-bit floating point type.
17252 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
17254         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
17255         macro.
17256         (HWCAP_USCAT): Likewise.
17257         (HWCAP_ILRCPC): Likewise.
17258         (HWCAP_FLAGM): Likewise.
17259         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
17260         Increase to 28.
17261         (_dl_aarch64_cap_flags): Add new flag names.
17263         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
17264         (MAP_FIXED_NOREPLACE): New macro.
17265         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
17266         (MAP_FIXED_NOREPLACE): Likewise.
17267         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
17268         (MAP_FIXED_NOREPLACE): Likewise.
17269         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
17270         (MAP_FIXED_NOREPLACE): Likewise.
17271         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
17272         (MAP_FIXED_NOREPLACE): Likewise.
17273         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
17274         (MAP_FIXED_NOREPLACE): Likewise.
17275         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
17276         (MAP_FIXED_NOREPLACE): Likewise.
17277         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
17278         (MAP_FIXED_NOREPLACE): Likewise.
17279         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
17280         (MAP_FIXED_NOREPLACE): Likewise.
17281         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
17282         (MAP_FIXED_NOREPLACE): Likewise.
17283         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
17284         (MAP_FIXED_NOREPLACE): Likewise.
17285         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
17286         (MAP_FIXED_NOREPLACE): Likewise.
17287         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
17288         (MAP_FIXED_NOREPLACE): Likewise.
17289         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
17290         (MAP_FIXED_NOREPLACE): Likewise.
17291         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
17292         (MAP_FIXED_NOREPLACE): Likewise.
17294         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
17295         version to 4.17.
17297 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
17299         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17300         version to 4.17
17302 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17304         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
17305         int.
17306         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
17308 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
17310         * benchtests/scripts/compare_string.py: (process_results) Catch
17311         exception in non-existent base_func and catch exception in
17312         non-existent attribute.
17313         (parse_file) Catch exception if input file does not exist.
17315 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
17317         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
17318         options to avoid diff calculation and omit header, respectively.
17319         (main): process --no-diff and --no-header
17321 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
17322             H.J. Lu  <hongjiu.lu@intel.com>
17324         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17325         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
17326         wcsncmp-sse2.
17327         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17328         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
17329         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
17330         and __wcsncmp_sse2.
17331         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
17332         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
17333         AVX unaligned load is fast and vzeroupper is preferred.
17334         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
17335         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
17336         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
17337         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
17338         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
17339         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
17340         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
17341         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
17342         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
17343         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
17344         is undefined.
17346 2018-06-01  Florian Weimer  <fweimer@redhat.com>
17348         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
17349         configuring with --disable-multi-arch, building with
17350         â€œ-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
17351         Haswell-era CPU.
17353 2018-06-01  Florian Weimer  <fweimer@redhat.com>
17355         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
17356         results from building with â€œ-march=x86-64 -mtune=generic
17357         -mfpmath=sse” and running on a Haswell-era CPU.
17359 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
17361         [BZ #18473]
17362         * soft-fp/sqrttf2.c: Remove file.
17363         * soft-fp/sqrtdf2.c: Move to ....
17364         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
17365         <shlib-compat.h>.
17366         (__sqrtdf2): Make conditional on
17367         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
17368         symbol.
17369         * soft-fp/sqrtsf2.c: Move to ....
17370         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
17371         <shlib-compat.h>.
17372         (__sqrtsf2): Make conditional on
17373         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
17374         symbol.
17375         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
17376         (gcc-double-routines): Remove sqrtdf2.
17377         (gcc-quad-routines): Remove sqrttf2.
17378         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
17379         Do not filter out sqrtsf2 and sqrtdf2.
17380         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
17381         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
17383 2018-06-01  Florian Weimer  <fweimer@redhat.com>
17385         * sysdeps/generic/libcidn.abilist: Remove file.
17387 2018-06-01  Florian Weimer  <fweimer@redhat.com>
17389         [BZ #23236]
17390         * libio/strfile.h (struct _IO_str_fields): Rename members to
17391         discourage their use and add comment.
17392         (_IO_STR_DYNAMIC): Remove unused macro.
17393         * libio/strops.c (_IO_str_init_static_internal): Do not use
17394         callback pointers.  Call malloc and free.
17395         (_IO_str_overflow): Do not use callback pointers.  Call malloc
17396         and free.
17397         (enlarge_userbuf): Likewise.
17398         (_IO_str_finish): Call free.
17399         * libio/wstrops.c (_IO_wstr_init_static): Initialize
17400         _allocate_buffer_unused.
17401         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
17402         and free.
17403         (enlarge_userbuf): Likewise.
17404         (_IO_wstr_finish): Call free.
17405         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
17406         _allocate_buffer_unused, _free_buffer_unused.
17407         * libio/memstream.c (__open_memstream): Likewise.
17408         * libio/vasprintf.c (_IO_vasprintf): Likewise.
17409         * libio/wmemstream.c (open_wmemstream): Likewise.
17411 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
17413         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
17414         AMD Ryzen 7 1800X.
17416 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
17418         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
17419         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
17420         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
17421         New file.
17422         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
17423         Likewise.
17424         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
17426 2018-05-29  Florian Weimer  <fweimer@redhat.com>
17428         * support/Makefile (libsupport-routines): Add
17429         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
17430         xpthread_barrierattr_setpshared.
17431         * support/xpthread_barrierattr_destroy.c: New file.
17432         * support/xpthread_barrierattr_init.c: Likewise.
17433         * support/xpthread_barrierattr_setpshared.c: Likewise.
17435 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17437         [BZ #23206]
17438         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
17439         _r_debug and update DT_DEBUG for debugger.
17441 2018-05-29  Florian Weimer  <fweimer@redhat.com>
17443         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
17444         (tst-strtod5i.out): Likewise.
17446 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
17448         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
17449         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
17450         (sparc64-quad-routines): New variable.  Moved from ....
17451         [$(subdir) = soft-fp] (sysdep_routines): Add
17452         $(sparc64-quad-routines).  Moved from ....
17453         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
17454         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
17455         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
17456         moved from ....
17457         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
17458         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
17459         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
17460         * sysdeps/sparc/sparc64/qp_add.c: ... here.
17461         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
17462         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
17463         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
17464         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
17465         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
17466         * sysdeps/sparc/sparc64/qp_div.c: ... here.
17467         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
17468         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
17469         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
17470         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
17471         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
17472         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
17473         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
17474         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
17475         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
17476         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
17477         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
17478         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
17479         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
17480         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
17481         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
17482         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
17483         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
17484         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
17485         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
17486         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
17487         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
17488         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
17489         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
17490         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
17491         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
17492         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
17493         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
17494         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
17495         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
17496         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
17497         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
17498         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
17499         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
17500         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
17501         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
17502         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
17503         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
17504         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
17505         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
17506         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
17507         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
17508         * sysdeps/sparc/sparc64/qp_util.c: ... here.
17509         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
17510         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
17511         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
17512         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
17513         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
17514         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
17516         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
17517         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
17518         (sparc32-quad-routines): New variable.  Moved from ....
17519         [$(subdir) = soft-fp] (sysdep_routines): Add
17520         $(sparc32-quad-routines).  Moved from ....
17521         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
17522         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
17523         moved from ....
17524         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
17525         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
17526         * sysdeps/sparc/sparc32/q_add.c: ... here.
17527         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
17528         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
17529         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
17530         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
17531         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
17532         * sysdeps/sparc/sparc32/q_div.c: ... here.
17533         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
17534         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
17535         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
17536         * sysdeps/sparc/sparc32/q_feq.c: ... here.
17537         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
17538         * sysdeps/sparc/sparc32/q_fge.c: ... here.
17539         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
17540         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
17541         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
17542         * sysdeps/sparc/sparc32/q_fle.c: ... here.
17543         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
17544         * sysdeps/sparc/sparc32/q_flt.c: ... here.
17545         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
17546         * sysdeps/sparc/sparc32/q_fne.c: ... here.
17547         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
17548         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
17549         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
17550         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
17551         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
17552         * sysdeps/sparc/sparc32/q_mul.c: ... here.
17553         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
17554         * sysdeps/sparc/sparc32/q_neg.c: ... here.
17555         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
17556         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
17557         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
17558         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
17559         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
17560         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
17561         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
17562         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
17563         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
17564         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
17565         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
17566         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
17567         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
17568         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
17569         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
17570         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
17571         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
17572         * sysdeps/sparc/sparc32/q_sub.c: ... here.
17573         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
17574         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
17575         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
17576         * sysdeps/sparc/sparc32/q_util.c: ... here.
17577         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
17578         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
17579         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
17580         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
17582 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
17583             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
17585         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
17586         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
17587         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
17588         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
17590 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
17592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
17593         powerpc/soft-fp.
17594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
17595         Likewise.
17596         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
17597         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
17599 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
17601         [BZ #23171]
17602         * math/math.h [C++] (iseqsig): Fix parameter type for the long
17603         double version.
17605 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
17607         * sysdeps/sh/Implies: Remove sh/soft-fp.
17608         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
17609         * sysdeps/sh/sfp-machine.h: ... here.
17611 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
17613         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17614         (__mempcpy_erms): Skip zero length.
17615         (__memmove_erms): Likewise.
17616         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17617         (__memset_erms): Likewise.
17619 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
17621         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
17622         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
17623         Add functions moved from ....
17624         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
17625         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
17626         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
17627         from ....
17628         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
17629         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
17630         * sysdeps/alpha/e_sqrtl.c: ... here.
17631         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
17632         * sysdeps/alpha/local-soft-fp.h: ... here.
17633         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
17634         * sysdeps/alpha/ots_add.c: ... here.
17635         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
17636         * sysdeps/alpha/ots_cmp.c: ... here.
17637         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
17638         * sysdeps/alpha/ots_cmpe.c: ... here.
17639         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
17640         * sysdeps/alpha/ots_cvtqux.c: ... here.
17641         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
17642         * sysdeps/alpha/ots_cvtqx.c: ... here.
17643         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
17644         * sysdeps/alpha/ots_cvttx.c: ... here.
17645         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
17646         * sysdeps/alpha/ots_cvtxq.c: ... here.
17647         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
17648         * sysdeps/alpha/ots_cvtxt.c: ... here.
17649         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
17650         * sysdeps/alpha/ots_div.c: ... here.
17651         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
17652         * sysdeps/alpha/ots_mul.c: ... here.
17653         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
17654         * sysdeps/alpha/ots_nintxq.c: ... here.
17655         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
17656         * sysdeps/alpha/ots_sub.c: ... here.
17657         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
17658         * sysdeps/alpha/sfp-machine.h: ... here.
17660 2018-05-23  Florian Weimer  <fweimer@redhat.com>
17662         [BZ #19728]
17663         [BZ #19729]
17664         [BZ #22247]
17665         CVE-2016-6261
17666         CVE-2016-6263
17667         CVE-2017-14062
17668         Switch to extern IDNA implementation (libidn2).
17669         * libidn: Remove subdirectory.
17670         * LICENSES: Do not mention licensing conditions for the removed
17671         libidn code.
17672         * config.h.in (HAVE_LIBIDN): Remove.
17673         * include/dlfcn.h (__libc_dlopen): Update comment.
17674         * include/idna.h: Remove file.
17675         * inet/Makefile (routines): Add idna.
17676         (tests-static, tests-internal): Add tst-idna_name_classify.
17677         (LOCALES): Generate locales for tests.
17678         (tst-idna_name_classify.out): Depend on generated locales.
17679         * inet/idna_name_classify.c: New file.
17680         * inet/tst-idna_name_classify.c: Likewise.
17681         * inet/net-internal.h (__idna_to_dns_encoding)
17682         (__idna_from_dns_encoding): Declare.
17683         * inet/net-internal.h (enum idna_name_classification): Define.
17684         (__idna_name_classify): Declare.
17685         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
17686         __idna_from_dns_encoding.
17687         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
17688         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
17689         name as a fallback in case of encoding errors.
17690         (getnameinfo): Use DEPRECATED_NI_IDN.
17691         * inet/idna.c: New file.
17692         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
17693         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
17694         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
17695         (modules-names): Add tst-no-libidn2.
17696         (extra-test-objs): Add tst-no-libidn2.os.
17697         (LDFLAGS-tst-no-libidn2.so): Set soname.
17698         (LOCALES): Set, and generate locales.
17699         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
17700         (tst-resolv-ai_idn-latin1): Likewise.
17701         (tst-resolv-ai_idn-nolibidn2): Likewise.
17702         (tst-resolv-ai_idn.out): Depend on locales.
17703         (tst-resolv-ai_idn-latin1.out): Depend on locales.
17704         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
17705         tst-no-libidn2.so.
17706         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
17707         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
17708         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
17709         * resolv/tst-resolv-ai_idn.c: New file.
17710         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
17711         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
17712         * resolv/tst-no-libidn2.c: Likewise.
17713         * support/support_format_addrinfo.c (format_ai_flags): Do not
17714         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
17715         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
17716         (gaih_inet): Call __idna_to_dns_encoding and
17717         __idna_from_dns_encoding, and use the original (punycode) name if
17718         __idna_from_dns_encoding fails due to an encoding error.
17719         (getaddrinfo): Use DEPRECATED_AI_IDN.
17720         * sysdeps/unix/inet/Subdirs (libidn): Remove.
17721         * sysdeps/unix/inet/configure: Remove file.
17722         * sysdeps/unix/inet/configure.ac: Likewise.
17724 2018-05-23  Florian Weimer  <fweimer@redhat.com>
17726         Implement allocate_once.
17727         * include/allocate_once.h: New file.
17728         * misc/allocate_once.c: Likewise.
17729         * misc/tst-allocate_once.c: Likewise.
17730         * misc/Makefile (routines): Add allocate_once.
17731         (tests-internal): Add tst-allocate_once.
17732         (generated): Add tst-allocate_once.mtrace,
17733         tst-allocate_once-mem.out.
17734         (tests-special): Add tst-allocate_once-mem.out.
17735         (tst-allocate_once-ENV): Set MALLOC_TRACE.
17736         (tst-allocate_once-mem.out): Call mtrace.
17737         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
17739 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
17741         [BZ #23196]
17742         * string/test-memcpy.c (do_test1): New function.
17743         (test_main): Call it.
17745 2018-05-23  Andreas Schwab  <schwab@suse.de>
17747         [BZ #23196]
17748         CVE-2018-11237
17749         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
17750         (L(preloop_large)): Save initial destination pointer in %r11 and
17751         use it instead of %rax after the loop.
17752         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
17754 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
17756         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
17757         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
17758         -I../soft-fp.  Moved from ....
17759         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
17760         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
17761         * sysdeps/aarch64/e_sqrtl.c: ... here.
17762         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
17763         * sysdeps/aarch64/sfp-machine.h: ... here.
17765         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
17766         -Wmaybe-uninitialized around access to fq[0].
17767         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17768         Likewise.
17770         [BZ #18471]
17771         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
17772         aliases for non-libc case of versioned symbols.
17773         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
17774         (llseek): Define as compat symbol if
17775         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
17776         with link warning.
17777         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
17778         Make into a compat symbol, disabled for minimum symbol version
17779         GLIBC_2.28 and later.
17780         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
17782 2018-05-22  Florian Weimer  <fweimer@redhat.com>
17784         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
17785         not add -mpreferred-stack-boundary=4.
17786         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
17787         (stack-align-test-flags): Likewise.
17788         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
17789         Likewise.
17790         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
17791         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
17792         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
17793         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
17794         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
17795         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
17796         (CFLAGS-tst-align2.c): Likewise.
17798 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17800         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
17801         (index_arch_Prefer_FSRM): Likewise.
17802         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17803         Also check Prefer_FSRM.
17804         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
17805         Also return OPTIMIZE (erms) for Prefer_FSRM.
17807 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17809         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
17810         (index_cpu_FSRM): Likewise.
17811         (reg_FSRM): Likewise.
17813 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
17815         * math/gen-tgmath-tests.py: Import sys.
17816         (Tests.__init__): Initialize macros_seen.
17817         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
17818         if requested to do so for this macro.
17819         (Tests.add_all_tests): Take argument for macro for which to
17820         generate tests.
17821         (Tests.check_macro_list): New function.
17822         (main): Handle check-list argument and argument specifying macro
17823         for which to generate tests.
17824         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
17825         [PYTHON] (tgmath3-macro-tests): Likewise.
17826         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
17827         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
17828         not test-tgmath3.c.
17829         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
17830         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
17831         to CFLAGS.
17832         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
17833         [PYTHON] ($(foreach
17834         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
17835         rule.
17836         [PYTHON] (tests-special): Add
17837         $(objpfx)test-tgmath3-macro-list.out.
17838         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
17840         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
17841         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
17842         later.
17844         [BZ #22639]
17845         * time/tzset.c (SECSPERDAY): Cast to time_t.
17846         * time/tst-y2039.c: New file.
17847         * time/Makefile (tests): Add tst-y2039.
17849 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
17851         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17852         (PREFETCH_ONE_SET): Remove duplicate line.
17854 2018-05-17  Florian Weimer  <fweimer@redhat.com>
17856         * sysdeps/generic/math-type-macros-double.h: Include
17857         <math-nan-payload-double.h> after <libm-alias-double.h>.
17858         * sysdeps/generic/math-type-macros-float.h: Include
17859         <math-nan-payload-float.h> after <libm-alias-float.h>.
17860         * sysdeps/generic/math-type-macros-float128.h: Include
17861         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
17862         * sysdeps/generic/math-type-macros-ldouble.h: Include
17863         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
17865 2018-05-17  Andreas Schwab  <schwab@suse.de>
17867         * resolv/res_send.c (__res_context_send): Don't set errno when
17868         returing error after malloc failure.
17870 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17872         * nptl/allocatestack.c (allocate_stack): Remove the
17873         !__ASSUME_PRIVATE_FUTEX paths.
17874         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
17875         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17876         Likewise.
17877         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
17878         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17879         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17880         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17881         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
17882         !__ASSUME_PRIVATE_FUTEX path.
17883         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
17884         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
17885         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
17886         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
17887         !__ASSUME_PRIVATE_FUTEX macros.
17888         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
17889         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
17890         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
17891         * sysdeps/unix/sysv/linux/kernel-features.h
17892         (__ASSUME_PRIVATE_FUTEX): Removed.
17894 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
17896         * math/Makefile (libm-narrow-fns): Add div.
17897         (libm-test-funcs-narrow): Likewise.
17898         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
17899         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
17900         * math/gen-auto-libm-tests.c (test_functions): Add div.
17901         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
17902         (NARROW_DIV_ROUND_TO_ODD): Likewise.
17903         (NARROW_DIV_TRIVIAL): Likewise.
17904         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
17905         macro.
17906         (__ddivl): Likewise.
17907         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
17908         ddiv.
17909         (CFLAGS-nldbl-ddiv.c): New variable.
17910         (CFLAGS-nldbl-fdiv.c): Likewise.
17911         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17912         __nldbl_ddivl.
17913         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
17914         prototype.
17915         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
17916         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
17917         * math/auto-libm-test-in: Add tests of div.
17918         * math/auto-libm-test-out-narrow-div: New generated file.
17919         * math/libm-test-narrow-div.inc: New file.
17920         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
17921         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
17922         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17923         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17924         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17925         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17926         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17927         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17928         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17929         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17930         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17931         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17932         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17933         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17934         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17935         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17936         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17937         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17938         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17939         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17940         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17941         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17942         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17943         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17944         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17945         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17946         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17947         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17948         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17949         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17950         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17951         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17956         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17957         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17958         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17959         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17960         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17961         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17962         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17963         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17965 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17967         [BZ #23178]
17968         * nscd/nscd-client.h (sendfileall): Remove prototype.
17969         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17970         (handle_request): Use writeall instead of sendfileall.
17971         * nscd/aicache.c (addhstaiX): Likewise.
17972         * nscd/grpcache.c (cache_addgr): Likewise.
17973         * nscd/hstcache.c (cache_addhst): Likewise.
17974         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17975         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17976         * nscd/pwdcache.c (cache_addpw): Likewise.
17977         * nscd/servicescache.c (cache_addserv): Likewise.
17978         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17979         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17980         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17981         Remove define.
17983 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17985         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17986         Include <string/strncat.c>.
17987         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17988         alias.
17989         (__GI___strncat): New hidden alias.
17991 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
17993         * sysdeps/mips/mips32/libm-test-ulps: Update.
17994         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17996 2018-05-16  Florian Weimer  <fweimer@redhat.com>
17998         * support/Makefile (libsupport-routines): Add support_quote_blob,
17999         support_test_compare_blob.
18000         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
18001         * support/check.h (TEST_COMPARE_BLOB): Define.
18002         (support_test_compare_blob): Declare.
18003         * support/support.h (support_quote_blob): Declare.
18004         * support/support_quote_blob.c: New file.
18005         * support/support_test_compare_blob.c: Likewise.
18006         * support/tst-support_quote_blob.c: Likewise.
18007         * support/tst-test_compare_blob.c: Likewise.
18009 2018-05-16  Florian Weimer  <fweimer@redhat.com>
18011         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
18012         of <strtod_nan_double.h>.
18013         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
18014         instead of SET_MANTISSA.
18015         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
18016         of include <strtod_nan_float.h>.
18017         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
18018         instead of <strtod_nan_ldouble.h>.
18019         * stdlib/strtod_nan_double.h: Move to ...
18020         * sysdeps/generic/math-nan-payload-double.h: ... here.
18021         (FLOAT): Remove definition.
18022         (SET_MANTISSA): Rename to ...
18023         (SET_NAN_PAYLOAD): ... this.
18024         * stdlib/strtod_nan_float.h: Move to ...
18025         * sysdeps/generic/math-nan-payload-float.h: ... here.
18026         (FLOAT): Remove definition.
18027         (SET_MANTISSA): Rename to ...
18028         (SET_NAN_PAYLOAD): ... this.
18029         * sysdeps/generic/math-type-macros-double.h: Include
18030         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
18031         instead of <math-svid-compat.h>.
18032         * sysdeps/generic/math-type-macros-float.h: Include
18033         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
18034         instead of <math-svid-compat.h>.
18035         * sysdeps/generic/math-type-macros-float128.h: Include
18036         <math-nan-payload-float128.h>.
18037         * sysdeps/generic/math-type-macros-ldouble.h: Include
18038         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
18039         instead of <math-svid-compat.h>.
18040         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
18041         check for definition.
18042         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
18043         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
18044         Include <ieee754_float128.h>.
18045         (FLOAT): Remove definition.
18046         (SET_MANTISSA): Rename to ...
18047         (SET_NAN_PAYLOAD): ... this.
18048         * sysdeps/ieee754/float128/strtof128_nan.c: Include
18049         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
18050         Do not include <float128_private.h>.
18051         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
18052         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
18053         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
18054         (FLOAT): Remove definition.
18055         (SET_MANTISSA): Rename to ...
18056         (SET_NAN_PAYLOAD): ... this.
18057         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
18058         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
18059         (FLOAT): Remove definition.
18060         (SET_MANTISSA): Rename to ...
18061         (SET_NAN_PAYLOAD): ... this.
18062         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
18063         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
18064         (FLOAT): Remove definition.
18065         (SET_MANTISSA): Rename to ...
18066         (SET_NAN_PAYLOAD): ... this.
18067         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
18068         of "../stdlib/strtod_nan_double.h".
18069         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
18070         of "../stdlib/strtod_nan_float.h".
18071         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
18072         instead of "../stdlib/strtod_nan_ldouble.h".
18073         * manual/arith.texi (Parsing of Floats): Adjust comment.
18075 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
18077         * math/Makefile (libm-narrow-fns): Add mul.
18078         (libm-test-funcs-narrow): Likewise.
18079         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
18080         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
18081         * math/gen-auto-libm-tests.c (test_functions): Add mul.
18082         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
18083         (NARROW_MUL_ROUND_TO_ODD): Likewise.
18084         (NARROW_MUL_TRIVIAL): Likewise.
18085         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
18086         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
18087         macro.
18088         (__dmull): Likewise.
18089         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
18090         dmul.
18091         (CFLAGS-nldbl-dmul.c): New variable.
18092         (CFLAGS-nldbl-fmul.c): Likewise.
18093         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18094         __nldbl_dmull.
18095         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
18096         prototype.
18097         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
18098         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
18099         * math/auto-libm-test-in: Add tests of mul.
18100         * math/auto-libm-test-out-narrow-mul: New generated file.
18101         * math/libm-test-narrow-mul.inc: New file.
18102         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
18103         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
18104         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
18105         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
18106         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
18107         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
18108         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
18109         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
18110         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
18111         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
18112         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
18113         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
18114         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
18115         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
18116         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
18117         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
18118         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
18119         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
18120         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18121         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18122         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18123         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18124         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18125         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18126         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18127         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18128         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18129         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18130         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18131         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18132         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18133         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18138         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18139         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18140         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18141         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18142         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18143         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18144         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18145         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18147 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18149         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
18150         with *%eax in call.
18152 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18154         * sysdeps/i386/ldsodefs.h: Removed.
18155         * sysdeps/x86_64/ldsodefs.h: Moved to ...
18156         * sysdeps/x86/ldsodefs.h: This.
18157         (La_i86_regs): New.
18158         (La_i86_retval): Likewise.
18159         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
18160         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
18162 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18164         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
18165         unnecessary testl.
18167 2018-05-13  Alan Modra  <amodra@gmail.com>
18169         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
18170         R_PARISC_TLS_DTPOFF32 reloc addend.
18172 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
18174         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
18175         * math/math.h: Restrict the prototype definition for the functions
18176         issignaling(_Float128) and iszero(_Float128); and template
18177         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
18178         __HAVE_FLOAT128_UNLIKE_LDBL.
18179         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
18180         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18181         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
18182         __f128() constants; define the type _Float128 as long double;
18183         and reuse long double in __CFLOAT128.
18185 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
18187         * sysdeps/generic/math_private.h: Do not include
18188         <math-barriers.h>.
18189         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
18190         <math_private.h>.
18191         * math/fromfp.h: Include <math-barriers.h>.
18192         * math/math-narrow.h: Likewise.
18193         * math/s_nextafter.c: Likewise.
18194         * math/s_nexttowardf.c: Likewise.
18195         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
18196         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
18197         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
18198         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
18199         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
18200         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
18201         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
18202         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18203         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18204         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
18205         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
18206         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
18207         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
18208         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
18209         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
18210         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
18211         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
18212         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
18213         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
18214         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18215         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
18216         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18217         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18218         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
18219         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
18220         * sysdeps/ieee754/k_standardl.c: Likewise.
18221         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18222         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
18223         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
18224         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
18225         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
18226         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
18227         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
18228         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
18229         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18230         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
18231         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
18232         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
18233         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
18234         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
18235         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18236         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
18237         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
18238         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
18239         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
18240         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
18241         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
18242         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
18244 2018-05-11  Florian Weimer  <fweimer@redhat.com>
18246         Use 64-bit epoch values in the time zone file parser.
18247         * include/time.h (internal_time_t): Define.
18248         (__tzfile_compute): Use it.
18249         * time/tzfile.c (struct leap): Use internal_time_t for epoch
18250         member.
18251         (transitions): Switch to internal_time_t.
18252         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
18253         types.
18254         (__tzfile_compute): Use internal_time_t for timer argument.  Check
18255         for truncation before calling __offtime.
18257 2018-05-11  Florian Weimer  <fweimer@redhat.com>
18259         [BZ #23166]
18260         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
18261         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
18262         Likewise.
18263         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
18264         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
18265         export without --enable-obsolete-rpc.
18266         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
18267         symbol.  This should not have been exported, ever.
18269 2018-05-11  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
18271         [BZ #23152]
18272         * localedata/locales/gd_GB (abmon): Fix typo in May:
18273         "MhĂ rt" -> "CĂšit".  Adjust the comment according to the change.
18275 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18277         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
18278         Use multiple registers to copy data in loop tail.
18280         * sysdeps/aarch64/multiarch/memmove_falkor.S
18281         (__memmove_falkor): Use multiple registers to move data in
18282         loop tail.
18284 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
18286         * math/math-underflow.h: New file.
18287         * sysdeps/generic/math_private.h: Do not include <float.h>.
18288         (fabs_tg): Remove macro.  Moved to math-underflow.h.
18289         (min_of_type_f): Likewise.
18290         (min_of_type_): Likewise.
18291         (min_of_type_l): Likewise.
18292         (min_of_type_f128): Likewise.
18293         (min_of_type): Likewise.
18294         (math_check_force_underflow): Likewise.
18295         (math_check_force_underflow_nonneg): Likewise.
18296         (math_check_force_underflow_complex): Likewise.
18297         * math/e_exp2_template.c: Include <math-underflow.h>.
18298         * math/k_casinh_template.c: Likewise.
18299         * math/s_catan_template.c: Likewise.
18300         * math/s_catanh_template.c: Likewise.
18301         * math/s_ccosh_template.c: Likewise.
18302         * math/s_cexp_template.c: Likewise.
18303         * math/s_clog10_template.c: Likewise.
18304         * math/s_clog_template.c: Likewise.
18305         * math/s_csin_template.c: Likewise.
18306         * math/s_csinh_template.c: Likewise.
18307         * math/s_csqrt_template.c: Likewise.
18308         * math/s_ctan_template.c: Likewise.
18309         * math/s_ctanh_template.c: Likewise.
18310         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
18311         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18312         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
18313         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
18314         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
18315         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18316         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18317         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18318         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18319         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
18320         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18321         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18322         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
18323         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
18324         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
18325         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
18326         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18327         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
18328         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18329         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18330         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
18331         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18332         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18333         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18334         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
18335         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
18336         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
18337         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
18338         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18339         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18340         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18341         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
18342         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18343         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
18344         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
18345         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
18346         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
18347         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
18348         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18349         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
18350         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
18351         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
18352         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
18353         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
18354         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
18355         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
18356         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
18357         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
18358         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
18359         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18360         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
18361         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
18362         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
18363         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
18364         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18365         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
18366         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
18367         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
18368         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
18369         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
18370         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
18371         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
18372         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
18373         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
18374         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
18375         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18376         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18377         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
18378         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18379         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
18380         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18381         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
18382         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
18383         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
18384         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18385         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
18386         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
18387         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18388         * sysdeps/x86/fpu/powl_helper.c: Likewise.
18389         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
18390         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
18391         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
18392         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
18393         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
18395 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
18397         * sysdeps/generic/math-barriers.h: New file.
18398         * sysdeps/generic/math_private.h [!math_opt_barrier]
18399         (math_opt_barrier): Move to math-barriers.h.
18400         [!math_opt_barrier] (math_force_eval): Likewise.
18401         * sysdeps/aarch64/fpu/math-barriers.h: New file.
18402         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
18403         math-barriers.h.
18404         (math_force_eval): Likewise.
18405         * sysdeps/alpha/fpu/math-barriers.h: New file.
18406         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
18407         math-barriers.h.
18408         (math_force_eval): Likewise.
18409         * sysdeps/x86/fpu/math-barriers.h: New file.
18410         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
18411         math-barriers.h.
18412         (math_force_eval): Likewise.
18413         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
18414         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
18415         multiple-include guard for rename.
18416         * sysdeps/powerpc/fpu/math-barriers.h: New file.
18417         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
18418         math-barriers.h.
18419         (math_force_eval): Likewise.
18421 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
18423         [BZ #22786]
18424         CVE-2018-11236
18425         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
18426         computation.
18427         * stdlib/Makefile (test-bz22786): New test.
18428         * stdlib/test-bz22786.c: New test.
18430 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
18432         * include/math-narrow-eval.h: New file.  Contents moved from ....
18433         * sysdeps/generic/math_private.h: ... here.
18434         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
18435         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
18436         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
18437         * stdlib/strtod_l.c: Likewise.
18438         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18439         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
18440         * sysdeps/i386/fpu/s_fdim.c: Likewise.
18441         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
18442         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
18443         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18444         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18445         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
18446         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18447         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18448         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
18449         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
18450         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18451         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
18452         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
18453         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
18454         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
18455         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
18456         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
18457         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18458         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18459         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
18460         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18461         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
18462         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
18463         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18464         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
18465         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
18466         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18468 2018-05-08  Andreas Schwab  <schwab@suse.de>
18470         * sysdeps/nptl/internaltypes.h: Fix comment.
18472 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
18474         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
18475         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
18476         hidden.
18478 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18480         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
18481         of I into loop header.
18482         * benchtests/bench-memmove-walk.c
18483         (test_main): Likewise.
18485 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
18487         Revert:
18488         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
18489         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18491 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18493         [BZ #20419]
18494         * elf/dl-load.c (open_verify): Fix stack overflow.
18495         * elf/Makefile (tst-big-note): New test.
18496         * elf/tst-big-note-lib.S: New.
18497         * elf/tst-big-note.c: New.
18499 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
18501         * scripts/abilist.awk: Ignore absolute symbols.
18502         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
18503         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
18504         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
18505         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
18506         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
18507         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
18508         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18509         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
18510         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
18511         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
18512         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
18513         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
18514         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
18515         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
18516         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
18517         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
18518         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
18519         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
18520         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18521         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
18522         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
18523         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
18524         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
18525         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
18526         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
18527         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
18528         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
18529         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
18530         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18531         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
18532         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
18533         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18534         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
18535         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
18536         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
18537         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
18538         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
18539         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
18540         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
18541         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
18542         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
18543         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18544         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
18545         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
18546         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18547         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
18548         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
18549         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
18550         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
18551         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
18552         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
18553         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
18554         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
18555         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
18556         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18557         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
18558         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
18559         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18560         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
18561         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
18562         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
18563         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
18564         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
18565         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
18566         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
18567         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
18568         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
18569         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18570         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
18571         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
18572         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18573         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
18574         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
18575         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
18576         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
18577         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
18578         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
18579         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
18580         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
18581         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
18582         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18583         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
18584         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
18585         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18586         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
18587         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
18588         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
18589         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
18590         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
18591         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
18592         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
18593         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
18594         Likewise.
18595         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
18596         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18597         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
18598         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
18599         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18600         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
18601         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
18602         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
18603         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
18604         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
18605         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
18606         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
18607         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
18608         Likewise.
18609         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
18610         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18611         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
18612         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
18613         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18614         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
18615         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
18616         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
18617         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
18618         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
18619         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
18620         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
18621         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
18622         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
18623         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18624         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
18625         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
18626         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18627         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
18628         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
18629         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
18630         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
18631         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
18632         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
18633         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18634         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
18635         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
18636         Likewise.
18637         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
18638         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
18639         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
18640         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
18641         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18642         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
18643         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
18644         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
18645         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
18646         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
18647         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
18648         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
18649         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
18650         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
18651         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
18652         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
18653         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
18654         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
18655         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
18656         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
18657         Likewise.
18658         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
18659         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
18660         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
18661         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18662         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
18663         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
18664         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
18665         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
18666         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
18667         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
18668         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18669         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
18670         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
18671         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18672         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
18673         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
18674         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
18675         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
18676         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18677         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
18678         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
18679         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18680         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
18681         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
18682         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
18683         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
18684         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
18685         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
18686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
18687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
18689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
18690         Likewise.
18691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
18692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
18693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
18694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
18695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
18696         Likewise.
18697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
18698         Likewise.
18699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
18700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
18701         Likewise.
18702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
18703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18704         Likewise.
18705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18706         Likewise.
18707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
18710         Likewise.
18711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
18712         Likewise.
18713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
18714         Likewise.
18715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
18716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
18717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
18718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
18719         Likewise.
18720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
18721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
18722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
18723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
18726         Likewise.
18727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
18728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
18729         Likewise.
18730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
18731         Likewise.
18732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
18733         Likewise.
18734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
18735         Likewise.
18736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
18737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
18738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
18739         Likewise.
18740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
18741         Likewise.
18742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
18743         Likewise.
18744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
18745         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18746         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
18747         Likewise.
18748         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18749         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18750         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
18751         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18752         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18753         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18754         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
18755         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
18756         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18757         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
18758         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18759         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
18760         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
18761         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
18762         Likewise.
18763         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18764         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
18765         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
18766         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18767         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
18768         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
18769         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
18770         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
18771         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
18772         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
18773         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
18774         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
18775         Likewise.
18776         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18777         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
18778         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
18779         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18780         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
18781         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
18782         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
18783         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
18784         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
18785         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
18786         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
18787         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
18788         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
18789         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18790         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
18791         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
18792         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18793         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
18794         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
18795         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
18796         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
18797         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
18798         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
18799         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
18800         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
18801         Likewise.
18802         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
18803         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18804         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
18805         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
18806         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18807         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
18808         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
18809         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
18810         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
18811         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
18812         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
18813         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
18814         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
18815         Likewise.
18816         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
18817         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18818         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
18819         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
18820         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18821         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
18822         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
18823         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
18824         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
18825         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
18826         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
18827         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
18828         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
18829         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
18830         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18831         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
18832         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
18833         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18834         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
18835         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
18836         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
18837         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
18838         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
18839         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
18840         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
18841         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
18842         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
18843         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
18844         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18845         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
18846         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
18847         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18848         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
18849         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
18850         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
18851         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
18852         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
18853         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
18855 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
18857         [BZ #23137]
18858         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
18859         Use atomic_load_acquire to load __tid.
18861 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
18863         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
18864         Restore the pointer into %rdx, after syscall and use %rdx,
18865         instead of %rsi, to restore context.
18867 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
18869         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
18870         Pop the pointer into %rdx after syscall and use %rdx, instead
18871         of %rsi, to restore context.
18873 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
18875         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
18876         handlers after setjmp.
18877         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
18878         defined.
18879         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
18880         <libc-pointer-arith.h>.
18881         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
18882         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
18883         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
18884         _JUMP_BUF_SIGSET_BITS_PER_WORD.
18885         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
18886         * sysdeps/x86/__longjmp_cancel.S: New file.
18887         * sysdeps/x86/longjmp.c: Likewise.
18888         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
18890 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18892         * NEWS: Add ustat.h deprecation entry.
18893         * bits/ustat.h: Remove file.
18894         * misc/sys/ustat.h: Likewise.
18895         * misc/ustat.h: Likewise.
18896         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
18897         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
18898         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
18899         compatibility mode.
18900         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
18901         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
18902         generic Linux implementation.
18904 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
18906         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
18907         * math/w_expl_compat.c: Likewise.
18908         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
18910 2018-04-30  Raymond Nicholson  <rain1@airmail.cc>
18912         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18914 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18916         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
18917         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
18918         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
18919         Remove.
18920         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
18921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18922         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18923         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18924         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18925         and SYSCALL_LL64.
18927 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
18929         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18931         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18932         * math/w_asin_template.c: Likewise.
18933         * math/w_atanh_template.c: Likewise.
18935 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
18937         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18938         to powerpc/powerpc64/be for big-endian.
18939         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18940         little-endian.
18942         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18943         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18944         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18945         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18946         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18947         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18948         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18949         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
18950         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
18951         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
18952         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
18953         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
18954         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
18955         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18956         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18957         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18958         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18959         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18960         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18961         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18962         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18963         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18964         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18965         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18966         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18967         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18968         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18969         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18970         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18971         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18972         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18973         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18975         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18976         adjusted to imply powerpc64 and older processors on powerpc64/be.
18977         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18978         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18979         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18980         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18981         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18982         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18983         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
18984         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
18985         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
18986         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
18987         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
18988         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
18989         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18990         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18991         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18992         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18993         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18994         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18995         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18996         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18997         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18998         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18999         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
19000         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
19001         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
19002         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
19003         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
19004         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
19005         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
19006         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
19007         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
19009         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
19010         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
19011         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
19012         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
19014         * sysdeps/powerpc/powerpc64/be/Implies: New file.
19015         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
19016         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
19017         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
19019         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
19020         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
19021         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
19022         * sysdeps/powerpc/powerpc64le/configure: Likewise.
19023         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
19024         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
19025         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
19026         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
19027         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
19028         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
19029         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
19031         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
19032         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
19033         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
19034         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
19035         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
19036         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
19037         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
19038         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
19039         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
19040         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
19041         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
19043         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
19044         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
19045         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
19046         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
19047         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
19048         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
19049         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
19050         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
19051         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
19052         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
19053         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
19054         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
19056         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
19057         and adjusted to imply olders processors.
19058         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
19059         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
19060         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
19061         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
19062         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
19063         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
19064         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
19065         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
19066         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
19067         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
19068         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
19070         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
19071         powerpc64/le.
19072         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
19073         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
19075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
19076         powerpc64le.
19077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
19078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
19080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
19081         powerpc64/be.
19082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
19084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
19086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
19087         powerpc64 and adjusted.
19088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
19089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
19090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
19091         Likewise.
19093 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
19095         * sysdeps/tile: Remove.
19096         * sysdeps/unix/sysv/linux/tile: Likewise.
19097         * README (tilegx-*-linux-gnu): Remove from list of supported
19098         configurations.
19099         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
19100         contribution of support for generic Linux kernel syscall
19101         interface.
19102         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
19103         tilegx configurations.
19104         (Config.install_linux_headers): Do not handle tile.
19105         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
19106         in comment.
19107         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
19108         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
19109         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
19110         conditional undefine and redefine.
19111         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
19112         in comment.
19113         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
19114         conditional undefine and redefine.
19116 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
19118         * signal/tst-sigaction.c: New file to test BZ #23069.
19119         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
19121 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
19123         [BZ #22766]
19124         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
19125         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
19126         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
19127         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
19129 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19131         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
19132         _DIRENT_MATCHES_DIRENT64 is not defined.
19133         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
19134         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
19135         is defined.
19136         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
19137         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
19139 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
19141         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
19142         version to GCC 8 branch.
19144 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
19146         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
19147         (check_no_hidden): Use type of original function when declaring
19148         alias.
19150         * sysdeps/unix/sysv/linux/sys/ptrace.h
19151         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
19152         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
19153         (struct __ptrace_seccomp_metadata): New type.
19154         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
19155         (PTRACE_SECCOMP_GET_METADATA): Likewise.
19156         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
19157         (PTRACE_SECCOMP_GET_METADATA): Likewise.
19158         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
19159         (PTRACE_SECCOMP_GET_METADATA): Likewise.
19160         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
19161         (PTRACE_SECCOMP_GET_METADATA): Likewise.
19162         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
19163         (PTRACE_SECCOMP_GET_METADATA): Likewise.
19164         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
19165         (PTRACE_SECCOMP_GET_METADATA): Likewise.
19166         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
19167         (PTRACE_SECCOMP_GET_METADATA): Likewise.
19168         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
19169         (PTRACE_SECCOMP_GET_METADATA): Likewise.
19171 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19173         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
19174         defined.
19175         * dirent/versionsort.c (versionsort): Likewise.
19176         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
19177         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
19178         * dirent/versionsort64.c (versionsort64): Likewise.
19179         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
19180         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
19181         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
19182         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
19183         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
19184         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
19185         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
19186         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
19187         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
19188         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
19189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
19190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
19191         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
19192         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
19194 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
19196         * elf/elf.h (NT_PPC_PKEY): New macro.
19198 2018-04-23  Dragan Stanojevic - Nevidljivi  <invisible@hidden-city.net>
19200         [BZ #23094]
19201         * localedata/locales/hr_HR: fix thousands_sep and
19202         mon_thousands_sep
19204 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
19206         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
19207         (XTABS): Define to TAB3.
19209 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19211         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19213         * dirent/scandir-tail-common.c: New file.
19214         * dirent/scandir-tail.c: Use scandir-tail-common.c.
19215         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
19216         * dirent/scandir.c: Use scandir-tail-common.c.
19217         * dirent/scandirat.c: Likewise.
19218         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
19219         * dirent/scandir64.c (scandir64): Always build and alias to scandir
19220         if _DIRENT_MATCHES_DIRENT64 is defined.
19221         * dirent/scandirat64.c (scandirat64): Likewise.
19222         * include/dirent.h (__scandir_tail): Only define iff
19223         _DIRENT_MATCHES_DIRENT64 is not defined.
19224         (__scandir64_tail): Define regardless.
19225         (__scandirat, scandirat64): Remove libc_hidden_proto.
19226         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
19227         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
19228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
19229         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
19230         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
19231         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
19232         * sysdeps/unix/sysv/linux/scandir64.c: New file.
19234 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
19236         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
19237         New macro.
19238         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
19239         Increase to 24.
19240         (_dl_aarch64_cap_flags): Add asimdfhm.
19242 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
19244         * sysdeps/nios2/libm-test-ulps: Update.
19246 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19248         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
19249         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
19251         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
19252         requirements.
19253         (_DIRENT_MATCHES_DIRENT64): Undef
19254         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
19255         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
19256         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
19257         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
19258         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
19259         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
19260         use getdents64 syscalls as base.
19261         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
19262         symbol if required.
19263         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
19264         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
19265         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
19266         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
19267         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
19268         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
19269         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
19270         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
19271         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
19272         (__get_clockfreq_via_proc_openprom): Use __getdents64.
19273         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
19275 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
19277         * scripts/test_printers_common.py (init_test): Disable lock elision.
19279 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
19281         * math/test-tgmath.c (count_double, count_float,
19282         count_ldouble, count_cdouble, count_cfloat,
19283         count_cldouble): Use volatile int.
19285 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19287         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
19288         (conformtest-xfail-conds): Add i386-gnu.
19289         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
19290         i386-gnu.
19291         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
19292         ipc_perm.cuid, ipc_perm.cgid): Likewise.
19293         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
19294         msqid_ds.msg_lrpid): Likewise.
19295         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
19296         Likewise.
19297         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
19298         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
19299         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
19300         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
19301         unsigned int.
19302         (struct statvfs64): Likewise.
19303         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
19304         Likewise.
19305         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
19306         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
19307         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
19308         instead of wait_queue.
19309         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
19310         instead of vm_area_struct.
19311         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
19312         struct sched_param definition to it.
19313         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
19314         * bits/types/struct_sched_param.h: New file.
19315         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
19316         <bits/types/struct_sched_param.h> instead of <sched.h>.
19317         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
19318         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
19319         generic version but include <bits/pthreadtypes.h> to make struct
19320         sigevent's sigev_notify_attributes field a pthread_attr_t*.
19321         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
19322         non-compliant.
19323         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
19324         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
19325         [__USE_XOPEN] (OFDEL): New macro.
19326         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
19327         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
19328         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
19329         prototypes.
19330         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
19331         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
19332         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
19333         non-compliant.
19334         * sysdeps/i386/sys/ucontext.h: Likewise.
19335         * sysdeps/m68k/sys/ucontext.h: Likewise.
19336         * sysdeps/mips/sys/ucontext.h: Likewise.
19337         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
19338         * sysdeps/mach/hurd/i386/Makefile
19339         (test-xfail-POSIX/fcntl.h/conform): Add.
19340         (test-xfail-POSIX/signal.h/conform): Add.
19341         (test-xfail-POSIX/semaphore.h/conform): Add.
19342         (test-xfail-POSIX/regex.h/conform): Add.
19343         (test-xfail-POSIX/aio.h/conform): Add.
19344         (test-xfail-POSIX/mqueue.h/conform): Add.
19345         (test-xfail-POSIX/sys/types.h/conform): Add.
19346         (test-xfail-UNIX98/fcntl.h/conform): Add.
19347         (test-xfail-UNIX98/netdb.h/conform): Add.
19348         (test-xfail-UNIX98/signal.h/conform): Add.
19349         (test-xfail-UNIX98/semaphore.h/conform): Add.
19350         (test-xfail-UNIX98/regex.h/conform): Add.
19351         (test-xfail-UNIX98/aio.h/conform): Add.
19352         (test-xfail-UNIX98/ftw.h/conform): Add.
19353         (test-xfail-UNIX98/mqueue.h/conform): Add.
19354         (test-xfail-UNIX98/netinet/in.h/conform): Add.
19355         (test-xfail-UNIX98/sys/wait.h/conform): Add.
19356         (test-xfail-UNIX98/sys/sem.h/conform): Add.
19357         (test-xfail-UNIX98/sys/uio.h/conform): Add.
19358         (test-xfail-UNIX98/sys/socket.h/conform): Add.
19359         (test-xfail-UNIX98/sys/types.h/conform): Add.
19360         (test-xfail-UNIX98/stdlib.h/conform): Add.
19361         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
19362         (test-xfail-POSIX2008/fcntl.h/conform): Add.
19363         (test-xfail-POSIX2008/netdb.h/conform): Add.
19364         (test-xfail-POSIX2008/signal.h/conform): Add.
19365         (test-xfail-POSIX2008/semaphore.h/conform): Add.
19366         (test-xfail-POSIX2008/regex.h/conform): Add.
19367         (test-xfail-POSIX2008/aio.h/conform): Add.
19368         (test-xfail-POSIX2008/mqueue.h/conform): Add.
19369         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
19370         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
19371         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
19372         (test-xfail-POSIX2008/sys/types.h/conform): Add.
19373         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
19374         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
19375         (test-xfail-XOPEN2K/netdb.h/conform): Add.
19376         (test-xfail-XOPEN2K/signal.h/conform): Add.
19377         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
19378         (test-xfail-XOPEN2K/regex.h/conform): Add.
19379         (test-xfail-XOPEN2K/aio.h/conform): Add.
19380         (test-xfail-XOPEN2K/ftw.h/conform): Add.
19381         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
19382         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
19383         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
19384         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
19385         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
19386         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
19387         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
19388         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
19389         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
19390         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
19391         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
19392         (test-xfail-XOPEN2K8/signal.h/conform): Add.
19393         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
19394         (test-xfail-XOPEN2K8/regex.h/conform): Add.
19395         (test-xfail-XOPEN2K8/aio.h/conform): Add.
19396         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
19397         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
19398         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
19399         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
19400         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
19401         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
19402         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
19403         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
19404         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
19405         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
19406         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
19407         i386-gnu.
19408         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
19409         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
19411 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
19413         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19414         --enable-obsolete for powerpc-linux-gnuspe.
19416 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19418         * conform/data/sys/un.h-data: Allow sun_ prefix.
19419         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
19420         prototypes.
19421         * sysdeps/mach/include/mach.h: Likewise.
19422         * sysdeps/mach/include/mach/mig_support.h: Likewise.
19423         * sysdeps/mach/include/mach_error.h: Likewise.
19425 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19427         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
19428         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
19429         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
19430         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
19432 2018-04-16  Andreas Schwab  <schwab@suse.de>
19434         [BZ #19527]
19435         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
19437 2018-04-15  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
19439         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
19440         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
19442 2018-04-12  DJ Delorie  <dj@redhat.com>
19444         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
19445         version to 4.16.
19447 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19449         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
19450         (struct kernel_sigaction): Use the same definition on 31bit as is used
19451         on 64bit.
19453 2018-04-09  Florian Weimer  <fweimer@redhat.com>
19455         [BZ #23037]
19456         * resolv/res_send.c (send_dg): Use designated initializers instead
19457         of assignment to zero-initialize other fields of struct mmsghdr.
19459 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19461         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
19462         __READDIR_ALIAS): Undefine after usage.
19463         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
19464         __READDIR_R_ALIAS): Likewise.
19465         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
19466         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
19467         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
19468         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
19469         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
19470         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
19471         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
19472         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
19473         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
19474         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
19475         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
19476         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
19477         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
19478         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
19479         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
19480         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
19481         * sysdeps/unix/sysv/linux/readdir.c: New file.
19482         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
19483         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
19484         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
19486         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
19488 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
19490         * manual/charset.texi (Converting a Character): Fix typo.
19492 2018-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19494         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19496         * sysdeps/arm/libm-test-ulps: Update.
19498         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
19499         as base implementation.
19500         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
19501         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
19502         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
19503         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
19504         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
19505         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
19506         remove unrequired definitions and update comments.
19507         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
19508         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
19509         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
19510         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
19511         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
19512         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
19513         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
19514         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
19515         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
19516         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
19517         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
19518         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
19519         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
19520         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
19521         and RESET_SA_RESTORER hooks.
19523 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
19525         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
19527 2018-04-05  Florian Weimer  <fweimer@redhat.com>
19529         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
19530         integer overflow, memory leak on error, and indeterminate errno
19531         value.  Add a null wide character to terminate the result string.
19532         * manual/charset.texi (Converting a Character): Mention embedded
19533         null bytes in the mbrtowc input string.  Explain what happens in
19534         the -2 result case.  Do not claim that mbrtowc is simple or
19535         obvious to use.  Adjust the description of the code example.  Use
19536         @code, not @var, for concrete variables.
19538 2018-04-05  Florian Weimer  <fweimer@redhat.com>
19540         * manual/examples/mbstouwcs.c: New file.
19541         * manual/charset.texi (Converting a Character): Include it.
19543 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19545         * include/dirent.h (dirfd): Add hidden proto.
19546         * dirent/dirfd.c (dirfd): Add hidden def.
19547         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
19548         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
19550 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
19552         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
19553         sin, cos and sincos to 1 ULP.
19555 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
19557         [BZ #19818]
19558         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
19559         symbols.
19560         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
19561         * elf/tst-absolute-sym.c: New file.
19562         * elf/tst-absolute-sym-lib.c: New file.
19563         * elf/tst-absolute-sym-lib.lds: New file.
19564         * elf/Makefile (tests): Add `tst-absolute-sym'.
19565         (modules-names): Add `tst-absolute-sym-lib'.
19566         (LDLIBS-tst-absolute-sym-lib.so): New variable.
19567         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
19568         ($(objpfx)tst-absolute-sym): New dependency.
19570         [BZ #19818]
19571         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
19572         parameter.
19573         (SYMBOL_ADDRESS): New macro.
19574         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
19575         SYMBOL_ADDRESS for symbol address calculation.
19576         * elf/dl-runtime.c (_dl_fixup): Likewise.
19577         (_dl_profile_fixup): Likewise.
19578         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
19579         * elf/rtld.c (dl_main): Likewise.
19580         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
19581         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
19582         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
19583         (elf_machine_rela): Likewise.
19584         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
19585         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
19586         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
19587         (elf_machine_rela): Likewise.
19588         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
19589         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
19590         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
19591         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
19592         Likewise.
19593         (elf_machine_reloc): Likewise.
19594         (elf_machine_got_rel): Likewise.
19595         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
19596         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
19597         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
19598         Likewise.
19599         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19600         Likewise.
19601         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
19602         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
19603         Likewise.
19604         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
19605         Likewise.
19606         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
19607         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
19608         Likewise.
19609         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
19610         Likewise.
19611         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
19612         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
19614 2018-04-04  Zack Weinberg  <zackw@panix.com>
19616         * sysdeps/generic/internal-signals.h: Include signal.h,
19617         sigsetops.h, and stdbool.h.
19618         (__libc_signal_block_all): Actually block all signals.
19619         (__libc_signal_block_app): Likewise.
19620         (__libc_signal_restore_set): Actually restore the signal mask.
19622 2018-04-04  Florian Weimer  <fweimer@redhat.com>
19624         inet: Actually build and run tst-deadline.
19625         * inet/Makefile (tests-internal): Add tst-deadline and do not
19626         overwrite the variable.
19627         (tests-static-internal): Remove variable.
19629 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
19631         [BZ #22947]
19632         * bits/uio-ext.h (RWF_APPEND): New.
19633         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
19634         * manual/llio.texi: Document RWF_APPEND.
19635         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
19636         (RWF_SUPPORTED): Add RWF_APPEND.
19638 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19640         [BZ #22391]
19641         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
19642         check for internal nptl signals.
19643         * nptl/sigaction.c (__sigaction): Likewise.
19644         * signal/sigaddset.c (sigaddset): Likewise.
19645         * signal/sigdelset.c (sigdelset): Likewise.
19646         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
19647         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
19648         value.
19649         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
19650         to filter out internal nptl signals.
19651         * signal/tst-sigset.c (do_test): Check ech signal indidually and
19652         also check realtime signals using standard macros.
19653         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
19654         __is_internal_signal, __libc_signal_block_all,
19655         __libc_signal_block_app, __libc_signal_restore_set): New functions.
19656         * sysdeps/nptl/sigfillset.c: Remove file.
19657         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
19658         Change return to bool.
19659         (__clear_internal_signals): Remove SIGTIMER clean since it is
19660         equal to SIGCANEL on Linux.
19661         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
19662         signal set was constructed using standard functions.
19664 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19666         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
19667         ifname is too long.
19668         * hurd/hurdsig.c (interrupted_reply_port_location): Use
19669         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
19670         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
19671         hidden def.
19672         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
19673         * signal/sigaddset.c: Include <sigsetopts.h>.
19674         * signal/sigdelset.c: Likewise.
19676 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
19678         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
19679         (__cos): Likewise.
19680         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
19681         logic as sin and cos.
19683 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
19685         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
19686         inputs.  Return correct sign.
19687         (do_sincos): Remove small input check before do_sin, let do_sin set
19688         the sign.
19689         (__sin): Likewise.
19690         (__cos): Likewise.
19692 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
19694         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
19695         (do_cos_slow): Likewise.
19696         (do_sin_slow): Likewise.
19697         (reduce_and_compute): Likewise.
19698         (slow): Likewise.
19699         (slow1): Likewise.
19700         (slow2): Likewise.
19701         (sloww): Likewise.
19702         (sloww1): Likewise.
19703         (sloww2): Likewise.
19704         (bslow): Likewise.
19705         (bslow1): Likewise.
19706         (bslow2): Likewise.
19707         (cslow2): Likewise.
19709 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
19711         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
19712         (do_cos): Remove corp parameter and calculations.
19713         (do_sin): Likewise.
19714         (do_sincos): Remove cor variable.
19715         (__sin): Use do_sincos for huge inputs.
19716         (__cos): Likewise.
19717         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19718         (reduce_and_compute_sincos): Remove unused function.
19720 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
19722         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
19723         reduce_sincos, improve accuracy to 136 bits.
19724         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
19725         (__sin): Use improved reduction and simplified do_sincos calculation.
19726         (__cos): Likewise.
19727         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19729 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
19731         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
19732         (do_sincos_2): Likewise.
19733         (__sin): Remove middle range reduction case.
19734         (__cos): Likewise.
19735         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
19736         reduction case.
19738 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
19740         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
19741         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
19742         inputs.
19743         (__cos): Likewise.
19744         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
19746 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
19748         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19749         version to 4.16
19751 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19753         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
19754         Remove definitions.
19755         (opendir_oflags): Use O_DIRECTORY regardless.
19756         (__opendir, __opendirat): Remove need_isdir_precheck usage.
19757         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
19759 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19761         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
19762         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
19763         macros.
19764         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
19765         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
19766         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
19767         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
19768         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
19769         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
19771         * htl/Makefile: Bump licence to LGPL 2.1+.
19772         * htl/alloca_cutoff.c: Likewise.
19773         * htl/cthreads-compat.c: Likewise.
19774         * htl/lockfile.c: Likewise.
19775         * htl/pt-alloc.c: Likewise.
19776         * htl/pt-cancel.c: Likewise.
19777         * htl/pt-cleanup.c: Likewise.
19778         * htl/pt-create.c: Likewise.
19779         * htl/pt-dealloc.c: Likewise.
19780         * htl/pt-detach.c: Likewise.
19781         * htl/pt-exit.c: Likewise.
19782         * htl/pt-getattr.c: Likewise.
19783         * htl/pt-initialize.c: Likewise.
19784         * htl/pt-internal.h: Likewise.
19785         * htl/pt-join.c: Likewise.
19786         * htl/pt-self.c: Likewise.
19787         * htl/pt-setcancelstate.c: Likewise.
19788         * htl/pt-setcanceltype.c: Likewise.
19789         * htl/pt-sigmask.c: Likewise.
19790         * htl/pt-spin-inlines.c: Likewise.
19791         * htl/pt-testcancel.c: Likewise.
19792         * htl/pt-yield.c: Likewise.
19793         * htl/tests/test-1.c: Likewise.
19794         * htl/tests/test-10.c: Likewise.
19795         * htl/tests/test-11.c: Likewise.
19796         * htl/tests/test-12.c: Likewise.
19797         * htl/tests/test-13.c: Likewise.
19798         * htl/tests/test-14.c: Likewise.
19799         * htl/tests/test-15.c: Likewise.
19800         * htl/tests/test-16.c: Likewise.
19801         * htl/tests/test-17.c: Likewise.
19802         * htl/tests/test-2.c: Likewise.
19803         * htl/tests/test-3.c: Likewise.
19804         * htl/tests/test-4.c: Likewise.
19805         * htl/tests/test-5.c: Likewise.
19806         * htl/tests/test-6.c: Likewise.
19807         * htl/tests/test-7.c: Likewise.
19808         * htl/tests/test-8.c: Likewise.
19809         * htl/tests/test-9.c: Likewise.
19810         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
19811         * sysdeps/htl/bits/cancelation.h: Likewise.
19812         * sysdeps/htl/bits/pthread-np.h: Likewise.
19813         * sysdeps/htl/bits/pthread.h: Likewise.
19814         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
19815         * sysdeps/htl/bits/semaphore.h: Likewise.
19816         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
19817         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
19818         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
19819         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
19820         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
19821         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
19822         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
19823         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
19824         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
19825         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
19826         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
19827         * sysdeps/htl/old_pt-atfork.c: Likewise.
19828         * sysdeps/htl/pt-atfork.c: Likewise.
19829         * sysdeps/htl/pt-attr-destroy.c: Likewise.
19830         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
19831         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
19832         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
19833         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
19834         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
19835         * sysdeps/htl/pt-attr-getscope.c: Likewise.
19836         * sysdeps/htl/pt-attr-getstack.c: Likewise.
19837         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
19838         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
19839         * sysdeps/htl/pt-attr-init.c: Likewise.
19840         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
19841         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
19842         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
19843         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
19844         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
19845         * sysdeps/htl/pt-attr-setscope.c: Likewise.
19846         * sysdeps/htl/pt-attr-setstack.c: Likewise.
19847         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
19848         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
19849         * sysdeps/htl/pt-attr.c: Likewise.
19850         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
19851         * sysdeps/htl/pt-barrier-init.c: Likewise.
19852         * sysdeps/htl/pt-barrier-wait.c: Likewise.
19853         * sysdeps/htl/pt-barrier.c: Likewise.
19854         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
19855         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
19856         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
19857         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
19858         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
19859         * sysdeps/htl/pt-cond-destroy.c: Likewise.
19860         * sysdeps/htl/pt-cond-init.c: Likewise.
19861         * sysdeps/htl/pt-cond-signal.c: Likewise.
19862         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
19863         * sysdeps/htl/pt-cond-wait.c: Likewise.
19864         * sysdeps/htl/pt-cond.c: Likewise.
19865         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
19866         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
19867         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
19868         * sysdeps/htl/pt-condattr-init.c: Likewise.
19869         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
19870         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
19871         * sysdeps/htl/pt-destroy-specific.c: Likewise.
19872         * sysdeps/htl/pt-equal.c: Likewise.
19873         * sysdeps/htl/pt-getconcurrency.c: Likewise.
19874         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
19875         * sysdeps/htl/pt-getschedparam.c: Likewise.
19876         * sysdeps/htl/pt-getspecific.c: Likewise.
19877         * sysdeps/htl/pt-init-specific.c: Likewise.
19878         * sysdeps/htl/pt-key-create.c: Likewise.
19879         * sysdeps/htl/pt-key-delete.c: Likewise.
19880         * sysdeps/htl/pt-key.h: Likewise.
19881         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
19882         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
19883         * sysdeps/htl/pt-mutex-init.c: Likewise.
19884         * sysdeps/htl/pt-mutex-lock.c: Likewise.
19885         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
19886         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
19887         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
19888         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
19889         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
19890         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
19891         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
19892         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
19893         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
19894         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
19895         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
19896         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
19897         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
19898         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
19899         * sysdeps/htl/pt-mutexattr.c: Likewise.
19900         * sysdeps/htl/pt-once.c: Likewise.
19901         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
19902         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
19903         * sysdeps/htl/pt-rwlock-init.c: Likewise.
19904         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
19905         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
19906         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
19907         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
19908         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
19909         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
19910         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
19911         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
19912         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
19913         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
19914         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
19915         * sysdeps/htl/pt-setconcurrency.c: Likewise.
19916         * sysdeps/htl/pt-setschedparam.c: Likewise.
19917         * sysdeps/htl/pt-setschedprio.c: Likewise.
19918         * sysdeps/htl/pt-setspecific.c: Likewise.
19919         * sysdeps/htl/pt-spin.c: Likewise.
19920         * sysdeps/htl/pt-startup.c: Likewise.
19921         * sysdeps/htl/pthread.h: Likewise.
19922         * sysdeps/htl/sem-close.c: Likewise.
19923         * sysdeps/htl/sem-destroy.c: Likewise.
19924         * sysdeps/htl/sem-getvalue.c: Likewise.
19925         * sysdeps/htl/sem-init.c: Likewise.
19926         * sysdeps/htl/sem-open.c: Likewise.
19927         * sysdeps/htl/sem-post.c: Likewise.
19928         * sysdeps/htl/sem-timedwait.c: Likewise.
19929         * sysdeps/htl/sem-trywait.c: Likewise.
19930         * sysdeps/htl/sem-unlink.c: Likewise.
19931         * sysdeps/htl/sem-wait.c: Likewise.
19932         * sysdeps/hurd/htl/pt-kill.c: Likewise.
19933         * sysdeps/i386/htl/pt-machdep.h: Likewise.
19934         * sysdeps/mach/htl/pt-block.c: Likewise.
19935         * sysdeps/mach/htl/pt-spin.c: Likewise.
19936         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19937         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19938         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19939         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19940         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19941         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19942         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19943         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19944         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19945         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19946         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19947         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19948         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19949         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19950         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19951         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19952         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19953         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19954         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19955         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19956         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19957         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19958         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19959         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19960         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19961         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19962         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19963         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19964         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19965         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19966         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19967         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19968         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19969         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19970         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19971         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19972         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19973         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19974         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19975         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19976         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19977         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19978         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19980         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19981         * README: Remove the mention of out-of-tree patches needed for
19982         GNU/Hurd.
19984         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19985         (UTIME_NOW, UTIME_OMIT): Define macros.
19987         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19988         instead of pthread_detach.
19989         (__cthread_fork): Call __pthread_create instead of pthread_create.
19990         (__cthread_keycreate): Call __pthread_key_create instead of
19991         pthread_key_create.
19992         (__cthread_getspecific): Call __pthread_getspecific instead of
19993         pthread_getspecific.
19994         (__cthread_setspecific): Call __pthread_setspecific instead of
19995         pthread_setspecific.
19996         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19997         __pthread_mutex_unlock instead of pthread_mutex_lock and
19998         pthread_mutex_unlock.
19999         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
20000         ___pthread_get_cleanup_stack.
20001         (__pthread_get_cleanup_stack): New strong alias.
20002         * htl/pt-create.c: Include <pthreadP.h>.
20003         (entry_point): Call __pthread_exit instead of pthread_exit.
20004         (pthread_create): Rename to __pthread_create.
20005         (pthread_create): New strong alias.
20006         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
20007         (pthread_detach): New strong alias.
20008         (__pthread_detach): Call __pthread_cond_broadcast instead of
20009         pthread_cond_broadcast.
20010         * htl/pt-exit.c: Include <pthreadP.h>.
20011         (__pthread_exit): Call __pthread_setcancelstate and
20012         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
20013         __pthread_get_cleanup_stack.
20014         * htl/pt-testcancel.c: Include <pthreadP.h>.
20015         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
20016         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
20017         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
20018         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
20019         pthread_attr_getstacksize.
20020         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
20021         Rename to __pthread_attr_getstackaddr.
20022         (pthread_attr_getstackaddr): New strong alias.
20023         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
20024         Rename to __pthread_attr_getstacksize.
20025         (pthread_attr_getstacksize): New strong alias.
20026         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
20027         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
20028         (pthread_attr_setstack): New strong alias.
20029         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
20030         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
20031         pthread_attr_getstacksize, pthread_attr_setstacksize and
20032         pthread_attr_setstackaddr.
20033         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
20034         Rename to __pthread_attr_setstackaddr.
20035         (pthread_attr_setstackaddr): New strong alias.
20036         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
20037         Rename to __pthread_attr_setstacksize.
20038         (pthread_attr_setstacksize): New strong alias.
20039         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
20040         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
20041         pthread_exit.
20042         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
20043         (__pthread_key_create): New hidden def.
20044         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
20045         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
20046         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
20047         __pthread_exit, __pthread_key_create, __pthread_getspecific,
20048         __pthread_setspecific, __pthread_setcancelstate,
20049         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
20050         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
20051         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
20052         declarations.
20053         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
20054         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
20055         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
20056         (pthread_attr_setstackaddr): New strong alias.
20057         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
20058         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
20059         (pthread_attr_setstacksize): New strong alias.
20060         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
20061         (call_exit): Call __pthread_exit instead of pthread_exit.
20062         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
20063         (_pthread_mutex_init): New hidden definition.
20064         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
20065         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
20066         instead of pthread_attr_init and pthread_attr_setstack.
20068         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
20069         __vm_deallocate instead of vm_allocate and vm_deallocate.
20070         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
20071         setenv.
20072         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
20073         of geteuid.
20074         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
20075         strdup.
20076         * hurd/siginfo.c: Include <libioP.h>.
20077         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
20078         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
20079         munmap.
20080         * mach/devstream.c: Include <libioP.h>.
20081         (dealloc_ref): Call __mach_port_deallocate instead of
20082         mach_port_deallocate.
20083         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
20084         Call __mach_port_deallocate instead of mach_port_deallocate.
20085         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
20086         pathconf.
20087         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
20088         munmap.
20089         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
20090         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
20091         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
20092         of munmap.
20093         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
20094         of close.
20095         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
20096         instead of sysconf.
20097         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
20098         __clock_gettime instead of clock_gettime.
20099         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
20100         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
20101         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
20102         * sysdeps/unix/bsd/stty.c (stty): Likewise.
20103         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
20104         tcgetattr.
20105         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
20106         __clock_gettime and __nanosleep instead of clock_gettime and
20107         nanosleep.
20108         * hurd/catch-signal.c (hurd_catch_signal): Rename to
20109         __hurd_catch_signal.
20110         (hurd_catch_signal): New strong alias.
20111         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
20112         __hurd_catch_signal instead of hurd_catch_signal.
20113         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
20114         * hurd/hurdexec.c (_hurd_init): Add hidden def.
20115         * hurd/hurdinit.c (_hurd_init): Add hidden def.
20116         * hurd/hurdsig.c: Include <mach/mig_support.h>.
20117         (_hurd_thread_sigstate): Add hidden def.
20118         (_hurd_internal_post_signal): Use __mutex_unlock instead of
20119         mutex_unlock.
20120         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
20121         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
20122         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
20123         __hurd_file_name_path_lookup.
20124         (hurd_file_name_path_lookup): New strong alias.
20125         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
20126         hurd_file_name_path_lookup.
20127         * mach/errstring.c (mach_error_type): Add hidden def.
20128         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
20129         * mach/mutex-init.c (__mutex_init): Add hidden def.
20130         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
20131         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
20132         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
20133         * sysdeps/mach/hurd/getcwd.c
20134         (_hurd_canonicalize_directory_name_internal): Rename to
20135         __hurd_canonicalize_directory_name_internal.
20136         (_hurd_canonicalize_directory_name_internal): New strong alias.
20137         (__canonicalize_directory_name_internal, __getcwd): Call
20138         __hurd_canonicalize_directory_name_internal instead of
20139         _hurd_canonicalize_directory_name_internal.
20140         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
20141         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
20142         hidden defs.
20143         * sysdeps/hurd/include/hurd.h: New file.
20144         * sysdeps/hurd/include/hurd/fd.h: New file.
20145         * sysdeps/hurd/include/hurd/signal.h: New file.
20146         * sysdeps/mach/include/lock-intern.h: New file.
20147         * sysdeps/mach/include/mach.h: New file.
20148         * sysdeps/mach/include/mach/mig_support.h: New file.
20149         * sysdeps/mach/include/mach_error.h: New file.
20150         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
20151         prototype.
20152         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
20153         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
20154         _HEADER_H_HIDDEN_DEF macro.
20155         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
20156         _hurd_fd_error_signal): Add hidden prototype.
20157         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
20158         hidden def.
20159         * libio/iolibio.h (_IO_puts): New hidden prototype.
20160         * libio/ioputs.c (_IO_puts): New hidden def.
20161         * sysdeps/mach/hurd/localplt.data: New file.
20163 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
20164             Amos Jeffries  <squid3@treenet.co.nz>
20165             David Michael  <fedora.dm0@gmail.com>
20166             Marco Gerards  <marco@gnu.org>
20167             Marcus Brinkmann  <marcus@gnu.org>
20168             Neal H. Walfield  <neal@gnu.org>
20169             Pino Toscano  <toscano.pino@tiscali.it>
20170             Richard Braun  <rbraun@sceen.net>
20171             Roland McGrath  <roland@gnu.org>
20172             Samuel Thibault  <samuel.thibault@ens-lyon.org>
20173             Thomas DiModica  <ricinwich@yahoo.com>
20174             Thomas Schwinge  <tschwinge@gnu.org>
20176         * htl: New directory.
20177         * sysdeps/htl: New directory.
20178         * sysdeps/hurd/htl: New directory.
20179         * sysdeps/i386/htl: New directory.
20180         * sysdeps/mach/htl: New directory.
20181         * sysdeps/mach/hurd/htl: New directory.
20182         * sysdeps/mach/hurd/i386/htl: New directory.
20183         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
20184         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
20185         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
20187 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20189         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
20190         signals in thread created for runing timers.
20192 2018-04-01  Florian Weimer  <fweimer@redhat.com>
20194         * support/support_format_addrinfo.c (support_format_addrinfo):
20195         Include unknown error number in formatted result.
20197 2018-03-29  Florian Weimer  <fweimer@redhat.com>
20199         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
20200         capture SIGBUS.
20202 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20204         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
20205         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
20206         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
20207         (__ASSUME_CLONE_BACKWARDS): Define.
20209 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
20211         [BZ #23024]
20212         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
20213         early when linux sentinel value is set.
20215 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20217         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
20219 2018-03-27  Andreas Schwab  <schwab@suse.de>
20221         [BZ #23005]
20222         * resolv/res_send.c (__res_context_send): Return ENOMEM if
20223         allocation of private copy of nsaddr_list fails.
20225 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
20227         [BZ #16552]
20228         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
20229         * sysdeps/unix/sysv/linux/umount.c: ... here.
20230         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
20231         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
20232         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
20233         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
20234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
20235         * sysdeps/unix/sysv/linux/umount.S: Likewise.
20236         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
20238 2018-03-26  Andreas Schwab  <schwab@suse.de>
20240         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
20241         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
20242         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
20243         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
20244         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
20245         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
20246         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
20247         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
20248         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
20249         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
20250         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
20251         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
20252         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
20253         (R_RISCV_NUM): Define.
20255 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20257         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
20258         TLS declaration of errno.
20259         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
20260         __libc_setup_tls.
20261         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
20262         (ARCH_SETUP_TLS): Likewise.
20263         * sysdeps/mach/hurd/libc-start.h: New file copied from
20264         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
20265         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
20266         instead of __libc_setup_tls.
20267         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
20268         __libc_setup_tls before initializing libpthread and running _hurd_init
20269         which starts the signal thread.
20270         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
20271         Declare function.
20272         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
20274 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
20276         [BZ #22998]
20277         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
20278         after it is defined.
20280 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
20281             Max Horn  <max@quendi.de>
20283         [BZ #22644]
20284         CVE-2017-18269
20285         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
20286         branch conditions.
20287         * string/test-memmove.c (do_test2): New testcase.
20289 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
20291         * sysdeps/generic/frame.h: Remove file.
20292         * sysdeps/arm/frame.h: Likewise.
20293         * sysdeps/hppa/frame.h: Likewise.
20294         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
20295         macro.
20296         (GET_FRAME): Likewise.
20297         (GET_STACK): Likewise.
20298         (CALL_SIGHANDLER): Likewise.
20299         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
20300         Likewise.
20301         (GET_FRAME): Likewise.
20302         (GET_STACK): Likewise.
20303         (CALL_SIGHANDLER): Likewise.
20304         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
20305         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20306         (GET_FRAME): Likewise.
20307         (GET_STACK): Likewise.
20308         (CALL_SIGHANDLER): Likewise.
20309         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
20310         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20311         (GET_FRAME): Likewise.
20312         (GET_STACK): Likewise.
20313         (ADVANCE_STACK_FRAME): Likewise.
20314         (CALL_SIGHANDLER): Likewise.
20315         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
20316         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20317         (GET_FRAME): Likewise.
20318         (GET_STACK): Likewise.
20319         (CALL_SIGHANDLER): Likewise.
20320         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
20321         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20322         (GET_FRAME): Likewise.
20323         (GET_STACK): Likewise.
20324         (CALL_SIGHANDLER): Likewise.
20325         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
20326         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20327         (GET_FRAME): Likewise.
20328         (GET_STACK): Likewise.
20329         (CALL_SIGHANDLER): Likewise.
20330         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
20331         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20332         (GET_FRAME): Likewise.
20333         (GET_STACK): Likewise.
20334         (CALL_SIGHANDLER): Likewise.
20335         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
20336         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20337         (GET_FRAME): Likewise.
20338         (GET_STACK): Likewise.
20339         (CALL_SIGHANDLER): Likewise.
20340         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
20341         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20342         (GET_FRAME): Likewise.
20343         (GET_STACK): Likewise.
20344         (CALL_SIGHANDLER): Likewise.
20345         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
20346         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20347         (GET_FRAME): Likewise.
20348         (GET_STACK): Likewise.
20349         (CALL_SIGHANDLER): Likewise.
20350         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
20351         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20352         (GET_FRAME): Likewise.
20353         (GET_STACK): Likewise.
20354         (CALL_SIGHANDLER): Likewise.
20355         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
20356         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20357         (GET_FRAME): Likewise.
20358         (GET_STACK): Likewise.
20359         (CALL_SIGHANDLER): Likewise.
20360         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
20361         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20362         (FIRST_FRAME_POINTER): Likewise.
20363         (ADVANCE_STACK_FRAME): Likewise.
20364         (GET_STACK): Likewise.
20365         (GET_FRAME): Likewise.
20366         (CALL_SIGHANDLER): Likewise.
20367         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
20368         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20369         (ADVANCE_STACK_FRAME): Likewise.
20370         (GET_STACK): Likewise.
20371         (GET_FRAME): Likewise.
20372         (CALL_SIGHANDLER): Likewise.
20373         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
20374         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20375         (GET_FRAME): Likewise.
20376         (GET_STACK): Likewise.
20377         (CALL_SIGHANDLER): Likewise.
20378         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
20379         (SIGCONTEXT_EXTRA_ARGS): Likewise.
20380         (GET_FRAME): Likewise.
20381         (GET_STACK): Likewise.
20382         (CALL_SIGHANDLER): Likewise.
20384 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
20386         * sysdeps/x86_64/backtrace.c: Move to ....
20387         * debug/backtrace.c: ... here.
20388         * sysdeps/aarch64/backtrace.c: Remove file.
20389         * sysdeps/alpha/backtrace.c: Likewise.
20390         * sysdeps/hppa/backtrace.c: Likewise.
20391         * sysdeps/ia64/backtrace.c: Likewise.
20392         * sysdeps/mips/backtrace.c: Likewise.
20393         * sysdeps/nios2/backtrace.c: Likewise.
20394         * sysdeps/riscv/backtrace.c: Likewise.
20395         * sysdeps/sh/backtrace.c: Likewise.
20396         * sysdeps/tile/backtrace.c: Likewise.
20398 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
20400         [BZ #22987]
20401         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
20402         function.
20403         (fdimf): Likewise.
20404         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
20406         [BZ #17343]
20407         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
20408         possibly overflowing computations.
20410 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20412         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
20413         values from Linux-specific section now that it is in the GNU section.
20414         * sysdeps/gnu/errlist.c: Regenerate.
20416 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
20418         * math/Makefile (libm-narrow-fns): Add sub.
20419         (libm-test-funcs-narrow): Likewise.
20420         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
20421         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
20422         * math/gen-auto-libm-tests.c (test_functions): Add sub.
20423         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
20424         (NARROW_SUB_ROUND_TO_ODD): Likewise.
20425         (NARROW_SUB_TRIVIAL): Likewise.
20426         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
20427         macro.
20428         (__dsubl): Likewise.
20429         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
20430         dsub.
20431         (CFLAGS-nldbl-dsub.c): New variable.
20432         (CFLAGS-nldbl-fsub.c): Likewise.
20433         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
20434         __nldbl_dsubl.
20435         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
20436         prototype.
20437         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
20438         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
20439         * math/auto-libm-test-in: Add tests of sub.
20440         * math/auto-libm-test-out-narrow-sub: New generated file.
20441         * math/libm-test-narrow-sub.inc: New file.
20442         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
20443         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
20444         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
20445         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
20446         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
20447         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
20448         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
20449         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
20450         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
20451         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
20452         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
20453         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
20454         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
20455         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
20456         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
20457         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
20458         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
20459         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
20460         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20461         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
20462         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20463         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20464         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20465         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20466         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20467         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20468         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20469         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20470         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20471         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20472         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20473         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
20475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
20476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
20477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
20478         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
20479         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20480         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20481         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20482         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20483         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20484         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
20485         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
20486         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20487         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20489 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
20491         [BZ #20079]
20492         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
20494 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
20496         * benchtests/bench-timing.h (attribute_hidden): Undefine.
20498 2018-03-18  Richard Braun  <rbraun@sceen.net>
20500         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
20501         thread reference.
20503 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
20505         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
20506         (__libc_cleanup_fct): Define function.
20507         (__libc_cleanup_region_start, __libc_cleanup_region_end,
20508         __libc_cleanup_end): Rewrite implementation using
20509         __attribute__ ((__cleanup__)).
20510         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
20511         * hurd/Makefile (routines): Add hurdlock.
20512         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
20513         interface.
20514         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
20515         * hurd/hurdpid.c: Include <lowlevellock.h>
20516         (_S_msg_proc_newids): Use lll_wait to synchronize.
20517         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
20518         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
20519         * mach/Makefile (lock-headers): Remove machine-lock.h.
20520         * mach/lock-intern.h: Include <lowlevellock.h> instead of
20521         <machine-lock.h>.
20522         (__spin_lock_t): New type.
20523         (__SPIN_LOCK_INITIALIZER): New macro.
20524         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
20525         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
20526         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
20527         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
20528         (__mutex_init): Initialize with lll.
20529         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
20530         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
20531         needing lll.
20532         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
20533         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
20534         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
20535         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
20536         (__setpgid): Use lll for synchronization.
20537         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
20538         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
20539         instead of <cthreads.h>.
20540         (_IO_lock_inexpensive): New macro
20541         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
20542         (__libc_lock_self0): New declaration.
20543         (__libc_lock_owner_self): New macro.
20544         (__libc_key_t): Remove type.
20545         (_LIBC_LOCK_INITIALIZER): New macro.
20546         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
20547         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
20548         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
20549         __libc_lock_define_initialized_recursive,
20550         __rtld_lock_define_initialized_recursive,
20551         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
20552         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
20553         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
20554         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
20555         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
20556         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
20557         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
20558         New macros.
20559         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
20560         * hurd/hurdlock.c: New file.
20561         * hurd/hurdlock.h: New file.
20562         * mach/lowlevellock.h: New file
20564 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20566         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
20567         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
20568         when opening a symlink with O_NOFOLLOW.
20569         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
20570         path when flags contains O_NOFOLLOW.
20571         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
20572         if flags contains O_DIRECTORY and the result is a directory.
20573         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
20574         oneself when the pointer given in D is nul (as set by ext2fs).
20575         * sysdeps/mach/hurd/mlockall.c: New file.
20576         * sysdeps/mach/hurd/munlockall.c: New file.
20578 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20580         * hurd/hurdsig.c: Include <pthread.h>.
20581         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
20582         get the signal thread stack layout.
20583         * hurd/Makefile (headers): Remove threadvar.h.
20584         (inline-headers): Remove threadvar.h.
20585         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
20586         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
20587         __hurd_threadvar_max, __hurd_errno_location.
20588         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
20589         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
20590         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
20591         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
20592         unless TLS is not initialized yet, in which case we do not need a
20593         critical section yet anyway.
20594         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
20595         <machine-sp.h>.
20596         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
20597         declarations.
20598         (__hurd_threadvar_index): Remove enum.
20599         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
20600         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
20601         inlines.
20602         (__hurd_reply_port0): New variable declaration.
20603         (__hurd_local_reply_port): New macro.
20604         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
20605         (interrupted_reply_port_location): Add thread_t parameter.  Use it
20606         with THREAD_TCB to access thread-local variables.
20607         (_hurdsig_abort_rpcs): Pass ss->thread to
20608         interrupted_reply_port_location.
20609         (_hurd_internal_post_signal): Likewise.
20610         (_hurdsig_init): Use presence of cthread_fork instead of
20611         __hurd_threadvar_stack_mask to start signal thread by hand.
20612         Remove signal thread threadvar initialization.
20613         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
20614         * hurd/sigunwind.c: Include <hurd/threadvar.h>
20615         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
20616         of threadvar.
20617         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
20618         __libc_lock_self0.
20619         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
20620         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
20621         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
20622         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
20623         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
20624         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
20625         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
20626         define variables.
20627         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
20628         <hurd/threadvar.h>.
20629         [IS_IN(rtld)] (rtld_errno): New variable.
20630         [IS_IN(rtld)] (__errno_location): New weak function.
20631         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
20632         * sysdeps/mach/hurd/errno.c: Remove file.
20633         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
20634         (__fork): Remove THREADVAR_SPACE macro and its use.
20635         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
20636         variable.
20637         (init): Do not initialize threadvar.
20638         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
20639         symbol.
20640         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
20641         __hurd_local_reply_port instead of threadvar.
20642         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
20643         _hurd_sigstate fields.
20644         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
20645         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
20646         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
20647         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
20648         instead of threadvar.
20649         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
20650         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
20651         (use_threadvar, global_reply_port): Remove variables.
20652         (__hurd_reply_port0): New variable.
20653         (__mig_get_reply_port): Use __hurd_local_reply_port and
20654         __hurd_reply_port0 instead of threadvar.
20655         (__mig_dealloc_reply_port): Likewise.
20656         (__mig_init): Do not initialize threadvar.
20657         * sysdeps/mach/hurd/profil.c: Fix comment.
20658         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
20659         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
20660         cthread_keycreate, cthread_getspecific, cthread_setspecific to
20661         __cthread_fork, __cthread_detach, __pthread_getattr_np,
20662         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
20663         __cthread_setspecific.
20664         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
20665         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
20666         __cthread_t instead of cthread_fork, cthread_detach,
20667         pthread_getattr_np, pthread_attr_getstack.
20668         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
20669         __cthread_keycreate.
20670         (cthread_getspecific): Rename to __cthread_getspecific.
20671         (cthread_setspecific): Rename to __cthread_setspecific.
20672         (__libc_getspecific): Use __cthread_getspecific instead of
20673         cthread_getspecific.
20674         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
20675         __cthread_keycreate instead of cthread_keycreate.
20676         (__libc_setspecific): Use __cthread_setspecific instead of
20677         cthread_setspecific.
20678         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
20679         Likewise.
20680         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
20681         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
20682         testing whether it is defined.
20684 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20686         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
20687         Define macro.
20688         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
20689         * sysdeps/mach/i386/thread_state.h
20690         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
20691         i386_THREAD_STATE.
20692         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
20693         i386_THREAD_STATE.
20694         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
20696         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
20697         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
20699         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
20700         macros.
20701         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
20702         descriptor instead of creating a new one.
20703         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
20705         * mach/setup-thread.c: Include <ldsodefs.h>.
20706         (__mach_setup_thread): Call _dl_allocate_tls, pass
20707         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
20708         MACHINE_THREAD_STATE_FLAVOR, before getting
20709         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
20710         MACHINE_THREAD_STATE_FLAVOR with the result.
20711         * hurd/hurdfault.c (_hurdsig_fault_init): Call
20712         MACHINE_THREAD_STATE_FIX_NEW.
20713         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
20714         too.  Add original thread parameter.
20716 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
20718         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
20719         Remove inline function.
20721         * sysdeps/i386/fpu/libm-test-ulps: Update.
20722         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20724 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
20726         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
20727         commit.
20729 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
20731         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
20732         (__sincos_code): Remove define and undefine.
20733         [__FAST_MATH__] (__sincos): Remove inline function.
20734         [__FAST_MATH__] (__sincosf): Remove inline function.
20735         [__FAST_MATH__] (__sincosl): Remove inline function.
20736         (__atan2l): Remove inline functions.
20737         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
20738         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
20739         function.
20740         (floor): Remove inline function.
20741         (ceil): Likewise.
20742         [__FAST_MATH__] (__ldexp_code): Remove macro.
20743         [__FAST_MATH__] (ldexp): Remove inline function.
20744         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
20745         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
20746         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
20747         [__USE_ISOC99] (__lrint_code): Remove macro.
20748         [__USE_ISOC99] (__llrint_code): Likewise.
20749         [__USE_ISOC99] (lrintf): Remove inline function.
20750         [__USE_ISOC99] (lrint): Likewise.
20751         [__USE_ISOC99] (lrintl): Likewise.
20752         [__USE_ISOC99] (llrint): Likewise.
20753         [__USE_ISOC99] (llrintf): Likewise.
20754         [__USE_ISOC99] (llrintl): Likewise.
20756 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
20758         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
20759         (__ieee754_sqrtf): Remove.
20760         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
20761         (__ieee754_sqrtf): Remove.
20762         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
20763         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20764         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
20765         (__ieee754_sqrtf): Remove.
20766         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
20767         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
20768         (sqrtf): Remove.
20769         (sqrtl): Remove.
20770         (__ieee754_sqrt): Remove.
20771         (__ieee754_sqrtf): Remove.
20772         (__ieee754_sqrtl): Remove.
20773         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20774         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
20775         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
20776         (__ieee754_sqrtf): Remove.
20777         (__ieee754_sqrtl): Remove.
20779 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
20781         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
20782         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
20783         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
20784         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
20785         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
20786         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
20787         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
20788         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
20789         Likewise.
20790         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
20791         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
20792         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
20793         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
20794         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
20795         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
20796         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
20797         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
20798         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
20799         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20800         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
20801         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
20802         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
20803         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
20804         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
20805         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20806         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
20807         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
20808         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
20809         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
20810         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
20811         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20812         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
20813         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
20814         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
20815         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
20816         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20817         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
20818         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
20819         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20820         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
20821         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
20822         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
20823         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
20824         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20825         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
20826         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
20827         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
20828         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
20829         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
20831 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
20833         * include/math.h (sqrt): Declare with asm redirect.
20834         (sqrtf): Likewise.
20835         (sqrtl): Likewise.
20836         (sqrtf128): Likewise.
20837         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
20838         nonlib and libnldbl with -fmath-errno.
20839         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
20840         * math/w_sqrt_template.c: Likewise.
20841         * math/w_sqrtf_compat.c: Likewise.
20842         * math/w_sqrtl_compat.c: Likewise.
20843         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
20844         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
20845         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
20846         complex.h.
20848 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
20850         * benchtests/Makefile: Define _ISOMAC.
20851         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
20852         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
20853         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
20854         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
20855         * benchtests/bench-timing.h: Define attribute_hidden.
20857 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20859         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
20860         mov + lsr.
20862 2018-03-15  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
20864         [BZ #22963]
20865         * localedata/locales/cs_CZ (mon): Rename to...
20866         (alt_mon): This.
20867         (mon): Import from CLDR (genitive case).
20869 2018-03-15  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
20871         [BZ #22937]
20872         * localedata/locales/el_CY (abmon): Rename to...
20873         (ab_alt_mon): This.
20874         (abmon): Import from CLDR (abbreviated genitive case).
20875         * localedata/locales/el_GR (abmon): Rename to...
20876         (ab_alt_mon): This.
20877         (abmon): Import from CLDR (abbreviated genitive case).
20879 2018-03-15  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
20881         [BZ #22932]
20882         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
20884 2018-03-15  Robert Buj  <robert.buj@gmail.com>
20886         [BZ #22848]
20887         * localedata/locales/ca_ES (abmon): Rename to...
20888         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20889         (mon): Rename to...
20890         (alt_mon): This.
20891         (abmon): Import from CLDR (genitive case, month names preceded by
20892         "de" or "d’").
20893         (mon): Likewise.
20894         (abday): Synchronize with CLDR.
20895         (d_t_fmt): Likewise.
20896         (d_fmt): Likewise.
20897         (am_pm): Likewise.
20899         (LC_TIME): Improve indentation.
20900         (LC_TELEPHONE): Likewise.
20901         (LC_NAME): Likewise.
20902         (LC_ADDRESS): Likewise.
20904 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
20906         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
20907         (lrintf): Remove definitions used only with old GCC.
20908         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
20909         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
20910         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
20911         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
20912         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
20913         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
20914         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
20915         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
20916         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
20917         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
20918         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
20919         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
20920         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
20921         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
20922         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20923         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20924         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20925         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20926         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20927         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20928         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20929         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20930         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20931         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20932         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20933         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20934         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20935         [__FAST_MATH__] (__M_SQRT2): Remove macro.
20937 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20939         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20940         instruction to unbreak builds with binutils 2.26 and older.
20942 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20944         * sysdeps/aarch64/strncmp.S (count): New macro.
20945         (strncmp): Store misaligned length in SRC1 in COUNT.
20946         (mutual_align): Adjust.
20947         (misaligned8): Load dword at a time when it is safe.
20949 2018-03-12  Zack Weinberg  <zackw@panix.com>
20951         [BZ #1190]
20952         [BZ #19476]
20953         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20954         if the _IO_EOF_SEEN bit is already set; update commentary.
20955         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20956         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20958         * support/support_openpty.c, support/tty.h: New files.
20959         * support/Makefile (libsupport-routines): Add support_openpty.
20961         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20962         New test cases.
20963         * libio/Makefile (tests): Add tst-fgetc-after-eof.
20964         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20966 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
20968         * po/pt_BR.po: Update translations.
20970 2018-03-12  David Michael  <fedora.dm0@gmail.com>
20972         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20973         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20974         get a port to the startup server.
20976 2018-03-11  Zack Weinberg  <zackw@panix.com>
20978         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20979         before nldbl-compat.h.
20981 2018-03-10  Zack Weinberg  <zackw@panix.com>
20983         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20984         math.h or math_private.h.
20986         * sysdeps/alpha/fpu/s_isnan.c
20987         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20988         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20989         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20990         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20991         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20992         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20993         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20994         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20995         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20996         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20998         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20999         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
21000         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
21001         Include math_private.h.
21003         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
21004         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
21005         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
21006         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
21007         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
21008         * sysdeps/powerpc/power7/fpu/s_logb.c:
21009         Include math.h and math_private.h.
21011         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
21012         uses of $at in .set noat / .set at.
21014 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
21016         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
21017         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
21018         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
21019         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
21020         Likewise.
21022 2018-03-09  Florian Weimer  <fweimer@redhat.com>
21024         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
21025         in comment.
21027 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
21029         [BZ #22919]
21030         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
21031         Add nop before __startcontext, add explaining comments.
21033 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21035         [BZ #22926]
21036         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
21037         empty for __SPE__.
21038         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
21039         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
21040         Do not build hardware transactional code for __SPE__.
21041         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
21042         (__lll_trylock_elision): Likewise.
21043         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
21044         (__lll_unlock_elision): Likewise.
21046         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
21047         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
21048         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
21049         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
21050         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
21051         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
21052         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
21053         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
21054         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
21055         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
21056         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
21057         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
21058         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
21059         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
21060         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
21061         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
21062         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
21063         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
21064         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
21065         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
21066         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
21067         * sysdeps/unix/sysv/linux/arm/kernel-features.h
21068         (__ASSUME_CLONE_BACKWARDS): Define.
21069         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
21070         __clone2 if __NR_clone2 is defined.
21071         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
21072         (__ASSUME_CLONE_BACKWARDS): Likewise.
21073         * sysdeps/unix/sysv/linux/i386/kernel-features.h
21074         (__ASSUME_CLONE_BACKWARDS): Likewise.
21075         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
21076         (__ASSUME_CLONE2): Likewise.
21077         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
21078         (__ASSUME_CLONE_BACKWARDS3): Likewise.
21079         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
21080         variants and the define architecture can use.
21081         (__ASSUME_CLONE_DEFAULT): Define as default.
21082         * sysdeps/unix/sysv/linux/mips/kernel-features.h
21083         (__ASSUME_CLONE_BACKWARDS): Likewise.
21084         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
21085         (__ASSUME_CLONE_BACKWARDS): Likewise.
21086         * sysdeps/unix/sysv/linux/s390/kernel-features.h
21087         (__ASSUME_CLONE_BACKWARDS2): Likewise.
21089 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21091         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
21093         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
21094         time.
21096         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
21097         (do_test_limit): Likewise.
21099         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
21100         for every implementation.
21101         (do_test): Likewise.
21103         * benchtests/bench-strncmp.c: Convert output to json.
21105 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21107         * io/futimens.c: Add missing start-of-file descriptive comment.
21108         * io/utime.c: Likewise.
21109         * misc/futimesat.c: Likewise.
21110         * misc/utimes.c: Likewise.
21111         * sysdeps/mach/hurd/futimesat.c: Likewise.
21112         * sysdeps/mach/hurd/utimes.c: Likewise.
21113         * sysdeps/posix/utime.c: Likewise.
21114         * sysdeps/posix/utimes.c: Likewise.
21115         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
21116         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
21117         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
21118         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
21120 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21122         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
21123         hurd_futimes.
21124         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
21125         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
21126         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
21127         (__futimens): Move implementation to...
21128         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
21129         utime_tvalue_from_tspec): ... new helper functions.
21130         (hurd_futimens): New function.
21131         * sysdeps/mach/hurd/futimesat.c: New file.
21132         * sysdeps/mach/hurd/utimensat.c: New file.
21134 2018-03-05  FlĂĄvio Cruz  <flaviocruz@gmail.com>
21136         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
21137         UTIME_OMIT): New macros.
21138         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
21139         before reverting to converting time spec to time value and calling
21140         __file_utimes.
21141         * sysdeps/mach/hurd/utime-helper.c: New file.
21142         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
21143         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
21144         reverting to utime_tvalue_from_tval and __file_utimes.
21145         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
21146         (__lutimes): Just call hurd_futimens after lookup.
21147         * sysdeps/mach/hurd/utimes.c: Likewise.
21149 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21151         * bits/sigaction.h: Add include guard.
21152         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
21153         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
21154         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
21155         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
21156         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
21157         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
21158         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
21159         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
21160         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
21162 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
21164         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
21165         -Wmaybe-uninitialized for -Os.
21166         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
21167         this disabling.
21169 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21171         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
21172         __INO_T_MATCHES_INO64_T is defined.
21173         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
21174         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
21175         of definition.
21176         * dirent/alphasort64.c: Likewise.
21177         * dirent/scandir.c: Likewise.
21178         * dirent/scandir64-tail.c: Likewise.
21179         * dirent/scandir64.c: Likewise.
21180         * dirent/scandirat.c: Likewise.
21181         * dirent/scandirat64.c: Likewise.
21182         * dirent/versionsort.c: Likewise.
21183         * dirent/versionsort64.c: Likewise.
21184         * include/dirent.h: Likewise.
21186         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
21187         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
21188         for socketpair endpoint.
21189         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
21190         WRITE_BUFFER_SIZE as buffer size for sending socket.
21191         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
21192         issue on system where send is implemented with sendto syscall.
21193         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
21194         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
21195         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
21196         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
21198         [BZ #21269]
21199         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
21200         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
21201         sa_restorer for vDSO case.
21202         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
21204 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21206         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
21207         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
21208         * hurd/hurd/ioctl.h: Include <mach/port.h>
21209         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
21210         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
21211         <mach/mach_types.h> and <mach/message.h>.
21212         (headers): Move mach/param.h to bits/mach/param.h.
21213         * sysdeps/mach/i386/mach/param.h: Move file to ...
21214         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
21215         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
21216         of <mach/param.h>.
21217         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
21218         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
21219         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
21220         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
21221         trivial, for C++ conformity.
21222         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
21223         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
21224         Process mig output through $(migheadersed).
21225         * hurd/Makefile (migheadersed): Define variable.
21226         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
21227         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
21228         headers.
21229         * hurd/hurd.h: Include <bits/types/sigset_t.h>
21230         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
21231         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
21232         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
21233         <bits/types/sigset_t.h>.
21234         [!defined __USE_GNU]: Do not #error out.
21235         (struct hurd_sigstate): Use _NSIG instead of NSIG.
21236         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
21237         Include <stddef.h> and <bits/types/sigset_t.h>
21238         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
21239         instead of sighandler_t.
21240         * stdlib/errno.h (error_t): Move definition to...
21241         * bits/types/error_t.h: ... new header.
21242         * stdlib/Makefile (headers): Add bits/types/error_t.h.
21243         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
21244         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
21245         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
21246         * hurd/hurd.h: Include <bits/types/error_t.h>
21247         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
21248         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
21249         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
21250         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
21251         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
21252         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
21253         * sysdeps/mach/hurd/futimens.c: New file.
21255 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
21257         [BZ #22918]
21258         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
21259         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
21260         * nscd/gai.c (__nss_hosts_database): Readd definition.
21261         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
21262         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
21263         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
21265 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
21267         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
21268         (ifunc_one): Likewise.
21270 2018-03-01  DJ Delorie  <dj@delorie.com>
21272         [BZ #22342]
21273         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
21274         key value.
21276 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
21278         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
21279         `match_pid' parameter.
21280         (td_ta_thr_iter): Update accordingly.
21282 2018-03-01  Florian Weimer  <fweimer@redhat.com>
21284         * nptl/Makefile (install-lib-ldscripts): Remove.
21285         (install): Remove rule.
21286         ($(inst_libdir)/libpthread.so): Likewise.
21288 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
21290         [BZ #22896]
21291         * localedata/locales/an_ES: update month and day names,
21292         improve d_fmt, improve postal_fmt, add country_post,
21293         add country_isbn
21295 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
21297         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
21298         Ukrainian instead of Bulgarian.
21300 2018-03-01  Florian Weimer  <fweimer@redhat.com>
21302         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
21303         reference.
21305 2018-03-01  Florian Weimer  <fweimer@redhat.com>
21307         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
21308         * nptl/Makefile (routines): Add pthread_atfork.
21309         (static-only-routines): Set to pthread_atfork.
21310         (libpthread-routines): Remove pthread_atfork.
21311         (libpthread-static-only-routines): Remove.
21312         (install): Update comment.
21313         (libpthread.so): Do not install libpthread_nonshared.a.
21314         (tests): Do not link with libpthread_nonshared.a.
21315         (generated): Remove libpthread_nonshared.a.
21316         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
21317         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
21318         with libpthread_nonshared.a.
21320 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
21322         [BZ #22902]
21323         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
21324         (libc_feholdexcept_setroundf128): New macro.
21325         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
21327         [BZ #15105]
21328         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
21329         libc_hidden_def.
21330         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
21331         * include/inttypes.h: New file.
21333 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
21335         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
21336         -Os in two more places.
21338 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21340         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
21341         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
21342         be sorted correctly at the moment because of a bug.
21344 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21346         [BZ #22550] - es_ES locale (and other es_* locales): collation should
21347         treat Ă± as a primary different character, sync the collation
21348         for Spanish with CLDR.
21349         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
21350         * localedata/Makefile: Add new test files.
21351         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
21352         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
21353         collation order.
21354         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
21355         * localedata/am_ET.UTF-8.in: New test file.
21356         * localedata/az_AZ.UTF-8.in: Likewise.
21357         * localedata/be_BY.UTF-8.in: Likewise.
21358         * localedata/ber_DZ.UTF-8.in: Likewise.
21359         * localedata/ber_MA.UTF-8.in: Likewise.
21360         * localedata/bg_BG.UTF-8.in: Likewise.
21361         * localedata/br_FR.UTF-8.in: Likewise.
21362         * localedata/cmn_TW.UTF-8.in: Likewise.
21363         * localedata/crh_UA.UTF-8.in: Likewise.
21364         * localedata/csb_PL.UTF-8.in: Likewise.
21365         * localedata/cv_RU.UTF-8.in: Likewise.
21366         * localedata/cy_GB.UTF-8.in: Likewise.
21367         * localedata/dz_BT.UTF-8.in: Likewise.
21368         * localedata/eo.UTF-8.in: Likewise.
21369         * localedata/es_ES.UTF-8.in: Likewise.
21370         * localedata/fa_IR.UTF-8.in: Likewise.
21371         * localedata/fi_FI.UTF-8.in: Likewise.
21372         * localedata/fil_PH.UTF-8.in: Likewise.
21373         * localedata/fur_IT.UTF-8.in: Likewise.
21374         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
21375         * localedata/ha_NG.UTF-8.in: Likewise.
21376         * localedata/ig_NG.UTF-8.in: Likewise.
21377         * localedata/ik_CA.UTF-8.in: Likewise.
21378         * localedata/kk_KZ.UTF-8.in: Likewise.
21379         * localedata/ku_TR.UTF-8.in: Likewise.
21380         * localedata/ky_KG.UTF-8.in: Likewise.
21381         * localedata/ln_CD.UTF-8.in: Likewise.
21382         * localedata/mi_NZ.UTF-8.in: Likewise.
21383         * localedata/ml_IN.UTF-8.in: Likewise.
21384         * localedata/mn_MN.UTF-8.in: Likewise.
21385         * localedata/mr_IN.UTF-8.in: Likewise.
21386         * localedata/mt_MT.UTF-8.in: Likewise.
21387         * localedata/nb_NO.UTF-8.in: Likewise.
21388         * localedata/om_KE.UTF-8.in: Likewise.
21389         * localedata/os_RU.UTF-8.in: Likewise.
21390         * localedata/ps_AF.UTF-8.in: Likewise.
21391         * localedata/ro_RO.UTF-8.in: Likewise.
21392         * localedata/ru_RU.UTF-8.in: Likewise.
21393         * localedata/sc_IT.UTF-8.in: Likewise.
21394         * localedata/se_NO.UTF-8.in: Likewise.
21395         * localedata/sq_AL.UTF-8.in: Likewise.
21396         * localedata/sv_SE.UTF-8.in: Likewise.
21397         * localedata/szl_PL.UTF-8.in: Likewise.
21398         * localedata/tg_TJ.UTF-8.in: Likewise.
21399         * localedata/tk_TM.UTF-8.in: Likewise.
21400         * localedata/tt_RU.UTF-8.in: Likewise.
21401         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
21402         * localedata/ug_CN.UTF-8.in: Likewise.
21403         * localedata/uz_UZ.UTF-8.in: Likewise.
21404         * localedata/vi_VN.UTF-8.in: Likewise.
21405         * localedata/yi_US.UTF-8.in: Likewise.
21406         * localedata/yo_NG.UTF-8.in: Likewise.
21407         * localedata/zh_CN.UTF-8.in: Likewise.
21408         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
21409         file and fix bugs in the collation.
21410         * localedata/locales/az_AZ: Likewise.
21411         * localedata/locales/be_BY: Likewise.
21412         * localedata/locales/ber_DZ: Likewise.
21413         * localedata/locales/ber_MA: Likewise.
21414         * localedata/locales/bg_BG: Likewise.
21415         * localedata/locales/br_FR: Likewise.
21416         * localedata/locales/br_FR@euro: Likewise.
21417         * localedata/locales/ca_ES: Likewise.
21418         * localedata/locales/cns11643_stroke: Likewise.
21419         * localedata/locales/crh_UA: Likewise.
21420         * localedata/locales/cs_CZ: Likewise.
21421         * localedata/locales/csb_PL: Likewise.
21422         * localedata/locales/cv_RU: Likewise.
21423         * localedata/locales/cy_GB: Likewise.
21424         * localedata/locales/da_DK: Likewise.
21425         * localedata/locales/dz_BT: Likewise.
21426         * localedata/locales/en_CA: Likewise.
21427         * localedata/locales/eo: Likewise.
21428         * localedata/locales/es_CU: Likewise.
21429         * localedata/locales/es_EC: Likewise.
21430         * localedata/locales/es_ES: Likewise.
21431         * localedata/locales/es_US: Likewise.
21432         * localedata/locales/et_EE: Likewise.
21433         * localedata/locales/fa_IR: Likewise.
21434         * localedata/locales/fi_FI: Likewise.
21435         * localedata/locales/fil_PH: Likewise.
21436         * localedata/locales/fur_IT: Likewise.
21437         * localedata/locales/gez_ER@abegede: Likewise.
21438         * localedata/locales/ha_NG: Likewise.
21439         * localedata/locales/hr_HR: Likewise.
21440         * localedata/locales/hsb_DE: Likewise.
21441         * localedata/locales/hu_HU: Likewise.
21442         * localedata/locales/ig_NG: Likewise.
21443         * localedata/locales/ik_CA: Likewise.
21444         * localedata/locales/is_IS: Likewise.
21445         * localedata/locales/iso14651_t1_pinyin: Likewise.
21446         * localedata/locales/kk_KZ: Likewise.
21447         * localedata/locales/ku_TR: Likewise.
21448         * localedata/locales/ky_KG: Likewise.
21449         * localedata/locales/ln_CD: Likewise.
21450         * localedata/locales/lt_LT: Likewise.
21451         * localedata/locales/lv_LV: Likewise.
21452         * localedata/locales/mi_NZ: Likewise.
21453         * localedata/locales/ml_IN: Likewise.
21454         * localedata/locales/mn_MN: Likewise.
21455         * localedata/locales/mr_IN: Likewise.
21456         * localedata/locales/mt_MT: Likewise.
21457         * localedata/locales/nb_NO: Likewise.
21458         * localedata/locales/om_KE: Likewise.
21459         * localedata/locales/os_RU: Likewise.
21460         * localedata/locales/pl_PL: Likewise.
21461         * localedata/locales/ps_AF: Likewise.
21462         * localedata/locales/ro_RO: Likewise.
21463         * localedata/locales/ru_RU: Likewise.
21464         * localedata/locales/ru_UA: Likewise.
21465         * localedata/locales/sc_IT: Likewise.
21466         * localedata/locales/se_NO: Likewise.
21467         * localedata/locales/si_LK: Likewise.
21468         * localedata/locales/sq_AL: Likewise.
21469         * localedata/locales/sv_FI: Likewise.
21470         * localedata/locales/sv_FI@euro: Likewise.
21471         * localedata/locales/sv_SE: Likewise.
21472         * localedata/locales/szl_PL: Likewise.
21473         * localedata/locales/tg_TJ: Likewise.
21474         * localedata/locales/ti_ER: Likewise.
21475         * localedata/locales/tk_TM: Likewise.
21476         * localedata/locales/tl_PH: Likewise.
21477         * localedata/locales/tr_TR: Likewise.
21478         * localedata/locales/tt_RU: Likewise.
21479         * localedata/locales/tt_RU@iqtelif: Likewise.
21480         * localedata/locales/ug_CN: Likewise.
21481         * localedata/locales/uk_UA: Likewise.
21482         * localedata/locales/uz_UZ: Likewise.
21483         * localedata/locales/uz_UZ@cyrillic: Likewise.
21484         * localedata/locales/vi_VN: Likewise.
21485         * localedata/locales/yi_US: Likewise.
21486         * localedata/locales/yo_NG: Likewise.
21488 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21490         * gen-locales.mk: Make test files which contain @ modifiers in their
21491         name work.
21492         * localedata/gen-locale.sh: Likewise.
21494 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21496         * posix/tst-fnmatch.input: Fix results for range expressions
21497         for non C locales.
21498         * posix/tst-regexloc.c: Do not use a range expression for
21499         de_DE.ISO-8859-1 locale.
21501 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21503         * posix/bug-regex5.c: Fix test case because with the new
21504         iso14651_t1_common file, the da_DK locale now has 6 collating elements
21505         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
21506         file.
21508 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21510         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
21511         downloaded from ISO, the collation order of @-. and space has changed.
21512         Therefore, this test file needed to be adapted.
21513         * localedata/fr_CA.UTF-8.in: Likewise.
21514         * localedata/fr_FR.UTF-8.in: Likewise.
21515         * localedata/uk_UA.UTF-8.in: Likewise.
21517 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21519         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
21520         order of È„ in the new iso14651_t1_common file.
21521         * localedata/pl_PL.UTF-8.in: Likewise.
21523 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21525         * localedata/locales/iso14651_t1_common: Add sections for various
21526         scripts to the iso14651_t1_common file.
21528 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21530         * localedata/locales/iso14651_t1_common: Use the code point of a
21531         character in the fourth collation level instead of IGNORE for all
21532         entries which have IGNORE on all 4 levels.
21534 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21536         * localedata/locales/iso14651_t1_common: Add some convenient collation
21537         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
21538         rules similar to those in CLDR.
21540 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21542         * localedata/locales/iso14651_t1_common: The new version of this
21543         file downloaded from ISO contained several syntax errors which
21544         are fixed by this patch.
21546 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21548         * localedata/locales/iso14651_t1_common: replace all <U.....>
21549         with <U000.....> because glibc understands only 4 digit or 8 digit
21551 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21553         * localedata/locales/iso14651_t1_common: Necessary changes
21554         to make the file downloaded from ISO usable by glibc.
21556 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
21558         [BZ #14095]
21559         * localedata/locales/iso14651_t1_common: Update file to
21560         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
21562 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21564         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
21565         of <nptl/pthreadP.h>
21566         (thread_attr_compare): Move function to...
21567         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
21568         * sysdeps/nptl/timer_routines.h: ... new header.
21569         * sysdeps/mach/hurd/gai_misc.h: New file.
21571 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
21573         * string/strcoll_l.c: Include <libc-diag.h>.
21574         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
21575         declarations of seq1 and seq2.
21577         [BZ #15105]
21578         * stdlib/atoi.c (atoi): Use libc_hidden_def.
21579         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
21581 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
21583         [BZ #22433]
21584         [BZ #22807]
21585         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
21586         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
21587         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
21588         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
21589         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
21590         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
21592 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21594         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
21595         macros used in __ptrace_request.
21597 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
21599         [BZ #22792]
21600         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
21601         to $(CC).
21602         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
21603         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
21604         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
21605         <tcb-offsets.h>.
21607 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
21609         [BZ #15105]
21610         * ctype/ctype.c (tolower): Use libc_hidden_def.
21611         (toupper): Likewise.
21612         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
21613         [!_ISOMAC] (toupper): Likewise.
21615 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
21617         * localedata/Makefile: Remove --quiet argument when
21618         installing locales
21620 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
21622         [BZ #17438]
21623         * localedata/locales/pt_BR (LC_TIME): use / instead of -
21624         in d_fmt.
21625         * localedata/locales/pt_PT (LC_TIME): likewise
21627 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
21629         [BZ #22646]
21630         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
21631         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
21632         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
21634 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21636         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21638         * nptl/Makefile (routines): Remove unregister-atfork.
21639         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
21640         (fork_handler_alloc): Remove function.
21641         (fork_handlers, fork_handler_init): New variables.
21642         (__fork_lock): Rename to atfork_lock.
21643         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
21644         to use a dynamic array to add/remove atfork handlers.
21645         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
21646         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
21647         Remove declaration.
21648         (fork_handler): Remove next, refcntr, and need_signal member.
21649         (__run_fork_handler_type): New enum.
21650         (__run_fork_handlers): New prototype.
21651         * nptl/register-atfork.c: Remove file.
21652         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
21654         * sysdeps/nptl/nptl-signals.h: Move to ...
21655         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
21656         comments.
21657         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
21658         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
21659         unnecessary check for SIGTIMER.
21660         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
21661         remove unnecessary removal of SIGTIMER.
21662         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
21663         include-signals.h rename.
21664         * nptl/pthreadP.h: Likewise.
21665         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
21666         __is_internal_signal instead of __nptl_is_internal_signal.
21668 2018-02-22  Andrew Waterman  <andrew@sifive.com>
21670         [BZ # 22884]
21671         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
21672         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
21673         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
21674         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
21676 2018-02-22  DJ Delorie  <dj@delorie.com>
21678         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
21680 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21682         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
21683         do_misaligned, not misaligned8.
21685 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
21687         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21688         Add memcpy_thunderx2.
21689         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
21690         Increment to 4.
21691         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
21692         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
21693         and IS_THUNDERX2PA checks.
21694         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
21695         Use macro to set name appropriately.
21696         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
21697         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
21698         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
21699         New macro.
21700         (IS_THUNDERX2): New macro.
21702 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
21704         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21706 2018-02-21  Zack Weinberg  <zackw@panix.com>
21708         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
21709         Define here, unconditionally.
21710         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
21711         * libio/libioP.h: Remove #if 0 blocks.
21712         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
21713         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
21714         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
21716         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
21717         Assume weak_alias is always defined.
21719         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
21720         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
21721         Remove #if 0 and #ifdef TODO blocks.
21722         Assume text_set_element is always defined.
21724         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
21725         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
21726         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
21728         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
21729         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
21730         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
21731         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
21732         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
21733         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
21734         Reformat bit flags for _flags field to make occupancy clearer.
21735         Update commentary.
21736         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
21737         Keep definitions consistent with those in libio/libio.h.
21739         * libio/libio.h (_IO_file_flags): Remove macro.
21740         All uses changed to _flags.
21742         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
21743         (__HAVE_COLUMN, _IO_BE): Don't define.
21744         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
21745         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
21746         * libio/libioP.h (EOF): Don't define.
21747         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
21748         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
21749         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
21750         testing _IO_UNIFIED_JUMPTABLES.
21752         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
21753         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
21754         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
21755         (_IO_size_t): Delete; all uses changed to size_t.
21756         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
21757         (_IO_off_t): Delete; all uses changed to off_t.
21758         (_IO_off64_t): Delete; all uses changed to off64_t.
21759         (_IO_pid_t): Delete; all uses changed to pid_t.
21760         (_IO_uid_t): Delete; all uses changed to uid_t.
21761         (_IO_wint_t): Delete; all uses changed to wint_t.
21762         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
21763         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
21764         (_IO_cookie_io_functions_t): Delete; all uses changed to
21765         cookie_io_functions_t.
21766         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
21767         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
21768         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
21769         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
21771         * libio/iofopncook.c: Remove unnecessary forward declarations.
21772         * libio/iolibio.h: Correct outdated commentary.
21773         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
21774         * stdio-common/fxprintf.c (__fxprintf_nocancel):
21775         Remove unnecessary casts.
21776         * stdio-common/getline.c: Use _IO_getdelim directly.
21777         Don't redefine ssize_t.
21778         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
21779         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
21780         Remove outdated comments.
21781         * stdio-common/vfscanf.c: Don't redefine va_list.
21783         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
21784         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
21785         Remove preprocessor conditionals on _LIBC and __USE_GNU,
21786         which are always true, and __cplusplus, which is always false.
21788 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
21790         [BZ #15105]
21791         [BZ #19463]
21792         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
21793         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
21794         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
21795         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
21796         libc_hidden_proto.
21797         [!_ISOMAC] (putc_unlocked): Likewise.
21798         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
21799         define inline if [__USE_EXTERN_INLINES].
21800         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
21801         putc_unlocked.
21803         [BZ #15105]
21804         [BZ #19463]
21805         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
21806         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
21807         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
21808         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
21809         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
21810         getc_unlocked.
21811         * time/tzfile.c (__tzfile_read): Likewise.
21813 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
21815         [BZ #22517]
21816         * localedata/locales/et_EE (LC_COLLATE): add missing â€œreorder-end”
21818 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
21820         * io/fcntl.h: Fix a typo in a comment.
21822 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
21824         [BZ #22862]
21825         * include/features.h: Add _ISOC11_SOURCE to test for whether to
21826         define _DEFAULT_SOURCE.
21827         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
21829 2018-02-21  Florian Weimer  <fweimer@redhat.com>
21831         [BZ #20890]
21832         * elf/cache.c (save_cache): Call fsync on temporary file before
21833         renaming it.
21834         (save_aux_cache): Call fdatasync on temporary file before renaming
21835         it.
21837 2018-02-21  Florian Weimer  <fweimer@redhat.com>
21839         [BZ #22787]
21840         * include/caller.h: Remove file.
21841         * elf/dl-caller.c: Likewise.
21842         * elf/Makefile (dl-routines): Remove dl-caller.
21843         (shared-only-routines): Do not add dl-caller.
21844         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
21845         __check_caller.
21846         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
21847         member.
21848         (dl_open_worker): Do not call __check_caller.
21849         (_dl_open): Do not set caller_dl_open member.
21850         * elf/rtld.c (_rtld_global_ro): Do not initialize
21851         _dl_check_caller member.
21852         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
21853         _dl_check_caller member.
21854         (_dl_check_caller): Remove declaration.
21855         * sysdeps/unix/sysv/linux/dl-execstack.c
21856         (_dl_make_stack_executable): Do not call __check_caller.
21858 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21860         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
21861         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
21863 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
21865         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
21866         description.
21868 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
21870         [BZ #16335]
21871         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
21872         of 199606L, 200112L, and 200809L.
21873         (_XOPEN_SOURCE): Document special values of 600 and 700.
21874         (_ISOC11_SOURCE): Document macro.
21875         (_ATFILE_SOURCE): Likewise.
21876         (_FORTIFY_SOURCE): Likewise.
21878 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
21880         [BZ #15105]
21881         [BZ #19463]
21882         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
21883         and define as weak alias of __ferror_unlocked.  Use
21884         libc_hidden_weak.
21885         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
21886         libc_hidden_proto.
21887         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
21888         function if [__USE_EXTERN_INLINES].
21889         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
21890         ferror_unlocked.
21892 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
21894         [BZ #6889]
21895         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
21897 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
21899         [BZ #22818]
21900         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
21901         the GLIBC_2.1 version.
21903 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
21905         [BZ #21508]
21906         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
21907         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
21908         intl/tst-gettext-de.po from po/de.po by removing the
21909         POT-Creation-Date line.
21910         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
21911         ../po/de.po.
21912         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
21913         ../po/de.po.
21915 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21917         * mach/Makefile (headers): Add mach/param.h.
21918         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
21919         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
21920         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
21921         (__ptsname_r): Move implementation to...
21922         (__ptsname_internal): ... new function.  Add filling the STP
21923         structure.
21925 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
21927         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21928         idouble to 1 ULP.
21930 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
21932         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21933         syntax.
21935 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21937         * nptl/Makefile (tst-mutex8-ENV): Delete.
21938         * nptl/tst-mutex8.c (check_type):
21939         Add runtime check if mutex will be elided.
21941 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
21943         [BZ #20980]
21944         [BZ #21234]
21945         * manual/install.texi (Configuring and compiling): Describe
21946         passing CC and CFLAGS on configure command line, not as
21947         environment variables.  Use @code markup on those variables.
21948         Specify what options go in CC and what go in CFLAGS.  Note the
21949         requirement to compile with optimization.
21950         * INSTALL: Regenerated.
21952         [BZ #18124]
21953         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21954         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21955         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21956         __sigprocmask instead of sigprocmask.
21957         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21958         Likewise.
21959         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21960         __sigsetjmp and sigprocmask.
21962         [BZ #15105]
21963         * include/argz.h (argz_next): Use libc_hidden_proto.
21964         (__argz_next): Likewise.
21965         * string-argz-next.c (__argz_next): Use libc_hidden_def.
21966         (argz_next): Use libc_hidden_weak.
21968         [BZ #15105]
21969         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21970         libc_hidden_proto.
21971         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21972         libc_hidden_def.
21974         [BZ #15105]
21975         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21976         libc_hidden_proto.
21977         * libio/iofputs.c (fputs): Use libc_hidden_weak.
21979         [BZ #15105]
21980         [BZ #19463]
21981         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21982         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
21983         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21984         (__feof_unlocked): New declaration, and inline function if
21985         [__USE_EXTERN_INLINES].
21986         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21987         instead of feof_unlocked.
21988         * intl/localealias.c [_LIBC] (FEOF): Likewise.
21989         * nss/nsswitch.c (nss_parse_file): Likewise.
21990         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21991         Likewise.
21992         * time/getdate.c (__getdate_r): Likewise.
21993         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21994         Define as macro to call __feof_unlocked.
21996 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
21998         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
22000 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
22002         * math/Makefile: Remove mpexp.c and mplog.c
22003         * sysdeps/i386/fpu/mpexp.c: Delete file.
22004         * sysdeps/i386/fpu/mplog.c: Likewise.
22005         * sysdeps/ia64/fpu/mpexp.c: Likewise.
22006         * sysdeps/ia64/fpu/mplog.c: Likewise.
22007         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
22008         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
22009         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
22010         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
22011         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
22012         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
22013         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
22014         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
22015         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
22016         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
22017         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
22018         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
22019         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
22020         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
22021         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
22022         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
22024 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
22026         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22028 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22030         * sysdeps/sh/libm-test-ulps: Update.
22032 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22034         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
22035         idouble to 1 ULP.
22037 2018-02-12  Zack Weinberg  <zackw@panix.com>
22039         [BZ #19239]
22040         * posix/sys/types.h: Don't include sys/sysmacros.h.
22041         * misc/sys/sysmacros.h: Remove the conditional deprecation
22042         warnings for the macros defined by this header.
22044 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22046         * manual/probes.texi: Remove slowexp probes.
22047         * math/Makefile: Remove slowexp.
22048         * sysdeps/generic/math_private.h (__slowexp): Remove.
22049         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
22050         document error bounds.
22051         * sysdeps/i386/fpu/slowexp.c: Remove.
22052         * sysdeps/ia64/fpu/slowexp.c: Remove.
22053         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
22054         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
22055         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
22056         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
22057         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
22058         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
22059         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
22060         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
22061         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
22062         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
22063         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
22065 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
22067         [BZ #13932]
22068         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
22069         * benchtests/pow-inputs: Update comment for slow path cases.
22070         * manual/probes.texi (slowpow_p10): Delete removed probe.
22071         (slowpow_p10): Likewise.
22072         * math/Makefile: Remove halfulp.c and slowpow.c.
22073         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
22074         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
22075         (__halfulp): Remove.
22076         (__slowpow): Remove.
22077         * sysdeps/i386/fpu/halfulp.c: Delete file.
22078         * sysdeps/i386/fpu/slowpow.c: Likewise.
22079         * sysdeps/ia64/fpu/halfulp.c: Likewise.
22080         * sysdeps/ia64/fpu/slowpow.c: Likewise.
22081         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
22082         improve comments and add error analysis.
22083         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
22084         (power1): Remove function:
22085         (log1): Remove error argument, add error analysis.
22086         (my_log2): Remove function.
22087         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
22088         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
22089         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
22090         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
22091         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
22092         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
22093         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
22094         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
22095         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
22096         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
22097         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
22098         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
22099         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
22100         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
22102 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22104         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
22105         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
22107 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
22109         [BZ #22433]
22110         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
22111         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
22112         and PTRACE_SETHBPREGS.
22114 2018-02-10  Zack Weinberg  <zackw@panix.com>
22116         [BZ #22830]
22117         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
22118         correctly.
22119         * malloc/tst-malloc-stats-cancellation.c: New test case.
22120         * malloc/Makefile: Add new test case.
22122 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
22124         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
22126 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
22128         * math/Makefile (libm-narrow-fns): Add add.
22129         (libm-test-funcs-narrow): Likewise.
22130         * math/Versions (GLIBC_2.28): Add narrowing add functions.
22131         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
22132         * math/gen-auto-libm-tests.c (test_functions): Add add.
22133         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
22134         (NARROW_ADD_ROUND_TO_ODD): Likewise.
22135         (NARROW_ADD_TRIVIAL): Likewise.
22136         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
22137         macro.
22138         (__daddl): Likewise.
22139         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
22140         dadd.
22141         (CFLAGS-nldbl-dadd.c): New variable.
22142         (CFLAGS-nldbl-fadd.c): Likewise.
22143         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
22144         __nldbl_daddl.
22145         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
22146         prototype.
22147         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
22148         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
22149         * math/auto-libm-test-in: Add tests of add.
22150         * math/auto-libm-test-out-narrow-add: New generated file.
22151         * math/libm-test-narrow-add.inc: New file.
22152         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
22153         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
22154         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
22155         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
22156         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
22157         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
22158         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
22159         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
22160         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
22161         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
22162         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
22163         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
22164         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
22165         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
22166         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
22167         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
22168         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
22169         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
22170         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22171         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
22172         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22173         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22174         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22175         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22176         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22177         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22178         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22179         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22180         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22181         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22182         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22183         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
22185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
22186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
22187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
22188         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22189         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22190         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22191         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22192         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22193         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22194         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
22195         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
22196         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22197         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22199         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
22200         (f128-pairs): New variable.
22201         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
22202         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
22203         to CFLAGS.
22204         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
22205         Also make tests add $(f128-loader-link) to gnulib-tests.
22207 2018-02-09  DJ Delorie  <dj@redhat.com>
22209         [BZ #22827]
22210         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
22211         64-bit ELF type for 64-bit ELF objects.
22213 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
22215         * math/libm-test-driver.c (snan_tests_arg): New variable.
22216         * math/libm-test-support.h (snan_tests_arg): New declaration.
22217         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
22219         * math/Makefile (test-type-pairs): New variable.
22220         (test-type-pairs-f64xf128-yes): Likewise.
22221         (tests): Add test-narrow-macros.
22222         (libm-test-funcs-narrow): New variable.
22223         (libm-test-c-narrow): Likewise.
22224         (generated): Add $(libm-test-c-narrow).
22225         (libm-tests-base-narrow): New variable.
22226         (libm-tests-narrow): Likewise.
22227         (libm-tests): Add $(libm-tests-narrow).
22228         (libm-tests-for-type): Handle $(libm-tests-narrow).
22229         (libm-test-c-narrow-obj): New variable.
22230         ($(libm-test-c-narrow-obj)): New rule.
22231         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
22232         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
22233         $(o-iterator) to set dependencies and CFLAGS.
22234         * math/gen-auto-libm-tests.c: Document use for narrowing
22235         functions.
22236         (output_for_one_input_case): Take argument NARROW.
22237         (generate_output): Likewise.  Update call to
22238         output_for_one_input_case.
22239         (main): Take --narrow option.  Update call to generate_output.
22240         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
22241         (apply_lit): Update call to _apply_lit.
22242         (apply_arglit): New function.
22243         (parse_args): Handle "a" arguments.
22244         (parse_auto_input): Handle format names using ":".
22245         * math/README.libm-test: Document "a" parameter type.
22246         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
22247         (ARG_TYPE_TRUE_MIN): Likewise.
22248         (ARG_TYPE_MAX): Likwise.
22249         (ARG_MIN_EXP): Likewise.
22250         (ARG_MAX_EXP): Likewise.
22251         (ARG_MANT_DIG): Likewise.
22252         (TEST_COND_arg_ibm128): Likewise.
22253         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
22254         (TEST_COND_arg_fmt): New macro.
22255         (init_max_error): Update prototype.
22256         * math/libm-test-support.c (test_ibm128): New variable.
22257         (init_max_error): Take argument testing_ibm128 and set test_ibm128
22258         instead of using [TEST_COND_ibm128] conditional.
22259         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
22260         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
22261         [TEST_NARROW] (TEST_MSG): New definition.
22262         (arg_plus_zero): New macro.
22263         (arg_minus_zero): Likewise.
22264         (arg_plus_infty): Likewise.
22265         (arg_minus_infty): Likewise.
22266         (arg_qnan_value_pl): Likewise.
22267         (arg_qnan_value): Likewise.
22268         (arg_snan_value_pl): Likewise.
22269         (arg_snan_value): Likewise.
22270         (arg_max_value): Likewise.
22271         (arg_min_value): Likewise.
22272         (arg_min_subnorm_value): Likewise.
22273         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
22274         (RUN_TEST_LOOP_aa_f): New macro.
22275         (TEST_SUFF): New macro.
22276         (TEST_SUFF_STR): Likewise.
22277         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
22278         (TEST_COND_any_ibm128): New macro.
22279         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
22280         this_func.  Update call to init_max_error.
22281         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
22282         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
22283         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
22284         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
22285         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
22286         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
22287         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
22288         * math/test-math-scalar.h (TEST_NARROW): Likewise.
22289         * math/test-math-vector.h (TEST_NARROW): Likewise.
22290         * math/test-arg-double.h: New file.
22291         * math/test-arg-float128.h: Likewise.
22292         * math/test-arg-float32x.h: Likewise.
22293         * math/test-arg-float64.h: Likewise.
22294         * math/test-arg-float64x.h: Likewise.
22295         * math/test-arg-ldouble.h: Likewise.
22296         * math/test-math-narrow.h: Likewise.
22297         * math/test-narrow-macros.c: Likewise.
22298         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
22299         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
22300         test-narrow-macros-ldbl-64.
22301         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
22303         * math/bits/mathcalls-narrow.h: New file.
22304         * include/bits/mathcalls-narrow.h: Likewise.
22305         * math/math-narrow.h: Likewise.
22306         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
22307         (__MATHCALL_NARROW_ARGS_2): Likewise.
22308         (__MATHCALL_NARROW_ARGS_3): Likewise.
22309         (__MATHCALL_NARROW_NORMAL): Likewise.
22310         (__MATHCALL_NARROW_REDIR): Likewise.
22311         (__MATHCALL_NARROW): Likewise.
22312         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
22313         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
22314         defined.
22315         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22316         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
22317         (libm-narrow-fns): New variable.
22318         (libm-narrow-types-basic): Likewise.
22319         (libm-narrow-types-ldouble-yes): Likewise.
22320         (libm-narrow-types-float128-yes): Likewise.
22321         (libm-narrow-types-float128-alias-yes): Likewise.
22322         (libm-narrow-types): Likewise.
22323         (libm-routines): Add narrowing functions.
22324         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
22325         (libc_feholdexcept_setroundf128): New macro.
22326         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
22327         * sysdeps/ieee754/float128/float128_private.h: Include
22328         <math/math-narrow.h>.
22329         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
22330         Undefine and redefine.
22331         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
22332         (libm_alias_float_ldouble): Undefine and redefine.
22333         (libm_alias_double_ldouble): Likewise.
22335         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
22337 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
22339         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
22340         FPCR/FPSR.
22342 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
22344         * manual/creature.texi: Convert references to gcc.info to gcc.
22345         * manual/stdio.texi: Likewise.
22346         * manual/string.texi: Likewise.
22348 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
22350         [BZ #17979]
22351         * posix/bits/types.h (__int_least8_t): New typedef.
22352         (__uint_least8_t): Likewise.
22353         (__int_least16_t): Likewise.
22354         (__uint_least16_t): Likewise.
22355         (__int_least32_t): Likewise.
22356         (__uint_least32_t): Likewise.
22357         (__int_least64_t): Likewise.
22358         (__uint_least64_t): Likewise.
22359         * sysdeps/generic/stdint.h (int_least8_t): Define using
22360         __int_least8_t.
22361         (int_least16_t): Define using __int_least16_t.
22362         (int_least32_t): Define using __int_least32_t.
22363         (int_least64_t): Define using __int_least64_t.
22364         (uint_least8_t): Define using __uint_least8_t.
22365         (uint_least16_t): Define using __uint_least16_t.
22366         (uint_least32_t): Define using __uint_least32_t.
22367         (uint_least64_t): Define using __uint_least64_t.
22368         * wcsmbs/uchar.h: Include <bits/types.h>.
22369         (char16_t): Define using __uint_least16_t conditional only on
22370         [!__USE_ISOCXX11].
22371         (char32_t): Define using __uint_least32_t conditional only on
22372         [!__USE_ISOCXX11].
22373         * wcsmbs/test-char-types.c: New file.
22374         * wcsmbs/Makefile (tests): Add test-char-types.
22376         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
22377         version to 4.0.1.
22379 2018-02-07  Zack Weinberg  <zackw@panix.com>
22381         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
22382         Delete all contents except for definitions of _G_HAVE_MMAP and
22383         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
22384         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
22385         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
22386         change as above.
22388         * libio/libio.h: Don't include bits/_G_config.h here.
22389         Include stddef.h with __need_wchar_t defined.  Include
22390         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
22391         Define _IO_iconv_t here, directly.
22392         Don't define _IO_HAVE_ST_BLKSIZE.
22393         * libio/libioP.h: Include _G_config.h here.  Move include of
22394         shlib-compat.h up with rest of includes.  Simplify conditionals
22395         controlling definition of _IO_JUMPS_OFFSET.
22397         * csu/init.c: Remove always-true #if around entire file.
22398         Don't include stdio.h.  Set _IO_stdin_used to hardwired
22399         constant 0x20001, and update commentary.
22400         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
22401         Replace all uses of _G_va_list with __gnuc_va_list.
22402         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
22403         instead of #if _IO_HAVE_ST_BLKSIZE.
22404         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
22405         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
22406         not #ifdef.
22408         * libio/bits/libio.h: Move back to libio/libio.h and adjust
22409         multiple-include guard to match.
22410         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
22411         into this file.
22412         Remove preprocessor conditionals that are always true and/or
22413         redundant to other preprocessor conditionals in the same nest.
22414         Include shlib-compat.h unconditionally.
22415         Error out if _LIBC is not defined, or if _ISOMAC is defined,
22416         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
22417         defined after including stdio.h.
22418         Use __BEGIN_DECLS/__END_DECLS.
22420         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
22421         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
22422         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
22424 2018-02-07  Zack Weinberg  <zackw@panix.com>
22426         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
22427         New single-type headers split from _G_config.h.
22428         * libio/bits/types/cookie_io_functions_t.h
22429         * libio/bits/types/struct_FILE.h
22430         New single-type headers split from libio.h.
22432         * libio/Makefile: Install the above new headers.  Don't install
22433         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
22434         bits/libio-ldbl.h.
22435         * libio/_G_config.h, libio/libio.h: Delete file.
22437         * libio/bits/libio.h: Remove improper-inclusion guard.
22438         Include stdio.h and don't repeat anything that it does.
22439         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
22440         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
22441         __io_read_fn as cookie_read_function_t,
22442         __io_write_fn as cookie_write_function_t,
22443         __io_seek_fn as cookie_seek_function_t,
22444         __io_close_fn as cookie_close_function_t,
22445         and _IO_cookie_io_functions_t as cookie_io_functions_t.
22446         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
22447         here, in the "compatibility defines" section.  Remove an #if 0
22448         block.  Use the "body" macros from bits/types/struct_FILE.h to
22449         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
22450         and _IO_ferror_unlocked.
22451         Move prototypes of __uflow and __overflow...
22453         * libio/stdio.h: ...here.  Don't include bits/libio.h.
22454         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
22455         directly from stdarg.h.  Include bits/types/__fpos_t.h,
22456         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
22457         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
22458         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
22459         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
22460         cookie_io_functions_t, not _IO_cookie_io_functions_t;
22461         __ssize_t, not _IO_ssize_t.  Unconditionally define
22462         BUFSIZ as 8192 and EOF as (-1).
22464         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
22465         macros from bits/types/struct_FILE.h instead of _IO_* macros
22466         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
22467         instead of _IO_ssize_t.
22468         * libio/bits/stdio2.h: Similarly.
22470         * libio/iolibio.h: Add multiple-include guard.
22471         Include bits/libio.h after stdio.h.
22472         * libio/libioP.h: Add multiple-include guard.
22473         Include stdio.h and bits/libio.h before iolibio.h.
22475         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
22476         * include/bits/types/cookie_io_functions_t.h
22477         * include/bits/types/struct_FILE.h: New wrappers.
22479         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
22480         Get definitions of _G_fpos_t and _G_fpos64_t from
22481         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
22482         respectively.  Remove improper-inclusion guards.
22484         * conform/data/stdio.h-data: Update expectations of va_list.
22485         * scripts/check-installed-headers.sh: Remove special case for
22486         libio.h and _G_config.h.
22488 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
22490         [BZ #15105]
22491         [BZ #19463]
22492         * include/sys/sysmacros.h [!_ISOMAC]
22493         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
22494         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
22495         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
22496         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
22497         libc_hidden_proto.
22498         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
22499         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
22500         Likewise.
22501         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
22502         Undefine and redefine to add use __gnu_dev_ prefix.
22503         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
22504         Likewise.
22505         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
22506         and define as hidden inline function.
22507         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
22508         Likewise.
22509         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
22510         Likewise.
22511         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
22512         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
22513         (gnu_dev_minor): Likewise.
22514         (gnu_dev_makedev): Likewise.
22515         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
22516         makedev.
22517         * posix/wordexp.c (exec_comm_child): Likewise.
22518         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
22519         instead of minor and __gnu_dev_major instead of major.
22520         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
22521         __gnu_dev_major instead of major.
22522         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
22523         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
22524         instead of gnu_dev_minor.
22525         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
22526         (SLAVE_P): Likewise.
22527         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
22528         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
22529         instead of major.
22531         [BZ #21313]
22532         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
22533         in another place.
22534         * locale/weightwc.h (findidx): Likewise.
22536 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
22538         * manual/probes.texi (slowlog): Delete documentation of removed probe.
22539         (slowlog_inexact): Likewise
22540         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
22541         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
22543 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
22545         [BZ #22797]
22546         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
22547         missing second underscore to parameter name.
22549 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
22551         [BZ #14508]
22552         [BZ #15512]
22553         [BZ #17082]
22554         [BZ #20530]
22555         * bits/byteswap.h: Update file comment.  Do not include
22556         <bits/byteswap-16.h>.
22557         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
22558         constant.
22559         (__bswap_16): Define as inline function.
22560         (__bswap_constant_32): Reformat definition.
22561         (__bswap_32): Always define as inline function, not macro, using
22562         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
22563         otherwise __bswap_constant_32.
22564         (__bswap_constant_64): Reformat definition.  Do not use
22565         __extension__ here.
22566         (__bswap_64): Always define as inline function, not macro.  Use
22567         __extension__ on function definition.  Use __builtin_bswap64 if
22568         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
22569         * string/test-endian-file-scope.c: New file.
22570         * string/test-endian-sign-conversion.c: Likewise.
22571         * string/Makefile (headers): Remove bits/byteswap-16.h.
22572         (tests): Add test-endian-file-scope and
22573         test-endian-sign-conversion.
22574         (CFLAGS-test-endian-sign-conversion.c): New variable.
22575         * bits/byteswap-16.h: Remove file.
22576         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
22577         * sysdeps/ia64/bits/byteswap.h: Likewise.
22578         * sysdeps/m68k/bits/byteswap.h: Likewise.
22579         * sysdeps/s390/bits/byteswap-16.h: Likewise.
22580         * sysdeps/s390/bits/byteswap.h: Likewise.
22581         * sysdeps/tile/bits/byteswap.h: Likewise.
22582         * sysdeps/x86/bits/byteswap-16.h: Likewise.
22583         * sysdeps/x86/bits/byteswap.h: Likewise.
22585         [BZ #17721]
22586         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
22587         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
22588         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
22589         199901L] (__restrict): Define to restrict.
22591         [BZ #19667]
22592         * string/testcopy.c: Include <support/support.h>.  Do not include
22593         <malloc.h>.  Use <support/test-driver.c>.
22594         (main): Rename to do_test.  Make static.  Use xmalloc instead of
22595         malloc.
22597         [BZ #13575]
22598         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
22599         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
22600         (SSIZE_MAX): Define to INT_MAX.
22601         * posix/test-ssize-max.c: New file.
22602         * posix/Makefile (tests): Add test-ssize-max.
22604         [BZ #19668]
22605         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
22606         <support/support.h>.  Do not include <malloc.h>.
22607         (query_auxv): Use xmalloc instead of malloc.
22609         [BZ #14553]
22610         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
22611         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
22612         instead of loff_t.
22614 2018-02-06  Florian Weimer  <fweimer@redhat.com>
22616         [BZ #18023]
22617         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22618         Use scratch_buffer instead of extend_alloca.
22620 2018-02-06  Zack Weinberg  <zackw@panix.com>
22622         * libio/stdio.h: Don't define getc or putc as macros.
22623         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
22624         not _IO_getc and _IO_putc.
22626         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
22627         * stdio-common/tstgetln.c: Don't redefine ssize_t.
22629 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
22631         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
22632         (TCP_FASTOPEN_NO_COOKIE): Likewise.
22634         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
22636         [BZ #14890]
22637         * elf/elf.h (NT_PRFPREG): New macro.
22638         (NT_S390_VXRS_LOW): Likewise.
22639         (NT_S390_VXRS_HIGH): Likewise.
22640         (NT_S390_GS_CB): Likewise.
22641         (NT_S390_GS_BC): Likewise.
22642         (NT_S390_RI_CB): Likewise.
22644         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
22645         (MAP_SYNC): New macro.
22646         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
22647         Likewise.
22648         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
22649         (MAP_SYNC): Likewise.
22650         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
22651         (MAP_SYNC): Likewise.
22652         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
22653         (MAP_SYNC): Likewise.
22654         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
22655         (MAP_SYNC): Likewise.
22656         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
22657         (MAP_SYNC): Likewise.
22658         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
22659         (MAP_SYNC): Likewise.
22660         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
22661         Likewise.
22662         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
22663         Likewise.
22665         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
22666         (MAP_SHARED_VALIDATE): New macro.
22667         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
22668         (MAP_SHARED_VALIDATE): Likewise.
22670 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
22672         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
22673         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
22674         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
22676 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
22678         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
22679         (DT_NUM): Updated to 35.
22681 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
22683         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
22684         __builtin_expect with __glibc_likely and __glibc_unlikely.
22685         (elf_machine_rela): Likewise.
22686         (elf_machine_lazy_rel): Likewise.
22688 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
22690         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
22691         __builtin_expect with __glibc_likely and __glibc_unlikely.
22692         (elf_machine_lazy_rel): Likewise.
22694 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
22696         [BZ #22638]
22697         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
22698         SHARED.
22699         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
22701 2018-02-05  Andreas Schwab  <schwab@suse.de>
22703         [BZ #22761]
22704         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
22705         string.
22707 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22709         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
22710         not check against PTHREAD_STACK_MIN.
22712 2018-02-02  Sean McKean  <smckean83@gmail.com>
22714         [BZ #22735]
22715         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
22717 2018-02-02  Florian Weimer  <fweimer@redhat.com>
22719         [BZ #22753]
22720         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
22721         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
22722         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
22723         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
22724         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
22725         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
22726         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
22727         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
22728         * manual/llio.texi (Scatter-Gather): Mention offset -1.
22729         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
22730         * misc/tst-preadvwritev2.c (do_test): Call it.
22731         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
22733 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
22735         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
22737         * benchtests/bench-memcmp.c: Print json instead of plain text.
22739         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
22740         every test run.
22742 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
22744         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22745         version to 4.15.
22746         (s390_sthyi): New syscall.
22748         * sysdeps/generic/ldbl-classify-compat.h: New file.
22749         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
22750         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
22751         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
22752         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
22753         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
22754         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
22755         * sysdeps/ieee754/dbl-64/s_finite.c: Include
22756         <ldbl-classify-compat.h>.
22757         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22758         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
22759         <ldbl-classify-compat.h>.
22760         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22761         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
22762         <ldbl-classify-compat.h>.
22763         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22764         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
22765         <ldbl-classify-compat.h>.
22766         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22767         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
22768         <ldbl-classify-compat.h>.
22769         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22770         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
22771         <ldbl-classify-compat.h>.
22772         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22773         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
22774         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
22775         * sysdeps/m68k/coldfire/math_private.h: Remove file.
22776         * sysdeps/microblaze/math_private.h: Likewise.
22777         * sysdeps/nios2/math_private.h: Likewise.
22778         * sysdeps/sh/math_private.h: Likewise.
22780         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
22781         * sysdeps/m68k/coldfire/math_private.h: ... here.
22782         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
22783         * sysdeps/tile/math_private.h: Likewise.
22784         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
22785         Remove macro.
22786         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
22787         Likewise.
22789         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
22790         Remove macro.
22791         (libc_fetestexcept): Likewise.
22792         (libc_feupdateenv_test): Likewise.
22793         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
22794         (libc_fetestexcept): Likewise.
22795         (libc_feupdateenv_test): Likewise.
22796         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
22797         (libc_fetestexcept): Likewise.
22798         (libc_feupdateenv_test): Likewise.
22799         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
22800         (libc_fetestexcept): Likewise.
22801         (libc_feupdateenv_test): Likewise.
22803         * sysdeps/generic/math_private.h
22804         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
22805         New inline function.
22806         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
22807         Likewise.
22809         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
22810         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
22811         * sysdeps/generic/math_private.h
22812         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
22813         inline function.
22814         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
22815         Likewise.
22816         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
22817         Likewise.
22818         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
22819         Likewise.
22820         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
22821         Likewise.
22822         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
22823         Likewise.
22824         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
22825         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
22826         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
22827         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
22828         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
22829         (__fegetenv): Likewise.
22830         (fesetenv): Likewise.
22831         (__fesetenv): Likewise.
22832         (feupdateenv): Likewise.
22833         (__feupdateenv): Likewise.
22834         (fegetround): Likewise.
22835         (__fegetround): Likewise.
22836         (fesetround): Likewise.
22837         (__fesetround): Likewise.
22839         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
22840         (feraiseexcept): New macro.
22841         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
22842         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
22843         Remove macro.
22844         (__feraiseexcept): Likewise.
22845         (feclearexcept): Likewise.
22846         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
22847         (__feraiseexcept): Likewise.
22848         (feclearexcept): Likewise.
22849         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
22850         (__feraiseexcept): Likewise.
22851         (feclearexcept): Likewise.
22852         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
22853         (__feraiseexcept): Likewise.
22854         (feclearexcept): Likewise.
22855         (fetestexcept): Likewise.
22857         * sysdeps/m68k/coldfire/math-tests.h: New file.
22859         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
22860         * sysdeps/m68k/bits/fenv.h: ... here.
22861         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
22862         not define.
22863         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
22864         Likewise.
22865         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
22866         Likewise.
22867         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
22868         Likewise.
22869         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
22870         Likewise.
22871         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
22872         Define to 0.
22873         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
22874         (__FE_UNDEFINED): New enum constant.
22875         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
22876         Do not define.
22877         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
22878         Likewise.
22879         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
22880         Likewise.
22881         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
22882         to match generic bits/fenv.h.
22883         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
22884         Do not define.
22886         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
22887         packed on bits.
22888         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
22889         * soft-fp/half.h (union _FP_UNION_H): Likewise.
22890         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
22891         * soft-fp/single.h (union _FP_UNION_S): Likewise.
22893 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
22894             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
22895             Joseph Myers  <joseph@codesourcery.com>
22897         [BZ #21314]
22898         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
22899         (__log1p): Disable -Wmaybe-uninitialized for -Os around
22900         computation using c.
22901         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
22902         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
22903         computation using c.
22905 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
22907         * version.h (RELEASE): Set to "development".
22908         (VERSION): Set to "2.27.9000".
22909         * NEWS (2.28): New section.
22911         * version.h (RELEASE): Set to "stable".
22912         (VERSION): Set to "2.27".
22913         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
22915         * NEWS: Add the list of bugs fixed in 2.27.
22917 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22919         * stdlib/test-atexit-race-common.c (do_test): Check stack size
22920         against PTHREAD_STACK_MIN.
22922 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
22924         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22925         New entries.
22926         (RafaƂ LuĆŒyƄski, Andreas Schwab): Update.
22928 2018-02-01  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
22930         [BZ #10871]
22931         * NEWS: List the languages which actually use the alternative
22932         months feature in this release.  Also explain that "alt_mon" and
22933         "ab_alt_mon" are optional.
22935 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
22937         [BZ #22765]
22938         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22940 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
22942         * manual/install.texi (Tools for Compilation): Update the newest
22943         versions of gcc, binutils, texinfo, gawk, bison, and sed.
22944         * INSTALL: Regenerated.
22946 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22948         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22949         instead of __builtin_expect.
22951 2018-01-30  Florian Weimer  <fweimer@redhat.com>
22953         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22954         data.
22955         * nss/tst-nss-getpwent.c (do_test): Likewise.
22957 2018-01-30  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
22959         [BZ #10871]
22960         * localedata/locales/hr_HR (mon): Rename to...
22961         (alt_mon): This.
22962         (mon): Import from CLDR (genitive case).
22963         (d_t_fmt): Update the comment.
22965 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
22967         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22968         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22969         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22971 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22973         * mach/Versions: Fix version when __mach_host_self_ was added.
22974         * hurd/Versions: Fix version when _hurd_exec_paths was added.
22975         * sysdeps/mach/hurd/i386/ld.abilist: New file.
22976         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22977         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22978         * sysdeps/mach/hurd/i386/libc.abilist: New file.
22979         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22980         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22981         * sysdeps/mach/hurd/i386/libm.abilist: New file.
22982         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22983         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22984         * sysdeps/mach/hurd/i386/librt.abilist: New file.
22985         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
22986         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22987         || to respect codestyle.
22988         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22989         (do_test_bz20181): Rename accordingly.
22990         * malloc/malloc.c: Include <assert.h>.
22991         (assert): Do not define.
22992         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
22993         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22994         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
22995         * sysdeps/mach/hurd/hp-timing.h: New file.
22996         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
22998 2018-01-29  Darius Rad  <darius@bluespec.com>
23000         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
23002 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
23004         * sysdeps/init_array/crti.S (.section .init_array): Add
23005         PREINIT_FUNCTION when defined.
23006         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
23007         * config.h.in: Regenerate.
23008         * manual/platform.texi: Add RISC-V documenation for
23009         __riscv_flush_icache.
23010         * sysdeps/riscv/__longjmp.S: New file.
23011         * sysdeps/riscv/backtrace.c: Likewise.
23012         * sysdeps/riscv/bits/endian.h: Likewise.
23013         * sysdeps/riscv/bits/setjmp.h: Likewise.
23014         * sysdeps/riscv/bits/wordsize.h: Likewise.
23015         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
23016         * sysdeps/riscv/bsd-setjmp.c: Likewise.
23017         * sysdeps/riscv/dl-trampoline.S: Likewise.
23018         * sysdeps/riscv/gccframe.h: Likewise.
23019         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
23020         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
23021         * sysdeps/riscv/machine-gmon.h: Likewise.
23022         * sysdeps/riscv/memusage.h: Likewise.
23023         * sysdeps/riscv/setjmp.S: Likewise.
23024         * sysdeps/riscv/sys/asm.h: Likewise.
23025         * sysdeps/riscv/tls-macros.h: Likewise.
23026         * sysdeps/riscv/dl-tls.h: New file.
23027         * sysdeps/riscv/libc-tls.c: Likewise.
23028         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
23029         * sysdeps/riscv/nptl/tls.h: Likewise.
23030         * sysdeps/riscv/stackinfo.h: Likewise.
23031         * sysdeps/riscv/bits/fenv.h: New file.
23032         * sysdeps/riscv/e_sqrtl.c: Likewise.
23033         * sysdeps/riscv/fpu_control.h: Likewise.
23034         * sysdeps/riscv/math-tests.h: Likewise.
23035         * sysdeps/riscv/nofpu/Implies: Likewise.
23036         * sysdeps/riscv/sfp-machine.h: Likewise.
23037         * sysdeps/riscv/tininess.h: Likewise.
23038         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
23039         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
23040         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
23041         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
23042         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
23043         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
23044         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
23045         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
23046         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
23047         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
23048         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
23049         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
23050         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
23051         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
23052         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
23053         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
23054         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
23055         * sysdeps/riscv/rvd/s_finite.c: Likewise.
23056         * sysdeps/riscv/rvd/s_fma.c: Likewise.
23057         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
23058         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
23059         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
23060         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
23061         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
23062         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
23063         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
23064         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
23065         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
23066         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
23067         * sysdeps/riscv/rvf/fegetround.c: Likewise.
23068         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
23069         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
23070         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
23071         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
23072         * sysdeps/riscv/rvf/fesetround.c: Likewise.
23073         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
23074         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
23075         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
23076         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
23077         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
23078         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
23079         * sysdeps/riscv/rvf/math_private.h: Likewise.
23080         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
23081         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
23082         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
23083         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
23084         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
23085         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
23086         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
23087         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
23088         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
23089         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
23090         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
23091         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
23092         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
23093         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
23094         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
23095         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
23096         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
23097         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
23098         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
23099         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
23100         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
23101         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
23102         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
23103         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
23104         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
23105         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
23106         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
23107         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
23108         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
23109         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
23110         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
23111         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
23112         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
23113         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
23114         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
23115         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
23116         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
23117         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
23118         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
23119         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
23120         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
23121         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
23122         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
23123         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
23124         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
23125         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
23126         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
23127         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
23128         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
23129         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
23130         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
23131         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
23132         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
23133         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
23134         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
23135         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
23136         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
23137         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
23138         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
23139         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
23140         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
23141         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
23142         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
23143         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
23144         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
23145         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
23146         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
23147         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
23148         * sysdeps/riscv/Implies: New file.
23149         * sysdeps/riscv/Makefile: Likewise.
23150         * sysdeps/riscv/configure: Likewise.
23151         * sysdeps/riscv/configure.ac: Likewise.
23152         * sysdeps/riscv/nptl/Makefile: Likewise.
23153         * sysdeps/riscv/preconfigure: Likewise.
23154         * sysdeps/riscv/rv64/Implies-after: Likewise.
23155         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
23156         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
23157         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
23158         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
23159         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
23160         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
23161         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
23162         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
23163         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
23164         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
23165         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
23166         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
23167         (Config): Likewise.
23169 2018-01-29  Florian Weimer  <fweimer@redhat.com>
23171         [BZ #22701]
23172         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
23173         libnsl_hidden_proto.
23174         * include/rpcsvc/yp.h (yp_xdrall): Declare with
23175         libnsl_hidden_proto.
23176         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
23177         * nis/Makefile (libnsl-routines): Add nss-default only for
23178         build-obsolete-nsl.
23179         * nis/nis_defaults.c (__nis_default_ttl): Add
23180         libnsl_hidden_nolink_def.
23181         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
23182         declaration.
23183         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
23184         * nis/ypclnt.c (yp_maplist): Likewise.
23186 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
23188         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
23189         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
23191 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
23193         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
23194         clean -dxfq for git updates when replacing sources.
23196         * scripts/build-many-glibcs.py (Config.build_gcc): Use
23197         --disable-libcilkrts unconditionally, not just for the final GCC
23198         build for Hurd.
23200         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
23201         version to 4.15.
23203 2018-01-29  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
23205         [BZ #10871]
23206         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
23207         case).
23209 2018-01-29  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
23211         [BZ #10871]
23212         * localedata/locales/be_BY (mon): Rename to...
23213         (alt_mon): This, then synchronize with CLDR (nominative case).
23214         (abmon): Rename to...
23215         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
23216         (mon): Import from CLDR (genitive case).
23217         (abmon): Likewise.
23218         * localedata/locales/be_BY@latin (mon): Rename to...
23219         (alt_mon): This.
23220         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
23222         * localedata/locales/be_BY@latin (lang_name): Reworded to
23223         "bieƂaruskaja mova".
23225 2018-01-29  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
23227         [BZ #10871]
23228         * localedata/locales/el_CY (mon): Renamed to...
23229         (alt_mon): This.
23230         (mon): Import from CLDR (genitive case).
23231         * localedata/locales/el_GR: Likewise.
23233 2018-01-29  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
23235         [BZ #10871]
23236         * localedata/locales/ru_RU (mon): Rename to...
23237         (alt_mon): This.
23238         (abmon): Rename to...
23239         (ab_alt_mon): This.
23240         (mon): Import from CLDR (genitive case).
23241         (abmon): Copy from the old content except the 5th month which is
23242         now in the genitive case, even when abbreviated.
23243         * localedata/locales/ru_UA: Likewise.
23244         * time/tst-strptime.c (day_tests): Add an actual example of
23245         a difference between %b and %Ob in Russian.
23247 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23249         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
23250         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
23251         a `c' variable.
23252         * resolv/res-close.c: Include <stdlib.h>.
23253         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
23254         <sys/wait.h>, <time.h>, <sys/uio.h>.
23255         (NOT_CANCEL_H): Add inclusion guard.
23256         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
23257         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
23258         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
23259         return 0.
23260         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
23261         vm_address_t * to ElfW(Addr) * for dl_main parameter.
23262         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
23263         instead of void *.
23264         * sysdeps/pthread/timer_create.c (timer_create): Do not use
23265         timer_ptr2id to cast struct timer_node * to void *.
23266         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
23267         --disable-libcilkrts to gcc configure.
23268         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
23269         and make them the default for now.
23270         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
23271         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
23272         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
23273         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
23274         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
23275         MACH_IPC_COMPAT.
23276         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
23277         __task_terminate would ever return successfully.
23278         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
23279         to global scope.
23280         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
23281         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
23282         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
23283         critical section to make code simpler and avoid warning.
23284         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
23285         critical section to make code simpler and avoid warning.
23286         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
23287         const char * instead of char *.
23288         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
23289         __hurd_file_name_split, hurd_file_name_split,
23290         __hurd_directory_name_split, hurd_directory_name_split,
23291         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
23292         hurd_file_name_path_lookup): Make lookup function parameter take a
23293         const char *name instead of char *name.
23294         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
23295         __hurd_directory_name_split): Likewise.
23296         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
23297         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
23298         * sysdeps/mach/hurd/check_native.c: New file.
23299         * sysdeps/mach/hurd/check_pf.c: New file.
23300         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
23301         (__freeifaddrs): Define macro to freeifaddrs.
23302         * sysdeps/mach/hurd/libhurduser.abilist: New file.
23303         * sysdeps/mach/libmachuser.abilist: New file.
23304         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
23305         (do_test_bz20181): Rename accordingly.
23306         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
23307         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
23308         <sys/mount.h>.
23309         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
23310         version only if __USE_EXTERN_INLINES is defined.
23311         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
23312         __hurd_sockfail): Likewise.
23313         (_hurd_fd_get): Always declare functions, and provide inline versions
23314         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
23315         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
23316         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
23317         _hurd_port_set): Always declare functions, and provide inline versions
23318         only if __USE_EXTERN_INLINES and _LIBC are defined and
23319         IS_IN(libc).
23320         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
23321         _hurd_critical_section_unlock): Likewise.
23322         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
23323         * __hurd_threadvar_location): Likewise.
23324         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
23325         _hurd_userlink_clear): Likewise.
23326         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
23327         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
23328         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
23329         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
23330         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
23331         __spin_lock_locked): Likewise.
23332         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
23333         __spin_lock_locked): Likewise.
23334         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
23335         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
23336         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
23337         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
23338         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
23339         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
23340         _POSIX_NO_TRUNC): Define to 0.
23341         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
23342         check size against PTHREAD_STACK_MIN.
23343         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
23344         IS_IN(libpthread)]: Include <sigsetops.h>.
23345         * mach/Makefile (user-interfaces): Add mach/gnumach.
23346         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
23347         * sysdeps/mach/configure (mach_interface_list): Regenerate.
23348         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
23349         instead of invalid -1.
23350         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
23351         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
23352         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
23353         <net/ppp_defs.h>.
23355 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
23357         * hurd/fcntl-internal.h: New file.
23359 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
23361         * sysdeps/hppa/fpu/libm-test-ulps: Update.
23363         * sysdeps/alpha/fpu/libm-test-ulps: Update.
23365 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
23367         [BZ #22701]
23368         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
23369         Build only shared objects.
23371 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
23373         * README: Update for hppa.
23375 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
23377         * sysdeps/sparc/fpu/libm-test-ulps: Update
23378         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
23380 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
23382         Revert:
23384         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23386         [BZ #22563]
23387         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23388         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23389         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23390         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23391         to feature_1.
23393         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23395         [BZ #22563]
23396         * bits/types/__cancel_jmp_buf_tag.h: New file.
23397         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23398         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23399         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23400         * nptl/Makefile (headers): Add
23401         bits/types/__cancel_jmp_buf_tag.h.
23402         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23403         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23404         * sysdeps/nptl/pthread.h: Include
23405         <bits/types/__cancel_jmp_buf_tag.h>.
23406         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23407         __cancel_jmp_buf.
23408         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23410 2018-01-25  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
23412         [BZ #10871]
23413         * localedata/locales/uk_UA (mon): Renamed to...
23414         (alt_mon): This.
23415         (alt_digits): "0" removed and then renamed to...
23416         (mon): This.
23417         (date_fmt): Definition changed not to use the alternative
23418         digits hack.
23420 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
23422         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
23423         FLAG_RISCV_FLOAT_ABI_DOUBLE.
23424         * elf/elf.h (EF_RISCV_RVC): New define.
23425         (EF_RISCV_FLOAT_ABI): Likewise.
23426         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
23427         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
23428         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
23429         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
23430         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
23431         define.
23432         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
23434 2018-01-25  Andreas Schwab  <schwab@suse.de>
23436         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
23437         single quotes.
23438         * sysdeps/gnu/configure: Regenerate.
23439         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
23440         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
23441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
23442         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
23443         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
23444         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
23445         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
23446         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
23448 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23450         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
23451         URL, and run autoconf, make it the default for now.
23453 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
23455         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23456         soft-float ColdFire configuration.
23458         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
23459         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
23460         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
23462         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
23463         MicroBlaze file.
23465         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
23466         ....
23467         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
23468         ... here.
23469         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
23470         New file.
23472         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
23473         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
23474         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
23475         file.
23477 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23479         [BZ #22742]
23480         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
23481         Rename to __reserved and add comment.
23482         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
23483         Rename to __reserved.
23485 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
23487         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23488         i686-gnu configurations.
23489         (Context.run_builds): Include mig, gnumach and hurd in components
23490         considered.
23491         (Context.checkout): Add mig, gnumach and hurd to components.
23492         (Context.checkout_tar): Add URL mappings for mig, gnumach and
23493         hurd.
23494         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
23495         (Config.build): Install gnumach headers, build mig and install
23496         hurd headers for 'gnu' OS.
23497         (Config.install_gnumach_headers): New function.
23498         (Config.install_hurd_headers): Likewise.
23499         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
23500         when building for 'gnu' OS.
23502 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
23504         * manual/tunables.texi (Hardware Capability Tunables): Fix
23505         spelling.
23507 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
23509         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
23510         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
23511         (ALTMON_11, ALTMON_12): Improve documentation.
23512         * manual/time.texi (strftime): Likewise.
23514 2018-01-22  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
23516         [BZ #10871]
23517         * localedata/locales/pl_PL: Alternative month names added,
23518         primary month names are genitive now.
23519         * time/tst-strptime.c (day_tests): Actually use a genitive case
23520         of a month name in Polish language.
23522 2018-01-22  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
23524         [BZ #10871]
23525         * manual/locale.texi: Document ALTMON_1..12 constants for
23526         nl_langinfo.  Specify when to use ALTMON instead of MON.
23527         * manual/time.texi (strftime, strptime): Document GNU extension
23528         permitting O modifier with %B and %b.  Specify when to use
23529         %OB instead of %B.
23531 2018-01-22  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
23533         [BZ #10871]
23534         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
23535         names, define them as the same as abbreviated month names explicitly.
23536         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
23537         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
23538         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
23539         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
23540         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
23541         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
23542         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
23543         _NL_WABALTMON_12): New enum constants.
23544         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
23545         wab_alt_mon, and ab_alt_mon_defined members.
23546         (time_output): Output ab_alt_mon and wab_alt_mon members.
23547         (time_read): Read them, initialize them as copies of abmon and wabmon
23548         respectively if they are missing, initialize ab_alt_mon_defined.
23549         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
23550         * locale/programs/locfile-kw.h: Regenerate.
23551         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
23552         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
23553         and ru_RU.UTF-8.
23554         * time/strftime_l.c (a_altmonth, aam_len): New macros.
23555         [!COMPILE_WIDE] (ABALTMON_1): New macro.
23556         (__strftime_internal): Handle %Ob and %Oh formats.
23557         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
23558         (__strptime_internal): Handle %Ob and %Oh formats.
23559         * time/tst-strptime.c (day_tests): Add more tests to parse different
23560         forms of month names including the new %Ob format specifier.
23562 2018-01-22  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
23564         [BZ #10871]
23565         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
23566         define them as the same as primary full month names explicitly.
23567         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
23568         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
23569         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
23570         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
23571         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
23572         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
23573         _NL_WALTMON_12): New enum constants.
23574         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
23575         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
23576         macros.
23577         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
23578         walt_mon, and alt_mon_defined members.
23579         (time_output): Output alt_mon and walt_mon members.
23580         (time_read): Read them, initialize them as copies of mon and wmon
23581         respectively if they are missing, initialize alt_mon_defined.
23582         * locale/programs/locfile-kw.gperf (alt_mon): Define.
23583         * locale/programs/locfile-kw.h: Regenerate.
23584         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
23585         * localedata/tst-langinfo.c (map): Add tests for the new constants
23586         ALTMON_1 .. ALTMON_12.
23587         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
23588         and pl_PL.UTF-8.
23589         * time/strftime_l.c (f_altmonth): New macro.
23590         (__strftime_internal): Handle %OB format.
23591         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
23592         (__strptime_internal): Handle %OB format.
23593         * time/tst-strptime.c (day_tests): Add tests to parse different forms
23594         of month names including the new %OB format specifier.
23596 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23598         [BZ #22685]
23599         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
23600         from ABORT_TRANSACTION.
23601         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
23602         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
23603         ABORT_TRANSACTION_IMPL): Likewise.
23604         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
23605         Linux code, but remove the code that aborts transactions.
23607 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23609         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
23611 2018-01-19  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
23613         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
23614         in date: "2004-14-09" should be "2004-09-14".
23615         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
23616         "2003-15-09" should be "2003-09-15".
23618 2018-01-18  Arjun Shankar  <arjun@redhat.com>
23620         [BZ #22343]
23621         [BZ #22774]
23622         CVE-2018-6485
23623         CVE-2018-6551
23624         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
23625         after padding.
23626         (_int_memalign): check for integer overflow before calling
23627         _int_malloc.
23628         * malloc/tst-malloc-too-large.c: New test.
23629         * malloc/Makefile: Add tst-malloc-too-large.
23631 2018-01-18  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
23633         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
23634         in date: "2017-24-07" should be "2017-07-24".
23635         * localedata/locales/mai_IN: Likewise.
23636         * localedata/locales/mai_NP: Likewise.
23638 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
23640         * po/ru.po: Update translations.
23642 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
23644         [BZ #22719]
23645         * sysdeps/hppa/backtrace.c: New file.
23647 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
23649         [BZ #22715]
23650         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
23651         align La_x86_64_retval to VEC_SIZE.
23653 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
23655         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
23656         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
23658 2018-01-16  Florian Weimer  <fweimer@redhat.com>
23660         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
23661         Move tst-thread-exit-clobber ...
23662         [$(CXX)] (tests-unsupported): ... to here.
23664 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23666         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
23667         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
23668         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
23669         (_dl_aarch64_cap_flags): Update.
23670         (_DL_HWCAP_COUNT): Update.
23672 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23674         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
23675         (_DL_HWCAP_LAST): Remove.
23676         (_DL_HWCAP_COUNT): Move to ...
23677         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
23678         (_DL_HWCAP_COUNT): ... here.
23680 2018-01-16  Florian Weimer  <fweimer@redhat.com>
23682         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
23683         mode with GNU extensions.
23685 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
23687         * elf/elf.h (NT_ARM_SVE): Define.
23689 2018-01-15  Florian Weimer  <fweimer@redhat.com>
23691         [BZ #22636]
23692         * nptl/tst-minstack-throw.cc: New file.
23693         * nptl/Makefile (tests): Add tst-minstack-throw.
23694         (LDLIBS-tst-minstack-throw): Link with libstdc++.
23695         [!CXX] (tests-unsupported): Add tst-minstack-throw.
23697 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
23699         * scripts/build-many-glibcs.py (Context.checkout): Default
23700         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
23701         version to 1.1.0.
23703 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
23705         [BZ #22707]
23706         * elf/elf.h (DF_1_STUB): Define.
23707         (DF_1_PIE): Define.
23709 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23711         [BZ #22697]
23712         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
23713         Do not add 0.5 to integer or out-of-range arguments.
23715 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
23717         * po/bg.po: Update translations.
23718         * po/cs.po: Likewise.
23719         * po/de.po: Likewise.
23720         * po/ko.po: Likewise.
23721         * po/pl.po: Likewise.
23722         * po/sv.po: Likewise.
23723         * po/uk.po: Likewise.
23724         * po/vi.po: Likewise.
23726 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23728         * aarch64/start.S (_start): Use __wrap_main.
23729         (__wrap_main): New local symbol.
23731 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
23733         [BZ #22679]
23734         CVE-2018-1000001
23735         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
23736         generic_getcwd if the path returned by getcwd syscall is not absolute.
23737         * io/tst-getcwd-abspath.c: New test.
23738         * io/Makefile (tests): Add tst-getcwd-abspath.
23740 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
23742         * malloc/malloc.c (malloc_consolidate): Add size check.
23744 2018-01-12  Florian Weimer  <fweimer@redhat.com>
23746         * support/write_message.c (write_message): Preserve errno.
23747         * support/check.c (print_failure): Likewise.
23748         * support/support_test_verify_impl.c (support_test_verify_impl):
23749         Likewise.
23750         * support/support_test_compare_failure.c
23751         (support_test_compare_failure): Likewise.
23753 2018-01-12  Florian Weimer  <fweimer@redhat.com>
23755         [BZ #22701]
23756         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
23757         Prevent installation of libnsl.so.
23758         (libnsl-inhibit-o): Do not build (or install) static libraries.
23760 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
23762         [BZ #22657]
23763         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
23764         before the day number which may produce a double space.
23765         (date_fmt): Likewise.
23767 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
23769         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
23770         instead of fegetenv.
23772 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
23774         [BZ #22702]
23775         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
23776         comment to say exceptions are discarded.
23777         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
23778         __fegetenv.
23779         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
23780         be enabled.
23782 2018-01-11  Florian Weimer  <fweimer@redhat.com>
23784         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
23785         and error message.
23787 2018-01-11  Florian Weimer  <fweimer@redhat.com>
23789         [BZ #22636]
23790         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
23791         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
23793 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
23795         [BZ #22693]
23796         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
23797         negative arguments in test for NaN or infinity argument.
23799 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
23801         * po/libc.pot: Regenerate.
23803 2018-01-10  Florian Weimer  <fweimer@redhat.com>
23805         [BZ #22636]
23806         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
23807         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
23809 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23811         * hurd/hurd/fd.h: Include <fcntl.h>
23812         (__hurd_at_flags): New function.
23813         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
23814         with call to __hurd_at_flags.
23815         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
23816         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
23817         __faccessat
23818         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
23819         (__access_noerrno): Use __faccessat_common instead of access_common.
23820         (__access): Likewise.
23821         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
23822         with a call to __faccessat.
23823         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
23824         (__faccessat_common): ... this. Move implementation of __access into it when
23825         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
23826         reauthenticate_cwdir_at helper to implement AT mechanism.
23827         (__faccessat_noerrno): New function, just calls __faccessat_common.
23828         (__faccessat): New function, just calls __faccessat_common.
23829         (faccessat): Define weak alias.
23831 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
23833         [BZ #22691]
23834         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23835         (CFLAGS-s_fmaxmagl.c): New variable.
23836         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
23838         [BZ #22690]
23839         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
23840         long int for arguments of possibly overflowing addition or
23841         subtraction.
23842         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
23844 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
23846         [BZ #22688]
23847         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23848         (CFLAGS-e_remainderl.c): New variable.
23850         [BZ #22687]
23851         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
23852         variable.
23853         (CFLAGS-s_cacoshl.c): Likewise.
23854         (CFLAGS-s_casinhl.c): Likewise.
23855         (CFLAGS-s_catanl.c): Likewise.
23856         (CFLAGS-s_catanhl.c): Likewise.
23857         (CFLAGS-s_cexpl.c): Likewise.
23858         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
23859         (CFLAGS-s_csinhl.c): Likewise.
23860         (CFLAGS-s_clogl.c): Likewise.
23861         (CFLAGS-s_clog10l.c): Likewise.
23862         (CFLAGS-s_csinl.c): Likewise.
23863         (CFLAGS-s_csqrtl.c): Likewise.
23865 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
23866 2017-01-09  Svante Signell  <svante.signell@gmail.com>
23868         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
23869         (_hurd_exec_paths): New function.
23870         * hurd/hurd.h (_hurd_exec): Deprecate function.
23871         (_hurd_exec_paths): Declare function.
23872         * hurd/Versions: Export _hurd_exec_paths.
23873         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
23874         (__execve): Use __getcwd to build absolute path, and use
23875         _hurd_exec_paths instead of _hurd_exec.
23876         * sysdeps/mach/hurd/spawni.c: Likewise.
23877         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
23878         _hurd_exec.
23880 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
23882         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
23883         test instead of failing in case of ENOENT returned by posix_openpt.
23885 2018-01-08  Florian Weimer  <fweimer@redhat.com>
23887         resolv: Support binary labels in test framework.
23888         * support/resolv_test.c (struct to_be_freed): Remove.
23889         (struct compressed_name): New.
23890         (allocate_compressed_name, ascii_tolower)
23891         (compare_compressed_name): New functions.
23892         (struct resolv_response_builder): Update type of
23893         compression_offsets for use with tsearch.  Rempve to_be_freed.
23894         (response_push_pointer_to_free): Remove function.
23895         (resolv_response_add_name): Rewrite using struct compressed_name
23896         and tsearch instead of hsearch_r.
23897         (response_builder_allocate): Remove initialization of
23898         compression_offsets.
23899         (response_builder_free): Update for removal of to_be_freed.  Use
23900         tdestroy instead of hdestroy_r.
23901         * resolv/Makefile (tests): Add tst-resolv-binary.
23902         (tst-resolv-binary): Link with -lresolv -lpthread.
23904 2018-01-08  Florian Weimer  <fweimer@redhat.com>
23906         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
23907         time.  Pass positive flag instead of negative flag to
23908         support_test_compare_failure.
23909         (support_test_compare_failure): Change negative parameter to
23910         positive.
23911         * support/support_test_compare_failure.c (report)
23912         (support_test_compare_failure): Likewise.
23913         * support/tst-test_compare.c (return_ssize_t, return_int): New.
23914         (do_test): Check int/size_t, ssize_t/size_t comparisons.
23916 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23918         [BZ #22637]
23919         * nptl/descr.h (stackblock, stackblock_size): Update comments.
23920         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
23921         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
23922         stacksize.
23923         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23925 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
23927         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23928         Add s_sincosf-sse2 and s_sincosf-fma.
23929         (CFLAGS-s_sincosf-fma.c): New.
23930         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23931         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23932         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23933         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23934         __sincosf is defined.
23936 2018-01-08  Florian Weimer  <fweimer@redhat.com>
23938         * nptl/tst-thread-exit-clobber.cc: New file.
23939         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23940         C++11 mode.
23941         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23942         (tests): Add tst-thread-exit-clobber.
23943         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23945 2018-01-08  Florian Weimer  <fweimer@redhat.com>
23947         * support/check.h (support_static_assert): Define.
23948         (TEST_COMPARE): Use it.
23950 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
23952         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23953         [!__RLIM_T_MATCHES_RLIM64_T]
23954         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23955         __getrlimit64. Add libc_hidden_weak.
23957 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
23959         * elf/elf.h (R_RISCV_NONE): New define.
23960         (R_RISCV_32): Likewise.
23961         (R_RISCV_64): Likewise.
23962         (R_RISCV_RELATIVE): Likewise.
23963         (R_RISCV_COPY): Likewise.
23964         (R_RISCV_JUMP_SLOT): Likewise.
23965         (R_RISCV_TLS_DTPMOD32): Likewise.
23966         (R_RISCV_TLS_DTPMOD64): Likewise.
23967         (R_RISCV_TLS_DTPREL32): Likewise.
23968         (R_RISCV_TLS_DTPREL64): Likewise.
23969         (R_RISCV_TLS_TPREL32): Likewise.
23970         (R_RISCV_TLS_TPREL64): Likewise.
23971         * Makerules (make-link-multidir): Make directories before linking into
23972         them.
23973         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23974         define.
23975         (VDSO_HASH_LINUX_4_15): Likewise.
23976         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23977         in subdirectories of lib.
23978         * nptl/Makefile (/librt.so): Always depend on
23979         "$(shared-thread-library)".
23981 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23983         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
23984         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23985         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23986         (___tls_get_addr).
23987         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
23988         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23989         "-O2 -march=i686".
23990         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
23991         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23992         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23993         * sysdeps/gnu/glob-lstat-compat.c: New file.
23994         * sysdeps/gnu/glob64-lstat-compat.c: New file.
23995         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
23997 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23999         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
24000         Reserve 16 chars to reloc_addr before calling _itoa_word.
24002 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
24004         [BZ #22678]
24005         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
24006         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
24008         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
24009         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
24011         * resource/tst-getrlimit.c: Add copyright header.
24013 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
24014             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24016         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
24017         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
24018         Define __GI_getrlimit64 as weak alias of __getrlimit64.
24019         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
24020         instead.
24021         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
24022         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
24023         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
24024         RLIM64_INFINITY): Fix values to match the kernel ones.
24025         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
24026         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
24027         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
24028         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
24029         getrlimit64@@GLIBC_2_27.
24030         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
24031         and setrlimit64.
24032         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
24033         getrlimit, setrlimit, getrlimit64 and setrlimit64.
24034         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
24035         setrlimit, getrlimit64 and setrlimit64.
24037 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
24039         [BZ #22648]
24040         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
24041         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
24043 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
24045         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
24046         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
24047         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
24049 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24051         [BZ #15479]
24052         [BZ #22666]
24053         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
24054         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
24056         [BZ #15479]
24057         [BZ #22665]
24058         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
24059         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
24060         * sysdeps/alpha/fpu/s_floor.c: Likewise.
24061         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
24063 2018-01-04  Florian Weimer  <fweimer@redhat.com>
24065         [BZ #22667]
24066         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
24067         Align the stack before calling exit.
24068         * stdlib/tst-makecontext-align.c: New file.
24069         * stdlib/Makefile (tests): Add tst-makecontext-align.
24071 2018-01-04  Florian Weimer  <fweimer@redhat.com>
24073         Add support for calling dlvsym from libc.so.
24074         * include/dlfcn.h (__libc_dlvsym): Declare.
24075         * elf/Makefile (tests-static-internal): Add
24076         tst-libc_dlvsym-static.
24077         (tests-internal): Add tst-libc_dlvsym.
24078         (modules-names): Add tst-libc_dlvsym-dso.
24079         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
24080         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
24081         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
24082         object tst-libc_dlvsym-dso.so needs to be built before running
24083         these tests.
24084         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
24085         * elf/Versions: Export __libc_dlvsym.
24086         * elf/dl-libc.c (struct do_dlvsym_args): New.
24087         (do_dlvsym, __libc_dlvsym): New functions.
24088         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
24089         (_dl_open_hook2): New variable.
24090         (__libc_register_dl_open_hook): Set it.
24091         * elf/tst-libc_dlvsym-dso.c: New file.
24092         * elf/tst-libc_dlvsym-static.c: Likewise.
24093         * elf/tst-libc_dlvsym.c: Likewise.
24094         * elf/tst-libc_dlvsym.h: Likewise.
24096 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24098         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
24099         include <sys/mount.h>.
24101 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
24103         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
24104         Add __NO_MATH_ERRNO__ check.
24106 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
24108         * sysdeps/mips/mips32/libm-test-ulps: Update.
24109         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
24111 2018-01-02  Florian Weimer  <fweimer@redhat.com>
24113         * misc/tst-pselect.c: Add copyright header.
24115 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
24117         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
24118         comment.
24119         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
24120         comment.
24121         (settrlimit): Rename into setrlimit.
24122         (__sttrlimit): Rename into __setrlimit.
24124         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
24125         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
24126         never defined in that case.
24128 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
24130         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
24132         * sysdeps/arm/libm-test-ulps: Update.
24134         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
24135         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
24137 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
24139         * NEWS: Add cosf and sincosf to list of optimized functions.
24141 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
24143         [BZ #22660]
24144         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
24145         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
24146         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
24147         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
24149 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
24151         [BZ #22433]
24152         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
24154         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
24155         making a copy of it.
24157 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
24159         * manual/texinfo.tex: Update to version 2017-12-26.21 with
24160         trailing whitespace removed.
24161         * scripts/config.guess: Update to version 2018-01-01.
24162         * scripts/config.sub: Update to version 2018-01-01.
24163         * scripts/move-if-change: Update from gnulib.
24165         * NEWS: Update copyright dates.
24166         * catgets/gencat.c (print_version): Likewise.
24167         * csu/version.c (banner): Likewise.
24168         * debug/catchsegv.sh: Likewise.
24169         * debug/pcprofiledump.c (print_version): Likewise.
24170         * debug/xtrace.sh (do_version): Likewise.
24171         * elf/ldconfig.c (print_version): Likewise.
24172         * elf/ldd.bash.in: Likewise.
24173         * elf/pldd.c (print_version): Likewise.
24174         * elf/sotruss.sh: Likewise.
24175         * elf/sprof.c (print_version): Likewise.
24176         * iconv/iconv_prog.c (print_version): Likewise.
24177         * iconv/iconvconfig.c (print_version): Likewise.
24178         * locale/programs/locale.c (print_version): Likewise.
24179         * locale/programs/localedef.c (print_version): Likewise.
24180         * login/programs/pt_chown.c (print_version): Likewise.
24181         * malloc/memusage.sh (do_version): Likewise.
24182         * malloc/memusagestat.c (print_version): Likewise.
24183         * malloc/mtrace.pl: Likewise.
24184         * manual/libc.texinfo: Likewise.
24185         * nptl/version.c (banner): Likewise.
24186         * nscd/nscd.c (print_version): Likewise.
24187         * nss/getent.c (print_version): Likewise.
24188         * nss/makedb.c (print_version): Likewise.
24189         * posix/getconf.c (main): Likewise.
24190         * scripts/test-installation.pl: Likewise.
24191         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
24193         * All files with FSF copyright notices: Update copyright dates
24194         using scripts/update-copyrights.
24195         * locale/programs/charmap-kw.h: Regenerated.
24196         * locale/programs/locfile-kw.h: Likewise.
24198 2017-12-31  Zack Weinberg  <zackw@panix.com>
24200         * libio/bits/libio-ldbl.h: Correct check for improper
24201         inclusion.  Add own multiple include guard.
24203 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
24204             Dmitry V. Levin  <ldv@altlinux.org>
24206         [BZ #22625]
24207         CVE-2017-16997
24208         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
24209         string token expansion. Check for NULL pointer or empty string possibly
24210         returned by expand_dynamic_string_token.
24211         (decompose_rpath): Check for empty path after dynamic string
24212         token expansion.
24214 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
24216         [BZ #22433]
24217         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
24219         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
24220         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
24221         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
24222         and PTRACE_SYSCALL.
24223         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
24224         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24225         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24226         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24227         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24228         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
24230         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
24231         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
24232         __ptrace_peeksiginfo_flags, ptrace): Move to ...
24233         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
24234         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24235         bits/ptrace-shared.h.
24236         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
24237         <bits/ptrace-shared.h>.
24238         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
24239         __ptrace_peeksiginfo_flags, ptrace): Remove.
24240         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24241         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24242         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24243         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24244         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
24246 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
24248         [BZ #17804]
24249         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
24250         end of the loop. Improve comments.
24252 2017-12-29  Zack Weinberg  <zackw@panix.com>
24254         [BZ #22615]
24255         * manual/errno.texi (Checking for Errors): Explicitly say that errno
24256         might be set on success.
24258 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
24260         [BZ #22611]
24261         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
24262         is unchanged on success.
24264 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
24266         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
24267         updated.
24268         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
24269         expand_dynamic_string_token): Likewise.
24270         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
24271         is_path argument.
24273         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
24274         contains ':'.
24276         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
24277         is set and name contains ':', and all code depending on these checks.
24279 2017-12-24  Zack Weinberg  <zackw@panix.com>
24281         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
24282         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
24283         respectively.
24284         * libio/libio.h: Rename the original version of this file to
24285         libio/bits/libio.h.  Error out if not included by stdio.h or the
24286         stub libio.h.
24287         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
24288         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
24289         if not included by bits/libio.h or the stub _G_config.h.
24290         * sysdeps/unix/sysv/linux/_G_config.h: Move to
24291         sysdeps/unix/sysv/linux/bits.  Error out if not included by
24292         bits/libio.h or the stub _G_config.h.
24293         * libio/stdio.h: Include bits/libio.h, not libio.h.
24294         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
24295         well as libio.h and _G_config.h.
24297         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
24298         * libio/strfile.h, stdio-common/vfscanf.c
24299         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
24300         Include stdio.h, not _G_config.h nor libio.h.
24301         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
24302         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
24304         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
24306 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
24308         [BZ #22347]
24309         * stdlib/getrandom.c (getrandom): Fix comment.
24310         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
24312 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
24314         [BZ #21161]
24315         * manual/arith.texi (strtoul): Fix a typo.
24317         [BZ #22596]
24318         * manual/arith.texi (finite): Fix the description of the return
24319         value.
24321 2017-12-22  Eric Blake  <ebb9@byu.net>
24323         Avoid gcc warnings on cygwin
24324         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24325         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24326         Avoid unused variable.
24328 2017-12-22  Florian Weimer  <fweimer@redhat.com>
24330         * io/Makefile (routines): Add copy_file_range.
24331         (tests): Add tst-copy_file_range.
24332         (tests-static, tests-internal): Add tst-copy_file_range-compat.
24333         * io/Versions (GLIBC_2.27): Export copy_file_range.
24334         * io/copy_file_range-compat.c: New file.
24335         * io/copy_file_range.c: Likewise.
24336         * io/tst-copy_file_range-compat.c: Likewise.
24337         * io/tst-copy_file_range.c: Likewise.
24338         * manual/llio.texi (Copying File Data): New section.
24339         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
24340         * support/Makefile (libsupport-routines): Add support-xfstat,
24341         xftruncate, xlseek.
24342         * support/support-xfstat.c: New file.
24343         * support/xftruncate.c: Likewise.
24344         * support/xlseek.c: Likewise.
24345         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
24346         * sysdeps/unix/sysv/linux/**.abilist: Update.
24347         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
24349 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24351         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
24352         disable-multi-arch variant to aarch64-linux-gnu.
24354 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
24356         * manual/texinfo.tex: Update to version 2017-12-18.20 with
24357         trailing whitespace removed.
24358         * scripts/config.guess: Update to version 2017-12-17.
24359         * scripts/config.sub: Update to version 2017-11-23.
24360         * scripts/install-sh: Update to version 2017-09-23.17.
24361         * scripts/move-if-change: Update to version 2017-09-13 06:45.
24363 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24365         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
24366         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
24367         * sysdeps/tile/_mcount.S (__mcount): Likewise.
24368         * sysdeps/tile/crti.S (_init, _fini): Likewise.
24369         * sysdeps/tile/crtn.S: Likewise.
24370         * sysdeps/tile/dl-start.S (_start): Likewise.
24371         * sysdeps/tile/dl-trampoline.S: Likewise.
24372         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
24373         * sysdeps/tile/start.S (_start): Likewise.
24374         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
24375         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
24376         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
24377         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
24378         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
24379         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
24380         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
24382         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
24383         comment.
24384         * sysdeps/tile/preconfigure: Remove tilegx folder.
24385         * sysdeps/tile/tilegx/Implies: Move definitions to ...
24386         * sysdeps/tile/Implies: ... here.
24387         * sysdeps/tile/tilegx/Makefile: Move rules to ...
24388         * sysdeps/tile/Makefile: ... here.
24389         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
24390         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
24391         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
24392         * sysdeps/tile/bits/wordsize.h: ... here.
24393         * sysdeps/tile/tilegx/*: Move to ...
24394         * sysdeps/tile/*: ... here.
24395         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
24396         * sysdeps/tile/tilegx32/Implies: ... here.
24397         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
24398         * sysdeps/tile/tilegx64/Implies: ... here.
24399         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
24400         to ...
24401         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
24402         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
24403         * sysdeps/unix/sysv/linux/tile/*: ... here.
24404         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
24405         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
24406         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
24407         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
24409         * README: Remove tilepro-*-linux-gnu from supported architecture.
24410         * scripts/build-many-glibcs.py: Likewise.
24411         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
24412         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
24413         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
24414         elf_machine_matches_host, elf_machine_dynamic,
24415         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
24416         howto, elf_machine_rela): Likewise.
24417         * sysdeps/tile/dl-start.S (_start): Likewise.
24418         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
24419         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
24420         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
24421         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
24422         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
24423         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
24424         Likewise.
24425         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
24426         * sysdeps/tile/preconfigure: Likewise.
24427         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
24428         POINTER_CHK_GUARD): Likewise.
24429         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
24430         * sysdeps/tile/start.S (_start): Likewise.
24431         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
24432         Likewise.
24433         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
24434         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
24435         CMOVNEZ): Remove.
24436         * sysdeps/unix/sysv/linux/tile/bits/environments.h
24437         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
24438         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
24439         Likewise.
24440         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
24441         * sysdeps/tile/tilepro/Implies: Remove file.
24442         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
24443         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
24444         * sysdeps/tile/tilepro/memchr.c: Likewise.
24445         * sysdeps/tile/tilepro/memcpy.S: Likewise.
24446         * sysdeps/tile/tilepro/memset.c: Likewise.
24447         * sysdeps/tile/tilepro/memusage.h: Likewise.
24448         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
24449         * sysdeps/tile/tilepro/strchr.c: Likewise.
24450         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
24451         * sysdeps/tile/tilepro/strlen.c: Likewise.
24452         * sysdeps/tile/tilepro/strrchr.c: Likewise.
24453         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
24454         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
24455         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24456         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
24457         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
24458         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
24459         Likewise.
24460         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
24461         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24462         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
24463         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
24464         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24465         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
24466         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
24467         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
24468         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
24469         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
24470         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
24471         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
24472         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
24473         tilepro mention in comment.
24475         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
24476         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
24477         * nptl/pthread_join_common.c: New file: common function used on
24478         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
24479         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
24480         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
24481         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
24482         (cleanup): Move definition to pthread_join_common.c.
24483         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
24484         Remove superflous checks.
24485         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
24486         Likewise.
24488 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24490         * sysdeps/aarch64/libm-test-ulps: Update.
24492 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24494         * sysdeps/aarch64/memset.S (MEMSET): Define.
24496 2017-12-20  Florian Weimer  <fweimer@redhat.com>
24498         [BZ #22635]
24499         nptl: Provide full implementation of pthread_self in libc.so.
24500         * nptl/Makefile (routines): Add pthread_self.
24501         (libpthread-routines): Replace pthread_self with
24502         compat-pthread_self.
24503         * nptl/forward.c (pthread_self): Remove.
24504         * nptl/nptl-init.c (pthread_functions): Do not initialize
24505         ptr_pthread_self.
24506         * nptl/pthread_self.c (pthread_self): Remove weak alias.
24507         * nptl/compat-pthread_self.c: New file.
24508         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
24509         Remove ptr_pthread_self.
24511 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
24513         * posix/regcomp.c: Fix spelling in comments.
24514         * posix/regex.h: Likewise.
24515         * posix/regex_internal.c: Likewise.
24516         * posix/regexec.c: Likewise.
24518 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
24520         [BZ #22377]
24521         * math/Makefile [C++] (tests): Add test for iseqsig.
24522         * math/math.h [C++] (iseqsig): New implementation, which does
24523         not rely on __MATH_TG/__builtin_types_compatible_p.
24524         * math/test-math-iseqsig.cc: New file.
24525         * sysdeps/powerpc/powerpc64le/Makefile
24526         (CFLAGS-test-math-iseqsig.cc): New variable.
24528 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
24530         * elf/dl-load.c (is_trusted_path): Remove.
24531         (fillin_rpath): Remove check_trusted argument and its use,
24532         all callers changed.
24534 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
24536         [BZ #22630]
24537         * Makeconfig (link-pie-before-libc): Replace -pie with
24538         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
24539         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
24540         (tst-dlopen-aout-no-pie): New.
24541         (LDFLAGS-tst-prelink): Removed.
24542         (tst-prelink-no-pie): New.
24543         (LDFLAGS-tst-main1): Removed.
24544         (tst-main1-no-pie): New.
24545         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
24546         (tst-gmon-no-pie): New.
24548 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
24550         * manual/install.texi: Document that --enable-static-pie
24551         implies PIE.
24552         * INSTALL: Regenerated.
24554 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24556         [BZ #21309]
24557         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
24558         unsigned.
24560 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
24562         Revert:
24564         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
24566         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24568         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
24570         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
24571         <errno.h>.  Include "eexp.tbl".
24572         (half): New constant.
24573         (one): Likewise.
24574         (__ieee754_exp): Rewrite.
24575         (__slowexp): Remove prototype.
24576         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
24577         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
24578         * sysdeps/i386/fpu/slowexp.c: Likewise.
24579         * sysdeps/ia64/fpu/slowexp.c: Likewise.
24580         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
24581         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
24582         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24583         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
24584         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
24585         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
24586         comment.
24587         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
24588         (CPPFLAGS-slowexp.c): Remove variable.
24589         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24590         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
24591         (CFLAGS-slowexp-fma.c): Remove variable.
24592         (CFLAGS-slowexp-fma4.c): Likewise.
24593         (CFLAGS-slowexp-avx.c): Likewise.
24594         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
24595         define as macro.
24596         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
24597         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
24598         * math/Makefile (type-double-routines): Remove slowexp.
24599         * manual/probes.texi (slowexp_p6): Remove.
24600         (slowexp_p32): Likewise.
24602 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24604         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
24605         arithmetic.
24607         * lib/glob.c (glob): Do not pass NULL to mempcpy.
24609 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
24611         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24613 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
24615         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
24616         <errno.h>.  Include "eexp.tbl".
24617         (half): New constant.
24618         (one): Likewise.
24619         (__ieee754_exp): Rewrite.
24620         (__slowexp): Remove prototype.
24621         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
24622         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
24623         * sysdeps/i386/fpu/slowexp.c: Likewise.
24624         * sysdeps/ia64/fpu/slowexp.c: Likewise.
24625         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
24626         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
24627         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24628         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
24629         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
24630         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
24631         comment.
24632         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
24633         (CPPFLAGS-slowexp.c): Remove variable.
24634         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24635         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
24636         (CFLAGS-slowexp-fma.c): Remove variable.
24637         (CFLAGS-slowexp-fma4.c): Likewise.
24638         (CFLAGS-slowexp-avx.c): Likewise.
24639         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
24640         define as macro.
24641         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
24642         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
24643         * math/Makefile (type-double-routines): Remove slowexp.
24644         * manual/probes.texi (slowexp_p6): Remove.
24645         (slowexp_p32): Likewise.
24647 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24648             James Clarke  <jrtc27@jrtc27.com>
24650         [BZ #22603]
24651         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
24652         addition.
24654 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24656         [BZ #22605]
24657         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
24658         code.
24660 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
24662         [BZ #22563]
24663         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
24664         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
24665         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
24666         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
24667         to feature_1.
24669 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
24671         [BZ #22563]
24672         * bits/types/__cancel_jmp_buf_tag.h: New file.
24673         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
24674         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
24675         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
24676         * nptl/Makefile (headers): Add
24677         bits/types/__cancel_jmp_buf_tag.h.
24678         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
24679         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
24680         * sysdeps/nptl/pthread.h: Include
24681         <bits/types/__cancel_jmp_buf_tag.h>.
24682         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
24683         __cancel_jmp_buf.
24684         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
24686 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
24688         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
24689         --enable-static-pie variants to x86_64, x32 and i686.
24691 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
24693         [BZ #22631]
24694         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
24695         argument for attrubutes.  All callers changed.
24696         (__inline_mathop1): Likewise.  All callers changed.
24697         (__inline_mathop): Likewise.  All callers changed.
24698         [__USE_MISC] (scalbn): Use __inline_forward instead of
24699         __inline_forward_c.
24700         [__USE_ISOC99] (scalbln): Likewise.
24701         [__USE_ISOC99] (nearbyint): Likewise.
24702         [__USE_ISOC99] (lrint): Likewise.
24703         [__USE_MISC] (scalbnf): Likewise.
24704         [__USE_ISOC99] (scalblnf): Likewise.
24705         [__USE_ISOC99] (nearbyintf): Likewise.
24706         [__USE_ISOC99] (lrintf): Likewise.
24707         [__USE_MISC] (scalbnl): Likewise.
24708         [__USE_ISOC99] (scalblnl): Likewise.
24709         [__USE_ISOC99] (nearbyintl): Likewise.
24710         [__USE_ISOC99] (lrintl): Likewise.
24711         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
24712         __inline_mathop and __m81_defun changed.
24714         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
24715         CPU or FPU for ARM hard-float configurations.
24717 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
24719         * nptl/tst-attr3.c: Include <libc-diag.h>.
24720         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
24722         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
24724         * string/tester.c (test_strncat): Also disable -Warray-bounds
24725         warnings for two tests.
24727 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
24729         [BZ #22614]
24730         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
24731         $(cc-pie-default) == yes.
24732         * config.make.in (cc-pie-default): New.
24733         * configure.ac (libc_cv_pie_default): Renamed to ...
24734         (libc_cv_cc_pie_default): This.
24735         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
24736         * configure: Regenerated.
24738 2017-12-18  Florian Weimer  <fweimer@redhat.com>
24740         [BZ #20204]
24741         ld.so: Harden dl-libc/libdl hooks.
24742         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
24743         (rtld_active): New function.
24744         * dlfcn/dladdr.c (__dladdr): Call it.
24745         * dlfcn/dladdr1.c (__dladdr1): Likewise.
24746         * dlfcn/dlclose.c (__dlcose): Likewise.
24747         * dlfcn/dlerror.c (__dlerror): Likewise.
24748         * dlfcn/dlinfo.c (__dlinfo): Likewise.
24749         * dlfcn/dlmopen.c (__dlmopen): Likewise.
24750         * dlfcn/dlopen.c (__dlopen): Likewise.
24751         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
24752         * dlfcn/dlsym.c (__dlsym): Likewise.
24753         * dlfcn/dlvsym.c (__dlvsym): Likewise.
24754         * libio/vtables.c (_IO_vtable_check): Likewise.
24755         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
24756         (__libc_dlclose): Likewise.
24757         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
24758         assignment.
24760 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
24762         [BZ #22446]
24763         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
24764         buffers for readlink input and output.
24766 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
24768         [BZ #22624]
24769         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
24770         inhibit_stack_protector.
24772         [BZ #22624]
24773         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
24774         inhibit_stack_protector.
24776 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
24778         [BZ #22627]
24779         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
24780         code and invocation.
24782 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24784         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
24786 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
24788         [BZ #22505]
24789         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
24791 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
24793         * sysdeps/s390/fpu/libm-test-ulps: Update.
24795 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
24797         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24799 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
24801         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
24802         constants to s_sincosf.h file.
24803         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24804         * sysdeps/ieee754/flt-32/s_sincosf.c: New
24805         implementation.
24806         * sysdeps/ieee754/flt-32/s_sincosf.h:
24807         New file.
24809 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
24811         [BZ #14681]
24812         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
24813         before mtrace.
24815 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
24817         [BZ #19574]
24818         * INSTALL: Regenerated.
24819         * Makeconfig (real-static-start-installed-name): New.
24820         (pic-default): Updated for --enable-static-pie.
24821         (pie-default): New for --enable-static-pie.
24822         (default-pie-ldflag): Likewise.
24823         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
24824         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
24825         Replace $(static-start-installed-name) with
24826         $(real-static-start-installed-name).
24827         (+prectorT): Updated for --enable-static-pie.
24828         (+postctorT): Likewise.
24829         (CFLAGS-.o): Add $(pie-default).
24830         (CFLAGS-.op): Likewise.
24831         * NEWS: Mention --enable-static-pie.
24832         * config.h.in (ENABLE_STATIC_PIE): New.
24833         * configure.ac (--enable-static-pie): New configure option.
24834         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
24835         (have-static-pie): Likewise.
24836         Enable static PIE if linker supports --no-dynamic-linker.
24837         (ENABLE_STATIC_PIE): New AC_DEFINE.
24838         (enable-static-pie): New LIBC_CONFIG_VAR.
24839         * configure: Regenerated.
24840         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
24841         gr$(start-installed-name) for --enable-static-pie.
24842         (extra-objs): Likewise.
24843         (install-lib): Likewise.
24844         (extra-objs): Add static-reloc.o and static-reloc.os
24845         ($(objpfx)$(start-installed-name)): Also depend on
24846         $(objpfx)static-reloc.o.
24847         ($(objpfx)r$(start-installed-name)): New.
24848         ($(objpfx)g$(start-installed-name)): Also depend on
24849         $(objpfx)static-reloc.os.
24850         ($(objpfx)gr$(start-installed-name)): New.
24851         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
24852         in libc.a.
24853         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
24854         initimage.
24855         * csu/static-reloc.c: New file.
24856         * elf/Makefile (routines): Add dl-reloc-static-pie.
24857         (elide-routines.os): Likewise.
24858         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
24859         (tst-tls1-static-non-pie-no-pie): New.
24860         * elf/dl-reloc-static-pie.c: New file.
24861         * elf/dl-support.c (_dl_get_dl_main_map): New function.
24862         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
24863         STATIC_PIE_BOOTSTRAP.
24864         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
24865         * gmon/Makefile (tests): Add tst-gmon-static-pie.
24866         (tests-static): Likewise.
24867         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
24868         (tst-gmon-static-no-pie): New.
24869         (CFLAGS-tst-gmon-static-pie.c): Likewise.
24870         (CRT-tst-gmon-static-pie): Likewise.
24871         (tst-gmon-static-pie-ENV): Likewise.
24872         (tests-special): Likewise.
24873         ($(objpfx)tst-gmon-static-pie.out): Likewise.
24874         (clean-tst-gmon-static-pie-data): Likewise.
24875         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
24876         * gmon/tst-gmon-static-pie.c: New file.
24877         * manual/install.texi: Document --enable-static-pie.
24878         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
24879         (_dl_get_dl_main_map): Likewise.
24880         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
24881         * sysdeps/x86_64/configure.ac: Likewise.
24882         * sysdeps/i386/configure: Regenerated.
24883         * sysdeps/x86_64/configure: Likewise.
24884         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
24885         (ASFLAGS-.op): Likewise.
24887 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
24889         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
24890         * posix/tst-mmap-offset.c (fname): Use /tmp.
24891         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
24893 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
24895         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
24897 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
24899         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
24900         errno.
24902 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
24904         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
24905         --with-float=hard for arm-linux-gnueabihf configurations.
24907         [BZ #14121]
24908         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
24909         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
24910         ($(mo-installed)): Use $(objpfx)%.mo.
24911         (realclean): Remove rule.
24913         * po/Makefile (linguas): Remove rule and dependencies.
24914         (linguas.mo): Likewise.
24915         (.PHONY): Do not depend on linguas and linguas.mo.
24916         (podir): Remove variable.
24917         (pofiles): Likewise.
24918         [$(pofiles)] (%.po): Remove rule.
24920         * sysdeps/sparc/sparc32/Makefile
24921         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
24922         start-of-line whitespace in argument of echo.
24923         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24924         with whitespace.  Generate __wrap_.udiv alias.
24925         * sysdeps/sparc/sparc32/rem.S: Regenerated.
24926         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24927         * sysdeps/sparc/sparc32/udiv.S: Likewise.
24928         * sysdeps/sparc/sparc32/urem.S: Likewise.
24930 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
24932         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24933         for aligned inputs.
24935 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24937         * benchtests/bench-strcmp.c: Print output in JSON format.
24939         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24941 2017-12-14  Florian Weimer  <fweimer@redhat.com>
24943         [BZ #22607]
24944         CVE-2017-1000409
24945         * elf/dl-load.c (_dl_init_paths): Compute number of components in
24946         the expanded path string.
24948 2017-12-14  Florian Weimer  <fweimer@redhat.com>
24950         [BZ #22606]
24951         CVE-2017-1000408
24952         * elf/dl-load.c (system_dirs): Update comment.
24953         (nsystem_dirs_len): Use array_length.
24954         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24956 2017-12-14  Florian Weimer  <fweimer@redhat.com>
24958         Simplify compiling most of support/ outside of glibc.
24959         * support/check_addrinfo.c: Include <string.h>.
24960         * support/check_dns_packet.c: Likewise.
24961         * support/check_hostent.c: Likewise.
24962         * support/support_can_chroot.c: Include <support/xunistd.h>.
24963         * support/support_format_addrinfo.c: Include <stdlib.h>
24964         * support/support_format_dns_packet.c: Include <stdbool.h>.
24965         * support/support_format_hostent.c: Include <stdlib.h>.
24966         * support/support_format_netent.c: Likewise.
24967         * support/support_write_string.c: Include <support/xunistd.h>.
24968         * support/xdlfcn.c: Include <stddef.h>.
24970 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
24972         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24974 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
24975             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24977         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24978         (sysdeps_routines): Add memset-niagara7.
24979         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24980         Likewise.
24981         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24982         file.
24983         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24984         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24985         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24986         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24987         Add niagara7 option.
24988         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24989         memset.
24991         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24992         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24993         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24994         Likewise.
24995         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24996         New file.
24997         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24998         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24999         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
25000         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
25001         and __memmove_niagara7.
25002         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
25003         Add niagara7 option.
25004         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
25005         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
25006         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
25007         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
25008         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
25010 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
25012         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
25013         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
25014         * sysdeps/sparc/sparc64/memmove.S: Likewise.
25015         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
25017         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
25018         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
25019         _dl_sparc_cap_flags array.
25020         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
25022 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
25024         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
25025         time whenever possible.
25027 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
25029         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
25030         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
25032 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
25034         * soft-fp/fmadf4.c: Move to ....
25035         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
25036         * soft-fp/fmasf4.c: Move to ....
25037         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
25038         * soft-fp/fmatf4.c: Move to ....
25039         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
25040         * sysdeps/ieee754/soft-fp/Makefile: New file.
25041         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
25042         * sysdeps/arm/preconfigure: Regenerated.
25043         * sysdeps/arm/nofpu/Implies: New file.
25044         * sysdeps/arm/s_fma.c: Remove file.
25045         * sysdeps/arm/s_fmaf.c: Likewise.
25046         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
25047         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
25048         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
25049         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
25050         * sysdeps/microblaze/s_fma.c: Remove file.
25051         * sysdeps/microblaze/s_fmaf.c: Likewise.
25052         * sysdeps/mips/mips32/nofpu/Implies: New file.
25053         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
25054         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
25055         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
25056         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
25057         * sysdeps/mips/ieee754/s_fma.c: Remove file.
25058         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
25059         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
25060         implementation.
25061         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
25062         * sysdeps/nios2/s_fma.c: Remove file.
25063         * sysdeps/nios2/s_fmaf.c: Likewise.
25064         * sysdeps/sh/nofpu/Implies: New file.
25065         * sysdeps/sh/s_fma.c: Remove file.
25066         * sysdeps/sh/s_fmaf.c: Likewise.
25067         * sysdeps/tile/Implies: Add ieee754/soft-fp.
25068         * sysdeps/tile/s_fma.c: Remove file.
25069         * sysdeps/tile/s_fmaf.c: Likewise.
25071 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
25073         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25074         Add s_cosf-sse2 and s_cosf-fma.
25075         (CFLAGS-s_cosf-fma.c): New.
25076         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
25077         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
25078         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
25080 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
25082         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
25084 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25086         * libio/Makefile (tests): Add tst-bz22415.
25087         (tst-bz22415-ENV): New rule.
25088         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
25089         (tests-special): Add tst-bz22415-mem.out.
25090         ($(objpfx)tst-bz22415-mem.out): New rule.
25091         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
25092         in case of a successful seek operation.
25093         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
25094         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
25095         buffer is required.
25096         * libio/tst-bz22415.c: New test.
25098         * sysdeps/ia64/fpu/libm-test-ulps: Update.
25100 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
25102         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
25103         __IPC_64 to 0 to avoid IPC_64 being set.
25105 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25107         [BZ #22593]
25108         * math/bits/mathcalls.h (nextafter): Remove const.
25109         (nexttoward): Likewise.
25111 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
25113         * configure.ac (--with-fp): Remove configure option.
25114         (with_fp_cond): New variable.
25115         (libc_cv_with_fp): New configure test.  Use this variable instead
25116         of with_fp.
25117         * configure: Regenerated.
25118         * config.make.in (with-fp): Use @libc_cv_with_fp@.
25119         * manual/install.texi (Configuring and compiling): Remove
25120         --without-fp.
25121         * INSTALL: Regenerated.
25122         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
25123         * sysdeps/mips/preconfigure (with_fp_cond): Define.
25124         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
25125         * sysdeps/sh/preconfigure (with_fp_cond): Define.
25126         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
25127         use --without-fp to configure glibc.
25129 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
25131         * manual/locale.texi (nl_langinfo): Fix a typo.
25133 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
25135         [BZ #22588]
25136         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
25138 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
25140         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
25141         (CFLAGS-argp-parse.c): Likewise.
25142         (CFLAGS-argp-fmtstream.c): Likewise.
25143         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
25144         (CPPFLAGS-sha512-crypt.c): Likewise.
25145         (CPPFLAGS-md5-crypt.c): Likewise.
25146         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
25147         (CFLAGS-stack_chk_fail_local.c): Likewise.
25148         (CFLAGS-backtrace.c): Likewise.
25149         (CFLAGS-sprintf_chk.c): Likewise.
25150         (CFLAGS-snprintf_chk.c): Likewise.
25151         (CFLAGS-vsprintf_chk.c): Likewise.
25152         (CFLAGS-vsnprintf_chk.c): Likewise.
25153         (CFLAGS-asprintf_chk.c): Likewise.
25154         (CFLAGS-vasprintf_chk.c): Likewise.
25155         (CFLAGS-obprintf_chk.c): Likewise.
25156         (CFLAGS-dprintf_chk.c): Likewise.
25157         (CFLAGS-vdprintf_chk.c): Likewise.
25158         (CFLAGS-printf_chk.c): Likewise.
25159         (CFLAGS-fprintf_chk.c): Likewise.
25160         (CFLAGS-vprintf_chk.c): Likewise.
25161         (CFLAGS-vfprintf_chk.c): Likewise.
25162         (CFLAGS-gets_chk.c): Likewise.
25163         (CFLAGS-fgets_chk.c): Likewise.
25164         (CFLAGS-fgets_u_chk.c): Likewise.
25165         (CFLAGS-fread_chk.c): Likewise.
25166         (CFLAGS-fread_u_chk.c): Likewise.
25167         (CFLAGS-swprintf_chk.c): Likewise.
25168         (CFLAGS-vswprintf_chk.c): Likewise.
25169         (CFLAGS-wprintf_chk.c): Likewise.
25170         (CFLAGS-fwprintf_chk.c): Likewise.
25171         (CFLAGS-vwprintf_chk.c): Likewise.
25172         (CFLAGS-vfwprintf_chk.c): Likewise.
25173         (CFLAGS-fgetws_chk.c): Likewise.
25174         (CFLAGS-fgetws_u_chk.c): Likewise.
25175         (CFLAGS-read_chk.c): Likewise.
25176         (CFLAGS-pread_chk.c): Likewise.
25177         (CFLAGS-pread64_chk.c): Likewise.
25178         (CFLAGS-recv_chk.c): Likewise.
25179         (CFLAGS-recvfrom_chk.c): Likewise.
25180         (CFLAGS-tst-longjmp_chk.c): Likewise.
25181         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
25182         (CFLAGS-tst-longjmp_chk2.c): Likewise.
25183         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
25184         (CFLAGS-tst-longjmp_chk3.c): Likewise.
25185         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
25186         (CFLAGS-tst-chk1.c): Likewise.
25187         (CFLAGS-tst-chk2.c): Likewise.
25188         (CFLAGS-tst-chk3.c): Likewise.
25189         (CFLAGS-tst-chk4.cc): Likewise.
25190         (CFLAGS-tst-chk5.cc): Likewise.
25191         (CFLAGS-tst-chk6.cc): Likewise.
25192         (CFLAGS-tst-lfschk1.c): Likewise.
25193         (CFLAGS-tst-lfschk2.c): Likewise.
25194         (CFLAGS-tst-lfschk3.c): Likewise.
25195         (CFLAGS-tst-lfschk4.cc): Likewise.
25196         (CFLAGS-tst-lfschk5.cc): Likewise.
25197         (CFLAGS-tst-lfschk6.cc): Likewise.
25198         (CFLAGS-tst-ssp-1.c): Likewise.
25199         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
25200         (CFLAGS-scandir64.c): Likewise.
25201         (CFLAGS-scandir-tail.c): Likewise.
25202         (CFLAGS-scandir64-tail.c): Likewise.
25203         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
25204         (CFLAGS-dl-tunables.c): Likewise.
25205         (CFLAGS-dl-runtime.c): Likewise.
25206         (CFLAGS-dl-lookup.c): Likewise.
25207         (CFLAGS-dl-iterate-phdr.c): Likewise.
25208         (CFLAGS-vismain.c): Likewise.
25209         (CFLAGS-tst-linkall-static.c): Likewise.
25210         (CFLAGS-tst-linkall-static.c): Likewise.
25211         (CPPFLAGS-dl-load.c): Likewise.
25212         (CFLAGS-ldconfig.c): Likewise.
25213         (CFLAGS-dl-cache.c): Likewise.
25214         (CFLAGS-cache.c): Likewise.
25215         (CFLAGS-rtld.c): Likewise.
25216         (CFLAGS-multiload.c): Likewise.
25217         (CFLAGS-filtmod1.c): Likewise.
25218         (CFLAGS-tst-align.c): Likewise.
25219         (CFLAGS-tst-align2.c): Likewise.
25220         (CFLAGS-tst-alignmod.c): Likewise.
25221         (CFLAGS-tst-alignmod2.c): Likewise.
25222         (CPPFLAGS-tst-execstack.c): Likewise.
25223         (CFLAGS-tst-ptrguard1-static.c): Likewise.
25224         (CFLAGS-tst-latepthreadmod.c): Likewise.
25225         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
25226         (CFLAGS-getgrnam_r.c): Likewise.
25227         (CFLAGS-getgrent_r.c): Likewise.
25228         (CFLAGS-getgrent.c): Likewise.
25229         (CFLAGS-fgetgrent.c): Likewise.
25230         (CFLAGS-fgetgrent_r.c): Likewise.
25231         (CFLAGS-putgrent.c): Likewise.
25232         (CFLAGS-initgroups.c): Likewise.
25233         (CFLAGS-getgrgid.c): Likewise.
25234         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
25235         (CFLAGS-getsgent.c): Likewise.
25236         (CFLAGS-fgetsgent.c): Likewise.
25237         (CFLAGS-fgetsgent_r.c): Likewise.
25238         (CFLAGS-putsgent.c): Likewise.
25239         (CFLAGS-getsgnam.c): Likewise.
25240         (CFLAGS-getsgnam_r.c): Likewise.
25241         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
25242         (CFLAGS-iconv_charmap.c): Likewise.
25243         (CFLAGS-dummy-repertoire.c): Likewise.
25244         (CFLAGS-charmap.c): Likewise.
25245         (CFLAGS-linereader.c): Likewise.
25246         (CFLAGS-simple-hash.c): Likewise.
25247         (CFLAGS-gconv_conf.c): Likewise.
25248         (CFLAGS-iconvconfig.c): Likewise.
25249         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
25250         (CFLAGS-gethstbyad.c): Likewise.
25251         (CFLAGS-gethstbynm_r.c): Likewise.
25252         (CFLAGS-gethstbynm.c): Likewise.
25253         (CFLAGS-gethstbynm2_r.c): Likewise.
25254         (CFLAGS-gethstbynm2.c): Likewise.
25255         (CFLAGS-gethstent_r.c): Likewise.
25256         (CFLAGS-gethstent.c): Likewise.
25257         (CFLAGS-rcmd.c): Likewise.
25258         (CFLAGS-getnetbynm_r.c): Likewise.
25259         (CFLAGS-getnetbynm.c): Likewise.
25260         (CFLAGS-getnetbyad_r.c): Likewise.
25261         (CFLAGS-getnetbyad.c): Likewise.
25262         (CFLAGS-getnetent_r.c): Likewise.
25263         (CFLAGS-getnetent.c): Likewise.
25264         (CFLAGS-getaliasent_r.c): Likewise.
25265         (CFLAGS-getaliasent.c): Likewise.
25266         (CFLAGS-getrpcent_r.c): Likewise.
25267         (CFLAGS-getrpcent.c): Likewise.
25268         (CFLAGS-getservent_r.c): Likewise.
25269         (CFLAGS-getservent.c): Likewise.
25270         (CFLAGS-getprtent_r.c): Likewise.
25271         (CFLAGS-getprtent.c): Likewise.
25272         (CFLAGS-either_ntoh.c): Likewise.
25273         (CFLAGS-either_hton.c): Likewise.
25274         (CFLAGS-getnetgrent.c): Likewise.
25275         (CFLAGS-getnetgrent_r.c): Likewise.
25276         (CFLAGS-tst-checks-posix.c): Likewise.
25277         (CFLAGS-tst-sockaddr.c): Likewise.
25278         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
25279         (CFLAGS-tst-translit.c): Likewise.
25280         (CFLAGS-tst-gettext2.c): Likewise.
25281         (CFLAGS-tst-codeset.c): Likewise.
25282         (CFLAGS-tst-gettext3.c): Likewise.
25283         (CFLAGS-tst-gettext4.c): Likewise.
25284         (CFLAGS-tst-gettext5.c): Likewise.
25285         (CFLAGS-tst-gettext6.c): Likewise.
25286         * io/Makefile (CFLAGS-open.c): Likewise.
25287         (CFLAGS-open64.c): Likewise.
25288         (CFLAGS-creat.c): Likewise.
25289         (CFLAGS-creat64.c): Likewise.
25290         (CFLAGS-fcntl.c): Likewise.
25291         (CFLAGS-poll.c): Likewise.
25292         (CFLAGS-ppoll.c): Likewise.
25293         (CFLAGS-lockf.c): Likewise.
25294         (CFLAGS-statfs.c): Likewise.
25295         (CFLAGS-fstatfs.c): Likewise.
25296         (CFLAGS-statvfs.c): Likewise.
25297         (CFLAGS-fstatvfs.c): Likewise.
25298         (CFLAGS-fts.c): Likewise.
25299         (CFLAGS-fts64.c): Likewise.
25300         (CFLAGS-ftw.c): Likewise.
25301         (CFLAGS-ftw64.c): Likewise.
25302         (CFLAGS-lockf.c): Likewise.
25303         (CFLAGS-posix_fallocate.c): Likewise.
25304         (CFLAGS-posix_fallocate64.c): Likewise.
25305         (CFLAGS-fallocate.c): Likewise.
25306         (CFLAGS-fallocate64.c): Likewise.
25307         (CFLAGS-read.c): Likewise.
25308         (CFLAGS-write.c): Likewise.
25309         (CFLAGS-test-stat.c): Likewise.
25310         (CFLAGS-test-lfs.c): Likewise.
25311         * libio/Makefile (CFLAGS-fileops.c): Likewise.
25312         (CFLAGS-fputc.c): Likewise.
25313         (CFLAGS-fputwc.c): Likewise.
25314         (CFLAGS-freopen64.c): Likewise.
25315         (CFLAGS-freopen.c): Likewise.
25316         (CFLAGS-fseek.c): Likewise.
25317         (CFLAGS-fseeko64.c): Likewise.
25318         (CFLAGS-fseeko.c): Likewise.
25319         (CFLAGS-ftello64.c): Likewise.
25320         (CFLAGS-ftello.c): Likewise.
25321         (CFLAGS-fwide.c): Likewise.
25322         (CFLAGS-genops.c): Likewise.
25323         (CFLAGS-getc.c): Likewise.
25324         (CFLAGS-getchar.c): Likewise.
25325         (CFLAGS-getwc.c): Likewise.
25326         (CFLAGS-getwchar.c): Likewise.
25327         (CFLAGS-iofclose.c): Likewise.
25328         (CFLAGS-iofflush.c): Likewise.
25329         (CFLAGS-iofgetpos64.c): Likewise.
25330         (CFLAGS-iofgetpos.c): Likewise.
25331         (CFLAGS-iofgets.c): Likewise.
25332         (CFLAGS-iofgetws.c): Likewise.
25333         (CFLAGS-iofputs.c): Likewise.
25334         (CFLAGS-iofputws.c): Likewise.
25335         (CFLAGS-iofread.c): Likewise.
25336         (CFLAGS-iofsetpos64.c): Likewise.
25337         (CFLAGS-iofsetpos.c): Likewise.
25338         (CFLAGS-ioftell.c): Likewise.
25339         (CFLAGS-iofwrite.c): Likewise.
25340         (CFLAGS-iogetdelim.c): Likewise.
25341         (CFLAGS-iogetline.c): Likewise.
25342         (CFLAGS-iogets.c): Likewise.
25343         (CFLAGS-iogetwline.c): Likewise.
25344         (CFLAGS-ioputs.c): Likewise.
25345         (CFLAGS-ioseekoff.c): Likewise.
25346         (CFLAGS-ioseekpos.c): Likewise.
25347         (CFLAGS-iosetbuffer.c): Likewise.
25348         (CFLAGS-iosetvbuf.c): Likewise.
25349         (CFLAGS-ioungetc.c): Likewise.
25350         (CFLAGS-ioungetwc.c): Likewise.
25351         (CFLAGS-oldfileops.c): Likewise.
25352         (CFLAGS-oldiofclose.c): Likewise.
25353         (CFLAGS-oldiofgetpos64.c): Likewise.
25354         (CFLAGS-oldiofgetpos.c): Likewise.
25355         (CFLAGS-oldiofsetpos64.c): Likewise.
25356         (CFLAGS-oldiofsetpos.c): Likewise.
25357         (CFLAGS-peekc.c): Likewise.
25358         (CFLAGS-putc.c): Likewise.
25359         (CFLAGS-putchar.c): Likewise.
25360         (CFLAGS-putwc.c): Likewise.
25361         (CFLAGS-putwchar.c): Likewise.
25362         (CFLAGS-rewind.c): Likewise.
25363         (CFLAGS-wfileops.c): Likewise.
25364         (CFLAGS-wgenops.c): Likewise.
25365         (CFLAGS-oldiofopen.c): Likewise.
25366         (CFLAGS-iofopen.c): Likewise.
25367         (CFLAGS-iofopen64.c): Likewise.
25368         (CFLAGS-oldtmpfile.c): Likewise.
25369         (CFLAGS-tst_putwc.c): Likewise.
25370         * locale/Makefile (CFLAGS-md5.c): Likewise.
25371         (CFLAGS-charmap.c): Likewise.
25372         (CFLAGS-locfile.c): Likewise.
25373         (CFLAGS-charmap-dir.c): Likewise.
25374         * login/Makefile (CFLAGS-grantpt.c): Likewise.
25375         (CFLAGS-getpt.c): Likewise.
25376         (CFLAGS-pt_chown.c): Likewise.
25377         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
25378         (CFLAGS-obstack.c): Likewise.
25379         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
25380         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
25381         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
25382         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
25383         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
25384         (CFLAGS-test-tgmath.c): Likewise.
25385         (CFLAGS-test-tgmath2.c): Likewise.
25386         (CFLAGS-test-tgmath-ret.c): Likewise.
25387         (CFLAGS-test-powl.c): Likewise.
25388         (CFLAGS-test-snan.c): Likewise.
25389         (CFLAGS-test-signgam-finite.c): Likewise.
25390         (CFLAGS-test-signgam-finite-c99.c): Likewise.
25391         (CFLAGS-test-signgam-finite-c11.c): Likewise.
25392         (CFLAGS-test-signgam-uchar.c): Likewise.
25393         (CFLAGS-test-signgam-uchar-init.c): Likewise.
25394         (CFLAGS-test-signgam-uchar-static.c): Likewise.
25395         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
25396         (CFLAGS-test-signgam-uint.c): Likewise.
25397         (CFLAGS-test-signgam-uint-init.c): Likewise.
25398         (CFLAGS-test-signgam-uint-static.c): Likewise.
25399         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
25400         (CFLAGS-test-signgam-ullong.c): Likewise.
25401         (CFLAGS-test-signgam-ullong-init.c): Likewise.
25402         (CFLAGS-test-signgam-ullong-static.c): Likewise.
25403         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
25404         (CFLAGS-test-math-cxx11.cc): Likewise.
25405         (CFLAGS-test-math-isinff.cc): Likewise.
25406         (CFLAGS-test-math-iszero.cc): Likewise.
25407         (CFLAGS-test-math-issignaling.cc): Likewise.
25408         (CFLAGS-test-math-iscanonical.cc): Likewise.
25409         (CFLAGS-test-iszero-excess-precision.c): Likewise.
25410         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
25411         (CFLAGS-test-flt-eval-method.c): Likewise.
25412         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
25413         (CFLAGS-test-finite-macros.c): Likewise.
25414         * misc/Makefile (CFLAGS-select.c): Likewise.
25415         (CFLAGS-tsearch.c): Likewise.
25416         (CFLAGS-lsearch.c): Likewise.
25417         (CFLAGS-pselect.c): Likewise.
25418         (CFLAGS-readv.c): Likewise.
25419         (CFLAGS-writev.c): Likewise.
25420         (CFLAGS-preadv.c): Likewise.
25421         (CFLAGS-preadv64.c): Likewise.
25422         (CFLAGS-pwritev.c): Likewise.
25423         (CFLAGS-pwritev64.c): Likewise.
25424         (CFLAGS-preadv2.c): Likewise.
25425         (CFLAGS-preadv64v2.c): Likewise.
25426         (CFLAGS-pwritev2.c): Likewise.
25427         (CFLAGS-pwritev64v2.c): Likewise.
25428         (CFLAGS-usleep.c): Likewise.
25429         (CFLAGS-syslog.c): Likewise.
25430         (CFLAGS-error.c): Likewise.
25431         (CFLAGS-getpass.c): Likewise.
25432         (CFLAGS-mkstemp.c): Likewise.
25433         (CFLAGS-mkstemp64.c): Likewise.
25434         (CFLAGS-getsysstats.c): Likewise.
25435         (CFLAGS-getusershell.c): Likewise.
25436         (CFLAGS-err.c): Likewise.
25437         (CFLAGS-tst-tsearch.c): Likewise.
25438         (CFLAGS-msync.c): Likewise.
25439         (CFLAGS-fdatasync.c): Likewise.
25440         (CFLAGS-fsync.c): Likewise.
25441         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
25442         (CFLAGS-unwind.c): Likewise.
25443         (CFLAGS-unwind-forcedunwind.c): Likewise.
25444         (CFLAGS-pthread_cancel.c): Likewise.
25445         (CFLAGS-pthread_setcancelstate.c): Likewise.
25446         (CFLAGS-pthread_setcanceltype.c): Likewise.
25447         (CFLAGS-cancellation.c): Likewise.
25448         (CFLAGS-libc-cancellation.c): Likewise.
25449         (CFLAGS-pthread_exit.c): Likewise.
25450         (CFLAGS-forward.c): Likewise.
25451         (CFLAGS-pthread_testcancel.c): Likewise.
25452         (CFLAGS-pthread_join.c): Likewise.
25453         (CFLAGS-pthread_timedjoin.c): Likewise.
25454         (CFLAGS-pthread_once.c): Likewise.
25455         (CFLAGS-pthread_cond_wait.c): Likewise.
25456         (CFLAGS-sem_wait.c): Likewise.
25457         (CFLAGS-sem_timedwait.c): Likewise.
25458         (CFLAGS-fcntl.c): Likewise.
25459         (CFLAGS-lockf.c): Likewise.
25460         (CFLAGS-pread.c): Likewise.
25461         (CFLAGS-pread64.c): Likewise.
25462         (CFLAGS-pwrite.c): Likewise.
25463         (CFLAGS-pwrite64.c): Likewise.
25464         (CFLAGS-wait.c): Likewise.
25465         (CFLAGS-waitpid.c): Likewise.
25466         (CFLAGS-sigwait.c): Likewise.
25467         (CFLAGS-msgrcv.c): Likewise.
25468         (CFLAGS-msgsnd.c): Likewise.
25469         (CFLAGS-tcdrain.c): Likewise.
25470         (CFLAGS-open.c): Likewise.
25471         (CFLAGS-open64.c): Likewise.
25472         (CFLAGS-pause.c): Likewise.
25473         (CFLAGS-recv.c): Likewise.
25474         (CFLAGS-send.c): Likewise.
25475         (CFLAGS-accept.c): Likewise.
25476         (CFLAGS-sendto.c): Likewise.
25477         (CFLAGS-connect.c): Likewise.
25478         (CFLAGS-recvfrom.c): Likewise.
25479         (CFLAGS-recvmsg.c): Likewise.
25480         (CFLAGS-sendmsg.c): Likewise.
25481         (CFLAGS-close.c): Likewise.
25482         (CFLAGS-read.c): Likewise.
25483         (CFLAGS-write.c): Likewise.
25484         (CFLAGS-nanosleep.c): Likewise.
25485         (CFLAGS-sigsuspend.c): Likewise.
25486         (CFLAGS-msync.c): Likewise.
25487         (CFLAGS-fdatasync.c): Likewise.
25488         (CFLAGS-fsync.c): Likewise.
25489         (CFLAGS-pt-system.c): Likewise.
25490         (CFLAGS-tst-cleanup2.c): Likewise.
25491         (CFLAGS-tst-cleanupx2.c): Likewise.
25492         (CFLAGS-flockfile.c): Likewise.
25493         (CFLAGS-ftrylockfile.c): Likewise.
25494         (CFLAGS-funlockfile.c): Likewise.
25495         (CFLAGS-tst-initializers1.c): Likewise.
25496         (CFLAGS-tst-initializers1-c89.c): Likewise.
25497         (CFLAGS-tst-initializers1-c99.c): Likewise.
25498         (CFLAGS-tst-initializers1-c11.c): Likewise.
25499         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
25500         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
25501         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
25502         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
25503         (CFLAGS-nscd_getgr_r.c): Likewise.
25504         (CFLAGS-nscd_gethst_r.c): Likewise.
25505         (CFLAGS-nscd_getai.c): Likewise.
25506         (CFLAGS-nscd_initgroups.c): Likewise.
25507         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
25508         (CFLAGS-pause.c): Likewise.
25509         (CFLAGS-pread.c): Likewise.
25510         (CFLAGS-pread64.c): Likewise.
25511         (CFLAGS-pwrite.c): Likewise.
25512         (CFLAGS-pwrite64.c): Likewise.
25513         (CFLAGS-sleep.c): Likewise.
25514         (CFLAGS-wait.c): Likewise.
25515         (CFLAGS-waitid.c): Likewise.
25516         (CFLAGS-waitpid.c): Likewise.
25517         (CFLAGS-getopt.c): Likewise.
25518         (CFLAGS-wordexp.c): Likewise.
25519         (CFLAGS-sysconf.c): Likewise.
25520         (CFLAGS-pathconf.c): Likewise.
25521         (CFLAGS-fpathconf.c): Likewise.
25522         (CFLAGS-spawn.c): Likewise.
25523         (CFLAGS-spawnp.c): Likewise.
25524         (CFLAGS-spawni.c): Likewise.
25525         (CFLAGS-glob.c): Likewise.
25526         (CFLAGS-glob64.c): Likewise.
25527         (CFLAGS-getconf.c): Likewise.
25528         (CFLAGS-nanosleep.c): Likewise.
25529         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
25530         (CFLAGS-getpwent.c): Likewise.
25531         (CFLAGS-getpw.c): Likewise.
25532         (CFLAGS-fgetpwent_r.c): Likewise.
25533         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
25534         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
25535         (CFLAGS-mq_timedreceive.c): Likewise.
25536         (CFLAGS-mq_timedsend.c): Likewise.
25537         (CFLAGS-clock_nanosleep.c): Likewise.
25538         (CFLAGS-librt-cancellation.c): Likewise.
25539         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
25540         (CFLAGS-getspent.c): Likewise.
25541         (CFLAGS-fgetspent.c): Likewise.
25542         (CFLAGS-fgetspent_r.c): Likewise.
25543         (CFLAGS-putspent.c): Likewise.
25544         (CFLAGS-getspnam.c): Likewise.
25545         (CFLAGS-getspnam_r.c): Likewise.
25546         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
25547         (CFLAGS-sigsuspend.c): Likewise.
25548         (CFLAGS-sigtimedwait.c): Likewise.
25549         (CFLAGS-sigwait.c): Likewise.
25550         (CFLAGS-sigwaitinfo.c): Likewise.
25551         (CFLAGS-sigreturn.c): Likewise.
25552         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
25553         (CFLAGS-vfwprintf.c): Likewise.
25554         (CFLAGS-tmpfile.c): Likewise.
25555         (CFLAGS-tmpfile64.c): Likewise.
25556         (CFLAGS-tempname.c): Likewise.
25557         (CFLAGS-psignal.c): Likewise.
25558         (CFLAGS-vprintf.c): Likewise.
25559         (CFLAGS-cuserid.c): Likewise.
25560         (CFLAGS-errlist.c): Likewise.
25561         (CFLAGS-siglist.c): Likewise.
25562         (CFLAGS-scanf15.c): Likewise.
25563         (CFLAGS-scanf17.c): Likewise.
25564         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
25565         (CFLAGS-msort.c): Likewise.
25566         (CFLAGS-qsort.c): Likewise.
25567         (CFLAGS-system.c): Likewise.
25568         (CFLAGS-fmtmsg.c): Likewise.
25569         (CFLAGS-strfmon.c): Likewise.
25570         (CFLAGS-strfmon_l.c): Likewise.
25571         (CFLAGS-strfromd.c): Likewise.
25572         (CFLAGS-strfromf.c): Likewise.
25573         (CFLAGS-strfroml.c): Likewise.
25574         (CFLAGS-tst-bsearch.c): Likewise.
25575         (CFLAGS-tst-qsort.c): Likewise.
25576         (CFLAGS-tst-makecontext2.c): Likewise.
25577         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
25578         (CFLAGS-xnlm_prot.c): Likewise.
25579         (CFLAGS-xrstat.c): Likewise.
25580         (CFLAGS-xyppasswd.c): Likewise.
25581         (CFLAGS-xklm_prot.c): Likewise.
25582         (CFLAGS-xrex.c): Likewise.
25583         (CFLAGS-xsm_inter.c): Likewise.
25584         (CFLAGS-xmount.c): Likewise.
25585         (CFLAGS-xrusers.c): Likewise.
25586         (CFLAGS-xspray.c): Likewise.
25587         (CFLAGS-xnfs_prot.c): Likewise.
25588         (CFLAGS-xrquota.c): Likewise.
25589         (CFLAGS-xkey_prot.c): Likewise.
25590         (CFLAGS-auth_unix.c): Likewise.
25591         (CFLAGS-key_call.c): Likewise.
25592         (CFLAGS-pmap_rmt.c): Likewise.
25593         (CFLAGS-clnt_perr.c): Likewise.
25594         (CFLAGS-openchild.c): Likewise.
25595         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
25596         (CFLAGS-msgsnd.c): Likewise.
25597         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
25598         * time/Makefile (CFLAGS-tzfile.c): Likewise.
25599         (CFLAGS-tzset.c): Likewise.
25600         (CFLAGS-getdate.c): Likewise.
25601         (CFLAGS-test_time.c): Likewise.
25602         (CPPFLAGS-tst-tzname.c): Likewise.
25603         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
25604         (CFLAGS-zic.c): Likewise.
25605         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
25606         (CFLAGS-wcswidth.c): Likewise.
25607         (CFLAGS-wcstol.c): Likewise.
25608         (CFLAGS-wcstoul.c): Likewise.
25609         (CFLAGS-wcstoll.c): Likewise.
25610         (CFLAGS-wcstoull.c): Likewise.
25611         (CFLAGS-wcstod.c): Likewise.
25612         (CFLAGS-wcstold.c): Likewise.
25613         (CFLAGS-wcstof128.c): Likewise.
25614         (CFLAGS-wcstof.c): Likewise.
25615         (CFLAGS-wcstol_l.c): Likewise.
25616         (CFLAGS-wcstoul_l.c): Likewise.
25617         (CFLAGS-wcstoll_l.c): Likewise.
25618         (CFLAGS-wcstoull_l.c): Likewise.
25619         (CFLAGS-wcstod_l.c): Likewise.
25620         (CFLAGS-wcstold_l.c): Likewise.
25621         (CFLAGS-wcstof128_l.c): Likewise.
25622         (CFLAGS-wcstof_l.c): Likewise.
25623         (CPPFLAGS-tst-wchar-h.c): Likewise.
25624         (CPPFLAGS-wcstold_l.c): Likewise.
25626 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
25628         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
25630 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25631             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25633         * manual/tunables.texi (Hardware Capability Tunables): Document
25634         glibc.tune.cached_memopt.
25635         * sysdeps/powerpc/cpu-features.c: New file.
25636         * sysdeps/powerpc/cpu-features.h: New file.
25637         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
25638         _dl_powerpc_cpu_features.
25639         * sysdeps/powerpc/dl-tunables.list: New file.
25640         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
25641         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
25642         (INIT_ARCH): Initialize use_aligned_memopt.
25643         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
25644         IS_IN(rtld))]: Restrict dl_platform_init availability and
25645         initialize CPU features used by tunables.
25646         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
25647         Add memcpy-power8-cached.
25648         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
25649         __memcpy_power8_cached.
25650         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
25651         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
25652         New file.
25654 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
25656         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
25657         (CFLAGS-noinl-tester.c): Likewise.
25658         (CFLAGS-tst-strlen.c): Likewise.
25659         (CFLAGS-stratcliff.c): Likewise.
25660         (CFLAGS-test-ffs.c): Likewise.
25661         (CFLAGS-tst-inlcall.c): Likewise.
25662         (CFLAGS-tst-xbzero-opt.c): Likewise.
25663         (CFLAGS-memcpy.c): Likewise.
25664         (CFLAGS-wordcopy.c): Likewise.
25666 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
25668         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
25669         Store r15 on stack and add cfi rule.
25670         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
25671         Likewise.
25673 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
25675         [BZ #22577]
25676         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
25677         call.
25679 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
25681         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25682         Add s_sinf-sse2 and s_sinf-fma.
25683         (CFLAGS-s_sinf-fma.c): New.
25684         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
25685         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
25686         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
25688 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
25690         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
25692 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
25694         [BZ #22568]
25695         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
25696         part of result to imaginary part of argument if it is zero and the
25697         real part of the argument is not finite.
25698         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
25699         of result to real part of argument if it is zero and the imaginary
25700         part of the argument is not finite.
25702 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
25704         [BZ #22524]
25705         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
25706         and to the list of locales to be built for testing.
25707         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
25708         * localedata/locales/lt_LT (LC_COLLATE): Use â€œcopy "iso14651_t1"”
25709         and build the collation rules upon that.
25711 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
25713         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
25714         * manual/math.texi (Mathematics): Document support for _Float32.
25715         * math/Makefile (test-types): Add float32.
25716         * math/Versions (GLIBC_2.27): Add _Float32 functions.
25717         * stdlib/Versions (GLIBC_2.27): Likewise.
25718         * wcsmbs/Versions (GLIBC_2.27): Likewise.
25719         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25720         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25721         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25722         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25723         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25724         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25725         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25726         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25727         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25728         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25729         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25730         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25731         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25732         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25733         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25734         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25735         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25736         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25737         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25738         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25739         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25740         Likewise.
25741         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25742         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25743         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25744         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25745         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25747         Likewise.
25748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25749         Likewise.
25750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25751         Likewise.
25752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25753         Likewise.
25755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25756         Likewise.
25757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25758         Likewise.
25759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25760         Likewise.
25761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25762         Likewise.
25763         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25764         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25765         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25766         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25767         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25768         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25769         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25770         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25771         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25772         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25773         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25774         Likewise.
25775         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25776         Likewise.
25777         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25778         Likewise.
25779         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25780         Likewise.
25781         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25782         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25783         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25784         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25785         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25786         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25787         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25788         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25790 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
25792         * stdlib/strtof.c: Include <bits/floatn.h>
25793         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
25794         and later undefine as macro.  Define as weak alias if
25795         [!USE_WIDE_CHAR].
25796         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
25797         and later undefine as macro.  Define as weak alias if
25798         [USE_WIDE_CHAR].
25799         * stdlib/strtof_l.c: Include <bits/floatn.h>
25800         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
25801         and later undefine as macro.  Define as weak alias if
25802         [!USE_WIDE_CHAR].
25803         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
25804         and later undefine as macro.  Define as weak alias if
25805         [USE_WIDE_CHAR].
25807         * stdlib/strfromf.c: Include <bits/floatn.h>.
25808         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
25809         and later undefine as macro and define as weak alias.
25811         * math/test-float32.h: New file.
25813         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
25814         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
25815         (libm_alias_float_other_r): Create f32 alias.
25816         (libm_alias_float_r): Use semicolon before call to
25817         libm_alias_float_other_r.
25819         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
25820         second argument to libm_alias_float_other.
25821         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
25822         second argument to libm_alias_float_other.
25823         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
25824         argument to libm_alias_float_other.
25826         [BZ #22561]
25827         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
25828         real part of result for argument 0 + i * NaN.
25829         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
25830         results for tests of 0 + i * NaN.
25832 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25834         * sysdeps/alpha/fpu/libm-test-ulps: Update.
25836 2017-12-06  David S. Miller  <davem@davemloft.net>
25838         * sysdeps/sparc/fpu/libm-test-ulps: Update
25839         exp_{downward,towardzero,upward} ulps.
25841 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
25843         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
25844         variables static.
25846         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
25847         (Y0_2D): Likewise.
25848         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
25849         (Y0_2D): Likewise.
25850         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
25851         (Y0_2D): Likewise.
25852         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
25853         (Y0_2D): Likewise.
25855 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
25857         [BZ #22515]
25858         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
25859         and to the list of locales to be built for testing.
25860         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
25861         * localedata/locales/hsb_DE (LC_COLLATE): Use â€œcopy "iso14651_t1"”
25862         and build the collation rules upon that.
25864 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25866         * NEWS: Add sinf to list of optimized functions.
25868 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
25870         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
25871         (__HAVE_FLOAT32X): Likewise.
25872         * manual/math.texi (Mathematics): Document support for _Float64
25873         and _Float32x.
25874         * math/Makefile (test-types): Add float64 and float32x.
25875         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
25876         functions.
25877         * stdlib/Versions (GLIBC_2.27): Likewise.
25878         * wcsmbs/Versions (GLIBC_2.27): Likewise.
25879         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25880         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25881         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25882         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25883         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25884         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25885         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25886         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25887         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25888         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25889         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25890         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25891         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25892         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25893         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25894         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25895         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25896         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25897         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25898         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25899         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25900         Likewise.
25901         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25902         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25903         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25904         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25905         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25907         Likewise.
25908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25909         Likewise.
25910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25911         Likewise.
25912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25913         Likewise.
25914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25915         Likewise.
25916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25917         Likewise.
25918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25919         Likewise.
25920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25921         Likewise.
25922         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25923         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25924         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25925         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25926         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25927         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25928         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25929         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25930         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25931         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25932         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25933         Likewise.
25934         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25935         Likewise.
25936         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25937         Likewise.
25938         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25939         Likewise.
25940         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25941         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25942         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25943         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25944         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25945         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25946         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25947         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25949 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
25951         * bits/floatn-common.h: Include <bits/long-double.h>.
25952         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25953         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25954         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25955         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25956         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25957         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25958         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25959         (__builtin_huge_valf64): Use __builtin_huge_vall.
25960         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25961         (__builtin_inff64): Use __builtin_infl.
25962         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25963         (__builtin_nanf64): Use __builtin_nanl.
25964         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25965         (__builtin_nansf64): Use __builtin_nansl.
25967 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
25968             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
25969             Carlos O'Donell  <carlos@redhat.com>
25971         * elf/dl-tunables.list: Add elision parameters.
25972         * manual/tunables.texi: Add entries about elision tunable.
25973         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25974         Add callback functions to dynamically enable/disable elision.
25975         Add multiple callbacks functions to set elision parameters.
25976         Deleted __libc_enable_secure check.
25977         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25978         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25979         * configure: Regenerated.
25980         * configure.ac: Option enable_lock_elision was deleted.
25981         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25982         * config.make.in: Remove references to enable_lock_elision.
25983         * manual/install.texi: Elision configure option was removed.
25984         * INSTALL: Regenerated to remove enable_lock_elision.
25985         * nptl/Makefile:
25986         Disable elision so it can verify error case for destroying a mutex.
25987         * sysdeps/powerpc/nptl/elide.h:
25988         Cleanup ENABLE_LOCK_ELISION check.
25989         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25990         * sysdeps/s390/configure: Regenerated.
25991         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25992         * nptl/tst-mutex8.c:
25993         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25994         * sysdeps/powerpc/powerpc32/sysdep.h:
25995         Deleted all ENABLE_LOCK_ELISION checks.
25996         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25997         * sysdeps/powerpc/sysdep.h: Likewise.
25998         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25999         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
26000         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
26001         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
26002         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
26003         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
26004         enable-lock-elision.
26006 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
26008         * stdlib/strtod.c: Include <bits/floatn.h>.
26009         (BUILD_DOUBLE): New macro.
26010         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
26011         (strtof64): Define and later undefine as macro.  Define as weak
26012         alias if [!USE_WIDE_CHAR].
26013         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
26014         (wcstof64): Define and later undefine as macro.  Define as weak
26015         alias if [USE_WIDE_CHAR].
26016         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
26017         (strtof32x): Define and later undefine as macro.  Define as weak
26018         alias if [!USE_WIDE_CHAR].
26019         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
26020         (wcstof32x): Define and later undefine as macro.  Define as weak
26021         alias if [USE_WIDE_CHAR].
26022         * stdlib/strtod_l.c: Include <bits/floatn.h>.
26023         (BUILD_DOUBLE): New macro.
26024         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
26025         (strtof64_l): Define and later undefine as macro.  Define as weak
26026         alias if [!USE_WIDE_CHAR].
26027         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
26028         (wcstof64_l): Define and later undefine as macro.  Define as weak
26029         alias if [USE_WIDE_CHAR].
26030         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
26031         (strtof32x_l): Define and later undefine as macro.  Define as weak
26032         alias if [!USE_WIDE_CHAR].
26033         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
26034         (wcstof32x_l): Define and later undefine as macro.  Define as weak
26035         alias if [USE_WIDE_CHAR].
26037 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26039         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
26040         (reduced): Use ones as double instead of integer.
26042 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26044         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
26046 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
26048         * stdlib/strfromd.c: Include <bits/floatn.h>.
26049         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
26050         and later undefine as macro and define as weak alias.
26051         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
26052         Likewise.
26054         * math/test-float32x.h: New file.
26055         * math/test-float64.h: Likewise.
26057         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
26058         (libm_alias_double_other_r_f64): New macro.
26059         (libm_alias_double_other_r_f32x): Likewise.
26060         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
26061         libm_alias_double_other_r_f32x.
26062         (libm_alias_double_r): Use semicolon before call to
26063         libm_alias_double_other_r.
26064         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
26065         <bits/floatn.h>.
26066         (libm_alias_double_other_r_f64): New macro.
26067         (libm_alias_double_other_r_f32x): Likewise.
26068         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
26069         libm_alias_double_other_r_f32x.
26071 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
26073         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
26074         int.
26075         (SINF_FUNC): Likewise.  Replace floor with simple casts.
26077 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
26079         [BZ #22517]
26080         * localedata/Makefile: Add et_EE.UTF-8 to test-input
26081         and to the list of locales to be built for testing.
26082         * localedata/et_EE.UTF-8.in: New file for testing the collation.
26083         * localedata/locales/et_EE (LC_COLLATE): Use â€œcopy "iso14651_t1"”
26084         and build the collation rules upon that.
26086 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
26088         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
26089         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
26090         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
26091         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
26092         instead of __insn__xxx.
26093         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
26094         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
26095         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
26096         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
26097         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
26098         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
26100 2017-12-05  Florian Weimer  <fweimer@redhat.com>
26102         Linux: Implement interfaces for memory protection keys
26103         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
26104         xsignal, xsysconf.
26105         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
26106         * support/xunistd.h (xsysconf): Declare.
26107         * support/xraise.c: New file.
26108         * support/xsigaction.c: Likewise.
26109         * support/xsignal.c: Likewise.
26110         * support/xsysconf.c: Likewise.
26111         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
26112         pkey_set, pkey_get, pkey_mprotect.
26113         [misc] (tests): Add tst-pkey.
26114         (tst-pkey): Link with -lpthread.
26115         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
26116         pkey_free, pkey_set, pkey_get, pkey_mprotect.
26117         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
26118         (PKEY_DISABLE_WRITE): Define.
26119         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
26120         Declare.
26121         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
26122         (SEGV_PKUERR): Add.
26123         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
26124         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
26125         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
26126         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
26127         Add.
26128         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
26129         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
26130         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
26131         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
26132         * sysdeps/unix/sysv/linux/**.abilist: Update.
26134 2017-12-05  Florian Weimer  <fweimer@redhat.com>
26136         * support/tst-test_compare.c (subprocess): Use long long instead
26137         of long argument for consistent type width across 32-bit and
26138         64-bit architectures.
26139         (do_test): Adjust expected output.
26141 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
26143         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
26144         (cosf): Define using libm_alias_float.
26145         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
26146         (fabsf): Define using libm_alias_float.
26147         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
26148         (fmaf): Define using libm_alias_float.
26149         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
26150         (rintf): Define using libm_alias_float.
26151         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
26152         (sinf): Define using libm_alias_float.
26153         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
26154         <libm-alias-float.h>.
26155         (modff): Define using libm_alias_float.
26156         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
26157         <libm-alias-float.h>.
26158         (logbf): Define using libm_alias_float.
26159         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
26160         <libm-alias-float.h>.
26161         (ceilf): Define using libm_alias_float.
26162         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
26163         <libm-alias-float.h>.
26164         (copysignf): Define using libm_alias_float.
26165         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
26166         <libm-alias-float.h>.
26167         (floorf): Define using libm_alias_float.
26168         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
26169         <libm-alias-float.h>.
26170         (llrintf): Define using libm_alias_float.
26171         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
26172         <libm-alias-float.h>.
26173         (llroundf): Define using libm_alias_float.
26174         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
26175         <libm-alias-float.h>.
26176         (lrintf): Define using libm_alias_float.
26177         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
26178         <libm-alias-float.h>.
26179         (lroundf): Define using libm_alias_float.
26180         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
26181         <libm-alias-float.h>.
26182         (nearbyintf): Define using libm_alias_float.
26183         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
26184         <libm-alias-float.h>.
26185         (rintf): Define using libm_alias_float.
26186         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
26187         <libm-alias-float.h>.
26188         (roundf): Define using libm_alias_float.
26189         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
26190         <libm-alias-float.h>.
26191         (truncf): Define using libm_alias_float.
26192         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
26193         Include <libm-alias-float.h>.
26194         (ceilf): Define using libm_alias_float.
26195         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
26196         Include <libm-alias-float.h>.
26197         (copysignf): Define using libm_alias_float.
26198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
26199         Include <libm-alias-float.h>.
26200         (floorf): Define using libm_alias_float.
26201         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
26202         Include <libm-alias-float.h>.
26203         (llrintf): Define using libm_alias_float.
26204         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
26205         Include <libm-alias-float.h>.
26206         (llroundf): Define using libm_alias_float.
26207         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
26208         Include <libm-alias-float.h>.
26209         (logbf): Define using libm_alias_float.
26210         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
26211         Include <libm-alias-float.h>.
26212         (lrintf): Define using libm_alias_float.
26213         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
26214         Include <libm-alias-float.h>.
26215         (lroundf): Define using libm_alias_float.
26216         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
26217         Include <libm-alias-float.h>.
26218         (modff): Define using libm_alias_float.
26219         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
26220         Include <libm-alias-float.h>.
26221         (roundf): Define using libm_alias_float.
26222         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
26223         Include <libm-alias-float.h>.
26224         (truncf): Define using libm_alias_float.
26225         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
26226         <libm-alias-float.h>.
26227         (llrintf): Define using libm_alias_float.
26228         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
26229         <libm-alias-float.h>.
26230         (llroundf): Define using libm_alias_float.
26231         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
26232         <libm-alias-float.h>.
26233         (ceilf): Define using libm_alias_float.
26234         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
26235         <libm-alias-float.h>.
26236         (floorf): Define using libm_alias_float.
26237         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
26238         <libm-alias-float.h>.
26239         (llroundf): Define using libm_alias_float.
26240         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
26241         <libm-alias-float.h>.
26242         (lroundf): Define using libm_alias_float.
26243         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
26244         <libm-alias-float.h>.
26245         (roundf): Define using libm_alias_float.
26246         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
26247         <libm-alias-float.h>.
26248         (truncf): Define using libm_alias_float.
26249         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
26250         <libm-alias-float.h>.
26251         (copysignf): Define using libm_alias_float.
26252         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
26253         <libm-alias-float.h>.
26254         (llrintf): Define using libm_alias_float.
26255         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
26256         <libm-alias-float.h>.
26257         (llroundf): Define using libm_alias_float.
26258         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
26259         <libm-alias-float.h>.
26260         (lrintf): Define using libm_alias_float.
26261         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
26262         <libm-alias-float.h>.
26263         (lroundf): Define using libm_alias_float.
26264         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
26265         <libm-alias-float.h>.
26266         (ceilf): Define using libm_alias_float.
26267         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
26268         <libm-alias-float.h>.
26269         (copysignf): Define using libm_alias_float.
26270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
26271         <libm-alias-float.h>.
26272         (cosf): Define using libm_alias_float.
26273         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
26274         <libm-alias-float.h>.
26275         (floorf): Define using libm_alias_float.
26276         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
26277         <libm-alias-float.h>.
26278         (llrintf): Define using libm_alias_float.
26279         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
26280         <libm-alias-float.h>.
26281         (llroundf): Define using libm_alias_float.
26282         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
26283         <libm-alias-float.h>.
26284         (logbf): Define using libm_alias_float.
26285         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
26286         <libm-alias-float.h>.
26287         (modff): Define using libm_alias_float.
26288         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
26289         <libm-alias-float.h>.
26290         (roundf): Define using libm_alias_float.
26291         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
26292         <libm-alias-float.h>.
26293         (sinf): Define using libm_alias_float.
26294         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
26295         <libm-alias-float.h>.
26296         (truncf): Define using libm_alias_float.
26297         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
26298         <libm-alias-float.h>.
26299         (ceilf): Define using libm_alias_float.
26300         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
26301         <libm-alias-float.h>.
26302         (copysignf): Define using libm_alias_float.
26303         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
26304         <libm-alias-float.h>.
26305         (floorf): Define using libm_alias_float.
26306         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
26307         <libm-alias-float.h>.
26308         (llrintf): Define using libm_alias_float.
26309         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
26310         <libm-alias-float.h>.
26311         (llroundf): Define using libm_alias_float.
26312         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
26313         <libm-alias-float.h>.
26314         (nearbyintf): Define using libm_alias_float.
26315         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
26316         <libm-alias-float.h>.
26317         (rintf): Define using libm_alias_float.
26318         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
26319         <libm-alias-float.h>.
26320         (roundf): Define using libm_alias_float.
26321         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
26322         <libm-alias-float.h>.
26323         (truncf): Define using libm_alias_float.
26324         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
26325         <libm-alias-float.h>.
26326         (ceilf): Define using libm_alias_float.
26327         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
26328         <libm-alias-float.h>.
26329         (floorf): Define using libm_alias_float.
26330         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
26331         <libm-alias-float.h>.
26332         (llroundf): Define using libm_alias_float.
26333         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
26334         <libm-alias-float.h>.
26335         (roundf): Define using libm_alias_float.
26336         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
26337         <libm-alias-float.h>.
26338         (truncf): Define using libm_alias_float.
26339         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
26340         <libm-alias-float.h>.
26341         (copysignf): Define using libm_alias_float.
26342         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
26343         <libm-alias-float.h>.
26344         (llrintf): Define using libm_alias_float.
26345         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
26346         <libm-alias-float.h>.
26347         (llroundf): Define using libm_alias_float.
26348         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
26349         <libm-alias-float.h>.
26350         (cosf): Define using libm_alias_float.
26351         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
26352         <libm-alias-float.h>.
26353         (llrintf): Define using libm_alias_float.
26354         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
26355         <libm-alias-float.h>.
26356         (llroundf): Define using libm_alias_float.
26357         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
26358         <libm-alias-float.h>.
26359         (sinf): Define using libm_alias_float.
26361 2017-12-04  Florian Weimer  <fweimer@redhat.com>
26363         * support/check.h (TEST_COMPARE): Define.
26364         (support_test_compare_failure): Declare.
26365         * support/Makefile (libsupport-routines): Add
26366         support_test_compare_failure.
26367         (tests): Add tst-test_compare.
26368         * support /support_test_compare_failure.c: New file.
26369         * support/tst-test_compare.c: Likewise.
26371 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
26373         [BZ #22527]
26374         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
26375         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
26376         available, this rewrite of the collation rules does reproduce
26377         the test file in the same order.
26379 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
26381         [BZ #10580]
26382         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
26383         digraphs in the month and day names. Using single code points for
26384         digraphs is deprecated.  While there are dedicated Unicode
26385         codepoints, for the digraphs, these are included for backwards
26386         compatibility and modern texts use a sequence of Basic Latin
26387         characters. See: https://www.unicode.org/faq/ligature_digraph.html
26388         This makes the month and day names agree exactly with CLDR now,
26389         CLDR does not use the single code points for the digraphs either.
26391 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
26393         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
26395 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
26397         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
26398         of floor.
26400 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
26402         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
26403         Define only for libc.so.
26405 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
26407         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26408         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
26409         CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
26410         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
26411         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
26413 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26415         [BZ #5997]
26416         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
26418 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
26420         [BZ libc/19170]
26421         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
26422         PREINIT_FUNCTION_WEAK is nonzero.
26423         (gmon_initializer): New function.  Put procedure label for it in
26424         .init_array section.
26425         (_init): Don't call PREINIT_FUNCTION.
26426         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
26427         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
26428         value when map argument is null.
26430         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
26431         depi instruction from PIC pc-relative sequence.
26432         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
26433         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
26434         (elf_machine_load_address): Likewise.
26435         (elf_machine_runtime_setup): Likewise.
26437 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
26439         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
26440         <libm-alias-double.h>.
26441         (logb): Define using libm_alias_double.
26442         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
26443         <libm-alias-double.h>.
26444         (copysign): Define using libm_alias_double.
26445         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
26446         <libm-alias-double.h>.
26447         (llrint): Define using libm_alias_double.
26448         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
26449         <libm-alias-double.h>.
26450         (llround): Define using libm_alias_double.
26451         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
26452         <libm-alias-double.h>.
26453         (lrint): Define using libm_alias_double.
26454         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
26455         <libm-alias-double.h>.
26456         (lround): Define using libm_alias_double.
26457         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
26458         Include <libm-alias-double.h>.
26459         (copysign): Define using libm_alias_double.
26460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
26461         Include <libm-alias-double.h>.
26462         (llrint): Define using libm_alias_double.
26463         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
26464         Include <libm-alias-double.h>.
26465         (llround): Define using libm_alias_double.
26466         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
26467         <libm-alias-double.h>.
26468         (logb): Define using libm_alias_double.
26469         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
26470         Include <libm-alias-double.h>.
26471         (lrint): Define using libm_alias_double.
26472         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
26473         Include <libm-alias-double.h>.
26474         (lround): Define using libm_alias_double.
26475         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
26476         <libm-alias-double.h>.
26477         (llrint): Define using libm_alias_double.
26478         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
26479         <libm-alias-double.h>.
26480         (llround): Define using libm_alias_double.
26481         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
26482         <libm-alias-double.h>.
26483         (llround): Define using libm_alias_double.
26484         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
26485         <libm-alias-double.h>.
26486         (lround): Define using libm_alias_double.
26487         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
26488         <libm-alias-double.h>.
26489         (copysign): Define using libm_alias_double.
26490         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
26491         <libm-alias-double.h>.
26492         (llrint): Define using libm_alias_double.
26493         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
26494         <libm-alias-double.h>.
26495         (llround): Define using libm_alias_double.
26496         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
26497         <libm-alias-double.h>.
26498         (lrint): Define using libm_alias_double.
26499         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
26500         <libm-alias-double.h>.
26501         (lround): Define using libm_alias_double.
26502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
26503         <libm-alias-double.h>.
26504         (copysign): Define using libm_alias_double.
26505         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
26506         <libm-alias-double.h>.
26507         (llrint): Define using libm_alias_double.
26508         (lrint): Likewise.
26509         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
26510         <libm-alias-double.h>.
26511         (llround): Define using libm_alias_double.
26512         (lround): Likewise.
26513         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
26514         <libm-alias-double.h>.
26515         (logb): Define using libm_alias_double.
26516         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
26517         <libm-alias-double.h>.
26518         (copysign): Define using libm_alias_double.
26519         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
26520         <libm-alias-double.h>.
26521         (llrint): Define using libm_alias_double.
26522         (lrint): Likewise.
26523         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
26524         <libm-alias-double.h>.
26525         (llround): Define using libm_alias_double.
26526         (lround): Likewise.
26527         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
26528         <libm-alias-double.h>.
26529         (llround): Define using libm_alias_double.
26530         (lround): Likewise.
26531         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
26532         <libm-alias-double.h>.
26533         (copysign): Define using libm_alias_double.
26534         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
26535         <libm-alias-double.h>.
26536         (llrint): Define using libm_alias_double.
26537         (lrint): Likewise.
26538         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
26539         <libm-alias-double.h>.
26540         (llround): Define using libm_alias_double.
26541         (lround): Likewise.
26542         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
26543         <libm-alias-double.h>.
26544         (llrint): Define using libm_alias_double.
26545         (lrint): Likewise.
26546         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
26547         <libm-alias-double.h>.
26548         (llround): Define using libm_alias_double.
26549         (lround): Likewise.
26551 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
26553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
26554         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
26555         compat symbol based on llround.
26557         * sysdeps/powerpc/power7/fpu/s_logb.c
26558         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
26559         symbol based on __logb, not on logb.
26560         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
26561         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
26562         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
26563         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
26565         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
26566         (rint): Define using libm_alias_double.
26567         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
26568         <libm-alias-double.h>.
26569         (modf): Define using libm_alias_double.
26570         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
26571         <libm-alias-double.h>.
26572         (ceil): Define using libm_alias_double.
26573         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
26574         <libm-alias-double.h>.
26575         (floor): Define using libm_alias_double.
26576         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
26577         <libm-alias-double.h>.
26578         (nearbyint): Define using libm_alias_double.
26579         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
26580         <libm-alias-double.h>.
26581         (rint): Define using libm_alias_double.
26582         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
26583         <libm-alias-double.h>.
26584         (round): Define using libm_alias_double.
26585         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
26586         <libm-alias-double.h>.
26587         (trunc): Define using libm_alias_double.
26588         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
26589         <libm-alias-double.h>.
26590         (ceil): Define using libm_alias_double.
26591         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
26592         Include <libm-alias-double.h>.
26593         (floor): Define using libm_alias_double.
26594         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
26595         <libm-alias-double.h>.
26596         (modf): Define using libm_alias_double.
26597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
26598         Include <libm-alias-double.h>.
26599         (round): Define using libm_alias_double.
26600         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
26601         Include <libm-alias-double.h>.
26602         (trunc): Define using libm_alias_double.
26603         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
26604         <libm-alias-double.h>.
26605         (ceil): Define using libm_alias_double.
26606         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
26607         <libm-alias-double.h>.
26608         (floor): Define using libm_alias_double.
26609         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
26610         <libm-alias-double.h>.
26611         (round): Define using libm_alias_double.
26612         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
26613         <libm-alias-double.h>.
26614         (trunc): Define using libm_alias_double.
26615         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
26616         <libm-alias-double.h>.
26617         (ceil): Define using libm_alias_double.
26618         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
26619         <libm-alias-double.h>.
26620         (floor): Define using libm_alias_double.
26621         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
26622         <libm-alias-double.h>.
26623         (modf): Define using libm_alias_double.
26624         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
26625         <libm-alias-double.h>.
26626         (round): Define using libm_alias_double.
26627         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
26628         <libm-alias-double.h>.
26629         (trunc): Define using libm_alias_double.
26630         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
26631         <libm-alias-double.h>.
26632         (ceil): Define using libm_alias_double.
26633         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
26634         <libm-alias-double.h>.
26635         (floor): Define using libm_alias_double.
26636         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
26637         <libm-alias-double.h>.
26638         (nearbyint): Define using libm_alias_double.
26639         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
26640         <libm-alias-double.h>.
26641         (rint): Define using libm_alias_double.
26642         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
26643         <libm-alias-double.h>.
26644         (round): Define using libm_alias_double.
26645         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
26646         <libm-alias-double.h>.
26647         (trunc): Define using libm_alias_double.
26648         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
26649         <libm-alias-double.h>.
26650         (ceil): Define using libm_alias_double.
26651         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
26652         <libm-alias-double.h>.
26653         (floor): Define using libm_alias_double.
26654         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
26655         <libm-alias-double.h>.
26656         (round): Define using libm_alias_double.
26657         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
26658         <libm-alias-double.h>.
26659         (trunc): Define using libm_alias_double.
26661         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
26662         (fabs): Define using libm_alias_double.
26663         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
26664         (fma): Define using libm_alias_double.
26665         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
26666         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
26667         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
26668         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
26670 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26672         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
26674         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
26675         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
26676         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
26679         due redirect macro.
26681 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
26683         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
26685 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26687         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
26688         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
26689         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
26690         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
26692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26693         (libm-sysdep_routines): Add s_nearbyintf-generic and
26694         s_nearbyint-generic.
26695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
26696         New file.
26697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
26698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
26699         Likewise.
26700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
26701         Likewise.
26702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
26703         file.
26704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26705         Likewise.
26707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26708         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
26709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
26710         file.
26711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
26712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
26713         Likewise.
26714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
26715         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
26716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
26718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26719         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
26720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
26721         file.
26722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
26723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
26724         Likewise.
26725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
26726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
26727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
26729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26730         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
26731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
26732         file.
26733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
26734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
26735         Likewise.
26736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
26737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
26738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
26740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26741         (sysdep_calls): New rule.
26742         (sysdep_routines): Use sysdep_calls as base.
26743         (libm-sysdep_routines): Add generic rule for symbols shared with
26744         libc.  Add s_copysign-generic and s_copysign-generic objects.
26745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
26746         New file.
26747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
26748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
26749         Likewise.
26750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
26751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
26752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
26754 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
26756         [BZ #22519]
26757         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
26758         the list of locales to be built for testing.
26759         * localedata/is_IS.UTF-8.in: New file.
26760         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
26761         on iso14651_t1.
26763 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
26765         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
26766         <libm-alias-float.h>.
26767         (fabsf): Define using libm_alias_float.
26769 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
26771         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
26773 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
26775         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
26776         <libm-alias-float.h>.
26777         (fabsf): Define using libm_alias_float.
26778         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
26779         <libm-alias-float.h>.
26780         (lrintf): Define using libm_alias_float.
26781         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
26782         <libm-alias-float.h>.
26783         (rintf): Define using libm_alias_float.
26785         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
26786         <libm-alias-double.h>.
26787         (fabs): Define using libm_alias_double.
26788         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
26789         <libm-alias-double.h>.
26790         (lrint): Define using libm_alias_double.
26791         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
26792         <libm-alias-double.h>.
26793         (rint): Define using libm_alias_double.
26795         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
26796         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
26797         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
26798         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
26799         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
26800         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
26801         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
26802         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
26803         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
26804         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
26805         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
26806         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
26807         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
26808         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
26809         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
26810         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
26811         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
26812         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
26813         s_atan_template.c.
26814         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
26815         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
26816         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
26817         s_ceil_template.c.
26818         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
26819         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
26820         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
26821         s_cos_template.c.
26822         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
26823         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
26824         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
26825         s_expm1_template.c.
26826         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
26827         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
26828         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
26829         s_fabs_template.c.
26830         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
26831         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
26832         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
26833         s_floor_template.c.
26834         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
26835         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
26836         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
26837         s_frexp_template.c.
26838         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
26839         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
26840         s_lrint_template.c.
26841         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
26842         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
26843         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
26844         s_modf_template.c.
26845         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
26846         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
26847         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
26848         s_nearbyint_template.c.
26849         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
26850         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
26851         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
26852         s_remquo_template.c.
26853         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
26854         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
26855         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
26856         s_rint_template.c.
26857         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
26858         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
26859         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
26860         s_sin_template.c.
26861         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
26862         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
26863         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
26864         s_sincos_template.c.
26865         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
26866         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
26867         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
26868         s_tan_template.c.
26869         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
26870         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
26871         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
26872         s_tanh_template.c.
26873         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
26874         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
26875         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
26876         s_trunc_template.c.
26877         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
26878         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
26879         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
26880         s_atan.c instead of including s_atan.c.
26881         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
26882         s_atanf.c instead of including s_atanf.c.
26883         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
26884         s_atanl.c instead of including s_atanl.c.
26885         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
26886         instead of s_atan.c.
26887         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
26888         instead of s_atanf.c.
26889         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
26890         instead of s_atanl.c.
26892         * scripts/update-copyrights: Do not handle intl/plural.c
26893         specially.
26895 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
26897         [BZ #22432]
26898         * configure.ac (BISON): Require to be present.
26899         * configure: Regenerated.
26900         * intl/Makefile (generated): Add plural.c.
26901         [$(BISON) != no]: Make code unconditional.
26902         (plural.c): Change rule to $(objpfx)plural.c.
26903         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
26904         * intl/plural.c: Remove.
26905         * manual/install.texi (Tools for Compilation): Document bison as
26906         required.
26907         * INSTALL: Regenerated.
26909 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
26911         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
26912         <libm-alias-double.h>.
26913         (llrint): Define using libm_alias_double.
26914         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
26915         <libm-alias-float.h>.
26916         (llrintf): Define using libm_alias_float.
26917         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
26918         <libm-alias-ldouble.h>.
26919         (llrintl): Define using libm_alias_ldouble.
26921         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
26922         declare_mgen_alias instead of weak_alias.
26923         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26924         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26925         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26927 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26929         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26930         Add add_n-generic.
26931         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26932         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26933         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26935         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26936         Add submul_1-generic.
26937         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26938         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26939         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26941         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26942         Add addmul_1-generic.
26943         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26944         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26945         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26947         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26948         Add sub_n-generic.
26949         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26950         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26951         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26953         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26954         Add mul_1-generic.
26955         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26956         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26957         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26959 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
26961         According to CLDR, collation rules for Serbian and Bosnian
26962         should be the same as for Croatian.
26964         [BZ #22534]
26965         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26966         and to the list of locales to be built for testing.
26967         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26968         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26969         * localedata/locales/bs_BA (LC_COLLATE): Use â€œcopy "hr_HR"”.
26970         * localedata/locales/sr_RS (LC_COLLATE): Use â€œcopy "hr_HR"”.
26972 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
26974         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26975         to make test case pass.
26976         * localedata/hr_HR.UTF-8.in: Add more test strings.
26978 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
26980         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26982 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
26984         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26985         the list of locales to built for testing.
26986         * localedata/hr_HR.UTF-8.in: New file.
26988 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
26990         [BZ #10580]
26991         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26992         iso14651_t1.
26993         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26994         CLDR (except use ligatures for the digraphs, CLDR does not use
26995         the ligatures), add first_workday, some fixes in the date and time
26996         formats.
26997         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26998         for Ä and Ä‘.
26999         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
27000         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
27001         Add int_p_cs_precedes and int_n_cs_precedes.
27002         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
27003         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
27004         LC_MONETARY now).
27005         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
27006         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
27007         name_miss.
27008         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
27009         and lang_lib. Change postal_fmt.
27011 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
27013         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
27014         <setjmp.h>.
27015         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
27016         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
27017         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
27018         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
27019         * sysdeps/generic/setjmpP.h: New file.
27020         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
27021         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
27022         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
27023         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
27024         Add jmp_buf-ssp.sym.
27025         (tests): Add tst-saved_mask-1.
27027 2017-11-30  Arjun Shankar  <arjun@redhat.com>
27029         [BZ #22375]
27030         CVE-2017-17426
27031         * malloc/malloc.c (__libc_malloc): Use checked_request2size
27032         instead of request2size.
27034 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
27036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
27037         (__lllrint): Remove alias.
27038         (lllrint): Likewise.
27039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
27040         (__lllrintf): Likewise.
27041         (lllrintf): Likewise.
27043         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
27044         <libm-alias-float.h>.
27045         (copysignf): Define using libm_alias_float.
27046         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
27047         <libm-alias-float.h>.
27048         (fabsf): Define using libm_alias_float.
27049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
27050         Include <libm-alias-float.h>.
27051         (copysignf): Define using libm_alias_float.
27052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
27053         <libm-alias-float.h>.
27054         (fabsf): Define using libm_alias_float.
27055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
27056         <libm-alias-float.h>.
27057         (fdimf): Define using libm_alias_float.
27058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
27059         <libm-alias-float.h>.
27060         (fmaf): Define using libm_alias_float.
27061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
27062         <libm-alias-float.h>.
27063         (llrintf): Define using libm_alias_float.
27064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
27065         Include <libm-alias-float.h>.
27066         (nearbyintf): Define using libm_alias_float.
27067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
27068         <libm-alias-float.h>.
27069         (rintf): Define using libm_alias_float.
27070         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
27071         <libm-alias-float.h>.
27072         (llrintf): Define using libm_alias_float.
27073         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
27074         <libm-alias-float.h>.
27075         (lrintf): Define using libm_alias_float.
27076         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
27077         <libm-alias-float.h>.
27078         (nearbyintf): Define using libm_alias_float.
27079         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
27080         <libm-alias-float.h>.
27081         (rintf): Define using libm_alias_float.
27082         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
27083         <libm-alias-float.h>.
27084         (ceilf): Define using libm_alias_float.
27085         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
27086         <libm-alias-float.h>.
27087         (floorf): Define using libm_alias_float.
27088         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
27089         <libm-alias-float.h>.
27090         (fmaf): Define using libm_alias_float.
27091         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
27092         <libm-alias-float.h>.
27093         (lrintf): Define using libm_alias_float.
27094         (llrintf): Likewise.
27095         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
27096         <libm-alias-float.h>.
27097         (nearbyintf): Define using libm_alias_float.
27098         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
27099         <libm-alias-float.h>.
27100         (rintf): Define using libm_alias_float.
27101         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
27102         <libm-alias-float.h>.
27103         (truncf): Define using libm_alias_float.
27104         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
27105         <libm-alias-float.h>.
27106         (copysignf): Define using libm_alias_float.
27107         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
27108         <libm-alias-float.h>.
27109         (fabsf): Define using libm_alias_float.
27110         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
27111         <libm-alias-float.h>.
27112         (lrintf): Define using libm_alias_float.
27113         (llrintf): Likewise.
27114         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
27115         <libm-alias-float.h>.
27116         (nearbyintf): Define using libm_alias_float.
27117         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
27118         <libm-alias-float.h>.
27119         (rintf): Define using libm_alias_float.
27121 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
27123         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27124         <libm-alias-double.h>.
27125         (copysign): Define using libm_alias_double.
27126         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
27127         <libm-alias-double.h>.
27128         (fabs): Define using libm_alias_double.
27129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27130         Include <libm-alias-double.h>.
27131         (copysign): Define using libm_alias_double.
27132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27133         <libm-alias-double.h>.
27134         (fabs): Define using libm_alias_double.
27135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
27136         <libm-alias-double.h>.
27137         (fdim): Define using libm_alias_double.
27138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
27139         <libm-alias-double.h>.
27140         (fma): Define using libm_alias_double.
27141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
27142         <libm-alias-double.h>.
27143         (llrint): Define using libm_alias_double.
27144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
27145         Include <libm-alias-double.h>.
27146         (nearbyint): Define using libm_alias_double.
27147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
27148         <libm-alias-double.h>.
27149         (rint): Define using libm_alias_double.
27150         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
27151         <libm-alias-double.h>.
27152         (fabs): Define using libm_alias_double.
27153         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
27154         <libm-alias-double.h>.
27155         (llrint): Define using libm_alias_double.
27156         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
27157         <libm-alias-double.h>.
27158         (nearbyint): Define using libm_alias_double.
27159         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
27160         <libm-alias-double.h>.
27161         (rint): Define using libm_alias_double.
27162         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
27163         <libm-alias-double.h>.
27164         (ceil): Define using libm_alias_double.
27165         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
27166         <libm-alias-double.h>.
27167         (floor): Define using libm_alias_double.
27168         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
27169         <libm-alias-double.h>.
27170         (fma): Define using libm_alias_double.
27171         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
27172         <libm-alias-double.h>.
27173         (lrint): Define using libm_alias_double.
27174         (llrint): Likewise.
27175         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
27176         <libm-alias-double.h>.
27177         (nearbyint): Define using libm_alias_double.
27178         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
27179         <libm-alias-double.h>.
27180         (rint): Define using libm_alias_double.
27181         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
27182         <libm-alias-double.h>.
27183         (trunc): Define using libm_alias_double.
27184         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
27185         <libm-alias-double.h>.
27186         (copysign): Define using libm_alias_double.
27187         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
27188         <libm-alias-double.h>.
27189         (fabs): Define using libm_alias_double.
27190         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
27191         <libm-alias-double.h>.
27192         (lrint): Define using libm_alias_double.
27193         (llrint): Likewise.
27194         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
27195         <libm-alias-double.h>.
27196         (nearbyint): Define using libm_alias_double.
27197         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
27198         <libm-alias-double.h>.
27199         (rint): Define using libm_alias_double.
27201         [BZ #22229]
27202         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
27203         <math_ldbl_opt.h>.
27204         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27206         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
27207         SPARC --disable-multi-arch glibc variants.
27209         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
27210         <libm-alias-float.h>.
27211         (exp2f): Define using libm_alias_float, or libm_alias_float_other
27212         if [SHARED].
27213         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
27214         <libm-alias-float.h>.
27215         (exp2f): Define using libm_alias_float, or libm_alias_float_other
27216         if [SHARED].
27217         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
27218         <libm-alias-float.h>.
27219         (exp2f): Define using libm_alias_float, or libm_alias_float_other
27220         if [SHARED].
27221         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
27222         <libm-alias-float.h>.
27223         (exp2f): Define using libm_alias_float, or libm_alias_float_other
27224         if [SHARED].
27225         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
27226         <libm-alias-float.h>.
27227         (exp2f): Define using libm_alias_float, or libm_alias_float_other
27228         if [SHARED].
27229         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
27230         <libm-alias-float.h>.
27231         (ceilf): Define using libm_alias_float.
27232         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
27233         <libm-alias-float.h>.
27234         (floorf): Define using libm_alias_float.
27235         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
27236         <libm-alias-float.h>.
27237         (fmaf): Define using libm_alias_float.
27238         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
27239         <libm-alias-float.h>.
27240         (nearbyintf): Define using libm_alias_float.
27241         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
27242         <libm-alias-float.h>.
27243         (rintf): Define using libm_alias_float.
27244         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
27245         <libm-alias-float.h>.
27246         (truncf): Define using libm_alias_float.
27247         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
27248         (copysignf): Define using libm_alias_float.
27249         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
27250         (cosf): Define using libm_alias_float.
27251         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27252         (fabsf): Define using libm_alias_float.
27253         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
27254         (fmaxf): Define using libm_alias_float.
27255         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
27256         (fminf): Define using libm_alias_float.
27257         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
27258         (llrintf): Define using libm_alias_float.
27259         [!__ILP32__] (lrintf): Likewise.
27260         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
27261         (sincosf): Define using libm_alias_float.
27262         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
27263         (sinf): Define using libm_alias_float.
27264         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
27265         (lrintf): Define using libm_alias_float.
27267         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
27268         <libm-alias-double.h>.
27269         (atan): Define using libm_alias_double.
27270         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
27271         <libm-alias-double.h>.
27272         (ceil): Define using libm_alias_double.
27273         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
27274         <libm-alias-double.h>.
27275         (floor): Define using libm_alias_double.
27276         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
27277         <libm-alias-double.h>.
27278         (fma): Define using libm_alias_double.
27279         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
27280         <libm-alias-double.h>.
27281         (nearbyint): Define using libm_alias_double.
27282         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
27283         <libm-alias-double.h>.
27284         (rint): Define using libm_alias_double.
27285         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
27286         <libm-alias-double.h>.
27287         (sin): Define using libm_alias_double.
27288         (cos): Likewise.
27289         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
27290         <libm-alias-double.h>.
27291         (tan): Define using libm_alias_double.
27292         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
27293         <libm-alias-double.h>.
27294         (trunc): Define using libm_alias_double.
27295         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
27296         (copysign): Define using libm_alias_double.
27297         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
27298         (fabs): Define using libm_alias_double.
27299         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
27300         (fmax): Define using libm_alias_double.
27301         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
27302         (fmin): Define using libm_alias_double.
27303         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
27304         (llrint): Define using libm_alias_double.
27305         [!__ILP32__] (lrint): Likewise.
27306         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
27307         (lrint): Define using libm_alias_double.
27309 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27311         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
27312         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
27313         objects.
27314         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
27315         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
27316         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
27317         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
27318         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
27319         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
27321         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
27322         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
27323         objects.
27324         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
27325         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
27326         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
27327         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
27328         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
27329         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
27331         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
27332         (libm-sysdep_routines): Add s_nearbyint-generic and
27333         s_nearbyintf-generic objects.
27334         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
27335         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
27336         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
27337         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
27338         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
27339         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
27341         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
27342         Add s_finitef-generic and s_finite-generic objects.
27343         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
27344         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
27345         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
27346         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
27347         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
27348         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
27350         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
27351         Add s_isinff-generic and s_isinf-generic objects.
27352         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
27353         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
27354         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
27355         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
27356         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
27357         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
27359         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
27360         Add s_isnanf-generic and s_isnan-generic objects.
27361         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
27362         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
27363         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
27364         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
27365         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
27366         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
27368         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
27369         macro.
27370         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
27371         rule.
27372         (sysdep_routines): Use sysdep_calls as base.
27373         (libm-sysdep_routines): Add generic rule for symbols shared with
27374         libc.  Add s_signbit-generic and s_signbitf-generic objects.
27375         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
27376         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
27377         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
27378         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
27379         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
27380         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
27382 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
27384         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
27385         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
27386         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
27387         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
27388         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
27389         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
27390         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
27391         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
27392         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
27393         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
27394         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
27395         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
27396         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
27397         libm_alias_float_r.
27398         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
27399         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
27400         (logf): Likewise.
27401         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
27402         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
27403         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
27404         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
27405         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
27406         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
27407         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
27408         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
27409         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
27410         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
27411         libm_alias_float.
27412         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
27413         (cosf): Likewise.
27414         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
27415         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
27416         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
27417         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
27418         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
27419         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
27420         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
27421         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
27422         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
27423         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
27424         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
27425         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
27426         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
27427         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
27428         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
27429         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
27430         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
27431         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
27432         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
27433         libm_alias_float.
27434         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
27435         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
27436         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
27437         * sysdeps/ia64/fpu/w_lgammaf_main.c
27438         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
27439         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
27441 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
27442             Alexandre Oliva  <aoliva@redhat.com>
27444         [BZ #17750]
27445         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
27446         * localedata/fr_CA.UTF-8.in: New file with test data for backward
27447         accents sorting.
27448         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
27449         sorting.
27450         * localedata/locales/cs_CZ (LC_COLLATE): Remove â€œdefine DIACRIT_FORWARD”
27451         * localedata/locales/de_DE (LC_COLLATE): Likewise.
27452         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
27453         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
27454         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
27455         * localedata/locales/fr_CA (LC_COLLATE): Add â€œdefine DIACRIT_BACKWARD”
27456         * localedata/locales/iso14651_t1_common: Use â€œifdef DIACRIT_FORWARD”
27457         instead of â€œifdef DIACRIT_BACKWARD”.
27459 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27461         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
27462         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
27463         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
27464         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
27465         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
27466         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
27467         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
27468         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
27469         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
27470         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
27471         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
27472         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
27473         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
27474         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
27475         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
27476         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
27477         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
27478         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
27479         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
27480         ($(have-as-vis3) == yes): Remove conditional.
27481         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
27482         Likewise.
27483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
27484         file.
27485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
27486         file.
27487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
27488         file.
27489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
27490         file.
27491         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
27492         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
27493         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
27494         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
27495         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
27496         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
27497         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
27498         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
27500 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
27502         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
27503         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
27504         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
27505         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
27506         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
27507         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
27508         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
27509         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
27510         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
27511         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
27512         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
27513         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
27514         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
27515         libm_alias_double_r.
27516         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
27517         (log): Likewise.
27518         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
27519         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
27520         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
27521         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
27522         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
27523         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
27524         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
27525         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
27526         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
27527         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
27528         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
27529         libm_alias_double.
27530         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
27531         (cos): Likewise.
27532         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
27533         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
27534         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
27535         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
27536         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
27537         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
27538         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
27539         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
27540         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
27541         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
27542         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
27543         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
27544         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
27545         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
27546         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
27547         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
27548         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
27549         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
27550         libm_alias_double.
27551         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
27552         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
27553         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
27554         * sysdeps/ia64/fpu/w_lgamma_main.c
27555         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
27556         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
27558 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
27560         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
27561         address of $global$ into %dp register earlier.  Use pc-relative
27562         instruction sequence for PIC case.
27564 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
27566         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
27567         (asinhf): Define using libm_alias_float.
27568         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
27569         (atanf): Define using libm_alias_float.
27570         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
27571         (cbrtf): Define using libm_alias_float.
27572         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
27573         (ceilf): Define using libm_alias_float.
27574         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
27575         (copysignf): Define using libm_alias_float.
27576         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
27577         (expm1f): Define using libm_alias_float.
27578         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
27579         (fabsf): Define using libm_alias_float.
27580         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
27581         (floorf): Define using libm_alias_float.
27582         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
27583         (fmaxf): Define using libm_alias_float.
27584         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
27585         (fminf): Define using libm_alias_float.
27586         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
27587         (frexpf): Define using libm_alias_float.
27588         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
27589         (llrintf): Define using libm_alias_float.
27590         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
27591         (logbf): Define using libm_alias_float.
27592         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
27593         (lrintf): Define using libm_alias_float.
27594         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
27595         (nearbyintf): Define using libm_alias_float.
27596         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
27597         (remquof): Define using libm_alias_float.
27598         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
27599         (rintf): Define using libm_alias_float.
27600         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
27601         (truncf): Define using libm_alias_float.
27602         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
27603         <libm-alias-float.h>.
27604         (exp2f): Define using libm_alias_float, or libm_alias_float_other
27605         if [SHARED].
27606         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
27607         <libm-alias-float.h>.
27608         (expf): Define using libm_alias_float, or libm_alias_float_other
27609         if [SHARED].
27610         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
27611         <libm-alias-float.h>.
27612         (log2f): Define using libm_alias_float, or libm_alias_float_other
27613         if [SHARED].
27614         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
27615         <libm-alias-float.h>.
27616         (logf): Define using libm_alias_float, or libm_alias_float_other
27617         if [SHARED].
27618         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
27619         <libm-alias-float.h>.
27620         (powf): Define using libm_alias_float, or libm_alias_float_other
27621         if [SHARED].
27622         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
27623         <libm-alias-float.h>.
27624         (cosf): Define using libm_alias_float.
27625         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
27626         <libm-alias-float.h>.
27627         (sincosf): Define using libm_alias_float.
27628         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
27629         <libm-alias-float.h>.
27630         (sinf): Define using libm_alias_float.
27631         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
27632         (fmaxf): Define using libm_alias_float.
27633         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
27634         (fminf): Define using libm_alias_float.
27635         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
27636         <libm-alias-float.h>.
27637         (fmaf): Define using libm_alias_float.
27639         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
27640         (asinh): Define using libm_alias_double.
27641         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
27642         (atan): Define using libm_alias_double.
27643         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
27644         (cbrt): Define using libm_alias_double.
27645         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
27646         (ceil): Define using libm_alias_double.
27647         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
27648         (copysign): Define using libm_alias_double.
27649         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
27650         (expm1): Define using libm_alias_double.
27651         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
27652         (fabs): Define using libm_alias_double.
27653         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
27654         (fdim): Define using libm_alias_double.
27655         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
27656         (floor): Define using libm_alias_double.
27657         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
27658         (fmax): Define using libm_alias_double.
27659         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
27660         (fmin): Define using libm_alias_double.
27661         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
27662         (frexp): Define using libm_alias_double.
27663         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
27664         (llrint): Define using libm_alias_double.
27665         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
27666         (logb): Define using libm_alias_double.
27667         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
27668         (lrint): Define using libm_alias_double.
27669         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
27670         (nearbyint): Define using libm_alias_double.
27671         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
27672         (remquo): Define using libm_alias_double.
27673         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
27674         (rint): Define using libm_alias_double.
27675         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
27676         (trunc): Define using libm_alias_double.
27677         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
27678         (fmax): Define using libm_alias_double.
27679         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
27680         (fmin): Define using libm_alias_double.
27681         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
27682         (fma): Define using libm_alias_double.
27684 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
27686         [BZ #22370]
27687         * elf/dl-hwcaps.c (ROUND): Removed.
27688         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
27689         and ELF_NOTE_NEXT_OFFSET.
27690         * elf/dl-load.c (ROUND): Removed.
27691         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27692         * elf/readelflib.c (ROUND): Removed.
27693         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27694         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
27695         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
27696         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
27698 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
27700         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27701         [!__fmaf] (fmaf): Define using libm_alias_float.
27703         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
27704         [!__fma] (fma): Define using libm_alias_double.
27705         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
27707 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
27709         [BZ #22336]
27710         * localedata/locales/cs_CZ (LC_COLLATE): Use â€œcopy "iso14651_t1"”
27711         and implement the collation rules for cs from CLDR on top of that.
27712         * Makefile: Add cs_CZ.UTF-8 to test-input.
27713         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
27715 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
27717         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
27719 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
27720             Icarus Sparry  <icarus.w.sparry@intel.com>
27722         * benchtests/Makefile:Add BENCHSET to allow subsets of
27723         benchmarks to be run.
27724         * benchtests/README: Add documentation for: Running subsets of
27725         benchmarks.
27727 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
27729         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
27730         range of tests names.
27732         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
27733         result from property and remove "max", min" and "mean" from
27734         required properties based on benchtests/bench-skeleton.c.
27736 2017-11-28  Florian Weimer  <fweimer@redhat.com>
27738         [BZ #20826]
27739         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
27740         due to Internet requirement.
27741         * posix/Makefile (tests): Remove tst-getaddrinfo4,
27742         tst-getaddrinfo5.
27743         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
27745 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27747         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27748         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
27749         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27750         (sysdep_routines): Add memset-ultra1.
27751         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
27752         file.
27753         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
27754         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
27755         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
27756         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
27757         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
27758         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
27759         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
27760         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27762         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
27763         file.
27764         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
27765         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
27766         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
27767         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
27768         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
27769         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
27770         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
27771         macro.
27772         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27773         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
27774         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27775         (sysdep_routines): Add memcpy-ultra1.
27776         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
27777         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
27779 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
27781         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
27782         (cfloat_versions): Take function argument without trailing 'f'.
27783         Call libm_alias_float_other.
27784         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
27785         * sysdeps/alpha/fpu/cargf.c: Likewise.
27786         * sysdeps/alpha/fpu/cimagf.c: Likewise.
27787         * sysdeps/alpha/fpu/conjf.c: Likewise.
27788         * sysdeps/alpha/fpu/crealf.c: Likewise.
27789         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
27790         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
27791         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
27792         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
27793         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
27794         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
27795         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
27796         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
27797         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
27798         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
27799         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
27800         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
27801         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
27802         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
27803         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
27804         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
27805         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
27806         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
27807         (clog10f): Use libm_alias_float_other.
27808         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27809         (ceilf): Define using libm_alias_float.
27810         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
27811         (copysignf): Define using libm_alias_float.
27812         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27813         (fabsf): Define using libm_alias_float.
27814         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
27815         (floorf): Define using libm_alias_float.
27816         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
27817         (fmaxf): Define using libm_alias_float.
27818         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
27819         (fminf): Define using libm_alias_float.
27820         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27821         (lrintf): Define using libm_alias_float.
27822         (llrintf): Likewise.
27823         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27824         (lroundf): Define using libm_alias_float.
27825         (llroundf): Likewise.
27826         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
27827         (rintf): Define using libm_alias_float.
27828         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
27829         (truncf): Define using libm_alias_float.
27831         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27832         (ceilf): Define using libm_alias_float.
27833         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
27834         (floorf): Define using libm_alias_float.
27835         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27836         (fmaf): Define using libm_alias_float.
27837         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
27838         (fmaxf): Define using libm_alias_float.
27839         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
27840         (fminf): Define using libm_alias_float.
27841         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
27842         (llrintf): Define using libm_alias_float.
27843         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
27844         (llroundf): Define using libm_alias_float.
27845         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27846         (lrintf): Define using libm_alias_float.
27847         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27848         (lroundf): Define using libm_alias_float.
27849         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
27850         <libm-alias-float.h>.
27851         (nearbyintf): Define using libm_alias_float.
27852         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
27853         (rintf): Define using libm_alias_float.
27854         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
27855         (roundf): Define using libm_alias_float.
27856         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
27857         (truncf): Define using libm_alias_float.
27859         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
27860         (ceil): Define using libm_alias_double.
27861         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
27862         (copysign): Define using libm_alias_double.
27863         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
27864         (fabs): Define using libm_alias_double.
27865         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
27866         (floor): Define using libm_alias_double.
27867         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
27868         (fmax): Define using libm_alias_double.
27869         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
27870         (fmin): Define using libm_alias_double.
27871         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
27872         (lrint): Define using libm_alias_double.
27873         (llrint): Likewise.
27874         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
27875         (lround): Define using libm_alias_double.
27876         (llround): Likewise.
27877         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
27878         (rint): Define using libm_alias_double.
27879         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
27880         (trunc): Define using libm_alias_double.
27882         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27883         (libm_alias_double_r): Add semicolon after weak_alias call.
27885 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
27887         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
27888         (ceil): Define using libm_alias_double.
27889         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
27890         (floor): Define using libm_alias_double.
27891         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
27892         (fma): Define using libm_alias_double.
27893         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
27894         (fmax): Define using libm_alias_double.
27895         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
27896         (fmin): Define using libm_alias_double.
27897         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
27898         (llrint): Define using libm_alias_double.
27899         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
27900         (llround): Define using libm_alias_double.
27901         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
27902         (lrint): Define using libm_alias_double.
27903         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
27904         (lround): Define using libm_alias_double.
27905         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
27906         (nearbyint): Define using libm_alias_double.
27907         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
27908         (rint): Define using libm_alias_double.
27909         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
27910         (round): Define using libm_alias_double.
27911         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
27912         (trunc): Define using libm_alias_double.
27914 2017-11-27  Florian Weimer  <fweimer@redhat.com>
27916         * sysdeps/unix/sysv/linux/mlock2.c: New file.
27917         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
27918         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
27919         (tests): Add tst-mlock2.
27920         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
27921         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
27922         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27923         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27924         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27925         for mlock.  Document mlock2.
27927 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
27929         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27930         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27931         Likewise.
27932         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27933         Likewise.
27934         * sysdeps/x86/Makeconfig: New file.
27935         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27936         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27937         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27938         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27939         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27940         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27941         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27942         Likewise.
27943         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27944         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27945         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27946         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27947         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27948         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27949         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27950         * manual/math.texi (Mathematics): Document support for _Float64x.
27951         * math/Versions (GLIBC_2.27): Add _Float64x functions.
27952         * stdlib/Versions (GLIBC_2.27): Likewise.
27953         * wcsmbs/Versions (GLIBC_2.27): Likewise.
27954         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27955         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27956         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27957         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27958         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27959         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27960         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27961         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27962         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27963         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27964         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27966         Likewise.
27967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27968         Likewise.
27969         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27970         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27971         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27972         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27973         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27974         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27975         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27976         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27977         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27978         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27979         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27980         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27981         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27982         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27984 2017-11-27  Andreas Schwab  <schwab@suse.de>
27986         * elf/Makefile (dl-routines): Add dl-sort-maps.
27987         * elf/dl-sort-maps.c: New file.
27988         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27989         (_dl_sort_maps): Declare.
27990         * elf/dl-fini.c (_dl_sort_fini): Remove.
27991         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27992         * elf/dl-close.c (_dl_close_worker): Likewise.
27993         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27994         open-coding it.
27995         * elf/dl-open.c (dl_open_worker): Likewise.
27997 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
27999         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
28000         using libm_alias_float128.
28001         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
28002         Likewise.
28003         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
28004         Likewise.
28005         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
28006         (setpayloadsigf128): Likewise.
28007         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
28008         Likewise.
28009         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
28010         Likewise.
28012         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
28013         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
28014         -mfloat128 to CFLAGS.
28015         ($(foreach
28016         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
28017         Likewise.
28018         (CFLAGS-libm-test-support-float64x.c): New variable.
28019         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
28020         $(f128-loader-link) to gnulib-tests.
28022         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
28023         (libm_alias_float128_other_r): If
28024         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
28025         alias.
28026         (libm_alias_float128_r): Add semicolon after weak_alias call.
28027         * sysdeps/generic/libm-alias-ldouble.h
28028         (libm_alias_ldouble_other_r_f128): New macro.
28029         (libm_alias_ldouble_other_r_f64x): Likewise.
28030         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
28031         and libm_alias_ldouble_other_r_f64x.
28032         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
28033         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
28034         (libm_alias_ldouble_other_r_f128): New macro.
28035         (libm_alias_ldouble_other_r_f64x): Likewise.
28036         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
28037         and libm_alias_ldouble_other_r_f64x.
28039         * stdlib/strfroml.c: Always include <stdlib.h>.
28040         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
28041         undefine as macro and define as weak alias.
28042         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
28043         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
28044         <stdlib.h>.
28045         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
28046         Define and later undefine as macro and define as weak alias.
28048         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
28049         Define and later undefine as macro.  Define as weak alias if
28050         [!USE_WIDE_CHAR].
28051         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
28052         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
28053         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
28054         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
28055         Define and later undefine as macro.  Define as weak alias if
28056         [!USE_WIDE_CHAR].
28057         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
28058         Define and later undefine as macro.  Define as weak alias if
28059         [USE_WIDE_CHAR].
28060         * sysdeps/ieee754/float128/strtof128_l.c
28061         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
28062         Define and later undefine as macro.  Define as weak alias if
28063         [!USE_WIDE_CHAR].
28064         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
28065         Define and later undefine as macro.  Define as weak alias if
28066         [USE_WIDE_CHAR].
28067         * sysdeps/ieee754/ldbl-128/strtold_l.c
28068         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
28069         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
28070         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
28071         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
28072         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
28073         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
28074         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
28075         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
28076         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
28077         * sysdeps/ieee754/ldbl-96/strtold_l.c
28078         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
28079         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
28080         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
28081         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
28083         * math/test-float64x.h: New file.
28084         * math/Makefile (type-float64x-yes): New variable.
28085         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
28087         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
28088         function-like macro.
28089         (min_of_type_): Likewise.
28090         (min_of_type_l): Likewise.
28091         (min_of_type_f128): Likewise.
28092         (min_of_type): Pass () as last argument of __MATH_TG.
28094         * stdlib/tst-strtod-round-skeleton.c
28095         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
28096         headers.
28098         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
28099         for combinations of long double with _Float64 and _Float64x.
28101         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
28102         (__DECL_SIMD_cosf32): Likewise.
28103         (__DECL_SIMD_cosf64): Likewise.
28104         (__DECL_SIMD_cosf32x): Likewise.
28105         (__DECL_SIMD_cosf64x): Likewise.
28106         (__DECL_SIMD_cosf128x): Likewise.
28107         (__DECL_SIMD_sinf16): Likewise.
28108         (__DECL_SIMD_sinf32): Likewise.
28109         (__DECL_SIMD_sinf64): Likewise.
28110         (__DECL_SIMD_sinf32x): Likewise.
28111         (__DECL_SIMD_sinf64x): Likewise.
28112         (__DECL_SIMD_sinf128x): Likewise.
28113         (__DECL_SIMD_sincosf16): Likewise.
28114         (__DECL_SIMD_sincosf32): Likewise.
28115         (__DECL_SIMD_sincosf64): Likewise.
28116         (__DECL_SIMD_sincosf32x): Likewise.
28117         (__DECL_SIMD_sincosf64x): Likewise.
28118         (__DECL_SIMD_sincosf128x): Likewise.
28119         (__DECL_SIMD_logf16): Likewise.
28120         (__DECL_SIMD_logf32): Likewise.
28121         (__DECL_SIMD_logf64): Likewise.
28122         (__DECL_SIMD_logf32x): Likewise.
28123         (__DECL_SIMD_logf64x): Likewise.
28124         (__DECL_SIMD_logf128x): Likewise.
28125         (__DECL_SIMD_expf16): Likewise.
28126         (__DECL_SIMD_expf32): Likewise.
28127         (__DECL_SIMD_expf64): Likewise.
28128         (__DECL_SIMD_expf32x): Likewise.
28129         (__DECL_SIMD_expf64x): Likewise.
28130         (__DECL_SIMD_expf128x): Likewise.
28131         (__DECL_SIMD_powf16): Likewise.
28132         (__DECL_SIMD_powf32): Likewise.
28133         (__DECL_SIMD_powf64): Likewise.
28134         (__DECL_SIMD_powf32x): Likewise.
28135         (__DECL_SIMD_powf64x): Likewise.
28136         (__DECL_SIMD_powf128x): Likewise.
28138         * stdlib/Versions (libc): Move entries for wcstof128 and
28139         wcstof128_l to ....
28140         * wcsmbs/Versions (libc): ... here.
28141         Include <float128-abi.h>.
28143 2017-11-24  Florian Weimer  <fweimer@redhat.com>
28145         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28146         bits/mman-shared.h.
28147         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
28148         <bits/mman-shared.h>.
28149         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
28150         to ...
28151         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
28152         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
28153         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
28154         <bits/mman-shared.h>.
28156 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28158         [BZ #22457]
28159         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
28160         posix_memalign/free.
28161         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
28163 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
28165         [BZ #22469]
28166         * localedata/locales/pl_PL (LC_COLLATE): Use â€œcopy "iso14651_t1"”
28167         and implement the collation rules for pl from CLDR on top of that.
28168         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
28169         of locales to be built for testing.
28170         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
28172 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
28174         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
28175         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
28176         libm_alias_ldouble_other.
28177         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
28178         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
28179         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
28180         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
28181         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
28182         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
28183         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
28184         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
28185         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
28186         libm_alias_ldouble_r.
28187         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
28188         libm_alias_ldouble_other.
28189         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
28190         (log10l): Likewise.
28191         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
28192         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
28193         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
28194         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
28195         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
28196         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
28197         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
28198         (atan2l): Likewise.
28199         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
28200         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
28201         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
28202         libm_alias_ldouble.
28203         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
28204         (cosl): Likewise.
28205         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
28206         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
28207         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
28208         (expl): Likewise.
28209         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
28210         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
28211         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
28212         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
28213         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
28214         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
28215         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
28216         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
28217         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
28218         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
28219         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
28220         libm_alias_ldouble.
28221         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
28222         libm_alias_ldouble_other.
28223         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
28224         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
28225         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
28226         libm_alias_ldouble.
28227         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
28228         libm_alias_ldouble_other.
28229         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
28230         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
28231         * sysdeps/ia64/fpu/w_lgammal_main.c
28232         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
28233         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
28235 2017-11-23  Florian Weimer  <fweimer@redhat.com>
28237         * malloc/malloc.c (tcache_thread_shutdown): Rename from
28238         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
28239         alike.  Remove freeres marker.
28240         * malloc/arena.c (arena_thread_freeres): Call
28241         tcache_thread_shutdown.
28243 2017-11-23  Florian Weimer  <fweimer@redhat.com>
28245         [BZ #22459]
28246         Export nscd hash function as __nss_hash.
28247         * include/nss.h (__nss_hash): Declare.
28248         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
28249         symbol.
28250         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
28251         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
28252         of __nscd_hash.
28253         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
28254         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
28255         * nss/Makefiles (routines): Add nss_hash.
28256         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
28257         * nss/nss_hash.c: Rename from nis/nis_hash.c.
28258         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
28259         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
28261 2017-11-23  Florian Weimer  <fweimer@redhat.com>
28263         [BZ #22478]
28264         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
28265         Return error code, not -1.
28266         * signal/tst-sigwait-eintr.c: New file.
28267         * signal/Makefile (tests): Add tst-sigwait-eintr.
28269 2017-11-23  Florian Weimer  <fweimer@redhat.com>
28271         Linux: Add memfd_create system call wrapper
28272         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
28273         tst-memfd_create.
28274         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
28275         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
28276         [__USE_GNU] (memfd_create): Declare.
28277         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
28278         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
28279         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
28280         * sysdeps/unix/sysv/linux/**.abilist: Update.
28281         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
28283 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
28285         * localedata/gen-locale.sh: Fix typo in variable name.
28287         * resolv/res_debug.c (p_secstodate): Condition definition on
28288         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
28289         directly as __p_secstodate, and as a compat symbol.  Do not use
28290         libresolv_hidden_def.
28291         * resolv/resolv.h (p_secstodate): Remove macro and function
28292         declaration.
28293         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
28294         using p_secstodate.
28295         * include/resolv.h (__p_secstodate): Do not use
28296         libresolv_hidden_proto.
28297         * resolv/Makefile (tests): Move tst-p_secstodate to ....
28298         (tests-internal): ... here.
28299         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
28300         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
28301         and declare and use __p_secstodate and use compat_symbol_reference
28302         in that case.
28303         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
28304         implementation returning 77.
28306         [BZ #22463]
28307         * resolv/res_debug.c: Include <libc-diag.h>.
28308         (p_secstodate): Assert time_t at least as wide as u_long.  On
28309         overflow, use integer seconds since the epoch as output, or use
28310         "<overflow>" as output and set errno to EOVERFLOW if integer
28311         seconds since the epoch would be 14 or more characters.
28312         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
28313         for sprintf call.
28314         * resolv/tst-p_secstodate.c: New file.
28315         * resolv/Makefile (tests): Add tst-p_secstodate.
28316         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
28318         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
28319         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
28320         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
28322 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
28324         * posix/regcomp.c (init_word_char): Add comments.
28326 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
28328         [BZ #22447]
28329         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
28330         strlen to compute length of ut_user and set trailing NUL byte of
28331         result explicitly.
28333 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
28335         [BZ #15537]
28336         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
28337         using â€œcopy "iso14651_t1"” and then implementing the
28338         collation rules for lv from CLDR on top of that.
28339         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
28340         of locales to be built for testing.
28341         * lv_LV.UTF-8.in: New file with test data to test the Latvian
28342         sorting.
28344 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
28346         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
28347         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
28348         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
28349         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
28350         [__USE_MISC] (MADV_HWPOISON): New macro.
28351         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
28353 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28355         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
28356         -Wmissing-braces on GCC 4.9.
28358 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
28360         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
28361         * sysdeps/s390/s390-32/start.S (_start): Likewise
28362         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
28363         (thread_start): Likewise.
28364         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
28365         (thread_start): Likewise.
28366         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
28367         (__makecontext_ret): Likewise.
28368         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
28369         (__makecontext_ret): Likewise.
28371 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
28373         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
28374         __wcschrnul): Remove attribute_hidden.
28376 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28378         regex: don't assume uint64_t or uint32_t
28379         This avoids -Werror=overflow errors for 32-bit systems in
28380         the 64-bit case.  Problem reported by Joseph Myers in:
28381         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
28382         Also, when this code is used in Gnulib it ports to platforms
28383         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
28384         them, and on some 32-bit compilers there is no uint64_t.
28385         Problem reported by Gianluigi Tiesi in:
28386         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
28387         * posix/regcomp.c (init_word_char): Don't assume that the types
28388         uint64_t and uint32_t exist.  Adapted from Gnulib patch
28389         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
28390         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
28392 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
28394         * sysdeps/aarch64/memset-reg.h: New file.
28395         * sysdeps/aarch64/memset.S: Use it.
28396         (__memset): Rename to MEMSET macro.
28397         [ZVA_MACRO]: Use zva_macro.
28398         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
28399         Add memset_generic and memset_falkor.
28400         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28401         (__libc_ifunc_impl_list): Add memset ifuncs.
28402         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
28403         local variable zva_size.
28404         * sysdeps/aarch64/multiarch/memset.c: New file.
28405         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
28406         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
28407         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
28408         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
28409         (DCZID_DZP_MASK): New macro.
28410         (DCZID_BS_MASK): Likewise.
28411         (init_cpu_features): Read and set zva_size.
28412         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
28413         (struct cpu_features): New member zva_size.
28415         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
28416         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
28417         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
28419         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
28420         backwards.  Fix timing computation.
28421         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
28422         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
28423         on memset by N at a time.  Fix timing computation.
28425 2017-11-20  Florian Weimer  <fweimer@redhat.com>
28427         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
28428         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
28430 2017-11-19  Florian Weimer  <fweimer@redhat.com>
28432         manual: Document mprotect
28433         * manual/memory.texi (Memory Protection): New section.
28434         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
28435         documentation of PROT_* flags and reference the Memory Protection
28436         section instead.
28438 2017-11-19  Florian Weimer  <fweimer@redhat.com>
28440         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
28441         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
28442         (Scatter-Gather): ... to here.  Remove misleading comment.
28444 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
28446         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
28447         style.
28449         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
28450         when /proc/<pid>/setgroups does not exist.
28452 2017-11-18  Florian Weimer  <fweimer@redhat.com>
28454         * sysdeps/unix/sysv/linux/tst-ttyname.c
28455         (become_root_in_mount_ns): Remove.
28456         (do_in_chroot_1): Call support_enter_mount_namespace.
28457         (do_in_chroot_2): Likewise.
28458         (do_test): Call support_become_root early.
28460 2017-11-18  Florian Weimer  <fweimer@redhat.com>
28462         * support/namespace.h (support_enter_mount_namespace): Declare.
28463         * support/support_enter_mount_namespace.c: New file.
28464         * support/Makefile (libsupport-routines): Add
28465         support_enter_mount_namespace.
28467 2017-11-18  Florian Weimer  <fweimer@redhat.com>
28469         * support/temp_file.c (support_create_temp_directory): Use
28470         test_dir and do not rely on the presence of the XXXXXX suffix.
28471         * support/temp_file.h (support_create_temp_directory): Update
28472         comment.
28473         * support/tst-xreadlink.c (do_test): Adjust.
28474         * support/support_chroot.c (support_chroot_create): Likewise.
28476 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
28478         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
28479         macro.
28480         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
28481         htm-no-suspend.
28483 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
28485         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
28486         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
28487         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
28488         (ceill): Define using libm_alias_ldouble.
28489         * sysdeps/x86_64/fpu/s_copysignl.S: Include
28490         <libm-alias-ldouble.h>.
28491         (copysignl): Define using libm_alias_ldouble.
28492         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
28493         (fabsl): Define using libm_alias_ldouble.
28494         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
28495         (floorl): Define using libm_alias_ldouble.
28496         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
28497         (fmaxl): Define using libm_alias_ldouble.
28498         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
28499         (fminl): Define using libm_alias_ldouble.
28500         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
28501         (llrintl): Define using libm_alias_ldouble.
28502         (lrintl): Likewise.
28503         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
28504         <libm-alias-ldouble.h>.
28505         (nearbyintl): Define using libm_alias_ldouble.
28506         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
28507         (truncl): Define using libm_alias_ldouble.
28508         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
28509         <libm-alias-ldouble.h>.
28510         (lrintl): Define using libm_alias_ldouble.
28512         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
28513         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
28514         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
28515         (asinhl): Define using libm_alias_ldouble.
28516         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
28517         (atanl): Define using libm_alias_ldouble.
28518         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
28519         (cbrtl): Define using libm_alias_ldouble.
28520         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
28521         (ceill): Define using libm_alias_ldouble.
28522         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
28523         (copysignl): Define using libm_alias_ldouble.
28524         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
28525         (fabsl): Define using libm_alias_ldouble.
28526         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
28527         (floorl): Define using libm_alias_ldouble.
28528         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
28529         (fmaxl): Define using libm_alias_ldouble.
28530         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
28531         (fminl): Define using libm_alias_ldouble.
28532         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
28533         (frexpl): Define using libm_alias_ldouble.
28534         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
28535         (llrintl): Define using libm_alias_ldouble.
28536         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
28537         (logbl): Define using libm_alias_ldouble.
28538         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
28539         (lrintl): Define using libm_alias_ldouble.
28540         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
28541         (nearbyintl): Define using libm_alias_ldouble.
28542         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
28543         (nextafterl): Define using libm_alias_ldouble.
28544         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
28545         (remquol): Define using libm_alias_ldouble.
28546         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
28547         (rintl): Define using libm_alias_ldouble.
28548         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
28549         (truncl): Define using libm_alias_ldouble.
28550         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
28551         (fmaxl): Define using libm_alias_ldouble.
28552         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
28553         (fminl): Define using libm_alias_ldouble.
28555         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
28556         to C syntax instead of availability and properties of types.
28557         * bits/floatn.h [!__ASSEMBLER]: Likewise.
28558         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
28559         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
28560         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
28561         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
28562         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
28564 2017-11-17  Florian Weimer  <fweimer@redhat.com>
28566         support_become_root: Enable file creation in namespaces.
28567         * support/support_become_root.c (setup_mapping): New function.
28568         (support_become_root): Call it.
28570 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
28572         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
28573         macro.
28575 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28577         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
28578         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
28580 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
28582         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
28584         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28585         version to 4.14.
28587 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
28589         * INSTALL: Fix botched up regeneration.
28591         * NEWS: Update sourceare link to https.
28592         * configure.ac: Likewise.
28593         * crypt/md5test-giant.c: Likewise.
28594         * dlfcn/bug-atexit1.c: Likewise.
28595         * dlfcn/bug-atexit2.c: Likewise.
28596         * localedata/README: Likewise.
28597         * malloc/tst-mallocfork.c: Likewise.
28598         * manual/install.texi: Likewise.
28599         * nptl/tst-pthread-getattr.c: Likewise.
28600         * stdio-common/tst-fgets.c: Likewise.
28601         * stdio-common/tst-fwrite.c: Likewise.
28602         * sunrpc/Makefile: Likewise.
28603         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
28604         * wcsmbs/tst-mbrtowc2.c: Likewise.
28605         * configure: Regenerate.
28606         * INSTALL: Regenerate.
28608 2017-11-15  Martin Sebor  <msebor@redhat.com>
28610         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
28611         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
28612         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
28614 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
28616         [BZ #22145]
28617         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
28618         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
28620         [BZ #22145]
28621         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
28622         Defer is_pty check until end of the function.
28623         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
28625         [BZ #22145]
28626         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
28627         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
28628         (ttyname): Likewise.
28629         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28630         (__ttyname_r): Likewise.
28632         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
28633         int to bool.
28635         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
28637         * manual/terminal.texi (Is It a Terminal):
28638         Mention ENODEV for ttyname and ttyname_r.
28640 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
28642         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
28643         constant and macro.
28645         * sysdeps/unix/sysv/linux/bits/mman-linux.h
28646         [__USE_MISC] (MADV_WIPEONFORK): New macro.
28647         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
28648         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
28649         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
28650         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
28652 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28654         * signal/sigrelse.c (sigrelse): Optimize implementation.
28656         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
28657         (__sigpause): Rely on __sigsuspend to implement single thread
28658         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
28660 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
28662         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28663         kernel version to 4.14.
28665 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
28667         [BZ #22442]
28668         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
28669         Check if ifname is too long.
28671 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
28673         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
28675 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
28677         * localedata/locales/ka_GE (LC_MESSAGES): Add â€œX” back to yesexpr,
28678         was accidentally lost.
28680 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
28682         * localedata/locales/az_IR: Add standard copyright header.
28684 2017-11-15  Florian Weimer  <fweimer@redhat.com>
28686         [BZ #22439]
28687         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
28688         not just the top one.  Output a new "subheaps" statistic.
28690 2017-11-15  Florian Weimer  <fweimer@redhat.com>
28692         [BZ #22408]
28693         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
28694         under the per-arena lock.
28695         * malloc/Makefile (tests): Add tst-malloc_info.
28696         (tst-malloc_info): Link with libpthread.
28697         * malloc/tst-malloc_info.c: New file.
28699 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
28701         [BZ #21660]
28702         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
28703         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
28704         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
28705         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
28706         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
28707         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
28708         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
28709         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
28710         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
28711         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
28712         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
28713         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
28714         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
28715         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
28716         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
28717         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
28718         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
28719         (__floating_type): Likewise.
28720         (__real_integer_type): Likewise.
28721         (__complex_integer_type): Likewise.
28722         (__expr_is_real): Likewise.
28723         (__tgmath_real_type_sub): Likewise.
28724         (__tgmath_real_type): Likewise.
28725         (__tgmath_complex_type_sub): Likewise.
28726         (__tgmath_complex_type): Likewise.
28727         (__TGMATH_F128): Likewise.
28728         (__TGMATH_CF128): Likewise.
28729         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
28730         new macros.
28731         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
28732         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
28733         Likewise.
28734         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
28735         Likewise.
28736         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
28737         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
28738         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
28739         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
28740         Likewise.
28741         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
28742         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
28743         Likewise.
28744         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
28745         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
28746         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
28747         Likewise.
28748         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
28749         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
28750         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
28751         (cimag): Likewise.
28752         (creal): Likewise.
28754 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
28756         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
28757         for stpncpy calls for GCC 8.
28758         (test_strncat): Disable -Wstringop-truncation warning for strncat
28759         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
28760         strncat call for GCC 7.
28761         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
28762         calls for GCC 8.
28763         (test_memcmp): Use memcpy instead of strncpy for calls not copying
28764         trailing NUL.
28766         * string/bug-strncat1.c: Include <libc-diag.h>.
28767         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
28769 2017-11-13  Claude Paroz  <claude@2xlibre.net>
28771         [BZ #22387]
28772         * localedata/locales/aa_DJ: Improved readibility by replacing
28773         <Uxxxx> sequences in the ASCII printable range by their ASCII
28774         character equivalents.
28775         * localedata/locales/aa_ER: Likewise.
28776         * localedata/locales/aa_ER@saaho: Likewise.
28777         * localedata/locales/aa_ET: Likewise.
28778         * localedata/locales/af_ZA: Likewise.
28779         * localedata/locales/agr_PE: Likewise.
28780         * localedata/locales/ak_GH: Likewise.
28781         * localedata/locales/am_ET: Likewise.
28782         * localedata/locales/anp_IN: Likewise.
28783         * localedata/locales/ar_AE: Likewise.
28784         * localedata/locales/ar_BH: Likewise.
28785         * localedata/locales/ar_DZ: Likewise.
28786         * localedata/locales/ar_EG: Likewise.
28787         * localedata/locales/ar_IN: Likewise.
28788         * localedata/locales/ar_IQ: Likewise.
28789         * localedata/locales/ar_JO: Likewise.
28790         * localedata/locales/ar_KW: Likewise.
28791         * localedata/locales/ar_LB: Likewise.
28792         * localedata/locales/ar_LY: Likewise.
28793         * localedata/locales/ar_MA: Likewise.
28794         * localedata/locales/ar_OM: Likewise.
28795         * localedata/locales/ar_QA: Likewise.
28796         * localedata/locales/ar_SA: Likewise.
28797         * localedata/locales/ar_SD: Likewise.
28798         * localedata/locales/ar_SS: Likewise.
28799         * localedata/locales/ar_SY: Likewise.
28800         * localedata/locales/ar_TN: Likewise.
28801         * localedata/locales/ar_YE: Likewise.
28802         * localedata/locales/as_IN: Likewise.
28803         * localedata/locales/ast_ES: Likewise.
28804         * localedata/locales/ayc_PE: Likewise.
28805         * localedata/locales/az_AZ: Likewise.
28806         * localedata/locales/az_IR: Likewise.
28807         * localedata/locales/be_BY: Likewise.
28808         * localedata/locales/be_BY@latin: Likewise.
28809         * localedata/locales/bem_ZM: Likewise.
28810         * localedata/locales/ber_DZ: Likewise.
28811         * localedata/locales/ber_MA: Likewise.
28812         * localedata/locales/bg_BG: Likewise.
28813         * localedata/locales/bhb_IN: Likewise.
28814         * localedata/locales/bho_IN: Likewise.
28815         * localedata/locales/bi_VU: Likewise.
28816         * localedata/locales/bn_BD: Likewise.
28817         * localedata/locales/bn_IN: Likewise.
28818         * localedata/locales/bo_CN: Likewise.
28819         * localedata/locales/bo_IN: Likewise.
28820         * localedata/locales/br_FR: Likewise.
28821         * localedata/locales/brx_IN: Likewise.
28822         * localedata/locales/bs_BA: Likewise.
28823         * localedata/locales/byn_ER: Likewise.
28824         * localedata/locales/ca_AD: Likewise.
28825         * localedata/locales/ca_ES: Likewise.
28826         * localedata/locales/ca_FR: Likewise.
28827         * localedata/locales/ca_IT: Likewise.
28828         * localedata/locales/ce_RU: Likewise.
28829         * localedata/locales/chr_US: Likewise.
28830         * localedata/locales/cmn_TW: Likewise.
28831         * localedata/locales/crh_UA: Likewise.
28832         * localedata/locales/cs_CZ: Likewise.
28833         * localedata/locales/csb_PL: Likewise.
28834         * localedata/locales/cv_RU: Likewise.
28835         * localedata/locales/cy_GB: Likewise.
28836         * localedata/locales/da_DK: Likewise.
28837         * localedata/locales/de_AT: Likewise.
28838         * localedata/locales/de_BE: Likewise.
28839         * localedata/locales/de_CH: Likewise.
28840         * localedata/locales/de_DE: Likewise.
28841         * localedata/locales/de_IT: Likewise.
28842         * localedata/locales/de_LI: Likewise.
28843         * localedata/locales/de_LU: Likewise.
28844         * localedata/locales/doi_IN: Likewise.
28845         * localedata/locales/dv_MV: Likewise.
28846         * localedata/locales/dz_BT: Likewise.
28847         * localedata/locales/el_CY: Likewise.
28848         * localedata/locales/el_GR: Likewise.
28849         * localedata/locales/en_AG: Likewise.
28850         * localedata/locales/en_AU: Likewise.
28851         * localedata/locales/en_BW: Likewise.
28852         * localedata/locales/en_CA: Likewise.
28853         * localedata/locales/en_DK: Likewise.
28854         * localedata/locales/en_GB: Likewise.
28855         * localedata/locales/en_HK: Likewise.
28856         * localedata/locales/en_IE: Likewise.
28857         * localedata/locales/en_IL: Likewise.
28858         * localedata/locales/en_IN: Likewise.
28859         * localedata/locales/en_NG: Likewise.
28860         * localedata/locales/en_NZ: Likewise.
28861         * localedata/locales/en_PH: Likewise.
28862         * localedata/locales/en_SG: Likewise.
28863         * localedata/locales/en_US: Likewise.
28864         * localedata/locales/en_ZA: Likewise.
28865         * localedata/locales/en_ZM: Likewise.
28866         * localedata/locales/en_ZW: Likewise.
28867         * localedata/locales/eo: Likewise.
28868         * localedata/locales/es_AR: Likewise.
28869         * localedata/locales/es_BO: Likewise.
28870         * localedata/locales/es_CL: Likewise.
28871         * localedata/locales/es_CO: Likewise.
28872         * localedata/locales/es_CR: Likewise.
28873         * localedata/locales/es_CU: Likewise.
28874         * localedata/locales/es_DO: Likewise.
28875         * localedata/locales/es_EC: Likewise.
28876         * localedata/locales/es_ES: Likewise.
28877         * localedata/locales/es_GT: Likewise.
28878         * localedata/locales/es_HN: Likewise.
28879         * localedata/locales/es_MX: Likewise.
28880         * localedata/locales/es_NI: Likewise.
28881         * localedata/locales/es_PA: Likewise.
28882         * localedata/locales/es_PE: Likewise.
28883         * localedata/locales/es_PR: Likewise.
28884         * localedata/locales/es_PY: Likewise.
28885         * localedata/locales/es_SV: Likewise.
28886         * localedata/locales/es_US: Likewise.
28887         * localedata/locales/es_UY: Likewise.
28888         * localedata/locales/es_VE: Likewise.
28889         * localedata/locales/et_EE: Likewise.
28890         * localedata/locales/eu_ES: Likewise.
28891         * localedata/locales/eu_ES@euro: Likewise.
28892         * localedata/locales/fa_IR: Likewise.
28893         * localedata/locales/ff_SN: Likewise.
28894         * localedata/locales/fi_FI: Likewise.
28895         * localedata/locales/fil_PH: Likewise.
28896         * localedata/locales/fo_FO: Likewise.
28897         * localedata/locales/fr_BE: Likewise.
28898         * localedata/locales/fr_CA: Likewise.
28899         * localedata/locales/fr_CH: Likewise.
28900         * localedata/locales/fr_FR: Likewise.
28901         * localedata/locales/fr_LU: Likewise.
28902         * localedata/locales/fur_IT: Likewise.
28903         * localedata/locales/fy_DE: Likewise.
28904         * localedata/locales/fy_NL: Likewise.
28905         * localedata/locales/ga_IE: Likewise.
28906         * localedata/locales/gd_GB: Likewise.
28907         * localedata/locales/gez_ER: Likewise.
28908         * localedata/locales/gez_ET: Likewise.
28909         * localedata/locales/gl_ES: Likewise.
28910         * localedata/locales/gu_IN: Likewise.
28911         * localedata/locales/gv_GB: Likewise.
28912         * localedata/locales/ha_NG: Likewise.
28913         * localedata/locales/hak_TW: Likewise.
28914         * localedata/locales/he_IL: Likewise.
28915         * localedata/locales/hi_IN: Likewise.
28916         * localedata/locales/hif_FJ: Likewise.
28917         * localedata/locales/hne_IN: Likewise.
28918         * localedata/locales/hr_HR: Likewise.
28919         * localedata/locales/hsb_DE: Likewise.
28920         * localedata/locales/ht_HT: Likewise.
28921         * localedata/locales/hu_HU: Likewise.
28922         * localedata/locales/hy_AM: Likewise.
28923         * localedata/locales/i18n: Likewise.
28924         * localedata/locales/ia_FR: Likewise.
28925         * localedata/locales/id_ID: Likewise.
28926         * localedata/locales/ig_NG: Likewise.
28927         * localedata/locales/ik_CA: Likewise.
28928         * localedata/locales/is_IS: Likewise.
28929         * localedata/locales/it_CH: Likewise.
28930         * localedata/locales/it_IT: Likewise.
28931         * localedata/locales/iu_CA: Likewise.
28932         * localedata/locales/ja_JP: Likewise.
28933         * localedata/locales/ka_GE: Likewise.
28934         * localedata/locales/kk_KZ: Likewise.
28935         * localedata/locales/kl_GL: Likewise.
28936         * localedata/locales/kn_IN: Likewise.
28937         * localedata/locales/ko_KR: Likewise.
28938         * localedata/locales/kok_IN: Likewise.
28939         * localedata/locales/ks_IN: Likewise.
28940         * localedata/locales/ks_IN@devanagari: Likewise.
28941         * localedata/locales/ku_TR: Likewise.
28942         * localedata/locales/kw_GB: Likewise.
28943         * localedata/locales/ky_KG: Likewise.
28944         * localedata/locales/lb_LU: Likewise.
28945         * localedata/locales/lg_UG: Likewise.
28946         * localedata/locales/li_BE: Likewise.
28947         * localedata/locales/li_NL: Likewise.
28948         * localedata/locales/lij_IT: Likewise.
28949         * localedata/locales/ln_CD: Likewise.
28950         * localedata/locales/lo_LA: Likewise.
28951         * localedata/locales/lt_LT: Likewise.
28952         * localedata/locales/lv_LV: Likewise.
28953         * localedata/locales/lzh_TW: Likewise.
28954         * localedata/locales/mag_IN: Likewise.
28955         * localedata/locales/mai_IN: Likewise.
28956         * localedata/locales/mg_MG: Likewise.
28957         * localedata/locales/mhr_RU: Likewise.
28958         * localedata/locales/mi_NZ: Likewise.
28959         * localedata/locales/mk_MK: Likewise.
28960         * localedata/locales/ml_IN: Likewise.
28961         * localedata/locales/mn_MN: Likewise.
28962         * localedata/locales/mni_IN: Likewise.
28963         * localedata/locales/mr_IN: Likewise.
28964         * localedata/locales/ms_MY: Likewise.
28965         * localedata/locales/mt_MT: Likewise.
28966         * localedata/locales/my_MM: Likewise.
28967         * localedata/locales/nan_TW: Likewise.
28968         * localedata/locales/nan_TW@latin: Likewise.
28969         * localedata/locales/nb_NO: Likewise.
28970         * localedata/locales/nds_DE: Likewise.
28971         * localedata/locales/nds_NL: Likewise.
28972         * localedata/locales/ne_NP: Likewise.
28973         * localedata/locales/nhn_MX: Likewise.
28974         * localedata/locales/niu_NU: Likewise.
28975         * localedata/locales/niu_NZ: Likewise.
28976         * localedata/locales/nl_AW: Likewise.
28977         * localedata/locales/nl_BE: Likewise.
28978         * localedata/locales/nl_NL: Likewise.
28979         * localedata/locales/nn_NO: Likewise.
28980         * localedata/locales/nr_ZA: Likewise.
28981         * localedata/locales/nso_ZA: Likewise.
28982         * localedata/locales/oc_FR: Likewise.
28983         * localedata/locales/om_ET: Likewise.
28984         * localedata/locales/om_KE: Likewise.
28985         * localedata/locales/or_IN: Likewise.
28986         * localedata/locales/os_RU: Likewise.
28987         * localedata/locales/pa_IN: Likewise.
28988         * localedata/locales/pa_PK: Likewise.
28989         * localedata/locales/pap_AW: Likewise.
28990         * localedata/locales/pap_CW: Likewise.
28991         * localedata/locales/pl_PL: Likewise.
28992         * localedata/locales/ps_AF: Likewise.
28993         * localedata/locales/pt_BR: Likewise.
28994         * localedata/locales/pt_PT: Likewise.
28995         * localedata/locales/quz_PE: Likewise.
28996         * localedata/locales/raj_IN: Likewise.
28997         * localedata/locales/ro_RO: Likewise.
28998         * localedata/locales/ru_RU: Likewise.
28999         * localedata/locales/ru_UA: Likewise.
29000         * localedata/locales/rw_RW: Likewise.
29001         * localedata/locales/sa_IN: Likewise.
29002         * localedata/locales/sat_IN: Likewise.
29003         * localedata/locales/sc_IT: Likewise.
29004         * localedata/locales/sd_IN: Likewise.
29005         * localedata/locales/sd_IN@devanagari: Likewise.
29006         * localedata/locales/se_NO: Likewise.
29007         * localedata/locales/sgs_LT: Likewise.
29008         * localedata/locales/shs_CA: Likewise.
29009         * localedata/locales/si_LK: Likewise.
29010         * localedata/locales/sid_ET: Likewise.
29011         * localedata/locales/sk_SK: Likewise.
29012         * localedata/locales/sl_SI: Likewise.
29013         * localedata/locales/sm_WS: Likewise.
29014         * localedata/locales/so_DJ: Likewise.
29015         * localedata/locales/so_ET: Likewise.
29016         * localedata/locales/so_KE: Likewise.
29017         * localedata/locales/so_SO: Likewise.
29018         * localedata/locales/sq_AL: Likewise.
29019         * localedata/locales/sq_MK: Likewise.
29020         * localedata/locales/sr_ME: Likewise.
29021         * localedata/locales/sr_RS: Likewise.
29022         * localedata/locales/sr_RS@latin: Likewise.
29023         * localedata/locales/ss_ZA: Likewise.
29024         * localedata/locales/st_ZA: Likewise.
29025         * localedata/locales/sv_FI: Likewise.
29026         * localedata/locales/sv_SE: Likewise.
29027         * localedata/locales/sw_KE: Likewise.
29028         * localedata/locales/sw_TZ: Likewise.
29029         * localedata/locales/szl_PL: Likewise.
29030         * localedata/locales/ta_IN: Likewise.
29031         * localedata/locales/ta_LK: Likewise.
29032         * localedata/locales/tcy_IN: Likewise.
29033         * localedata/locales/te_IN: Likewise.
29034         * localedata/locales/tg_TJ: Likewise.
29035         * localedata/locales/th_TH: Likewise.
29036         * localedata/locales/the_NP: Likewise.
29037         * localedata/locales/ti_ER: Likewise.
29038         * localedata/locales/ti_ET: Likewise.
29039         * localedata/locales/tig_ER: Likewise.
29040         * localedata/locales/tk_TM: Likewise.
29041         * localedata/locales/tl_PH: Likewise.
29042         * localedata/locales/tn_ZA: Likewise.
29043         * localedata/locales/to_TO: Likewise.
29044         * localedata/locales/tpi_PG: Likewise.
29045         * localedata/locales/tr_CY: Likewise.
29046         * localedata/locales/tr_TR: Likewise.
29047         * localedata/locales/ts_ZA: Likewise.
29048         * localedata/locales/tt_RU: Likewise.
29049         * localedata/locales/tt_RU@iqtelif: Likewise.
29050         * localedata/locales/ug_CN: Likewise.
29051         * localedata/locales/uk_UA: Likewise.
29052         * localedata/locales/unm_US: Likewise.
29053         * localedata/locales/ur_IN: Likewise.
29054         * localedata/locales/ur_PK: Likewise.
29055         * localedata/locales/uz_UZ: Likewise.
29056         * localedata/locales/uz_UZ@cyrillic: Likewise.
29057         * localedata/locales/ve_ZA: Likewise.
29058         * localedata/locales/vi_VN: Likewise.
29059         * localedata/locales/wa_BE: Likewise.
29060         * localedata/locales/wae_CH: Likewise.
29061         * localedata/locales/wal_ET: Likewise.
29062         * localedata/locales/wo_SN: Likewise.
29063         * localedata/locales/xh_ZA: Likewise.
29064         * localedata/locales/yi_US: Likewise.
29065         * localedata/locales/yo_NG: Likewise.
29066         * localedata/locales/yue_HK: Likewise.
29067         * localedata/locales/yuw_PG: Likewise.
29068         * localedata/locales/zh_CN: Likewise.
29069         * localedata/locales/zh_HK: Likewise.
29070         * localedata/locales/zh_SG: Likewise.
29071         * localedata/locales/zh_TW: Likewise.
29072         * localedata/locales/zu_ZA: Likewise.
29074 2017-11-13  Florian Weimer  <fweimer@redhat.com>
29076         * support/next_to_fault.h, support/next_to_fault.c: New files.
29077         * support/Makefile (libsupport-routines): Add next_to_fault.
29078         * resolv/tst-inet_pton.c (struct next_to_fault)
29079         (next_to_fault_allocate, next_to_fault_free): Remove.
29080         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
29082 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
29084         * elf/dl-support.c: Include <dl-procruntime.c>.
29085         * include/link.h: Include <link_map.h>.
29086         * sysdeps/generic/dl-procruntime.c: New file.
29087         * sysdeps/generic/link_map.h: Likewise.
29088         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
29089         the writable ld.so namespace.
29091 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
29093         timezone: pacify GCC -Wstringop-truncation
29094         Problem reported by Martin Sebor in:
29095         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
29096         * timezone/zic.c (writezone): Use memcpy, not strncpy.
29098 2017-11-12  Florian Weimer  <fweimer@redhat.com>
29100         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
29101         tst-xreadlink.
29102         (tests): Add tst-xreadlink.
29103         * support/support.h (xstrndup): Declare.
29104         * support/xunistd.h (xunlink, xreadlink): Declare.
29105         * support/temp_file.h (support_create_temp_directory): Declare.
29106         * support/temp_file.c (support_create_temp_directory): New function.
29107         * support/support_chroot.c (support_chroot_create): Use it.
29108         * support/xreadlink.c: New file.
29109         * support/xstrndup.c: Likewise.
29110         * support/xunlink.c: Likewise.
29111         * support/tst-xreadlink.c: Likewise.
29113 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
29115         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
29117 2017-11-11  Florian Weimer  <fweimer@redhat.com>
29119         [BZ #22409]
29120         [BZ #22412]
29121         * resolv/res_comp.c (printable_string, binary_hnok)
29122         (binary_leading_dash): New functions.
29123         (res_hnok): Reimplement using these functions and ns_name_pton.
29124         (res_ownok): Likewise.
29125         (res_mailok): Reimplement using printable_string, ns_name_pton and
29126         binary_hnok.
29127         (res_dnok): Reimplement using printable_string and ns_name_pton.
29128         * resolv/tst-res_hnok.c (tests): Add additional tests.
29129         (LETTERDIGITS, PRINTABLE): Define.
29130         (do_test): Adjust one_char results.
29132 2017-11-11  Florian Weimer  <fweimer@redhat.com>
29134         [BZ #22413]
29135         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
29136         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
29138 2017-11-11  Florian Weimer  <fweimer@redhat.com>
29140         * resolv/tst-ns_name_pton.c: New file.
29141         * resolv/Makefile (tests): Add tst-ns_name_pton.
29142         (tst-ns_name_pton): Link against libresolv.
29144 2017-11-11  Florian Weimer  <fweimer@redhat.com>
29146         * resolv/tst-res_hnok.c: New file.
29147         * resolv/Makefile (tests): Add tst-res_hnok.
29148         (tst-res_hnok): Link against libresolv.
29150 2017-11-11  Florian Weimer  <fweimer@redhat.com>
29152         * resolv/tst-resolv-network.c: Use test framework instead explicit
29153         main function.
29155 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
29157         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
29158         <jmp_buf-macros.h>.
29159         [!_ISOMAC] (STR_HELPER): New.
29160         [!_ISOMAC] (STR): Likewise.
29161         [!_ISOMAC] (TEST_SIZE): Likewise.
29162         [!_ISOMAC] (TEST_ALIGN): Likewise.
29163         [!_ISOMAC] (TEST_OFFSET): Likewise.
29164         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
29165         field offsets of jmp_buf as well as sigjmp_buf.
29166         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
29167         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
29168         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
29169         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
29170         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
29171         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
29172         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
29173         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
29174         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
29175         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
29176         Likewise.
29177         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
29178         Likewise.
29179         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
29180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
29181         Likewise.
29182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
29183         Likewise.
29184         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
29185         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
29186         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
29187         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
29188         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
29189         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
29190         Likewise.
29191         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
29192         Likewise.
29193         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
29194         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
29195         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
29197 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
29199         * include/float.h
29200         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29201         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
29202         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29203         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
29204         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29205         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
29206         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29207         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
29208         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29209         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
29210         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29211         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
29212         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29213         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
29214         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29215         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
29216         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29217         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
29218         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29219         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
29220         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29221         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
29222         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29223         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
29224         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29225         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
29226         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29227         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
29228         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29229         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
29230         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29231         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
29232         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29233         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
29234         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29235         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
29236         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29237         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
29238         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29239         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
29240         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29241         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
29242         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29243         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
29244         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29245         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
29246         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29247         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
29248         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29249         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
29250         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29251         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
29252         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29253         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
29254         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29255         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
29256         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29257         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
29258         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29259         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
29260         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29261         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
29262         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29263         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
29264         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29265         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
29266         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29267         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
29268         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29269         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
29270         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29271         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
29272         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29273         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
29274         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29275         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
29276         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29277         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
29278         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29279         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
29280         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29281         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
29282         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29283         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
29284         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29285         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
29286         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29287         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
29289         * stdlib/tst-strtod.h (F16): New macro.
29290         (F32): Likewise.
29291         (F64): Likewise.
29292         (F32X): Likewise.
29293         (F64X): Likewise.
29294         (F128X): Likewise.
29295         (IF_FLOAT16): Likewise.
29296         (IF_FLOAT32): Likewise.
29297         (IF_FLOAT64): Likewise.
29298         (IF_FLOAT32X): Likewise.
29299         (IF_FLOAT64X): Likewise.
29300         (IF_FLOAT128X): Likewise.
29301         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
29302         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
29303         (STRTOD_TEST_FOREACH): Likewise.
29304         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
29305         (CHOOSE_f64): Likewise.
29306         (CHOOSE_f32x): Likewise.
29307         (CHOOSE_f64x): Likewise.
29309 2017-11-07  Andreas Schwab  <schwab@suse.de>
29311         * nptl/Makefile (tests-internal): Remove tst-typesizes.
29313 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
29315         [BZ #22403]
29316         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
29317         to be escaped.
29318         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
29319         to be escaped.
29321 2017-11-07  Claude Paroz  <claude@2xlibre.net>
29323         [BZ #22403]
29324         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
29325         to be escaped.
29326         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
29327         to be escaped.
29328         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
29329         to be escaped.
29331 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29333         [BZ #22298]
29334         * nptl/allocatestack.c (allocate_stack): Check if
29335         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
29336         __PTHREAD_MUTEX_HAVE_PREV is defined.
29337         * nptl/descr.h (pthread): Likewise.
29338         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
29339         Likewise.
29340         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
29341         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
29342         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
29343         * sysdeps/nptl/bits/thread-shared-types.h
29344         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
29345         defines.
29346         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
29347         of __WORDSIZE for internal layout.
29348         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
29349         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
29350         instead of __WORDSIZE whether to use an union for __spins and __list
29351         fields.
29352         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
29353         case.
29354         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
29355         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
29356         defines.
29357         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
29358         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29359         Likewise.
29360         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
29361         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29362         Likewise.
29363         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
29364         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29365         Likewise.
29366         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
29367         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29368         Likewise.
29369         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
29370         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29371         Likewise.
29372         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
29373         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29374         Likewise.
29375         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
29376         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29377         Likewise.
29378         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
29379         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29380         Likewise.
29381         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
29382         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29383         Likewise.
29384         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
29385         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29386         Likewise.
29387         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
29388         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29389         Likewise.
29390         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
29391         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29392         Likewise.
29393         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
29394         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29395         Likewise.
29396         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
29397         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29398         Likewise.
29400         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
29401         New macros.
29402         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
29403         checks for expected input type size.
29404         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
29405         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
29406         Likewise.
29407         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
29408         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
29409         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
29410         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
29411         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
29412         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
29413         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
29414         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
29415         superflous runtime assert check.
29416         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
29417         Likewise.
29418         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
29419         Likewise.
29420         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
29421         Likewise.
29422         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
29423         Likewise.
29424         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
29425         Likewise.
29426         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
29427         Likewise.
29428         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
29429         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
29430         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
29431         Likewise.
29432         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
29433         Likewise.
29434         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
29435         Likewise.
29436         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
29437         Likewise.
29438         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
29439         Likewise.
29440         * nptl/pthread_attr_setinheritsched.c
29441         (__pthread_attr_setinheritsched): Likewise.
29442         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
29443         Likewise.
29444         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
29445         Likewise.
29446         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
29447         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
29448         __old_pthread_attr_setstack): Likewise.
29449         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
29450         Likewise.
29451         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
29452         Likewise.
29453         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
29454         Likewise.
29455         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
29456         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
29457         Likewise.
29458         * nptl/tst-typesizes.c: Remove file.
29460         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
29461         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
29462         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
29463         checks for internal pthread_mutex_t offsets.
29464         * sysdeps/aarch64/nptl/pthread-offsets.h
29465         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
29466         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
29467         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
29468         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
29469         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
29470         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
29471         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
29472         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
29473         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
29474         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
29475         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
29476         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
29477         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
29478         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
29479         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
29480         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
29481         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
29482         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
29484 2017-11-07  Florian Weimer  <fweimer@redhat.com>
29486         * bits/mman-linux.h: Move ...
29487         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
29488         comment.
29489         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
29490         outdated comment.
29492 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
29494         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
29495         Redefine STRNLEN as __strnlen_power8.
29497 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29499         * signal/sighold.c (sighold): Optimize implementation.
29501         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
29502         __NR_rt_sigqueueinfo.
29504         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
29505         __sigtimedwait.
29506         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
29507         assume __NR_rt_sigtimedwait.
29508         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
29509         and add LIBC_CANCEL_HANDLED for cancellation marking.
29510         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
29512         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
29513         (sysdeps_routines): Add memchr_noneon.
29514         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
29515         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
29516         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
29517         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
29518         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
29519         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
29520         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
29522         * sysdeps/arm/arm-ifunc.h: New file.
29523         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
29524         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
29525         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
29526         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
29527         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
29528         (__memcpy_neon): Avoid create hidden alias.
29529         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
29530         (__memcpy_vfp): Likewise.
29531         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
29532         (sysdep_routines): Add memcpy_arm.
29533         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
29535 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
29537         [BZ #22362]
29538         * Makerules (make-link-multidir): New.
29539         * config.make.in (multidir): New.
29540         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
29541         * configure: Regenerated.
29542         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
29543         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
29544         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
29545         New target.
29547 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
29549         [BZ #22402]
29550         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
29551         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
29553 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
29555         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
29556         to be escaped.
29558 2017-11-04  Florian Weimer  <fweimer@redhat.com>
29560         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
29562 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
29564         * math/math.h [__HAVE_DISTINCT_FLOAT16
29565         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
29566         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
29567         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
29568         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
29569         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
29570         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
29571         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
29572         (__MATH_TG_F32): New macro.
29573         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
29574         (__MATH_TG_F64X): Likewise.
29575         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
29576         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
29578 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
29580         * po/de.po: Update translations.
29581         * po/ru.po: Likewise.
29583 2017-11-03  Florian Weimer  <fweimer@redhat.com>
29585         * manual/filesys.texi (Hard Links): Document linkat.
29587 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
29589         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
29590         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
29591         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
29592         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
29593         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
29594         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
29595         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
29596         the same as _Float128.
29597         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
29598         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
29599         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
29601         * stdlib/stdlib.h
29602         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
29603         Declare.
29604         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
29605         Likewise.
29606         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
29607         Likewise.
29608         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29609         (strtof32x): Likewise.
29610         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29611         (strtof64x): Likewise.
29612         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29613         (strtof128x): Likewise.
29614         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29615         (strfromf16): Likewise.
29616         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29617         (strfromf32): Likewise.
29618         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29619         (strfromf64): Likewise.
29620         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29621         (strfromf32x): Likewise.
29622         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29623         (strfromf64x): Likewise.
29624         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29625         (strfromf128x): Likewise.
29626         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
29627         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
29628         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
29629         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
29630         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
29631         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
29633 2017-11-03  Richard Henderson  <rth@twiddle.net>
29635         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
29637 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29639         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
29641 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29643         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
29644         DT_TLSDESC_GOT initialization.
29645         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
29646         (_dl_tlsdesc_resolve_hold): Likewise.
29647         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
29648         (_dl_tlsdesc_resolve_hold): Likewise.
29649         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
29650         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
29652 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29654         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
29656 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29658         [BZ #18572]
29659         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
29660         non-lazily for R_ARM_TLS_DESC.
29662 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29664         [BZ #17078]
29665         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
29666         R_ARM_TLS_DESC case.
29667         (elf_machine_lazy_rel): Remove the prelink check.
29669 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29671         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
29672         DT_TLSDESC_GOT initialization.
29673         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
29674         (_dl_tlsdesc_resolve_rela): Likewise.
29675         (_dl_tlsdesc_resolve_hold): Likewise.
29676         (_dl_tlsdesc_undefweak): Remove ldar.
29677         (_dl_tlsdesc_dynamic): Likewise.
29678         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
29679         (_dl_tlsdesc_resolve_rela): Likewise.
29680         (_dl_tlsdesc_resolve_hold): Likewise.
29681         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
29682         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
29683         (_dl_tlsdesc_resolve_rela): Likewise.
29684         (_dl_tlsdesc_resolve_hold): Likewise.
29686 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29688         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
29689         binding and initialization non-lazily for R_AARCH64_TLSDESC.
29691 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29693         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
29694         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
29696 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
29698         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
29699         Declare.
29700         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
29701         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
29702         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
29703         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
29704         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
29705         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
29706         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
29707         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
29708         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
29709         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
29710         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
29712 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
29714         [BZ #22382]
29715         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
29716         * localedata/locales/tpi_PG: Add standard header.
29718 2017-11-02  Florian Weimer  <fweimer@redhat.com>
29720         test-errno-linux: quotactl can fail with EPERM in containers.
29721         * sysdeps/unix/sysv/linux/test-errno-linux.c
29722         (LIST, LIST_FORWARD): New macros.
29723         (check_error_in_list): New function.
29724         (test_wrp_rv): Accept list of permitted error codes.
29725         (test_wrp_rv2): Remove.
29726         (test_wrp): Call test_wrp_rv with list of error codes.
29727         (test_wrp2): Accept list of error codes.
29728         (do_test): Adjust.  Allow EPERM for quotactl.
29730 2017-11-02  Florian Weimer  <fweimer@redhat.com>
29732         * stdio-common/bug16.c (do_test): Use array_length.
29733         * stdio-common/errlist.c (_sys_nerr): Likewise.
29734         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
29735         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
29736         * stdio-common/psiginfo.c (psiginfo): Use array_length.
29737         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
29738         (do_test): Use array_length.
29739         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
29740         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
29741         * stdio-common/tst-printf-round.c (do_test): Likewise.
29742         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
29743         (CHECK): Use array_length.
29744         * stdio-common/tstdiomisc.c (t3, F): Likewise.
29745         * stdio-common/tstscanf.c (main): Likewise.
29746         * stdio-common/vfprintf.c (process_string_arg): Likewise.
29748 2017-11-02  Florian Weimer  <fweimer@redhat.com>
29750         Add array_length and array_end macros.
29751         * include/array_length.h: New file.
29753 2017-11-02  Florian Weimer  <fweimer@redhat.com>
29755         [BZ #22332]
29756         * posix/tst-glob-tilde.c (do_noescape): New variable.
29757         (one_test): Process it.
29758         (do_test): Set do_noescape.  Add unescaping test case.
29760 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
29762         * math/complex.h
29763         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
29764         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
29765         with appropriate macros defined and undefined.
29766         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
29767         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29768         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
29769         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29770         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
29771         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29772         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
29773         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29774         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
29775         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29777         * math/complex.h
29778         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
29779         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
29780         that for long double.  Do not condition define and undefine of
29781         _Mdouble_complex_ on [__CFLOAT128].
29783 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
29785         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29786         of <sysdeps/generic/sysdep.h>.
29787         (ALIGNARG): Removed.
29788         (ASM_SIZE_DIRECTIVE): Likewise.
29789         (ENTRY): Likewise.
29790         (END): Likewise.
29791         (ENTRY_CHK): Likewise.
29792         (END_CHK): Likewise.
29793         (syscall_error): Likewise.
29794         (mcount): Likewise.
29795         (PSEUDO_END): Likewise.
29796         (L): Likewise.
29797         (atom_text_section): Likewise.
29798         * sysdeps/x86/sysdep.h: New file.
29799         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29800         of <sysdeps/generic/sysdep.h>.
29801         (ALIGNARG): Removed.
29802         (ASM_SIZE_DIRECTIVE): Likewise.
29803         (ENTRY): Likewise.
29804         (END): Likewise.
29805         (ENTRY_CHK): Likewise.
29806         (END_CHK): Likewise.
29807         (syscall_error): Likewise.
29808         (mcount): Likewise.
29809         (PSEUDO_END): Likewise.
29810         (L): Likewise.
29811         (atom_text_section): Likewise.
29813 2017-10-31  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
29815         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
29816         category of LC_CTYPE set to "i18n:2012".
29817         * localedata/locales/i18n_ctype: Regenerate.
29819 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
29821         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
29822         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
29823         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
29824         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
29826         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
29827         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
29828         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
29829         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
29831 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
29833         * math/complex.h
29834         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
29835         New macro.
29836         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
29837         Likewise.
29838         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
29839         Likewise.
29840         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29841         (CMPLXF32X): Likewise.
29842         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29843         (CMPLXF64X): Likewise.
29844         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29845         (CMPLXF128X): Likewise.
29847         * math/math.h
29848         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
29849         (__MATH_EVAL_FMT2): Define to add 0.0f.
29851 2017-10-31  Alan Modra  <amodra@gmail.com>
29853         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
29854         include sysdep.h.
29855         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
29856         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
29857         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
29858         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
29859         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
29860         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
29861         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
29862         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
29863         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
29864         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
29865         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
29866         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
29867         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
29868         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
29869         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
29870         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
29871         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
29872         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
29873         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
29874         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
29875         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
29876         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
29877         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
29878         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
29879         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
29880         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
29881         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
29882         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
29883         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
29884         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
29885         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
29886         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
29887         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
29888         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
29889         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
29890         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
29891         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
29892         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
29893         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
29894         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
29895         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
29896         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
29897         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
29898         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
29899         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
29900         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
29901         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
29902         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
29903         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29904         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
29905         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
29906         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
29907         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
29908         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
29909         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
29910         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
29911         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
29912         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
29913         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29914         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29915         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
29916         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
29917         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
29918         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
29919         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
29920         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
29921         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
29922         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29923         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29925         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29926         include sysdep.h and math_ldbl_opt.h.
29928         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29929         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
29930         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29931         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29932         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29933         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29934         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29935         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29936         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29937         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29938         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29939         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29940         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29941         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29942         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29943         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29944         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29945         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29946         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29947         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29948         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29949         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29950         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29951         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29952         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29953         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29955 2017-10-31  Alan Modra  <amodra@gmail.com>
29957         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29958         string/strncase_l.c, not string/strncase.c.
29959         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29960         (libc_hidden_def): Redefine.
29962 2017-10-31  Alan Modra  <amodra@gmail.com>
29964         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29965         (__STRCMP, STRCMP, __strcasecmp_l): Define.
29966         (__strcasecmp): Don't define.
29968 2017-10-31  Alan Modra  <amodra@gmail.com>
29970         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29971         IS_IN (libc).
29972         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29973         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29974         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29976 2017-10-31  Alan Modra  <amodra@gmail.com>
29978         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29979         USE_AS_STPNCPY.
29981 2017-10-31  Alan Modra  <amodra@gmail.com>
29983         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29984         Redefine only when SHARED.
29986 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
29988         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29989         Include <bits/math-finite.h> with appropriate macros defined and
29990         undefined.
29991         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29992         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29993         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29994         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29995         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29997         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29998         [!_Mlong_double_] (_Mlong_double_): Likewise.
29999         [!_Mfloat16_] (_Mfloat16_): Likewise.
30000         [!_Mfloat32_] (_Mfloat32_): Likewise.
30001         [!_Mfloat64_] (_Mfloat64_): Likewise.
30002         [!_Mfloat128_] (_Mfloat128_): Likewise.
30003         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
30004         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
30005         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
30006         (_Mdouble_): Define without indirection through those macros.
30007         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
30008         [!_Mfloat128_] (_Mfloat128_): Likewise.
30009         [_Mlong_double_] (_Mlong_double_): Likewise.
30010         (_Mdouble_): Define without indirection through those macros.
30011         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
30012         not add -D_Mlong_double_=double.
30013         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
30014         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
30016 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
30018         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
30020 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
30022         * sysdeps/x86/libc-start.c: Reformat.
30024 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
30026         [BZ #22353]
30027         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
30028         (1): Renamed to ...
30029         (L(Src0)): This.
30030         (L(Src1)): New.
30031         (L(Src2)): Likewise.
30032         (L(1)): Renamed to ...
30033         (L(Src3)): This.
30035 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
30037         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
30038         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
30039         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
30040         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
30041         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
30042         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
30043         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
30044         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
30045         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
30046         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
30047         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
30048         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
30049         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
30050         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
30051         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
30052         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
30053         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
30054         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
30055         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
30056         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
30057         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
30058         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
30059         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
30060         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
30061         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
30062         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
30063         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
30064         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
30065         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
30066         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
30067         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
30068         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
30069         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
30070         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
30071         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
30072         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
30073         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
30074         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
30075         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
30076         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
30077         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
30078         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
30079         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
30080         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
30081         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
30082         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
30083         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
30084         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
30085         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
30086         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
30087         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
30088         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
30089         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
30090         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
30091         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
30092         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
30093         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
30094         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
30095         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
30096         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
30097         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
30098         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
30099         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
30100         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
30101         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
30102         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
30104 2017-10-30  Florian Weimer  <fweimer@redhat.com>
30106         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
30107         always defined.
30108         * io/tst-mkdirat.c (do_test): Likewise.
30109         * io/tst-mkfifoat.c (do_test): Likewise.
30110         * io/tst-mknodat.c (do_test): Likewise.
30111         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
30112         * locale/programs/locale.c (select_dirs): Likewise.
30113         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
30114         * posix/bug-glob2.c (my_readdir): Likewise.
30115         * posix/tst-dir.c (main): Likewise.
30116         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
30117         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
30119 2017-10-30  Florian Weimer  <fweimer@redhat.com>
30121         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
30122         just __USE_GNU.
30124 2017-10-30  Florian Weimer  <fweimer@redhat.com>
30126         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
30127         Convert to support/test-driver.c.
30128         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
30129         New macro parameters.
30130         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
30131         * posix/tst-gnuglob.c: New file.
30132         * posix/tst-gnuglob64.c: Likewise.
30133         * posix/Makefile (tests): Add tst-gnuglob64.
30135 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
30137         [BZ #19485]
30138         * localedata/locales/csb_PL (LC_TIME): Fix â€œabmon” for March
30139         and use a better translation for March in â€œmon”.
30140         * localedata/locales/csb_PL: Use more ASCII to improve the
30141         readability of the source.
30143 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
30145         [BZ #13953]
30146         * localedata/locales/km_KH: Use ASCII as much
30147         as possible for better readability of the source and
30148         remove useless comments.
30149         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
30150         was commented out and apparently wrong anyway because it was
30151         using Lao characters. If Buddhist era should be used
30152         for km_KH, a native speaker should write the correct formaat
30153         for Khmer.
30154         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
30155         (According to CLDR, the first weekday for Cambodia is Sunday).
30156         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
30157         (These were using Lao characters which must be wrong. If we get
30158         the correct data from a native speaker, we could add it back, until
30159         then it is better not to have name_mr and name_mrs at all than
30160         having it wrong).
30162 2017-10-27  RafaƂ LuĆŒyƄski  <digitalfreak@lingonborough.com>
30164         * locale/loadlocale.c: Correct size of
30165         _nl_value_type_LC_<category> arrays.
30167 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
30169         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
30170         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
30171         with appropriate macros defined and undefined.
30172         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
30173         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
30174         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
30175         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
30176         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
30178 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
30180         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
30181         "-O2 -march=i586".
30183 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
30185         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
30186         with lowercase letters to make it agree with CLDR.
30188 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
30190         [BZ #15260]
30191         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
30192         first letters of yesstr and nostr in yesexpr and noexpr,
30193         not for the full words.
30194         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
30195         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
30196         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
30197         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
30198         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
30199         first letters of yesstr and nostr in yesexpr and noexpr,
30200         until now only English was matched in yesexpr and noexpr.
30201         * localedata/locales/tl_PH (LC_MESSAGES): Use â€œcopy "fil_PH"”
30202         instead of â€œcopy "en_US"”. CLDR has yesstr and nostr data for
30203         fil but not for tl. As tl and fil are very similar, using fil
30204         is probably better than using English.
30206 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
30208         [BZ #21706]
30209         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
30210         in yesstr and nostr.
30212 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
30214         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
30215         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
30216         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
30217         Likewise.
30218         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
30219         Likewise.
30220         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
30221         Likewise.
30222         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
30223         Likewise.
30224         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30225         (SNANF128X): Likewise.
30227         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
30228         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
30229         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30230         (HUGE_VAL_F32): Likewise.
30231         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30232         (HUGE_VAL_F64): Likewise.
30233         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30234         (HUGE_VAL_F32X): Likewise.
30235         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30236         (HUGE_VAL_F64X): Likewise.
30237         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30238         (HUGE_VAL_F128X): Likewise.
30240 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
30242         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
30243         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
30244         for the br_FR locale.
30246 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
30248         [BZ #21706]
30249         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
30251 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
30253         * locale/programs/record-status.h: Define globals, and function
30254         prototypes. Move function bodies...
30255         * locale/programs/record-status.c: ... to here. New file.
30256         * iconv/Makefile (iconv_prog-modules): Add record-status.
30257         * locale/Makefile (lib-modules): Likewise.
30258         * iconv/iconv_prog.c: Remove verbose.
30259         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
30260         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
30261         record a warning about ASCII compatibility.
30262         * locale/programs/ld-monetary.c (monetary_finish): If
30263         warn_int_curr_symbol is true then record a warning about the symbol
30264         not being in our ISO 4217 list.
30265         * locale/programs/locale.c: Include record-status.h. Remove verbose.
30266         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
30267         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
30268         (OPT_NO_WARN): Define.
30269         (OPT_WARN): Define.
30270         (options): Add entry for --no-warnings, and --warnings.
30271         (set_warnings): New function to enable/disable warnings.
30272         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
30273         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
30274         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
30275         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
30276         Pass flags to generate_locale.
30277         (generate_locale): Accept new flag argument and pass it to localedef
30278         invocation.
30279         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
30280         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
30282         * localedata/Makefile (test-input-data): Use full file name.
30283         * localedata/da_DK.in: Rename to...
30284         * localedata/da_DK.ISO-8859-1.in: ...this.
30285         * localedata/de_DE.in: Rename to...
30286         * localedata/de_DE.ISO-8859-1.in: ...this.
30287         * localedata/en_US.in: Rename to...
30288         * localedata/en_US.ISO-8859-1.in: ...this.
30289         * localedata/fr_FR.in: Rename to...
30290         * localedata/fr_FR.UTF-8.in: ... this.
30291         * localedata/hr_HR.in: Rename to...
30292         * localedata/hr_HR.ISO-8859-2.in: ...this.
30293         * localedata/hu_HU.in: Rename to...
30294         * localedata/hu_HU.UTF-8.in: ...this.
30295         * localedata/si_LK.in: Rename to...
30296         * localedata/si_LK.UTF-8.in: ...this.
30297         * localedata/sv_SE.in: Rename to...
30298         * localedata/sv_SE.ISO-8859-1.in: ...this.
30299         * localedata/tr_TR.in: Rename to...
30300         * localedata/tr_TR.UTF-8.in: ...this.
30301         * localedata/uk_UA.in: Rename to...
30302         * localedata/uk_UA.UTF-8.in: ...this.
30303         * localedata/sort-test.sh: Test file is locale name with the
30304         suffix.
30306         * localedata/unicode-gen/Makefile (check_i18n): Rename to
30307         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
30308         file.
30309         * localedata/locales/i18n_ctype: Regenerate.
30310         * localedata/locales/tr_TR: Likewise.
30311         * localedata/locales/translit_circle: Likewise.
30312         * localedata/locales/translit_cjk_compat: Likewise.
30313         * localedata/locales/translit_combining: Likewise.
30314         * localedata/locales/translit_compat: Likewise.
30315         * localedata/locales/translit_font: Likewise.
30316         * localedata/locales/translit_fraction: Likewise.
30318 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
30320         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
30321         lxvd2x/stxvd2x with lvx/stvx.
30322         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
30324 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
30326         * include/alloc_buffer.h: Replace "if if " with "if " in
30327         comments.
30328         * sysdeps/mips/memcpy.S: Likkewise.
30329         * sysdeps/mips/memset.S: Likewise.
30330         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30331         Likewise.
30332         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
30333         Likewise.
30334         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
30335         Likewise.
30337 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30339         [BZ #15261]
30340         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
30341         yesexpr and noexpr.
30342         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
30343         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
30344         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
30345         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
30346         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
30347         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
30348         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
30350 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30352         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
30353         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
30354         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
30355         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
30356         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
30357         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
30358         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
30359         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
30360         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
30361         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
30362         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
30363         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
30365 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30367         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
30368         as possible for better readability of the source.
30369         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
30370         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
30371         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
30372         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
30373         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
30374         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
30375         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
30376         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
30377         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
30378         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
30379         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
30380         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
30381         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
30382         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
30383         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
30384         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
30385         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
30386         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
30387         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
30388         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
30389         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
30390         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
30391         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
30392         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
30393         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
30394         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
30395         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
30396         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
30397         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
30398         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
30399         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
30400         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
30401         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
30402         * localedata/locales/en_US (LC_MESSAGES): Likewise.
30403         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
30404         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
30405         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
30406         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
30407         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
30408         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
30409         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
30410         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
30411         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
30412         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
30413         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
30414         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
30415         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
30416         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
30417         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
30418         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
30419         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
30420         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
30421         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
30422         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
30423         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
30424         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
30425         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
30426         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
30427         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
30428         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
30429         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
30430         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
30431         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
30432         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
30433         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
30434         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
30435         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
30436         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
30437         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
30438         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
30439         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
30440         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
30441         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
30442         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
30443         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
30444         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
30445         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
30446         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
30447         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
30448         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
30449         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
30450         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
30451         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
30452         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
30453         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
30454         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
30455         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
30456         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
30457         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
30458         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
30459         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
30460         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
30461         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
30462         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
30463         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
30464         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
30465         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
30466         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
30467         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
30468         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
30469         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
30470         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
30471         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
30472         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
30473         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
30474         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
30475         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
30476         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
30477         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
30478         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
30479         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
30480         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
30481         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
30482         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
30483         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
30484         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
30485         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
30486         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
30487         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
30488         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
30489         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
30490         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
30491         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
30492         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
30493         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
30494         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
30495         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
30496         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
30497         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
30498         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
30499         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
30500         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
30501         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
30502         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
30503         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
30504         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
30505         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
30506         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
30507         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
30508         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
30509         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
30510         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
30511         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
30512         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
30513         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
30514         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
30515         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
30516         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
30517         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
30518         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
30519         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
30520         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
30521         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
30522         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
30523         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
30524         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
30525         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
30526         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
30527         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
30528         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
30529         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
30530         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
30531         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
30532         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
30533         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
30534         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
30535         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
30536         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
30537         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
30538         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
30539         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
30540         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
30541         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
30542         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
30544 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30546         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
30547         (Use first letters of yesstr and nostr correctly instead of using
30548         full words).
30550 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30552         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
30553         (Use first letters of yesstr and nostr correctly).
30555 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30557         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
30558         also check for the first characters of yesstr and nostr.
30559         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
30560         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
30562 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30564         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
30565         also check for Chinese characters.
30567 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30569         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
30570         match also for the contents of yesstr and nostr. As the first letter
30571         of yesstr and nostr is equal, checking only for the first letter
30572         is not enough.
30574 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30576         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
30577         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
30579 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30581         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
30582         of main contributor.
30584 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30586         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
30587         instead of using English.
30589 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30591         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
30592         by including the first letters of nostr and yesexpr in the regexp.
30593         Also make it more readable by using ASCII where possible.
30595 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
30597         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
30598         the first letter of nostr in the regexp. It agrees with CLDR now.
30599         Also make it more readable by using ASCII where possible.
30601 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
30603         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
30604         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
30605         these strings contain a U+17D6 (which somewhat looks like a colon)
30606         instead of a real colon to separate the full words for â€œyes”
30607         and â€œno” from the single letter responses.
30609 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
30611         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
30612         it agree with CLDR (include the first letter of yesstr).
30613         Also make it more readable by using ASCII where possible.
30615 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
30617         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
30618         and improve yesexpr and noexpr. The yesstr and nostr apparently
30619         came from CLDR. And CLDR has a bug there: these strings contain
30620         a U+0903 (which looks like a colon) instead of a real colon
30621         to separate the full words for â€œyes” and â€œno” from the single
30622         letter responses.
30624 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
30626         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
30627         letters of the full yesstr and nostr in yesexpr and noexpr.
30629 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
30631         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
30632         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
30633         * localedata/locales/an_ES: Make source more readable by using ASCII
30634         where possible.
30636 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
30638         [BZ #20952]
30639         * localedata/locales/yuw_PG: New file.
30640         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
30641         * locale/iso-639.def: Add Yau (Uruwa).
30643 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
30645         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
30647 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
30649         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
30650         (__libc_realloc): Likewise.
30651         (_mid_memalign): Likewise.
30652         (__libc_calloc): Likewise.
30654 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
30656         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
30657         by adding the generic +1 and -0 as in all other locales.
30658         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
30659         day names and make it more readable by using ASCII where possible.
30661 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
30663         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
30664         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
30666 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30668         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
30669         WNOHANG in waitpid call.
30671 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
30673         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
30674         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
30676         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
30677         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
30678         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
30679         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
30680         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
30681         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
30682         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
30683         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
30684         variables.
30686 2017-10-23  Michael Collison  <michael.collison@arm.com>
30688         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
30689         with __builtin_sqrt.
30690         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
30691         with __builtin_sqrtf.
30692         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
30693         with __builtin_ceil.
30694         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
30695         with __builtin_ceilf.
30696         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
30697         with __builtin_floor.
30698         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
30699         with __builtin_floorf.
30700         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
30701         with __builtin_fma.
30702         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
30703         with __builtin_fmaf.
30704         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
30705         with __builtin_fmax.
30706         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
30707         with __builtin_fmaxf.
30708         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
30709         with __builtin_fmin.
30710         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
30711         with __builtin_fminf.
30712         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
30713         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
30714         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
30715         with builtin_rint and conversion to int.
30716         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
30717         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
30718         with builtin_llround.
30719         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
30720         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
30721         with builtin_rint and conversion to long int.
30722         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
30723         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
30724         with builtin_lround.
30725         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
30726         with builtin_lroundf.
30727         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
30728         statements with __builtin_nearbyint.
30729         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
30730         statements with __builtin_nearbyintf.
30731         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
30732         with __builtin_rint.
30733         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
30734         with __builtin_rintf.
30735         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
30736         with __builtin_round.
30737         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
30738         with __builtin_roundf.
30739         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
30740         with __builtin_trunc.
30741         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
30742         with __builtin_truncf.
30743         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
30744         and s_l[l]round[f].c too.
30746 2017-10-23  Alan Modra  <amodra@gmail.com>
30748         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
30749         Adjust stack after restoring regs.  Add missing LR cfi_restore.
30751 2017-10-23  Alan Modra  <amodra@gmail.com>
30753         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
30754         Move LR save and frame setup/teardown and LR restore to
30755         immediately around memset call.  Provide cfi.
30757 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
30759         * sysdeps/i386/fpu/e_powf.S: Removed.
30760         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
30761         * sysdeps/i386/fpu/w_powf.c: Likewise.
30762         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
30763         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30764         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30765         Add e_powf-sse2.
30766         (CFLAGS-e_powf-sse2.c): New.
30767         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
30768         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
30770 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
30772         * sysdeps/i386/fpu/e_log2f.S: Removed.
30773         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
30774         * sysdeps/i386/fpu/w_log2f.c: Likewise.
30775         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
30776         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30777         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30778         Add e_log2f-sse2.
30779         (CFLAGS-e_log2f-sse2.c): New.
30780         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
30781         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
30783 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
30785         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30786         Add e_powf-fma.
30787         (CFLAGS-e_powf-fma.c): New.
30788         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
30789         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
30791 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
30793         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30794         Add e_log2f-fma.
30795         (CFLAGS-e_log2f-fma.c): New.
30796         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
30797         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
30799 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
30801         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30802         Add e_logf-fma.
30803         (CFLAGS-e_logf-fma.c): New.
30804         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
30805         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
30807 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
30809         * sysdeps/i386/fpu/e_logf.S: Removed.
30810         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
30811         * sysdeps/i386/fpu/w_logf.c: Likewise.
30812         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
30813         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
30814         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30815         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30816         Add e_logf-sse2.
30817         (CFLAGS-e_logf-sse2.c): New.
30818         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
30819         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
30821 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
30823         * sysdeps/i386/fpu/e_exp2f.S: Removed.
30824         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
30825         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
30826         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30827         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30828         Add e_exp2f-sse2.
30829         (CFLAGS-e_exp2f-sse2.c): New.
30830         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
30831         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
30833 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
30835         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30836         Add e_exp2f-fma.
30837         (CFLAGS-e_exp2f-fma.c): New.
30838         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
30839         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
30841 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
30843         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
30844         * sysdeps/i386/fpu/e_expf.S: Likewise.
30845         * sysdeps/i386/fpu/math_errf.c: Likewise.
30846         * sysdeps/i386/fpu/w_expf.c: Likewise.
30847         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
30848         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30849         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
30850         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
30851         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30852         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30853         Remove e_expf-ia32.
30854         (CFLAGS-e_expf-sse2.c): New.
30855         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
30856         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
30858 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
30860         * sysdeps/x86_64/fpu/e_expf.S: Removed.
30861         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
30862         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
30863         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
30864         e_expf.c.
30865         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
30866         New.
30867         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
30868         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30869         Renamed to ...
30870         (__redirect_expf): This.
30871         (SYMBOL_NAME): Changed to expf.
30872         (__ieee754_expf): Renamed to ...
30873         (__expf): This.
30874         (__GI___expf): This.
30875         (__ieee754_expf): Add strong_alias.
30876         (__expf_finite): Likewise.
30877         (__expf): New.
30878         Include <sysdeps/ieee754/flt-32/e_expf.c>.
30880 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30882         [BZ #22332]
30883         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
30884         unescaping.
30886 2017-10-21  Florian Weimer  <fweimer@redhat.com>
30888         * posix/Makefile (tests): Add tst-glob-tilde.
30889         (tests-special): Add tst-glob-tilde-mem.out
30890         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
30891         (tst-glob-tilde-mem.out): Add mtrace check.
30892         * posix/tst-glob-tilde.c: New file.
30894 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
30896         * bits/floatn-common.h: New file.
30897         * math/Makefile (headers): Add bits/floatn-common.h.
30898         * bits/floatn.h: Include <bits/floatn-common.h>.
30899         * sysdeps/ia64/bits/floatn.h: Likewise.
30900         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30901         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
30902         * sysdeps/powerpc/bits/floatn.h: Likewise.
30903         * sysdeps/x86/bits/floatn.h: Likewise.
30905 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30907         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
30908         indicates whether compiler emits an warning for alias for
30909         functions with incompatible types.
30911         [BZ #22273]
30912         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
30913         the auxiliary process is terminated by a signal before calling _exit
30914         or execve.
30916 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
30918         [BZ #21265]
30919         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
30920         New.
30921         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
30922         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30923         and bit_arch_XSAVEC_Usable if needed.
30924         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30925         and bit_arch_Use_dl_runtime_resolve_opt.
30926         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30927         Removed.
30928         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30929         (bit_arch_Prefer_No_AVX512): Updated.
30930         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30931         (bit_arch_XSAVEC_Usable): New.
30932         (STATE_SAVE_OFFSET): Likewise.
30933         (STATE_SAVE_MASK): Likewise.
30934         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30935         (cpu_features): Add xsave_state_size and xsave_state_full_size.
30936         (index_arch_Use_dl_runtime_resolve_opt): Removed.
30937         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30938         (index_arch_XSAVEC_Usable): New.
30939         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30940         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
30941         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30942         is enabled.
30943         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30944         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30945         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30946         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30947         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30948         _dl_runtime_resolve_xsavec.
30949         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30950         Removed.
30951         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30952         instead of VEC_SIZE.
30953         (REGISTER_SAVE_BND0): Removed.
30954         (REGISTER_SAVE_BND1): Likewise.
30955         (REGISTER_SAVE_BND3): Likewise.
30956         (REGISTER_SAVE_RAX): Always defined to 0.
30957         (VMOV): Removed.
30958         (_dl_runtime_resolve_avx): Likewise.
30959         (_dl_runtime_resolve_avx_slow): Likewise.
30960         (_dl_runtime_resolve_avx_opt): Likewise.
30961         (_dl_runtime_resolve_avx512): Likewise.
30962         (_dl_runtime_resolve_avx512_opt): Likewise.
30963         (_dl_runtime_resolve_sse): Likewise.
30964         (_dl_runtime_resolve_sse_vex): Likewise.
30965         (USE_FXSAVE): New.
30966         (_dl_runtime_resolve_fxsave): Likewise.
30967         (USE_XSAVE): Likewise.
30968         (_dl_runtime_resolve_xsave): Likewise.
30969         (USE_XSAVEC): Likewise.
30970         (_dl_runtime_resolve_xsavec): Likewise.
30971         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30972         Removed.
30973         (_dl_runtime_resolve_avx512_opt): Likewise.
30974         (_dl_runtime_resolve_avx): Likewise.
30975         (_dl_runtime_resolve_avx_opt): Likewise.
30976         (_dl_runtime_resolve_sse): Likewise.
30977         (_dl_runtime_resolve_sse_vex): Likewise.
30978         (_dl_runtime_resolve_fxsave): New.
30979         (_dl_runtime_resolve_xsave): Likewise.
30980         (_dl_runtime_resolve_xsavec): Likewise.
30982 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
30984         [BZ #22320]
30985         CVE-2017-15670
30986         * posix/glob.c (__glob): Fix one-byte overflow.
30988 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
30990         * malloc/malloc.c (sysdep-cancel.h): Add include.
30992 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
30994         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30996 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
30998         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30999         (tests): Remove $(objpfx)ga_test depdendency.
31000         * resolv/ga_test.c: Remove file.
31002 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
31004         [BZ #18812]
31005         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
31006         * localedata/locales/kab_DZ: New file.
31008 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
31010         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
31011         _dl_relocate_static_pie instead of _dl_start to compute load
31012         address in static PIE.
31014 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
31016         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
31018 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
31020         [BZ #13605]
31021         * localedata/SUPPORTED: Add shn_MM/UTF-8.
31022         * localedata/locales/shn_MM: New file.
31024 2017-10-20  Florian Weimer  <fweimer@redhat.com>
31026         [BZ #22321]
31027         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
31028         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
31029         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
31030         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
31031         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
31032         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
31034 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
31036         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
31038 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
31040         * sysdeps/mips/ieee754/bits/floatn.h: New file.
31042         [BZ #22322]
31043         * sysdeps/mips/bits/long-double.h: Move to ....
31044         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
31046 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
31048         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
31050 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
31051             H.J. Lu  <hongjiu.lu@intel.com>
31053         [BZ #22299]
31054         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
31055         GLRO(dl_platform) to NULL.
31056         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
31057         (modules-names): Add tst-platformmod-1 and
31058         x86_64/tst-platformmod-2.
31059         (CFLAGS-tst-platform-1.c): New.
31060         (CFLAGS-tst-platformmod-1.c): Likewise.
31061         (CFLAGS-tst-platformmod-2.c): Likewise.
31062         (LDFLAGS-tst-platformmod-2.so): Likewise.
31063         ($(objpfx)tst-platform-1): Likewise.
31064         ($(objpfx)tst-platform-1.out): Likewise.
31065         (tst-platform-1-ENV): Likewise.
31066         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
31067         * sysdeps/x86_64/tst-platform-1.c: New file.
31068         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
31069         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
31071 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
31073         [BZ #13994]
31074         * locale/iso-639.def: Add Karbi.
31075         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
31076         * localedata/locales/mjw_IN: New file.
31078 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
31080         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
31081         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
31082         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
31083         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
31084         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
31085         (libm_alias_ldouble_other_r): Also create _Float128 alias.
31086         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
31087         <bits/floatn.h>.
31088         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
31089         (libm_alias_ldouble_other_r): Also create _Float128 alias.
31090         * manual/math.texi (Mathematics): Document additional architecture
31091         support for _Float128.
31092         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
31093         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
31094         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
31095         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31096         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31097         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
31098         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
31099         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
31100         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31101         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
31102         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31103         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
31104         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31105         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
31106         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31108 2017-10-18  Renlin Li  <renlin.li@arm.com>
31110         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
31111         _DYNAMIC symbol to calculate load address.
31113 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
31115         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
31116         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
31117         summary bits.
31118         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
31119         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
31121 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
31123         [BZ #16777]
31124         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
31125         and improve readability by using more ASCII.
31126         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
31127         and improve readability by using more ASCII.
31129 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
31131         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
31132         not all targets support atomics on bool.
31134 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
31136         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
31137         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
31138         __f128.
31139         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
31140         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
31141         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
31142         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
31143         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
31144         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
31146 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31148         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
31149         defines.
31151 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
31153         [BZ #22159]
31154         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
31155         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
31156         (do_check_remalloced_chunk): Fix build bug.
31157         (do_check_malloc_state): Add assert that checks arena->top.
31158         (malloc_consolidate): Remove initialization.
31159         (int_mallinfo): Remove call to malloc_consolidate.
31160         (__libc_mallopt): Clarify why malloc_consolidate is needed.
31162 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
31164         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
31165         (have_fastchunks): Remove.
31166         (clear_fastchunks): Remove.
31167         (set_fastchunks): Remove.
31168         (malloc_state): Add have_fastchunks.
31169         (malloc_init_state): Use have_fastchunks.
31170         (do_check_malloc_state): Remove incorrect invariant checks.
31171         (_int_malloc): Use have_fastchunks.
31172         (_int_free): Likewise.
31173         (malloc_consolidate): Likewise.
31175 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
31177         * malloc/malloc.c (tcache_put): Inline.
31178         (tcache_get): Inline.
31180 2017-10-17  Jordi Mallach  <jordi@gnu.org>
31182         Aurelien Jarno  <aurelien@aurel32.net>
31183         [BZ #2522]
31184         * localedata/locales/ca_ES@valencia: New file.
31185         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
31187 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
31189         [BZ #22296]
31190         * math/math.h: Let signbit use the builtin in C++ mode with gcc
31191         < 6.x
31193 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31195         * scripts/build-many-glibcs.py (Context.add_all_configs):
31196         Add arm-linux-gnueabihf multiarch extra_glibcs.
31198         * sysdeps/generic/ifunc-init.h: New file.
31199         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
31201 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
31203         [BZ #22019]
31204         * localedata/locales/el_GR: Set n_cs_precedes to 0.
31205         * localedata/locales/el_CY: copy "el_GR" because it is identical.
31206         * stdlib/tst-strfmon_l.c: adapt test case.
31208 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
31210         * sysdeps/generic/float128-abi.h: New file.
31211         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
31212         non-__prefixed symbols to ....
31213         * math/Versions: ... here.  Include <float128-abi.h>.
31214         * stdlib/Versions ... and here.  Include <float128-abi.h>
31216 2017-10-16  Florian Weimer  <fweimer@redhat.com>
31218         * version.h (VERSION): Switch to ".9000" as the development
31219         version suffix.
31221 2017-10-16  Florian Weimer  <fweimer@redhat.com>
31223         [BZ #22050]
31224         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
31225         compat_symbol_reference to access non-default version.
31227 2017-10-16  Florian Weimer  <fweimer@redhat.com>
31229         * malloc/Makefile (others-extras): Set to mcheck-init.o.
31231 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
31233         * include/shlib-compat.h (compat_symbol_reference): Update
31234         comment.
31236 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
31238         * math/Makefile (test-types): Add
31239         $(type-float128-$(float128-alias-fcts)).
31240         * math/test-float128.h (TYPE_STR): Define conditional on
31241         [FLT128_MANT_DIG == LDBL_MANT_DIG].
31242         (ULP_IDX): Likewise.
31243         (ULP_I_IDX): Likewise.
31245         * stdlib/strtold.c: Include <bits/floatn.h>
31246         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
31247         and later undefine as macro.  Define as weak alias if
31248         [!USE_WIDE_CHAR].
31249         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
31250         and later undefine as macro.  Define as weak alias if
31251         [USE_WIDE_CHAR].
31252         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
31253         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
31254         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
31255         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
31256         Define and later undefine as macro.  Define as weak alias if
31257         [USE_WIDE_CHAR].
31258         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
31259         <bits/floatn.h>.
31260         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
31261         Define and later undefine as macro.  Define as weak alias if
31262         [!USE_WIDE_CHAR].
31263         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
31264         Define and later undefine as macro.  Define as weak alias if
31265         [USE_WIDE_CHAR].
31267 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
31269         * localedata/collate-test.c (allocate_arrays): Don't use \n in
31270         record_verbose messages.
31272 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
31274         [BZ #22052]
31275         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
31276         to silence -O3 -Wall warning with GCC 7.
31278 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
31280         * Makeconfig (+link-static-before-libc): Use the first of
31281         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
31282         * gmon/Makefile (tests): Add tst-gmon-static.
31283         (tests-static): Likewise.
31284         (CFLAGS-tst-gmon-static.c): New.
31285         (CRT-tst-gmon-static): Likewise.
31286         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
31287         (tst-gmon-static-ENV): Likewise.
31288         (tests-special): Likewise.
31289         ($(objpfx)tst-gmon-static.out): Likewise.
31290         (clean-tst-gmon-static-data): Likewise.
31291         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
31292         * gmon/tst-gmon-static-gprof.sh: New file.
31293         * gmon/tst-gmon-static.c: Likewise.
31295 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
31297         [BZ #22295]
31298         * locale/programs/linereader.c (get_string): Don't warn on
31299         non-symbolic character.
31301         [BZ #22294]
31302         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
31303         int_curr_symbol.
31305         [BZ #22292]
31306         * locale/programs/record-status.h: New file
31307         * locale/programs/locale.c: Add comment.
31308         * locale/programs/charmap-dir.c: Don't include error.h.
31309         (charmap_opendir): Use record_error.
31310         * locale/programs/charmap.c: Don't include error.h.
31311         (charmap_read): Use record_error, and record_warning.
31312         (parse_charmap): Likewise.
31313         * locale/programs/ld-address.c: Don't include error.h.
31314         (address_finish): Use record_error, and record_warning.
31315         * locale/programs/ld-collate.c: Don't include error.h.
31316         (collate_finish): Use record_error, and record_error_at_line.
31317         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
31318         (ctype_class_new): Likewise.
31319         (ctype_map_new): Likewise.
31320         (set_one_default): Likewise.
31321         (set_class_defaults): Likewise.
31322         (translit_flatten): Likewise.
31323         (allocate_arrays): Use record_error, and record_verbose.
31324         * locale/programs/ld-identification.c: Don't include error.h.
31325         (indentation_finish): Use record_error and record_warning.
31326         * locale/programs/ld-measurement.c: Don't include error.h.
31327         (measurement_finish): Use record_error.
31328         * locale/programs/ld-messages.c
31329         (message_finish): Likewise.
31330         * locale/programs/ld-monetary.c
31331         (monetary_finish): Likewise.
31332         * locale/programs/ld-name.c (name_finish): Use record_error
31333         and record_warning.
31334         * locale/programs/ld-numeric.c
31335         (numeric_finish): Use record_error.
31336         * locale/programs/ld-paper.c: Don't include error.h.
31337         (paper_finish): Use record_error.
31338         * locale/programs/ld-telephone.c: Don't include error.h.
31339         (telephone_finish): Use record_error.
31340         * locale/programs/ld-time.c (time_finish): Likewise.
31341         * locale/programs/linereader.h (lr_error): Make inline func.
31342         * locale/programs/localedef.c: Define recorded_warning_count,
31343         and recorded_error_count.
31344         (main): Use record_error. Use recorded_error_count and
31345         recorded_warning_count to issue correct error returns.
31346         (add_to_readlist): Use record_error.
31347         (find_locale): Likewise.
31348         (load_locale): Likewise.
31349         * locale/programs/localedef.h: Remove be_quiet
31350         and WITH_CUR_LOCALE.
31351         * locale/programs/locarchive.c (compare_from_file): Use
31352         record_error.
31353         * locale/programs/locfile.c (write_locale_data): Use
31354         record_error.
31355         * locale/programs/repertoire.c: Dont include error.h.
31356         (repertoire_complain): Use record_error.
31357         * localedata/tst-fmon.sh: Expect failures from localedef.
31358         * localedata/tst-locale.sh: Likewise.
31359         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
31361         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
31362         (REPORTS): Likewise.
31363         (check): Likewise.
31364         (i18n): Rename to...
31365         (i18n_ctype): ...this.
31366         (i18n-report): Rename to...
31367         (i18n_ctype-report): ...this.
31368         * localedata/locales/i18n_ctype: Regenerate.
31369         * localedata/locales/i18n: copy i18n_ctype.
31371 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
31373         * stdlib/strfroml.c: Include <bits/floatn.h>.
31374         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
31375         Define before include of <stdlib.h> and undefine afterwards, then
31376         define as weak alias.
31378         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
31379         Undefine and restore default definition.  Use
31380         libm_alias_ldouble_other.
31382 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
31384         [BZ #22153]
31385         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
31386         in coredumps.
31388 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
31390         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
31391         Assign sym_map to be map for local symbols, as TLS relocations
31392         use sym_map to determine whether the symbol is defined and to
31393         extract the TLS information.
31394         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
31395         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
31397 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
31399         [BZ #22189]
31400         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
31401         (math_force_eval): Add powerpc version.
31403         [BZ #22142]
31404         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
31405         -DBL_MAX.
31406         (do_test): Likewise.
31407         * stdio-common/tst-printf.sh: Likewise.
31408         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
31409         ifdef clause in order to set the carry bit right.  Replace r0 by
31410         0 without changing the behavior.
31412 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
31414         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
31415         <libm-alias-ldouble.h>.
31416         (fabsl): Define using libm_alias_ldouble.
31417         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
31418         <libm-alias-ldouble.h>.
31419         (fabsl): Define using libm_alias_ldouble.
31421         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
31422         Remove conditional code.
31424         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
31425         Rename to __clog10_internal_l.
31426         (__clog10_internal_l): Define aliases using
31427         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
31428         with __clog10.
31430 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
31432         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
31433         * benchtests/sincosf-inputs: New file.
31434         * benchtests/cosf-inputs: New file.
31435         * benchtests/sinf-inputs: New file.
31437 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31439         * posix/tst-spawn.c (do_test): Wait for both children.
31441 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
31443         [BZ #22284]
31444         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
31445         tests-pie): Add tst-gmon-pie.
31446         (CFLAGS-tst-gmon-pie.c): New.
31447         (CRT-tst-gmon-pie): Likewise.
31448         (tst-gmon-pie-ENV): Likewise.
31449         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
31450         ($(objpfx)tst-gmon-pie.out): Likewise.
31451         (clean-tst-gmon-pie-data): Likewise.
31452         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
31453         * gmon/gmon.c [PIC]: Include <link.h>.
31454         [PIC] (callback): New function.
31455         (write_hist): Add an argument for load address.  Subtract load
31456         address from PCs.
31457         (write_call_graph): Likewise.
31458         (write_gmon): Call __dl_iterate_phdr to get load address, pass
31459         it to write_hist and write_call_graph.
31460         * gmon/tst-gmon-pie.c: New file.
31462 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
31464         * math/Makefile (test-types-basic): New variable.
31465         (test-types): Likewise.
31466         (libm-test-support): Use $(test-types) instead of $(types).
31467         (libm-tests-base-normal): Likewise.
31468         (libm-tests-base-finite): Likewise.
31469         (libm-tests-base-inline): Likewise.
31470         (generated): Likewise.
31471         ($(objpfx)libm-test-support-$(t).c): Likewise.
31472         (libm-tests-for-type iterator): Likewise.
31473         (libm-test-support iterator): Likewise.
31474         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
31475         (ulp_idx): Use ULP_IDX.
31476         * math/test-ldouble.h: Include <float.h>.
31477         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
31478         (ULP_IDX): New macro.
31479         (ULP_I_IDX): Likewise.
31480         * math/test-double.h (ULP_IDX): Likewise.
31481         (ULP_I_IDX): Likewise.
31482         * math/test-float.h (ULP_IDX): Likewise.
31483         (ULP_I_IDX): Likewise.
31484         * math/test-float128.h (ULP_IDX): Likewise.
31485         (ULP_I_IDX): Likewise.
31487 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31489         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
31490         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
31491         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
31492         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
31493         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
31494         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
31495         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
31496         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
31497         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
31498         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
31499         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
31500         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
31501         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
31502         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31503         (SINGLE_THREAD_BY_GLOBAL): Define.
31504         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31505         Likewise.
31506         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31507         Likewise.
31508         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31509         Likewise.
31510         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31511         Likewise.
31512         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
31513         (SINGLE_THREAD_BY_GLOBAL): Likewise.
31514         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31515         Likewise.
31517 2017-10-11  Andreas Schwab  <schwab@suse.de>
31519         * nis/Makefile (aux): Remove.
31520         * nscd/Makefile (aux): Add nscd_hash.
31521         (nscd-modules): Likewise.
31522         ($(objpfx)nscd): Don't depend on libnsl.
31523         * nscd/nscd_hash.c: New file.
31524         * nscd/nscd_hash.h: Likewise.
31525         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
31526         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
31527         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
31528         instead of <nis/rpcsvc/nis.h>.
31529         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
31531 2017-10-11  Florian Weimer  <fweimer@redhat.com>
31533         [BZ #22078]
31534         Avoid large NSS buffers with many addresses, aliases.
31535         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
31536         using dynarrays and struct alloc_buffer.
31537         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
31538         (tst-nss-files-hosts-multi): Link with -ldl.
31539         * nss/tst-nss-files-hosts-multi.c: New file.
31541 2017-10-11  Florian Weimer  <fweimer@redhat.com>
31543         [BZ #18023]
31544         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
31545         scratch_buffer.  Eliminate gotos.
31547 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
31549         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
31550         libm_alias_ldouble_other.
31551         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
31552         undefine and redefine.
31553         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
31554         (exp10l): Do not define here.
31555         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
31556         (weak_alias): Undefine and redefine.
31557         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
31558         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
31559         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
31560         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
31562         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
31563         [!__fma] (fma): Define using libm_alias_double.
31564         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
31565         [!__fmaf] (fmaf): Define using libm_alias_float.
31566         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
31567         (fmal): Define using libm_alias_ldouble.
31569 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
31571         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
31572         New macro.
31573         (libm_alias_double_other): Likewise.
31574         (libm_alias_double_r): Use libm_alias_double_other_r.
31575         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
31576         New macro.
31577         (libm_alias_float_other): Likewise.
31578         (libm_alias_float_r): Use libm_alias_float_other_r.
31579         * sysdeps/generic/libm-alias-float128.h
31580         (libm_alias_float128_other_r): New macro.
31581         (libm_alias_float128_other): Likewise.
31582         (libm_alias_float128_r): Use libm_alias_float128_other_r.
31583         * sysdeps/generic/libm-alias-ldouble.h
31584         (libm_alias_ldouble_other_r): New macro.
31585         (libm_alias_ldouble_other): Likewise.
31586         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
31587         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
31588         (libm_alias_double_other_r): New macro.
31589         (libm_alias_double_other): Likewise.
31590         (libm_alias_double_r): Use libm_alias_double_other_r.
31591         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
31592         (libm_alias_ldouble_other_r): New macro.
31593         (libm_alias_ldouble_other): Likewise.
31594         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
31595         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
31596         [!USE_AS_COMPAT]: Use libm_alias_double_other.
31597         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
31598         [!USE_AS_COMPAT]: Use libm_alias_float_other.
31599         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
31600         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
31601         * math/w_exp2f.c: Use libm_alias_float_other.
31602         * math/w_expf.c: Likewise.
31603         * math/w_log2f.c: Likewise.
31604         * math/w_logf.c: Likewise.
31605         * math/w_powf.c: Likewise.
31606         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
31607         [!__exp2f]: Use libm_alias_float_other.
31608         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
31609         [!__expf]: Use libm_alias_float_other.
31610         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
31611         [!__log2f]: Use libm_alias_float_other.
31612         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
31613         [!__logf]: Use libm_alias_float_other.
31614         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
31615         [!__powf]: Use libm_alias_float_other.
31617 2017-10-10  Florian Weimer  <fweimer@redhat.com>
31619         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
31620         function.
31621         (_nss_files_gethostbyname3_r): Call it.
31623 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
31625         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
31626         error.  Remove default definition of declare_mgen_alias.
31627         [!declare_mgen_alias_r]: Likewise.
31628         * sysdeps/generic/math-type-macros-double.h
31629         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
31630         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
31631         (declare_mgen_alias_r): Likewise.
31632         * sysdeps/generic/math-type-macros-float128.h
31633         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
31634         * sysdeps/generic/math-type-macros-ldouble.h
31635         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
31636         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
31637         macro.
31638         (declare_mgen_alias_r_s): Likewise.
31639         (declare_mgen_alias_r): Likewise.
31640         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
31641         (lgamma_r): Define using libm_alias_double_r.
31642         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
31643         (lgammaf_r): Define using libm_alias_float_r.
31644         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
31645         (lgammal_r): Define using libm_alias_ldouble_r.
31646         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
31647         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31649 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31651         * lib/glob.c (__glob_pattern_type): Remove now-spurious
31652         extern declaration.
31654 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
31656         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
31658 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
31660         [BZ #21326]
31661         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
31662         [__cplusplus >= 201103] (__USE_ISOC99): Define.
31663         * math/Makefile (test-math-cxx11): New test.
31664         * math/test-math-cxx11.cc: New file.
31666 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
31668         * login/openpty.c (openpty): Close slave pty file descriptor on error.
31670         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
31671         call to allocate the slave pty file descriptor.
31673 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
31675         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
31676         [!__fma] (fma): Define using libm_alias_double.
31677         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
31678         [!__fma] (fma): Define using libm_alias_double.
31680         * sysdeps/ieee754/float128/float128_private.h: Include
31681         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
31682         (libm_alias_ldouble_r): Undefine and redefine.
31683         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
31684         <libm-alias-ldouble.h>.
31685         (asinhl): Define using libm_alias_ldouble.
31686         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
31687         <libm-alias-ldouble.h>.
31688         (atanl): Define using libm_alias_ldouble.
31689         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
31690         <libm-alias-ldouble.h>.
31691         (cbrtl): Define using libm_alias_ldouble.
31692         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
31693         <libm-alias-ldouble.h>.
31694         (ceill): Define using libm_alias_ldouble.
31695         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
31696         <libm-alias-ldouble.h>.
31697         (copysignl): Define using libm_alias_ldouble.
31698         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
31699         <libm-alias-ldouble.h>.
31700         (cosl): Define using libm_alias_ldouble.
31701         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
31702         <libm-alias-ldouble.h>.
31703         (erfl): Define using libm_alias_ldouble.
31704         (erfcl): Likewise.
31705         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
31706         <libm-alias-ldouble.h>.
31707         (expm1l): Define using libm_alias_ldouble.
31708         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
31709         <libm-alias-ldouble.h>.
31710         (fabsl): Define using libm_alias_ldouble.
31711         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
31712         <libm-alias-ldouble.h>.
31713         (floorl): Define using libm_alias_ldouble.
31714         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
31715         <libm-alias-ldouble.h>.
31716         (fmal): Define using libm_alias_ldouble.
31717         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
31718         <libm-alias-ldouble.h>.
31719         (frexpl): Define using libm_alias_ldouble.
31720         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
31721         libm_alias_ldouble.
31722         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
31723         <libm-alias-ldouble.h>.
31724         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
31725         libm_alias_ldouble.
31726         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
31727         <libm-alias-ldouble.h>.
31728         (getpayloadl): Define using libm_alias_ldouble.
31729         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
31730         <libm-alias-ldouble.h>.
31731         (llrintl): Define using libm_alias_ldouble.
31732         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
31733         <libm-alias-ldouble.h>.
31734         (llroundl): Define using libm_alias_ldouble.
31735         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
31736         <libm-alias-ldouble.h>.
31737         (logbl): Define using libm_alias_ldouble.
31738         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
31739         <libm-alias-ldouble.h>.
31740         (lrintl): Define using libm_alias_ldouble.
31741         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
31742         <libm-alias-ldouble.h>.
31743         (lroundl): Define using libm_alias_ldouble.
31744         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
31745         <libm-alias-ldouble.h>.
31746         (modfl): Define using libm_alias_ldouble.
31747         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
31748         <libm-alias-ldouble.h>.
31749         (nearbyintl): Define using libm_alias_ldouble.
31750         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
31751         <libm-alias-ldouble.h>.
31752         (nextafterl): Define using libm_alias_ldouble.
31753         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
31754         <libm-alias-ldouble.h>.
31755         (nextupl): Define using libm_alias_ldouble.
31756         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
31757         <libm-alias-ldouble.h>.
31758         (remquol): Define using libm_alias_ldouble.
31759         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
31760         <libm-alias-ldouble.h>.
31761         (rintl): Define using libm_alias_ldouble.
31762         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
31763         <libm-alias-ldouble.h>.
31764         (roundevenl): Define using libm_alias_ldouble.
31765         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
31766         <libm-alias-ldouble.h>.
31767         (roundl): Define using libm_alias_ldouble.
31768         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
31769         using libm_alias_ldouble.
31770         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
31771         <libm-alias-ldouble.h>.
31772         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
31773         Define using libm_alias_ldouble.
31774         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
31775         <libm-alias-ldouble.h>.
31776         (sincosl): Define using libm_alias_ldouble.
31777         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
31778         <libm-alias-ldouble.h>.
31779         (sinl): Define using libm_alias_ldouble.
31780         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
31781         <libm-alias-ldouble.h>.
31782         (tanhl): Define using libm_alias_ldouble.
31783         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
31784         <libm-alias-ldouble.h>.
31785         (tanl): Define using libm_alias_ldouble.
31786         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
31787         <libm-alias-ldouble.h>.
31788         (totalorderl): Define using libm_alias_ldouble.
31789         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
31790         <libm-alias-ldouble.h>.
31791         (totalordermagl): Define using libm_alias_ldouble.
31792         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
31793         <libm-alias-ldouble.h>.
31794         (truncl): Define using libm_alias_ldouble.
31795         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
31796         libm_alias_ldouble.
31797         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
31798         libm_alias_ldouble.
31799         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
31800         <libm-alias-ldouble.h>.
31801         (weak_alias): Do not undefine and redefine.
31802         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31803         (copysignl): Define with long_double_symbol only if [IS_IN
31804         (libc)].
31805         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
31806         <libm-alias-ldouble.h>.
31807         (weak_alias): Do not undefine and redefine.
31808         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31809         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
31810         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
31811         <libm-alias-ldouble.h>.
31812         (weak_alias): Do not undefine and redefine.
31813         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31814         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
31815         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
31816         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
31817         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
31818         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
31819         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
31820         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
31821         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
31822         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
31823         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
31824         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
31825         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
31826         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
31827         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
31828         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
31829         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
31830         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
31831         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
31832         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
31833         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
31834         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
31835         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
31836         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
31837         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
31838         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
31840 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
31842         [BZ #22111]
31843         * malloc/malloc.c (tcache_shutting_down): Use bool type.
31844         (tcache_thread_freeres): Set tcache_shutting_down before
31845         freeing the tcache.
31846         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
31847         * malloc/tst-malloc-tcache-leak.c: New file.
31849 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
31851         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
31852         back to powerpc32 file.
31853         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31854         (memrchr): Add __memrchr_power8 to ifunc list.
31855         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
31856         extra bytes for unaligned inputs.
31858 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
31860         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
31861         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
31862         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
31863         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
31864         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
31866 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
31868         * sysdeps/arm/libm-test-ulps: Update.
31870         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
31871         <libm-alias-ldouble.h>.
31872         (asinhl): Define using libm_alias_ldouble.
31873         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
31874         <libm-alias-ldouble.h>.
31875         (cbrtl): Define using libm_alias_ldouble.
31876         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
31877         <libm-alias-ldouble.h>.
31878         (copysignl): Define using libm_alias_ldouble.
31879         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
31880         <libm-alias-ldouble.h>.
31881         (cosl): Define using libm_alias_ldouble.
31882         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
31883         <libm-alias-ldouble.h>.
31884         (erfl): Define using libm_alias_ldouble.
31885         (erfcl): Likewise.
31886         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
31887         <libm-alias-ldouble.h>.
31888         (fmal): Define using libm_alias_ldouble.
31889         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
31890         <libm-alias-ldouble.h>.
31891         (frexpl): Define using libm_alias_ldouble.
31892         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
31893         libm_alias_ldouble.
31894         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
31895         <libm-alias-ldouble.h>.
31896         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
31897         libm_alias_ldouble.
31898         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
31899         <libm-alias-ldouble.h>.
31900         (getpayloadl): Define using libm_alias_ldouble.
31901         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
31902         <libm-alias-ldouble.h>.
31903         (llrintl): Define using libm_alias_ldouble.
31904         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
31905         <libm-alias-ldouble.h>.
31906         (llroundl): Define using libm_alias_ldouble.
31907         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
31908         <libm-alias-ldouble.h>.
31909         (lrintl): Define using libm_alias_ldouble.
31910         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
31911         <libm-alias-ldouble.h>.
31912         (lroundl): Define using libm_alias_ldouble.
31913         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
31914         <libm-alias-ldouble.h>.
31915         (modfl): Define using libm_alias_ldouble.
31916         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
31917         <libm-alias-ldouble.h>.
31918         (nextupl): Define using libm_alias_ldouble.
31919         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
31920         <libm-alias-ldouble.h>.
31921         (remquol): Define using libm_alias_ldouble.
31922         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31923         <libm-alias-ldouble.h>.
31924         (roundevenl): Define using libm_alias_ldouble.
31925         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31926         <libm-alias-ldouble.h>.
31927         (roundl): Define using libm_alias_ldouble.
31928         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31929         using libm_alias_ldouble.
31930         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31931         <libm-alias-ldouble.h>.
31932         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31933         <libm-alias-ldouble.h>.
31934         (setpayloadsigl): Define using libm_alias_ldouble.
31935         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31936         <libm-alias-ldouble.h>.
31937         (sincosl): Define using libm_alias_ldouble.
31938         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31939         <libm-alias-ldouble.h>.
31940         (sinl): Define using libm_alias_ldouble.
31941         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31942         <libm-alias-ldouble.h>.
31943         (tanhl): Define using libm_alias_ldouble.
31944         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31945         <libm-alias-ldouble.h>.
31946         (tanl): Define using libm_alias_ldouble.
31947         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31948         <libm-alias-ldouble.h>.
31949         (totalorderl): Define using libm_alias_ldouble.
31950         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31951         <libm-alias-ldouble.h>.
31952         (totalordermagl): Define using libm_alias_ldouble.
31953         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31954         libm_alias_ldouble.
31955         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31956         libm_alias_ldouble.
31958 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
31960         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31961         memmove_falkor.
31962         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31963         (__libc_ifunc_impl_list): Likewise.
31964         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31965         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31967         * benchtests/bench-memmove-walk.c: New file.
31968         * benchtests/Makefile (string-benchset): Add it.
31970         * benchtests/bench-memset-walk.c: New file.
31971         * benchtests/Makefile (string-benchset): Add it.
31973         * benchtests/bench-memcpy-walk.c: New file.
31974         * benchtests/Makefile (string-benchset): Add it.
31976 2017-10-05  Florian Weimer  <fweimer@redhat.com>
31978         nscd: Eliminate compilation time dependency in the build output.
31979         * nscd/nscd_stat.c (STATDATA_VERSION)
31980         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31981         (STATDATA_VERSION_FULL): New macro definitions.
31982         (compilation): Remove.
31983         (struct statdata): Adjust version member.
31984         (send_stats): Set version from STATDATA_VERSION_FULL.
31985         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31987 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
31989         * configure.ac (--enable-add-ons): Remove option.
31990         (machine): Do not mention add-ons in comment.
31991         (LIBC_PRECONFIGURE): Likewise.
31992         (add_ons): Remove variable and sanity checks and logic to locate
31993         add-ons.
31994         (add_ons_automatic): Remove variable.
31995         (configured_add_ons): Likewise.
31996         (add_ons_sfx): Likewise.
31997         (add_ons_pfx): Likewise.
31998         (add_on_subdirs): Likewise.
31999         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
32000         consideration of add-ons in Implies handling.
32001         (sysdeps_add_ons): Likewise.
32002         * configure: Regenerated.
32003         * libidn/configure.ac: Remove.
32004         * libidn/configure: Likewise.
32005         * sysdeps/unix/inet/configure.ac: New file.
32006         * sysdeps/unix/inet/configure: New generated file.
32007         * sysdeps/unix/inet/Subdirs: Add libidn.
32008         * Makeconfig (sysdeps-srcdirs): Remove variable.
32009         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
32010         ($(common-objpfx)config.status): Do not depend on add-on files.
32011         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
32012         comment.
32013         (all-subdirs): Do not include $(add-on-subdirs).
32014         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
32015         * config.make.in (add-ons): Remove variable.
32016         (add-on-subdirs): Likewise.
32017         (sysdeps-add-ons): Likewise.
32018         * manual/Makefile (add-chapters): Remove.
32019         ($(objpfx)texis): Do not depend on $(add-chapters).
32020         (nonexamples): Do not handle $(add-chapters).
32021         (examples): Do not handle $(add-ons).
32022         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
32023         libc-texinfo.sh.
32024         * manual/install.texi (Installation): Do not mention add-ons.
32025         (--enable-add-ons): Do not document configure option.
32026         * INSTALL: Regenerated.
32027         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
32028         * manual/maint.texi (Hierarchy Conventions): Do not mention
32029         add-ons.
32030         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
32031         --enable-add-ons.
32032         * scripts/gen-sorted.awk: Do not handle Subdirs files from
32033         add-ons.
32034         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
32035         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
32037 2017-10-05  Andreas Schwab  <schwab@suse.de>
32039         [BZ #15142]
32040         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
32041         (_IO_flush_all_lockp): Always lock list_all_lock.
32042         (_IO_flush_all_linebuffered): Likewise.
32043         (_IO_unbuffer_all): Likewise.
32045 2017-10-05  Florian Weimer  <fweimer@redhat.com>
32047         [BZ #15436]
32048         Do not flush stdio streams on abort.
32049         * stdlib/abort.c (fflush): Remove macro definition.
32050         (abort): Remove stages related to stdio flushing.
32052 2017-10-05  Florian Weimer  <fweimer@redhat.com>
32054         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
32056 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
32058         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
32060 2017-10-05  Florian Weimer  <fweimer@redhat.com>
32062         * support/support_format_hostent.c (support_format_hostent): Add
32063         more error information for NETDB_INTERNAL.
32065 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
32067         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
32068         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
32069         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
32070         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
32071         AC_DEFINE if multi-arch is enabled.
32072         * sysdeps/i386/configure: Regenerated.
32074 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
32076         * Makeconfig (+link-static-before-libc): Use
32077         $(DEFAULT-LDFLAGS-$(@F)).
32078         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
32079         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
32080         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
32082 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
32084         * elf/Makefile (tests): Add tst-main1.
32085         (modules-names): Add tst-main1mod.
32086         ($(objpfx)tst-main1): New.
32087         (CRT-tst-main1): Likewise.
32088         (LDFLAGS-tst-main1): Likewise.
32089         (LDLIBS-tst-main1): Likewise.
32090         (tst-main1mod.so-no-z-defs): Likewise.
32091         * elf/tst-main1.c: New file.
32092         * elf/tst-main1mod.c: Likewise.
32094 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
32096         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
32098 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
32100         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
32101         (fma): Define using libm_alias_double.
32102         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
32103         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
32104         <math_ldbl_opt.h>.
32105         (fmal): Do not define as compat symbol here.
32106         * sysdeps/alpha/fpu/s_fma.c: New file.
32108 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32110         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
32112 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
32114         [BZ #22229]
32115         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
32116         <math_ldbl_opt.h>
32117         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
32118         and libc.
32119         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
32120         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
32121         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
32122         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
32123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
32124         Include <math_ldbl_opt.h>
32125         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
32126         and libc.
32127         (compat_symbol): Undefine and redefine.
32128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
32129         <math_ldbl_opt.h>
32130         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
32131         (compat_symbol): Undefine and redefine.
32132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
32133         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
32134         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
32135         GLIBC_2_1 for libm.
32136         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
32137         GLIBC_2.0 copysignl symbol.
32138         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32139         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
32141         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
32143 2017-10-04  Florian Weimer  <fweimer@redhat.com>
32145         * scripts/check-local-headers.sh: Ignore nspr4 header file
32146         directory in addition to nspr.
32148 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
32150         [BZ #17956]
32151         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
32152         * configure: Regenerate.
32153         * crypt/Makefile (nss-cpp-flags): New variable.
32154         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
32155         (CPPFLAGS-md5-crypt.c): Use it.
32156         * scripts/check-local-headers.sh: Ignore nspr header file
32157         directory.
32159 2017-10-04  Andreas Schwab  <schwab@suse.de>
32161         * nis/Makefile (services): Remove compat.
32162         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
32163         ($(objpfx)libnss_compat.so): Remove rule.
32164         * nis/Versions (libnss_compat): Remove.
32165         * nss/Makefile (services): Add compat.
32166         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
32167         * nss/Versions (libnss_compat): Define.
32168         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
32169         Don't include <rpc/types.h>.  Replace bool_t by bool.
32170         * nss/nss_compat/compat-initgroups.c: Likewise.
32171         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
32172         instead of <rpcsrv/ypclnt.h>.
32173         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
32174         yp_get_default_domain.
32175         * nss/nss_compat/compat-pwd.c: Likewise.
32176         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
32177         yp_get_default_domain.
32178         * nss/nss_compat/nisdomain.c: New file.
32179         * nss/nss_compat/nisdomain.h: Likewise.
32181 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32183         [BZ #22244]
32184         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
32185         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32187 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32189         [BZ #22243]
32190         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
32191         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
32193 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
32195         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
32196         "movl main@GOTOFF(%ebx), %eax".
32198 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
32200         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
32201         allow undefined _DYNAMIC in PIE libc.a.
32202         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32203         Likewse.
32205 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
32207         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
32208         check _DYNAMIC.
32210 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
32212         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
32213         check _DYNAMIC.
32215 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
32217         * math/test-math-iscanonical.cc (error): Replace bool with int.
32219 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
32221         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
32222         (modf): Define using libm_alias_double, only if [!__modf].
32223         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
32224         <libm-alias-double.h>.
32225         (modf): Define using libm_alias_double, only if [!__modf].
32226         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
32227         compat symbol here.
32228         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
32229         (weak_alias): Do not undefine and redefine.
32230         (strong_alias): Likewise.
32231         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
32232         (weak_alias): Likewise.
32233         (strong_alias): Likewise.
32235         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
32236         (logb): Define using libm_alias_double, only if [!__logb].
32237         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
32238         <libm-alias-double.h>.
32239         (logb): Define using libm_alias_double, only if [!__logb].
32240         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
32241         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
32242         (weak_alias): Do not undefine and redefine.
32243         (strong_alias): Likewise.
32244         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
32245         (weak_alias): Likewise.
32246         (strong_alias): Likewise.
32248 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
32250         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
32251         Check SHARED instead PIC.
32253 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
32255         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
32256         [!__fmaf] (fmaf): Define using libm_alias_float.
32258         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
32259         (frexp): Define using libm_alias_double.
32260         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
32261         <libm-alias-double.h>.
32262         (frexp): Define using libm_alias_double.
32263         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
32264         compat symbol here.
32266 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
32268         [BZ #22235]
32269         * math/math.h: Trivial fix for unbalanced parentheses in comment.
32270         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
32271         (CFLAGS-test-math-iscanonical.cc): New variable.
32272         * math/test-math-iscanonical.cc: New file.
32273         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
32274         Provide a C++ implementation based on function overloading,
32275         rather than using __MATH_TG, which uses C-only builtins.
32276         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
32277         Likewise.
32278         * sysdeps/powerpc/powerpc64le/Makefile
32279         (CFLAGS-test-math-iscanonical.cc): New variable.
32281 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
32283         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
32284         (ceil): Define using libm_alias_double.
32285         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
32286         (floor): Define using libm_alias_double.
32287         * sysdeps/ieee754/dbl-64/s_llround.c: Include
32288         <libm-alias-double.h>.
32289         (llround): Define using libm_alias_double.
32290         * sysdeps/ieee754/dbl-64/s_lround.c: Include
32291         <libm-alias-double.h>.
32292         (lround): Define using libm_alias_double.
32293         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
32294         <libm-alias-double.h>.
32295         (nearbyint): Define using libm_alias_double.
32296         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
32297         <libm-alias-double.h>.
32298         (remquo): Define using libm_alias_double.
32299         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
32300         (rint): Define using libm_alias_double.
32301         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
32302         (round): Define using libm_alias_double.
32303         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
32304         (trunc): Define using libm_alias_double.
32305         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
32306         <libm-alias-double.h>.
32307         (ceil): Define using libm_alias_double.
32308         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
32309         <libm-alias-double.h>.
32310         (floor): Define using libm_alias_double.
32311         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
32312         <libm-alias-double.h>.
32313         (llround): Define using libm_alias_double.
32314         [_LP64] (lround): Likewise.
32315         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
32316         <libm-alias-double.h>.
32317         [!_LP64] (lround): Define using libm_alias_double.
32318         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
32319         <libm-alias-double.h>.
32320         (nearbyint): Define using libm_alias_double.
32321         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
32322         <libm-alias-double.h>.
32323         (remquo): Define using libm_alias_double.
32324         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
32325         <libm-alias-double.h>.
32326         (rint): Define using libm_alias_double.
32327         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
32328         <libm-alias-double.h>.
32329         (round): Define using libm_alias_double.
32330         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
32331         <libm-alias-double.h>.
32332         (trunc): Define using libm_alias_double.
32333         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
32334         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
32335         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
32336         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
32337         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
32338         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
32339         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
32340         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
32341         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
32343 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32345         * math/w_remainder.c: New file.
32346         * math/w_remainderf.c: New file.
32347         * math/w_remainderl.c: New file.
32349 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
32351         * elf/rtld.c (BOOTSTRAP_MAP): New.
32352         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
32353         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
32354         Likewise.
32355         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
32356         Likewise.
32357         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
32358         Likewise.
32360 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32362         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
32363         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
32364         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
32365         rtld_hidden_data_ver): Define to empty.
32366         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
32367         __assert_perror_fail): Likewise.
32368         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32369         (__rewinddir): Likewise.
32370         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32371         (__profile_frequency): Likewise.
32372         * include/setjmp.h (__sigsetjmp): Likewise.
32373         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
32374         __libc_sigaction): Likewise.
32375         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
32376         not set hidden attribute.
32377         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
32378         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
32379         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
32380         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
32381         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
32382         __fxstatat64): Likewise.
32383         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32384         (__uname): Likewise.
32385         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32386         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
32387         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
32388         (NO_RTLD_HIDDEN): Set.
32389         * sysdeps/mach/hurd/configure: Refresh.
32390         * config.h.in: Refresh.
32392 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
32394         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
32395         (atan): Define using libm_alias_double.
32396         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
32397         (tan): Define using libm_alias_double.
32398         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
32399         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
32401         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
32402         define as weak alias of __atan.  Do not define any aliases if
32403         [__atan].
32404         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
32405         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
32406         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
32407         as weak alias of __tan.  Do not define any aliases if [__tan].
32408         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
32409         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
32410         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
32411         __atan.
32412         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
32413         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
32414         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
32415         and define as weak alias of __atan.
32416         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
32417         __atan.
32418         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
32419         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
32420         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
32421         define as weak alias of __tan.
32423 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32425         * math/w_lgamma.c: New file.
32426         * math/w_lgammaf.c: New file.
32427         * math/w_lgammal.c: New file.
32429 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32431         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
32432         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
32433         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
32434         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
32435         * sysdeps/ieee754/flt-32/w_logf.c: New file.
32436         * sysdeps/ieee754/flt-32/w_powf.c: New file.
32437         * sysdeps/i386/fpu/w_log2f.c: New file.
32438         * sysdeps/i386/fpu/w_logf.c: New file.
32439         * sysdeps/i386/fpu/w_powf.c: New file.
32440         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
32441         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
32442         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
32444 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32445             H.J. Lu  <hongjiu.lu@intel.com>
32447         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
32448         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
32449         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
32450         * sysdeps/ieee754/flt-32/w_expf.c: New file.
32451         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
32452         the new expf code.
32453         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
32454         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
32455         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
32456         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
32457         * sysdeps/i386/fpu/w_exp2f.c: New file.
32458         * sysdeps/i386/fpu/w_expf.c: New file.
32459         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
32460         * sysdeps/x86_64/fpu/w_expf.c: New file.
32462 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32464         * math/Versions (logf): New libm symbol at GLIBC_2.27.
32465         (log2f): Likewise.
32466         (powf): Likewise.
32467         * math/w_log2f.c: New file.
32468         * math/w_logf.c: New file.
32469         * math/w_powf.c: New file.
32470         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
32471         * math/w_logf_compat.c (__logf_compat): Likewise.
32472         * math/w_powf_compat.c (__powf_compat): Likewise.
32473         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
32474         * sysdeps/ia64/fpu/e_logf.S: Likewise.
32475         * sysdeps/ia64/fpu/e_powf.S: Likewise.
32476         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32477         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32478         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32479         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32480         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32481         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32482         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32483         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32484         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32485         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32486         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32487         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32489         Likewise.
32490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32491         Likewise.
32492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32493         Likewise.
32494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32495         Likewise.
32496         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32497         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32498         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32499         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32500         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32501         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32502         Likewise.
32503         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32504         Likewise.
32505         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32506         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32507         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32509 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
32511         * sysdeps/powerpc/powerpc64/multiarch/Makefile
32512         (sysdep_routines): Add memrchr_power8.
32513         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
32514         (memrchr): Add __memrchr_power8 to list of memrchr functions.
32515         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
32516         New file.
32517         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
32518         (memrchr): Add __memrchr_power8 to ifunc list.
32519         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
32521 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32523         [BZ #18822]
32524         * sysdeps/unix/sysv/linux/posix_fadvise64.c
32525         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
32526         libc_hidden_def.
32527         * sysdeps/unix/sysv/linux/posix_fallocate64.c
32528         (__posix_fallocate64_l64): Likewise.
32530 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32532         [BZ #18822]
32533         * sysdeps/unix/sysv/linux/sched_setaffinity.c
32534         (__sched_setaffinity_new): Add libc_hidden_proto and
32535         libc_hidden_def.
32537 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32539         [BZ #18822]
32540         * include/glob.h (__glob64): Add libc_hidden_proto.
32541         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
32542         libc_hidden_def.
32544 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32546         [BZ #18822]
32547         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
32548         attribute_hidden.
32550 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32552         [BZ #18822]
32553         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
32555 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32557         [BZ #18822]
32558         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
32559         libc_hidden_def.
32561 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32563         [BZ #18822]
32564         * csu/version.c (__libc_print_version): Add attribute_hidden.
32566 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32568         [BZ #18822]
32569         * include/libc-internal.h (__init_misc): Add attribute_hidden.
32571 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32573         [BZ #18822]
32574         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
32576 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32578         [BZ #18822]
32579         * nscd/nscd_helper.c (__nis_hash): New prototype.
32581 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32583         [BZ #18822]
32584         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
32585         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
32586         libc_hidden_def.
32587         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
32588         * termios/tcgetattr.c (__tcgetattr): Likewise.
32590 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32592         [BZ #18822]
32593         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
32594         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
32595         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
32596         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
32597         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
32599 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32601         [BZ #18822]
32602         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
32604 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32606         [BZ #18822]
32607         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
32608         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
32610 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32612         [BZ #18822]
32613         * intl/hash-string.h (__hash_string): Add attribute_hidden.
32615 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32617         [BZ #18822]
32618         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
32619         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
32621 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32623         [BZ #18822]
32624         * include/ifreq.h: New file.
32625         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
32626         (__ifreq): Likewise.
32627         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
32628         (__ifreq): Likewise.
32630 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32632         [BZ #18822]
32633         * include/idna.h: New file.
32634         * inet/getnameinfo.c: Include <idna.h> instead of
32635         <libidn/idna.h>.
32636         (__idna_to_unicode_lzlz): Removed.
32637         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
32638         <libidn/idna.h>.
32639         (__idna_to_ascii_lz): Removed.
32640         (__idna_to_unicode_lzlz): Likewise.
32642 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32644         [BZ #18822]
32645         * include/plural-exp.h: New file.
32646         * intl/plural-exp.c: Include <plural-exp.h> instead of
32647         "plural-exp.h".
32649 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32651         [BZ #18822]
32652         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
32653         "getsourcefilter.h".
32654         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
32655         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
32656         "getsourcefilter.h".
32657         (__get_sol): Removed.
32659 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32661         [BZ #18822]
32662         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
32663         to ...
32664         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
32666 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32668         [BZ #18822]
32669         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
32670         attribute_hidden.
32672 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32674         [BZ #18822]
32675         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
32677 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32679         [BZ #18822]
32680         * include/search.h (__tdestroy): Add libc_hidden_proto.
32681         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
32683 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32685         [BZ #18822]
32686         * include/assert.h (__assert_fail_base): Add attribute_hidden.
32688 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32690         [BZ #18822]
32691         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
32692         attribute_hidden.
32694 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32696         [BZ #18822]
32697         * include/signal.h (__kill): Add libc_hidden_proto.
32698         (__sigblock): Likewise.
32699         (__sigprocmask): Likewise.
32700         (__sigaltstack): Likewise.
32701         * signal/kill.c (__kill): Add libc_hidden_def.
32702         * signal/sigblock.c (__sigblock): Likewise.
32703         * signal/sigprocmask.c (__sigprocmask): Likewise.
32704         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
32705         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
32706         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
32707         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
32708         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
32709         Likewise.
32710         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
32711         Likewise.
32712         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
32713         (__sigprocmask): Likewise.
32714         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
32715         Likewise.
32716         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
32717         (__sigprocmask): Likewise.
32718         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
32719         Likewise.
32721 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32723         [BZ #18822]
32724         * include/string.h (__strsep): Add libc_hidden_proto.
32725         * string/strsep.c (__strsep): Add libc_hidden_def.
32727 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32729         [BZ #18822]
32730         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
32731         attribute_hidden.
32732         (__spawni): Likewise.
32734 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32736         [BZ #18822]
32737         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
32738         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
32739         libc_hidden_def.
32741 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32743         [BZ #18822]
32744         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
32746 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32748         [BZ #18822]
32749         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
32750         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
32751         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
32752         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
32753         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
32754         Likewise.
32755         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
32756         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
32758 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32760         [BZ #18822]
32761         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
32762         (__dcigettext): Likewise.
32764 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32766         [BZ #18822]
32767         * include/sys/sysinfo.h (__get_nprocs_conf): Add
32768         libc_hidden_proto.
32769         (__get_nprocs): Likewise.
32770         (__get_phys_pages): Likewise.
32771         (__get_avphys_pages): Likewise.
32772         (__get_child_max): Add attribute_hidden.
32773         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
32774         (__get_nprocs): Likewise.
32775         (__get_phys_pages): Likewise.
32776         (__get_avphys_pages): Likewise.
32777         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
32778         libc_hidden_def.
32779         (__get_nprocs): Likewise.
32780         (__get_phys_pages): Likewise.
32781         (__get_avphys_pages): Likewise.
32782         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
32783         libc_hidden_def.
32784         (__get_nprocs_conf): Likewise.
32785         (__get_phys_pages): Likewise.
32786         (__get_avphys_pages): Likewise.
32788 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32790         [BZ #18822]
32791         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
32792         attribute_hidden.
32793         (__netlink_close): Likewise.
32794         (__netlink_free_handle): Likewise.
32795         (__netlink_request): Likewise.
32797 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32799         [BZ #18822]
32800         * include/rpc/rpc.h (__rpc_thread_variables): Add
32801         attribute_hidden.
32802         (__rpc_thread_svc_cleanup): Likewise.
32803         (__rpc_thread_clnt_cleanup): Likewise.
32804         (__rpc_thread_key_cleanup): Likewise.
32806 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32808         [BZ #18822]
32809         * include/sys/uio.h (__readv): Add libc_hidden_proto.
32810         (__writev): Likewise.
32811         * misc/readv.c (__readv): Add libc_hidden_def.
32812         * misc/writev.c (__writev): Likewise.
32813         * sysdeps/posix/readv.c (__readv): Likewise.
32814         * sysdeps/posix/writev.c (__writev): Likewise.
32815         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
32816         (__readv): Likewise.
32817         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
32818         (__writev): Likewise.
32820 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32822         [BZ #18822]
32823         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
32824         (__regcomp): Add libc_hidden_proto.
32825         (__regexec): Likewise.
32826         (__regfree): Likewise.
32827         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
32828         (__regfree): Likewise.
32829         * posix/regexec.c (__regexec): Likewise.
32831 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32833         [BZ #18822]
32834         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
32835         (__getutent): Likewise.
32836         (__getutid): Likewise.
32837         (__getutline): Likewise.
32838         (__pututline): Likewise.
32839         (__getutent_r): Likewise.
32840         (__getutid_r): Likewise.
32841         (__getutline_r): Likewise.
32842         (__utmpname): Add attribute_hidden.
32843         (__setutent): Likewise.
32844         (__endutent): Likewise.
32845         * login/getutent.c (__getutent): Add libc_hidden_def.
32846         * login/getutent_r.c (__getutent_r): Likewise.
32847         (__pututline): Likewise.
32848         * login/getutid.c (__getutid): Likewise.
32849         * login/getutid_r.c (__getutid_r): Likewise.
32850         * login/getutline.c (__getutline): Likewise.
32851         * login/getutline_r.c (__getutline_r): Likewise.
32852         * login/updwtmp.c (__updwtmp): Likewise.
32854 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32856         [BZ #18822]
32857         * include/dirent.h (__opendir): Always add attribute_hidden.
32858         (__fdopendir): Likewise.
32859         (__closedir): Likewise.
32860         (__readdir): Likewise.
32861         (__readdir64): Add libc_hidden_proto.
32862         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
32863         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
32864         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
32865         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
32866         New alias.
32868 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32870         [BZ #18822]
32871         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
32872         * include/netdb.h (__gethostbyaddr_r): Likewise.
32873         (__gethostbyname_r): Likewise.
32874         (__gethostbyname2_r): Likewise.
32875         (__getnetbyaddr_r): Likewise.
32876         (__getnetbyname_r): Likewise.
32877         (__getservbyname_r): Likewise.
32878         (__getservbyport_r): Likewise.
32879         (__getprotobyname_r): Likewise.
32880         (__getprotobynumber_r): Likewise.
32881         (__getnetgrent_r): Likewise.
32882         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
32883         (__getrpcbynumber_r): Likewise.
32884         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
32886 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32888         [BZ #18822]
32889         * include/stdio.h (__fcloseall): Add attribute_hidden.
32890         (__getline): Likewise.
32891         (__path_search): Likewise.
32892         (__gen_tempname): Likewise.
32893         (__libc_message): Likewise.
32894         (__flockfile): Likewise.
32895         (__funlockfile): Likewise.
32896         (__fxprintf): Likewise.
32897         (__fxprintf_nocancel): Likewise.
32899 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32901         [BZ #18822]
32902         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
32903         (__sgetsgent_r): Likewise.
32905 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32907         [BZ #18822]
32908         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
32909         (__statfs64): Likewise.
32910         (__fstatfs64): Likewise.
32911         * include/sys/statvfs.h (__statvfs64): Likewise.
32912         (__fstatvfs64): Likewise.
32913         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
32914         (__statfs_filesize_max): Likewise.
32915         (__statfs_symlinks): Likewise.
32916         (__statfs_chown_restricted): Likewise.
32918 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32920         [BZ #18822]
32921         * include/time.h (__tzstring): Add attribute_hidden.
32922         (__tzfile_read): Likewise.
32923         (__tzfile_compute): Likewise.
32924         (__tzfile_default): Likewise.
32925         (__tzset_parse_tz): Likewise.
32926         (__offtime): Likewise.
32927         (__asctime_r): Likewise.
32928         (__tzset): Likewise.
32929         (__tz_convert): Likewise.
32930         (__getdate_r): Likewise.
32931         (__getclktck): Likewise.
32933 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32935         [BZ #18822]
32936         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32937         (__nscd_unmap): Likewise.
32938         (__nscd_cache_search): Likewise.
32939         (__nscd_get_nl_timestamp): Likewise.
32940         (__nscd_getpwnam_r): Likewise.
32941         (__nscd_getpwuid_r): Likewise.
32942         (__nscd_getgrnam_r): Likewise.
32943         (__nscd_getgrgid_r): Likewise.
32944         (__nscd_gethostbyname_r): Likewise.
32945         (__nscd_gethostbyname2_r): Likewise.
32946         (__nscd_gethostbyaddr_r): Likewise.
32947         (__nscd_getai): Likewise.
32948         (__nscd_getgrouplist): Likewise.
32949         (__nscd_getservbyname_r): Likewise.
32950         (__nscd_getservbyport_r): Likewise.
32951         (__nscd_innetgr): Likewise.
32952         (__nscd_setnetgrent): Likewise.
32954 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32956         [BZ #18822]
32957         * include/gmp.h: Declare internal functions only if _ISOMAC is
32958         undefined.
32959         (__mpn_extract_double): Add attribute_hidden.
32960         (__mpn_extract_long_double): Likewise.
32961         (__mpn_extract_float128): Likewise.
32962         (__mpn_construct_float): Likewise.
32963         (__mpn_construct_double): Likewise.
32964         (__mpn_construct_long_double): Likewise.
32965         (__mpn_construct_float128): Likewise.
32966         (mpn_add_1): Likewise.
32967         (mpn_addmul_1): Likewise.
32968         (mpn_add_n): Likewise.
32969         (mpn_cmp): Likewise.
32970         (mpn_divrem): Likewise.
32971         (mpn_lshift): Likewise.
32972         (mpn_mul): Likewise.
32973         (mpn_mul_1): Likewise.
32974         (mpn_rshift): Likewise.
32975         (mpn_sub_1): Likewise.
32976         (mpn_submul_1): Likewise.
32977         (mpn_sub_n): Likewise.
32979 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
32981         [BZ #18822]
32982         * include/wchar.h (__wcsnlen): Add attribute_hidden.
32983         (__wcscat): Likewise.
32984         (__btowc): Likewise.
32985         (__wcrtomb): Likewise.
32986         (__mbsrtowcs): Likewise.
32987         (__wcsrtombs): Likewise.
32988         (__mbsnrtowcs): Likewise.
32989         (__wcsnrtombs): Likewise.
32990         (__wcsncpy): Likewise.
32991         (__wcpncpy): Likewise.
32992         (__wmemcpy): Likewise.
32993         (__wmempcpy): Likewise.
32994         (__wmemmove): Likewise.
32995         (__wcschrnul): Likewise.
32996         (__vfwscanf): Likewise.
32997         (__vswprintf): Likewise.
32998         (__fwprintf): Likewise.
32999         (__vfwprintf): Likewise.
33001 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
33003         [BZ #18822]
33004         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
33005         (__getgrgid_r): Likewise.
33006         (__getgrnam_r): Likewise.
33007         * include/pwd.h (__getpwuid_r): Likewise.
33008         (__getpwnam_r): Likewise.
33009         (__fgetpwent_r): Likewise.
33010         * include/shadow.h (__getspnam_r): Likewise.
33011         (__sgetspent_r): Likewise.
33012         (__fgetspent_r): Likewise.
33014 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
33016         [BZ #18822]
33017         * include/unistd.h (__access): Add attribute_hidden.
33018         (__lseek64): Likewise.
33019         (__libc_pread64): Likewise.
33020         (__pipe2): Likewise.
33021         (__sleep): Likewise.
33022         (__chdir): Likewise.
33023         (__fchdir): Likewise.
33024         (__getcwd): Likewise.
33025         (__rmdir): Likewise.
33026         (__execvpe): Likewise.
33027         (__execve): Likewise.
33028         (__setsid): Likewise.
33029         (__getuid): Likewise.
33030         (__geteuid): Likewise.
33031         (__getgid): Likewise.
33032         (__getegid): Likewise.
33033         (__getgroups): Likewise.
33034         (__group_member): Likewise.
33035         (__ttyname_r): Likewise.
33036         (__isatty): Likewise.
33037         (__readlink): Likewise.
33038         (__unlink): Likewise.
33039         (__gethostname): Likewise.
33040         (__profil): Likewise.
33041         (__getdtablesize): Likewise.
33042         (__brk): Likewise.
33043         (__ftruncate): Likewise.
33044         (__ftruncate64): Likewise.
33046 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
33048         [BZ #18822]
33049         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
33050         * argp/argp-fs-xinl.c: Likewise.
33051         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
33052         * argp/argp-parse.c: Include <argp.h>.
33053         * argp/argp-xinl.c: Likewise.
33054         * include/argp-fmtstream.h: New file.
33055         * include/argp.h (__argp_error): Add attribute_hidden.
33056         (__argp_failure): Likewise.
33057         (__argp_input): Likewise.
33058         (__argp_state_help): Likewise.
33060 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
33062         [BZ #18822]
33063         * include/wchar.h (____wcstof_l_internal): New prototype.
33064         (____wcstod_l_internal): Likewise.
33065         (____wcstold_l_internal): Likewise.
33066         (____wcstol_l_internal): Likewise.
33067         (____wcstoul_l_internal): Likewise.
33068         (____wcstoll_l_internal): Likewise.
33069         (____wcstoull_l_internal): Likewise.
33070         (____wcstof128_l_internal): Likewise.
33071         * sysdeps/ieee754/float128/wcstof128.c
33072         (____wcstof128_l_internal): Removed.
33073         * sysdeps/ieee754/float128/wcstof128_l.c
33074         (____wcstof128_l_internal): Likewise.
33075         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
33076         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
33077         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
33078         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
33079         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
33080         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
33081         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
33082         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
33083         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
33084         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
33086 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
33088         [BZ #18822]
33089         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
33090         instead of <sys/statvfs.h>.
33091         (__internal_statvfs): Removed.
33092         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
33093         instead of <sys/statvfs.h>.
33094         (__internal_statvfs64): Removed.
33095         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
33096         "internal_statvfs.h" instead of <sys/statvfs.h>.
33097         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
33098         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
33099         instead of <sys/statvfs.h>.
33100         (__internal_statvfs): Removed.
33101         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
33102         instead of <sys/statvfs.h>.
33103         (__internal_statvfs64): Removed.
33105 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
33107         [BZ #18822]
33108         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
33109         (__gconv_close): Likewise.
33110         (__gconv): Likewise.
33111         (__gconv_find_transform): Likewise.
33112         (__gconv_lookup_cache): Likewise.
33113         (__gconv_compare_alias_cache): Likewise.
33114         (__gconv_load_cache): Likewise.
33115         (__gconv_get_path): Likewise.
33116         (__gconv_close_transform): Likewise.
33117         (__gconv_release_cache): Likewise.
33118         (__gconv_find_shlib): Likewise.
33119         (__gconv_release_shlib): Likewise.
33120         (__gconv_get_builtin_trans): Likewise.
33121         (__gconv_compare_alias): Likewise.
33122         * include/dlfcn.h (_dlerror_run): Likewise.
33123         * include/stdio.h (__fortify_fail_abort): Likewise.
33124         * include/time.h (__tz_compute): Likewise.
33125         (__strptime_internal): Likewise.
33126         * intl/gettextP.h (_nl_find_domain): Likewise.
33127         (_nl_load_domain): Likewise.
33128         (_nl_find_msg): Likewise.
33129         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
33130         (EXTRACT_PLURAL_EXPRESSION): Likewise.
33131         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
33132         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
33133         (__gai_find_request): Likewise.
33134         (__gai_remove_request): Likewise.
33135         (__gai_notify): Likewise.
33136         (__gai_notify_only): Likewise.
33137         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
33138         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33139         (_dl_non_dynamic_init): Likewise.
33140         (_dl_aux_init): Likewise.
33141         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
33142         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
33143         Likewise.
33144         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
33145         (__wcsmbs_clone_conv): Likewise.
33146         (__wcsmbs_named_conv): Likewise.
33148 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
33150         [BZ #18822]
33151         * include/stdlib.h (__random): Add attribute_hidden.
33152         (__random_r): Likewise.
33153         (__srandom_r): Likewise.
33154         (__initstate_r): Likewise.
33155         (__setstate_r): Likewise.
33156         (__erand48_r): Likewise.
33157         (__nrand48_r): Likewise.
33158         (__jrand48_r): Likewise.
33159         (__srand48_r): Likewise.
33160         (__seed48_r): Likewise.
33161         (__lcong48_r): Likewise.
33162         (__drand48_iterate): Likewise.
33163         (__setenv): Likewise.
33164         (__unsetenv): Likewise.
33165         (__clearenv): Likewise.
33166         (__ptsname_r): Likewise.
33167         (__posix_openpt): Likewise.
33168         (__add_to_environ): Likewise.
33169         (__realpath): Add libc_hidden_proto.
33170         (__ecvt_r): Likewise.
33171         (__fcvt_r): Likewise.
33172         (__qecvt_r): Likewise.
33173         (__qfcvt_r): Likewise.
33174         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
33175         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
33177 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
33179         [BZ #18822]
33180         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
33181         * include/time.h (__mktime_internal): Likewise.
33182         * libio/iolibio.h (__fopen_internal): Likewise.
33184 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
33186         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
33187         pointer in frame.
33188         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
33189         Correct offset used to restore PIC register.
33191 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
33193         [BZ libc/22165]
33194         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
33195         code to load address of __getcontext_ret when generating PIC code.
33197 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
33199         * elf/Makefile (tests-static-internal): Add
33200         tst-tls1-static-non-pie.
33201         (LDFLAGS-tst-tls1-static-non-pie): New.
33202         * elf/tst-tls1-static-non-pie.c: New file.
33204 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
33206         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
33207         (asinh): Define using libm_alias_double.
33208         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
33209         (cbrt): Define using libm_alias_double.
33210         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
33211         <libm-alias-double.h>.
33212         (copysign): Define using libm_alias_double.
33213         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
33214         (erf): Define using libm_alias_double.
33215         (erfc): Likewise.
33216         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
33217         (expm1): Define using libm_alias_double.
33218         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
33219         (fabs): Define using libm_alias_double.
33220         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
33221         libm_alias_double.
33222         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
33223         <libm-alias-double.h>.
33224         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
33225         libm_alias_double.
33226         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
33227         <libm-alias-double.h>.
33228         (getpayload): Define using libm_alias_double.
33229         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
33230         <libm-alias-double.h>.
33231         (llrint): Define using libm_alias_double.
33232         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
33233         (lrint): Define using libm_alias_double.
33234         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
33235         <libm-alias-double.h>.
33236         (nextup): Define using libm_alias_double.
33237         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
33238         <libm-alias-double.h>.
33239         (roundeven): Define using libm_alias_double.
33240         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
33241         libm_alias_double.
33242         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
33243         <libm-alias-double.h>.
33244         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
33245         using libm_alias_double.
33246         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
33247         (cos): Define using libm_alias_double.
33248         (sin): Likewise.
33249         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
33250         <libm-alias-double.h>.
33251         (sincos): Define using libm_alias_double.
33252         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
33253         (tanh): Define using libm_alias_double.
33254         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
33255         <libm-alias-double.h>.
33256         (totalorder): Define using libm_alias_double.
33257         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
33258         <libm-alias-double.h>.
33259         (totalordermag): Define using libm_alias_double.
33260         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
33261         libm_alias_double.
33262         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
33263         libm_alias_double.
33264         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
33265         <libm-alias-double.h>.
33266         (getpayload): Define using libm_alias_double.
33267         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
33268         <libm-alias-double.h>.
33269         (roundeven): Define using libm_alias_double.
33270         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
33271         <libm-alias-double.h>.
33272         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
33273         <libm-alias-double.h>.
33274         (totalorder): Define using libm_alias_double.
33275         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
33276         <libm-alias-double.h>.
33277         (totalordermag): Define using libm_alias_double.
33278         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
33279         libc compat symbol here.
33280         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
33281         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
33282         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
33283         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
33284         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
33285         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
33286         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
33287         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
33288         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
33289         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
33291 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
33293         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
33294         _dl_relocate_static_pie instead of _dl_start to compute load
33295         address in static PIE.  Return 0 if _DYNAMIC is undefined for
33296         static executable.
33298 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
33300         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
33301         _DYNAMIC is undefined for static executable.
33303 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
33305         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
33307 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
33309         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33311 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
33313         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
33314         (__ieee754_lgamma_r): Use fabs rather than __fabs.
33315         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33316         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33317         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
33318         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
33319         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33320         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
33321         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
33322         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
33323         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
33324         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
33325         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33326         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
33327         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
33328         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
33329         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
33331 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
33333         * math/bits/cmathcalls.h (cimag): Remove inline.
33334         (creal): Remove inline.
33335         (conj): Remove inline.
33337 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33339         * math/Makefile (type-float-routines): Add e_powf_log2_data.
33340         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
33341         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
33342         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
33343         (issignalingf_inline): Likewise.
33344         (POWF_LOG2_TABLE_BITS): Likewise.
33345         (POWF_LOG2_POLY_ORDER): Likewise.
33346         (POWF_SCALE_BITS): Likewise.
33347         (POWF_SCALE): Likewise.
33348         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
33349         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
33350         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
33352 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33354         * math/Makefile (type-float-routines): Add e_log2f_data.
33355         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
33356         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
33357         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
33358         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
33359         * sysdeps/i386/fpu/e_log2f_data.c: New file.
33360         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
33361         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
33363 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33365         * math/Makefile (type-float-routines): Add e_logf_data.
33366         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
33367         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
33368         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
33369         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
33370         * sysdeps/i386/fpu/e_logf_data.c: New file.
33371         * sysdeps/ia64/fpu/e_logf_data.c: New file.
33372         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
33374 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
33376         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
33377         undefined _DYNAMIC in PIE libc.a.
33378         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
33379         Likewse.
33381 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
33383         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
33384         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
33385         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
33386         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
33387         (__signbit): Remove.
33388         (__signbitl): Remove.
33389         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
33390         (__signbit): Remove.
33391         (__signbitl): Remove.
33392         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
33393         (__signbit): Remove.
33394         (__signbitl): Remove.
33395         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
33396         (__signbit): Remove.
33397         (__signbitl): Remove.
33398         * sysdeps/tile/bits/mathinline.h: Delete file.
33399         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
33400         (__signbit): Remove.
33401         (__signbitl): Remove.
33403 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
33405         * math/math.h: Improve handling of C99 isgreater macros.
33406         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
33407         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
33408         * sysdeps/powerpc/bits/mathinline.h: Likewise.
33409         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
33410         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
33412 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33414         * sysdeps/aarch64/libm-test-ulps: Update.
33416 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
33418         [BZ #22225]
33419         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
33420         math_opt_barrier on argument when doing arithmetic on it.
33421         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
33422         Likewise.  Use math_force_eval not math_opt_barrier after
33423         arithmetic.
33424         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
33425         math_opt_barrier on argument when doing arithmetic on it.
33426         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33427         Likewise.
33429 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
33431         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
33432         libc_hidden_def.
33433         (__freeifaddrs): Likewise.
33435 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33437         * include/dirent.h (__dirfd): New declaration.
33438         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
33439         alias.
33440         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
33441         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
33442         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
33443         * include/unistd.h (__revoke): New declaration.
33444         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
33445         alias.
33446         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
33447         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
33448         revoke.
33449         * include/dirent.h (__seekdir): New declaration.
33450         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
33451         redefine as weak alias.
33452         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
33453         of seekdir.
33454         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
33455         and use libc_hidden_def on them.
33456         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
33457         them.
33458         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
33459         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
33460         instead of getifaddrs and freeifaddrs.
33462 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
33464         [BZ #18822]
33465         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
33466         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
33467         (__dso_handle): Remove declaration.
33468         * dlfcn/tstatexit.c (__dso_handle): Removed.
33469         (main): Don't check __dso_handle.
33470         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
33471         (main): Don't check __dso_handle.
33472         * include/dso_handle.h: New file.
33473         * malloc/mtrace.c: Include <dso_handle.h>.
33474         (mtrace): Pass __dso_handle directly.
33475         * nptl/pthread_atfork.c: Include <dso_handle.h>.
33476         (__dso_handle): Remove declaration.
33477         (__pthread_atfork): Pass __dso_handle directly.
33478         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
33479         (__dso_handle): Removed.
33480         * posix/wordexp-test.c: Include <dso_handle.h>.
33481         (__dso_handle): Remove declaration.
33482         (__app_register_atfork): Pass __dso_handle directly.
33483         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
33484         (__dso_handle): Remove declaration.
33485         (at_quick_exit): Pass __dso_handle directly.
33486         * stdlib/atexit.c: Include <dso_handle.h>.
33487         (__dso_handle): Remove declaration.
33488         (atexit): Pass __dso_handle directly.
33489         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
33490         (__dso_handle): Removed.
33492 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
33494         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
33495         using VDSO.
33497 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
33499         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
33500         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
33501         values to correct default value for given type.
33503 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
33505         [BZ #22101]
33506         * elf/Makefile (tests): Add tst-debug1.
33507         ($(objpfx)tst-debug1): New.
33508         ($(objpfx)tst-debug1.out): Likewise.
33509         ($(objpfx)tst-debug1mod1.so): Likewise.
33510         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
33511         with p_filesz == 0.
33512         * elf/tst-debug1.c: New file.
33514 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
33516         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
33517         Define using __ifunc.
33519 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
33521         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
33522         exp2f() values.
33524 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
33526         [BZ #22156]
33527         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
33529 2017-09-26  Florian Weimer  <fweimer@redhat.com>
33531         * resolv/Makefile (tests-internal): Fix typo in comment.
33533 2017-09-26  Florian Weimer  <fweimer@redhat.com>
33535         * resolv/nss_dns/dns-host.c: Fix typo in comment.
33537 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33539         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
33540         Use an union instead of a max_align_t array for __space,
33541         so that __space is the same size on all platforms.
33542         * malloc/scratch_buffer_grow_preserve.c
33543         (__libc_scratch_buffer_grow_preserve): Likewise.
33545         [BZ #22183]
33546         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
33547         version to 2.
33548         * posix/Makefile (routines): Add glob-lstat-compat and
33549         glob64-lstat-compat.
33550         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
33551         * posix/glob-lstat-compat.c: New file.
33552         * posix/glob64-lstat-compat.c: Likewise.
33553         * posix/tst-glob_lstat_compat.c: Likewise.
33554         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
33555         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
33556         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
33557         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
33558         Likewise.
33559         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
33560         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
33561         * posix/glob.c (glob_lstat): New function.
33562         (glob): Rename to __glob and add versioned symbol to 2.27.
33563         (glob_in_dir): Use glob_lstat.
33564         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
33565         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
33566         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
33567         2.27.
33568         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
33569         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
33570         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
33571         gl_lstat on glob call.
33572         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
33573         and glob64 symbols.
33574         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
33575         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
33576         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
33577         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
33578         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
33579         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
33580         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
33581         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
33582         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
33583         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
33584         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
33585         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
33586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
33587         Likewise.
33588         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
33589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
33590         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
33591         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
33592         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
33593         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
33594         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
33595         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
33596         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
33597         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
33598         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
33599         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
33601 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
33603         * configure.ac (AS): Require binutils 2.25 or later.
33604         * configure: Regenerated.
33606 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
33608         [BZ #22207]
33609         * stdlib/test-atexit-race-common.c (do_test): Minimize required
33610         VM size.
33612 2017-09-25  DJ Delorie  <dj@redhat.com>
33614         [BZ #22161]
33615         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
33616         resetting timeout.
33618 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
33620         * sysdeps/ieee754/dbl-64/sincos32.h
33621         [SINCCOS32_H]: Remove define.
33622         [SINCOS32_H]: Define.
33624 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33626         * math/Versions (expf): New libm symbol at GLIBC_2.27.
33627         (exp2f): Likewise.
33628         * math/w_exp2f.c: New file.
33629         * math/w_expf.c: New file.
33630         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
33631         * math/w_expf_compat.c (__expf_compat): Likewise.
33632         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
33633         * sysdeps/ia64/fpu/e_expf.S: Likewise.
33634         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
33635         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
33636         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
33637         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
33638         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
33639         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
33640         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
33641         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
33642         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
33643         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
33644         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
33645         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
33646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
33647         Likewise.
33648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
33649         Likewise.
33650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
33651         Likewise.
33652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
33653         Likewise.
33654         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
33655         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
33656         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
33657         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
33658         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
33659         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
33660         Likewise.
33661         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
33662         Likewise.
33663         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
33664         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
33665         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
33667 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33669         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
33670         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
33671         (roundtoint, converttoint): Likewise.
33672         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
33673         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
33674         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
33675         * sysdeps/ieee754/flt-32/math_config.h: New file.
33676         * sysdeps/ieee754/flt-32/math_errf.c: New file.
33677         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
33678         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
33679         * sysdeps/i386/fpu/math_errf.c: New file.
33680         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
33681         * sysdeps/ia64/fpu/math_errf.c: New file.
33682         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
33683         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
33685 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33687         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
33688         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
33689         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
33690         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
33691         to make sure that these symbols are defined.
33692         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
33693         of <limits.h>
33694         (__need_NULL): Do not define.
33695         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
33696         alignment.
33697         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
33698         CMGROUP_MAX, cmsgcred): Do not define.
33699         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
33700         NULL.
33701         * bits/socket.h: Likewise.
33702         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
33703         __gettimeofday instead of gettimeofday.
33704         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
33705         instead of settimeofday.
33707 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
33709         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
33710         (asinhf): Define using libm_alias_float.
33711         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
33712         (atanf): Define using libm_alias_float.
33713         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
33714         (cbrtf): Define using libm_alias_float.
33715         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
33716         (ceilf): Define using libm_alias_float.
33717         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
33718         <libm-alias-float.h>.
33719         (copysignf): Define using libm_alias_float.
33720         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
33721         (cosf): Define using libm_alias_float.
33722         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
33723         (erff): Define using libm_alias_float.
33724         (erfcf): Likewise.
33725         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
33726         (expm1f): Define using libm_alias_float.
33727         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
33728         (fabsf): Define using libm_alias_float.
33729         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
33730         (floorf): Define using libm_alias_float.
33731         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
33732         (frexpf): Define using libm_alias_float.
33733         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
33734         libm_alias_float.
33735         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
33736         <libm-alias-float.h>.
33737         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
33738         libm_alias_float.
33739         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
33740         <libm-alias-float.h>.
33741         (getpayloadf): Define using libm_alias_float.
33742         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
33743         <libm-alias-float.h>.
33744         (llrintf): Define using libm_alias_float.
33745         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
33746         <libm-alias-float.h>.
33747         (llroundf): Define using libm_alias_float.
33748         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
33749         (logbf): Define using libm_alias_float.
33750         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
33751         (lrintf): Define using libm_alias_float.
33752         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
33753         (lroundf): Define using libm_alias_float.
33754         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
33755         (modff): Define using libm_alias_float.
33756         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
33757         <libm-alias-float.h>.
33758         (nearbyintf): Define using libm_alias_float.
33759         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
33760         <libm-alias-float.h>.
33761         (nextafterf): Define using libm_alias_float.
33762         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
33763         <libm-alias-float.h>.
33764         (nextupf): Define using libm_alias_float.
33765         * sysdeps/ieee754/flt-32/s_remquof.c: Include
33766         <libm-alias-float.h>.
33767         (remquof): Define using libm_alias_float.
33768         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
33769         (rintf): Define using libm_alias_float.
33770         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
33771         <libm-alias-float.h>.
33772         (roundevenf): Define using libm_alias_float.
33773         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
33774         (roundf): Define using libm_alias_float.
33775         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
33776         using libm_alias_float.
33777         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
33778         <libm-alias-float.h>.
33779         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
33780         Define using libm_alias_float.
33781         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
33782         <libm-alias-float.h>.
33783         (sincosf): Define using libm_alias_float.
33784         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
33785         (sinf): Define using libm_alias_float.
33786         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
33787         (tanf): Define using libm_alias_float.
33788         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
33789         (tanhf): Define using libm_alias_float.
33790         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
33791         <libm-alias-float.h>.
33792         (totalorderf): Define using libm_alias_float.
33793         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
33794         <libm-alias-float.h>.
33795         (totalordermagf): Define using libm_alias_float.
33796         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
33797         (truncf): Define using libm_alias_float.
33798         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
33799         libm_alias_float.
33800         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
33801         libm_alias_float.
33803 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
33805         [BZ #22146]
33806         math/math.h: Let fpclassify use the builtin in C++ mode, even
33807         when optimazing for size.
33809 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
33811         * csu/Makefile (generated): Do not add version-info.h.
33812         (before-compile): Likewise.
33813         (all-Banner-files): Remove variable.
33814         ($(objpfx)version-info.h): Remove rule.
33815         * csu/version.c (banner): Do not include "version-info.h".
33816         * libidn/Banner: Remove.
33817         * manual/contrib.texi (Simon Josefsson): New entry.
33819 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
33821         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
33822         Remove conditionals on LDBL_MANT_DIG.
33823         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33824         (__ieee754_lgammal_r): Likewise.
33826 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
33828         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
33829         _Float128 and L().
33830         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
33831         _Float128 and L(). Replace _Float128 with long double and L(x)
33832         with xL, throughout the file.
33833         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33834         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33835         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33836         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33838 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
33840         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
33841         sysdeps/ieee754/ldbl-128ibm.
33842         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
33843         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
33844         of including it.  Keep _Float128 and L() intact.  These will be
33845         reviewed by a separate patch.
33846         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33847         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33848         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33849         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33851 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
33853         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
33854         (__finitef128): Define to __redirect___finitef128.
33855         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
33856         (__isinff128): Define to __redirect___isinff128.
33857         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
33858         (__isnanf128): Define to __redirect___isnanf128.
33860 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
33862         * sysdeps/powerpc/powerpc64le/Makefile
33863         (CFLAGS-tst-strtod-nan-locale.c): New variable.
33864         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
33866 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
33867             Carlos O'Donell  <carlos@redhat.com>
33869         [BZ #22180]
33870         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
33871         * stdlib/test-dlclose-exit-race.c: New file.
33872         * stdlib/test-dlclose-exit-race-helper.c: New file.
33873         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
33875 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
33877         * crypt/Banner: Remove file.
33878         * nptl/Banner: Likewise.
33879         * resolv/Banner: Likewise.
33880         * soft-fp/Banner: Likewise.
33881         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
33882         ($(objpfx)version.d): Remove dependency on banner.h.
33883         ($(objpfx)version.os): Likewise.
33884         * nptl/version.c (banner): Do not include banner.h.
33885         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
33886         Jelinek and BIND code.
33888 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
33889             Carlos O'Donell  <carlos@redhat.com>
33891         * support/xdlfcn.h: New file.
33892         * support/xdlfcn.c: New file.
33893         * support/Makefile (libsupport-routines): Add xdlfcn.
33894         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
33896 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
33898         [BZ #20142]
33899         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33900         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
33901         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
33902         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
33903         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
33904         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
33905         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
33906         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
33908 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
33909             Ricky Zhou  <rickyz@google.com>
33910             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
33912         [BZ #14333]
33913         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
33914         Remove atomics.
33915         (__new_exitfn): Fail registration when we finished at_exit processing.
33916         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
33917         * stdlib/on_exit.c (__on_exit): Likewise.
33918         * stdlib/exit.c (__exit_funcs_done): New variable.
33919         (__run_exit_handlers): Use __exit_funcs_lock.
33920         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
33921         declarations.
33922         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33923         (test-cxa_atexit-race, test-on_exit-race): New tests.
33924         * stdlib/test-atexit-race-common.c: New file.
33925         * stdlib/test-atexit-race.c: New file.
33926         * stdlib/test-at_quick_exit-race.c: New file.
33927         * stdlib/test-cxa_atexit-race.c: New file.
33928         * stdlib/test-on_exit-race.c: New file.
33930 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33932         * benchtests/Makefile: Add exp2f and log2f benchmarks.
33933         * benchtests/exp2f-inputs: Copy of expf-inputs.
33934         * benchtests/log2f-inputs: Copy of logf-inputs.
33936 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
33938         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33939         Explicitly take address of first element of array arguments in
33940         call to INLINE_SYSCALL.
33942 2017-09-19  Andreas Schwab  <schwab@suse.de>
33944         [BZ #22134]
33945         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33946         execveat first.
33947         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33948         unimplemented.
33949         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33950         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33951         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33952         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33953         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33954         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33955         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33956         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33957         * posix/Makefile (tests): Add tst-fexecve.
33958         * posix/tst-fexecve.c: New file.
33960 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
33962         * benchtests/Makefile: Add logf benchmark.
33963         * benchtests/logf-inputs: Add reduced trace from wrf_r.
33965 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
33967         * benchtests/Makefile: Add expf benchmark.
33968         * benchtests/expf-inputs: Add reduced trace from wrf_r.
33970 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
33972         * csu/Makefile: Add -funwind-tables to libc-start.c.
33973         * debug/Makefile: Add -funwind-tables to backtrace.c.
33974         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33975         * sysdeps/arm/Makefile: Likewise.
33976         * sysdeps/i386/Makefile: Likewise.
33977         * sysdeps/m68k/Makefile: Likewise.
33978         * sysdeps/mips/Makefile: Likewise.
33979         * sysdeps/nios2/Makefile: Likewise.
33980         * sysdeps/sh/Makefile: Likewise.
33981         * sysdeps/sparc/Makefile: Likewise.
33983 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
33985         * benchtests/Makefile (bench-math): Add trunc and truncf.
33986         (CFLAGS-bench-trunc.c): New variable.
33987         (CFLAGS-bench-truncf.c): Likewise.
33988         * benchtests/trunc-inputs: New file.
33989         * benchtests/truncf-inputs: Likewise.
33991 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
33993         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33995 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
33997         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33998         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33999         redefine.
34000         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
34001         (exp10l): Define as weak alias.
34002         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
34003         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
34004         and redefine.
34005         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
34006         (remainderl): Define as weak alias.
34008         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
34009         (fmal): Define using libm_alias_ldouble.
34010         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
34011         (acoshl): Define using libm_alias_ldouble.
34012         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
34013         (acosl): Define using libm_alias_ldouble.
34014         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
34015         (asinl): Define using libm_alias_ldouble.
34016         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
34017         (atan2l): Define using libm_alias_ldouble.
34018         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
34019         (atanhl): Define using libm_alias_ldouble.
34020         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
34021         (coshl): Define using libm_alias_ldouble.
34022         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
34023         (exp10l): Define using libm_alias_ldouble.
34024         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
34025         (exp2l): Define using libm_alias_ldouble.
34026         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
34027         (expl): Define using libm_alias_ldouble.
34028         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
34029         (fmodl): Define using libm_alias_ldouble.
34030         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
34031         (hypotl): Define using libm_alias_ldouble.
34032         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
34033         (j0l): Define using libm_alias_ldouble.
34034         (y0l): Likewise.
34035         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
34036         (j1l): Define using libm_alias_ldouble.
34037         (y1l): Likewise.
34038         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
34039         (jnl): Define using libm_alias_ldouble.
34040         (ynl): Likewise.
34041         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
34042         (log10l): Define using libm_alias_ldouble.
34043         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
34044         (log2l): Define using libm_alias_ldouble.
34045         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
34046         (logl): Define using libm_alias_ldouble.
34047         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
34048         (powl): Define using libm_alias_ldouble.
34049         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
34050         (remainderl): Define using libm_alias_ldouble.
34051         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
34052         (sinhl): Define using libm_alias_ldouble.
34053         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
34054         (sqrtl): Define using libm_alias_ldouble.
34055         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
34056         (tgammal): Define using libm_alias_ldouble.
34057         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
34058         (exp10l): Do not use long_double_symbol here.
34059         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
34060         [LIBM_SVID_COMPAT] (remainderl): Likewise.
34061         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
34062         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34063         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34064         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34065         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34066         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34067         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34068         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
34069         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34070         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34071         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34072         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34073         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34074         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34075         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34076         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34077         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34078         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34079         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34080         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34082 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
34084         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
34085         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
34087 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34089         * io/read.c (read): Add libc_hidden_weak.
34090         * sysdeps/mach/hurd/read.c (read): Likewise.
34091         * io/write.c (write): Likewise.
34092         * sysdeps/mach/hurd/write.c (write): Likewise.
34093         * io/pread64.c (__pread64): Likewise.
34094         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
34095         * posix/pread64.c (__pread64): Add libc_hidden_def.
34097 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34099         * benchtests/scripts/compare_strings.py: New option -g.
34100         (draw_graph): Print a message that a graph is being generated.
34101         (process_results): Generate graph only if -g is passed.
34102         (main): Process option -g.
34104         * benchtests/scripts/compare_strings.py (process_results):
34105         Better spacing for output.
34107         * benchtests/scripts/compare_strings.py: Use argparse.
34108         * benchtests/README: Document existence of compare_strings.py.
34110 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
34112         * math/s_fma.c: Include <libm-alias-double.h>.
34113         (fma): Define using libm_alias_double.
34114         * math/s_nextafter.c: Include <libm-alias-double.h>.
34115         (nextafter): Define using libm_alias_double.
34116         * math/w_acos_compat.c: Include <libm-alias-double.h>.
34117         (acos): Define using libm_alias_double.
34118         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
34119         (aocsh): Define using libm_alias_double.
34120         * math/w_asin_compat.c: Include <libm-alias-double.h>.
34121         (asin): Define using libm_alias_double.
34122         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
34123         (atan2): Define using libm_alias_double.
34124         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
34125         (atanh): Define using libm_alias_double.
34126         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
34127         (cosh): Define using libm_alias_double.
34128         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
34129         (exp10): Define using libm_alias_double.
34130         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
34131         (exp2): Define using libm_alias_double.
34132         * math/w_exp_compat.c: Include <libm-alias-double.h>.
34133         (exp): Define using libm_alias_double.
34134         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
34135         (fmod): Define using libm_alias_double.
34136         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
34137         (hypot): Define using libm_alias_double.
34138         * math/w_j0_compat.c: Include <libm-alias-double.h>.
34139         (j0): Define using libm_alias_double.
34140         (y0): Likewise.
34141         * math/w_j1_compat.c: Include <libm-alias-double.h>.
34142         (j1): Define using libm_alias_double.
34143         (y1): Likewise.
34144         * math/w_jn_compat.c: Include <libm-alias-double.h>.
34145         (jn): Define using libm_alias_double.
34146         (yn): Likewise.
34147         * math/w_log10_compat.c: Include <libm-alias-double.h>.
34148         (log10): Define using libm_alias_double.
34149         * math/w_log2_compat.c: Include <libm-alias-double.h>.
34150         (log2): Define using libm_alias_double.
34151         * math/w_log_compat.c: Include <libm-alias-double.h>.
34152         (log): Define using libm_alias_double.
34153         * math/w_pow_compat.c: Include <libm-alias-double.h>.
34154         (pow): Define using libm_alias_double.
34155         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
34156         (remainder): Define using libm_alias_double.
34157         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
34158         (sinh): Define using libm_alias_double.
34159         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
34160         (sqrt): Define using libm_alias_double.
34161         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
34162         (tgamma): Define using libm_alias_double.
34163         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
34164         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
34165         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
34166         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
34167         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
34168         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
34169         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
34170         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
34171         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
34172         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
34173         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
34174         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
34175         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
34176         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
34177         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
34178         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
34179         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
34180         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
34181         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
34182         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
34183         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
34184         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
34185         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
34186         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
34187         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
34189         * math/e_acoshl.c: Remove.
34190         * math/e_acosl.c: Likewise.
34191         * math/e_asinl.c: Likewise.
34192         * math/e_atan2l.c: Likewise.
34193         * math/e_atanhl.c: Likewise.
34194         * math/e_coshl.c: Likewise.
34195         * math/e_expl.c: Likewise.
34196         * math/e_fmodl.c: Likewise.
34197         * math/e_gammal_r.c: Likewise.
34198         * math/e_hypotl.c: Likewise.
34199         * math/e_j0l.c: Likewise.
34200         * math/e_j1l.c: Likewise.
34201         * math/e_jnl.c: Likewise.
34202         * math/e_lgammal_r.c: Likewise.
34203         * math/e_log10l.c: Likewise.
34204         * math/e_log2l.c: Likewise.
34205         * math/e_logl.c: Likewise.
34206         * math/e_powl.c: Likewise.
34207         * math/e_rem_pio2l.c: Likewise.
34208         * math/e_sinhl.c: Likewise.
34209         * math/e_sqrtf128.c: Likewise.
34210         * math/e_sqrtl.c: Likewise.
34211         * math/k_cosl.c: Likewise.
34212         * math/k_sinl.c: Likewise.
34213         * math/k_tanl.c: Likewise.
34214         * math/s_asinhl.c: Likewise.
34215         * math/s_atanl.c: Likewise.
34216         * math/s_cbrtl.c: Likewise.
34217         * math/s_erfl.c: Likewise.
34218         * math/s_expm1l.c: Likewise.
34219         * math/s_log1pl.c: Likewise.
34220         * math/s_tanhl.c: Likewise.
34222 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
34224         [BZ #21745]
34225         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
34226         [$(subdir) = math] (sysdep_calls): New variable.  Has the
34227         previous contents of sysdep_routines, but re-sorted..
34228         [$(subdir) = math] (sysdep_routines): Re-use the contents from
34229         sysdep_calls.
34230         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
34231         defined in sysdep_calls and replace by the respective m_* names.
34232         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
34233         (compat_symbol): Undefine to avoid duplicated compat symbols in
34234         libc.
34236 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
34238         * math/s_fmaf.c: Include <libm-alias-float.h>.
34239         (fmaf): Define using libm_alias_float.
34240         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
34241         (acosf): Define using libm_alias_float.
34242         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
34243         (acoshf): Define using libm_alias_float.
34244         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
34245         (asinf): Define using libm_alias_float.
34246         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
34247         (atan2f): Define using libm_alias_float.
34248         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
34249         (atanhf): Define using libm_alias_float.
34250         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
34251         (coshf): Define using libm_alias_float.
34252         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
34253         (exp10f): Define using libm_alias_float.
34254         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
34255         (fmodf): Define using libm_alias_float.
34256         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
34257         (hypotf): Define using libm_alias_float.
34258         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
34259         (j0f): Define using libm_alias_float.
34260         (y0f): Likewise.
34261         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
34262         (j1f): Define using libm_alias_float.
34263         (y1f): Likewise.
34264         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
34265         (jnf): Define using libm_alias_float.
34266         (ynf): Likewise.
34267         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
34268         (log10f): Define using libm_alias_float.
34269         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
34270         (log2f): Define using libm_alias_float.
34271         * math/w_logf_compat.c: Include <libm-alias-float.h>.
34272         (logf): Define using libm_alias_float.
34273         * math/w_powf_compat.c: Include <libm-alias-float.h>.
34274         (powf): Define using libm_alias_float.
34275         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
34276         (remainderf): Define using libm_alias_float.
34277         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
34278         (sinhf): Define using libm_alias_float.
34279         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
34280         (sqrtf): Define using libm_alias_float.
34281         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
34282         (tgammaf): Define using libm_alias_float.
34284 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
34286         * include/math.h (roundeven): Change hidden_proto call to
34287         __roundeven.
34288         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
34289         alias.
34290         [NO_LONG_DOUBLE] (__j0l): New strong alias.
34291         (y0): Rename to __y0 and define as weak alias.
34292         [NO_LONG_DOUBLE] (__y0l): New strong alias.
34293         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
34294         alias.
34295         (y0f): Rename to __y0f and define as weak alias.
34296         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
34297         alias.
34298         [NO_LONG_DOUBLE] (__j1l): New strong alias.
34299         (y1): Rename to __y1 and define as weak alias.
34300         [NO_LONG_DOUBLE] (__y1l): New strong alias.
34301         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
34302         alias.
34303         (y1f): Rename to __y1f and define as weak alias.
34304         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
34305         alias.
34306         [NO_LONG_DOUBLE] (__jnl): New strong alias.
34307         (yn): Rename to __yn and define as weak alias.
34308         [NO_LONG_DOUBLE] (__ynl): New strong alias.
34309         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
34310         alias.
34311         (ynf): Rename to __ynf and define as weak alias.
34312         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
34313         (fromfp): Define as weak alias.
34314         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
34315         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
34316         (fromfpx): Define as weak alias.
34317         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
34318         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
34319         __getpayload and define as weak alias.
34320         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
34321         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
34322         __roundeven and define as weak alias.
34323         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
34324         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
34325         __setpayload.
34326         (setpayload): Define as weak alias.
34327         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
34328         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
34329         __setpayloadsig.
34330         (setpayloadsig): Define as weak alias.
34331         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
34332         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
34333         __totalorder and define as weak alias.
34334         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
34335         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
34336         to __totalordermag and define as weak alias.
34337         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
34338         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
34339         (ufromfp): Define as weak alias.
34340         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
34341         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
34342         __ufromfpx.
34343         (ufromfpx): Define as weak alias.
34344         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
34345         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
34346         Rename to __getpayload and define as weak alias.
34347         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
34348         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
34349         Rename to __roundeven and define as weak alias.
34350         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
34351         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
34352         Rename to __totalorder and define as weak alias.
34353         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
34354         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
34355         (totalordermag): Rename to __totalordermag and define as weak
34356         alias.
34357         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
34358         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
34359         macro.
34360         (__roundevenl): Likewise.
34361         (__totalorderl): Likewise.
34362         (__totalordermagl): Likewise
34363         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
34364         __fromfpf128.
34365         (fromfpf128): Define as weak alias.
34366         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
34367         __fromfpxf128.
34368         (fromfpxf128): Define as weak alias.
34369         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
34370         __setpayloadf128.
34371         (setpayloadf128): Define as weak alias.
34372         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
34373         __setpayloadsigf128.
34374         (setpayloadsigf128): Define as weak alias.
34375         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
34376         __ufromfpf128.
34377         (ufromfpf128): Define as weak alias.
34378         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
34379         __ufromfpxf128.
34380         (ufromfpxf128): Define as weak alias.
34381         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
34382         (fromfpf): Define as weak alias.
34383         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
34384         __fromfpxf.
34385         (fromfpxf): Define as weak alias.
34386         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
34387         __getpayloadf and define as weak alias.
34388         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
34389         __roundevenf and define as weak alias.
34390         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
34391         __setpayloadf.
34392         (setpayloadf): Define as weak alias.
34393         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
34394         __setpayloadsigf.
34395         (setpayloadsigf): Define as weak alias.
34396         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
34397         __totalorderf and define as weak alias.
34398         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
34399         Rename to __totalordermagf and define as weak alias.
34400         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
34401         __ufromfpf.
34402         (ufromfpf): Define as weak alias.
34403         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
34404         __ufromfpxf.
34405         (ufromfpxf): Define as weak alias.
34406         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
34407         __fromfpl.
34408         (fromfpl): Define as weak alias.
34409         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
34410         __fromfpxl.
34411         (fromfpxl): Define as weak alias.
34412         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
34413         to __getpayloadl and define as weak alias.
34414         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
34415         __roundevenl and define as weak alias.
34416         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
34417         __setpayloadl.
34418         (setpayloadl): Define as weak alias.
34419         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
34420         __setpayloadsigl.
34421         (setpayloadsigl): Define as weak alias.
34422         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
34423         to __totalorderl and define as weak alias.
34424         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
34425         Rename to __totalordermagl and define as weak alias.
34426         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
34427         __ufromfpl.
34428         (ufromfpl): Define as weak alias.
34429         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
34430         __ufromfpxl.
34431         (ufromfpxl): Define as weak alias.
34432         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
34433         __fromfpl.
34434         (fromfpl): Define as weak alias.
34435         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
34436         __fromfpxl.
34437         (fromfpxl): Define as weak alias.
34438         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
34439         Rename to __getpayloadl and define as weak alias.
34440         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
34441         to __roundevenl and define as weak alias.  Call __roundeven
34442         instead of roundeven.
34443         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
34444         __setpayloadl.
34445         (setpayloadl): Define as weak alias.
34446         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
34447         __setpayloadsigl.
34448         (setpayloadsigl): Define as weak alias.
34449         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
34450         Rename to __totalorderl and define as weak alias.
34451         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
34452         Rename to __totalordermagl and define as weak alias.
34453         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
34454         __ufromfpl.
34455         (ufromfpl): Define as weak alias.
34456         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
34457         __ufromfpxl.
34458         (ufromfpxl): Define as weak alias.
34459         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
34460         __fromfpl.
34461         (fromfpl): Define as weak alias.
34462         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
34463         __fromfpxl.
34464         (fromfpxl): Define as weak alias.
34465         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
34466         __getpayloadl and define as weak alias.
34467         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
34468         __roundevenl and define as weak alias.
34469         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
34470         __setpayloadl.
34471         (setpayloadl): Define as weak alias.
34472         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
34473         __setpayloadsigl.
34474         (setpayloadsigl): Define as weak alias.
34475         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
34476         __totalorderl and define as weak alias.
34477         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
34478         Rename to __totalordermagl and define as weak alias.
34479         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
34480         __ufromfpl.
34481         (ufromfpl): Define as weak alias.
34482         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
34483         __ufromfpxl.
34484         (ufromfpxl): Define as weak alias.
34486 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34488         * benchtests/bench-string.h (realloc_bufs): New function.
34489         (test_init): Call it.
34490         * benchtests/bench-memset-large.c (do_test): Likewise.
34491         * benchtests/bench-memset.c (do_test): Likewise.
34493         * benchtests/bench-memset-large.c: Print output in JSON
34494         format.
34495         * benchtests/bench-memset.c: Likewise.
34497 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
34499         [BZ #21084]
34500         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
34501         * iconvdata/Makefile: Add IBM858.
34502         * iconvdata/gconv-modules: Likewise.
34503         * iconvdata/tst-tables.sh: Likewise.
34504         * iconvdata/ibm858.c: New file.
34505         * localedata/charmaps/IBM858: Likewise.
34507 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
34509         [BZ #22023]
34510         * locales/niu_NZ (LC_TIME): copy "niu_NU".
34511         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
34513 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
34515         [BZ #22112]
34516         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
34517         and add tel_int_fmt.
34519 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
34521         * sysdeps/generic/libm-alias-float128.h: New file.
34522         * sysdeps/generic/math-type-macros-float128.h: Include
34523         <libm-alias-float128.h>.
34524         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
34526 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
34528         * sysdeps/generic/libm-alias-ldouble.h: New file.
34529         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
34530         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
34531         * sysdeps/generic/math-type-macros-ldouble.h: Include
34532         <libm-alias-ldouble.h>.
34533         [!declare_mgen_alias] (declare_mgen_alias): Define to use
34534         libm_alias_ldouble.
34536 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
34538         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
34539         * math/w_exp_compat.c: ... here.
34540         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
34541         * math/w_expf_compat.c: ... here.
34542         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
34543         * math/w_expl_compat.c: ... here.
34544         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
34545         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
34546         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
34547         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
34549 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
34551         * math/w_scalbln_template.c (strong_alias): Do not undefine and
34552         redefine.
34553         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
34554         macro.
34555         (ldexpl): Only define as compat symbol for libc, not libm.
34556         (scalbnl): Define as compat symbol for libc here.
34557         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
34558         define for [IS_IN (libc)].
34559         (__ldexpl_2): Remove alias.
34560         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
34561         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
34562         name in long_double_symbol call.
34563         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
34564         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
34565         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
34566         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
34567         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
34568         Remove macro.
34569         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
34570         Define as compat symbol.
34572 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34574         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
34575         * sysdeps/unix/sysv/linux/alpha/Makefile
34576         [$(subdir) = csu] (sysdep_routines): Remove rule.
34578 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
34580         * sysdeps/generic/libm-alias-double.h: New file.
34581         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
34582         * sysdeps/generic/math-type-macros-double.h: Include
34583         <libm-alias-double.h>.
34584         [declare_mgen_alias] (declare_mgen_alias): Define to use
34585         libm_alias_double.
34586         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
34587         (M_LIBM_NEED_COMPAT): Remove macro.
34588         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
34589         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
34590         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
34591         code.
34592         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34593         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34594         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34595         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34596         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34597         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34598         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34599         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34600         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34601         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34602         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34603         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34604         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34605         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34606         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34607         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34608         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34609         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34610         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34611         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34612         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34613         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34614         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34615         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34616         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34617         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34618         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34619         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
34620         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
34621         macro.
34622         (declare_mgen_alias): New macro.
34623         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
34624         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
34625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
34626         (M_LIBM_NEED_COMPAT): Remove macro.
34627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
34628         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
34629         <first-versions.h>.
34630         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
34631         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
34633 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
34635         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
34636         (declare_mgen_alias_2): Remove.
34637         * sysdeps/generic/math-type-macros-double.h
34638         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
34639         Likewise.
34640         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
34641         alias.
34642         (ldexp): Define with declare_mgen_alias.
34643         (scalbn): Likewise.
34645 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
34647         * grp/initgroups.c: Include config.h.
34648         (DEFAULT_CONFIG): New macro.
34649         (internal_getgrouplist): Use DEFAULT_CONFIG.
34650         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34651         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
34652         (DEFAULT_DEFCONFIG): New macro.
34653         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
34654         * nss/grp-lookup.c: Include config.h
34655         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
34656         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
34657         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
34658         * manual/nss.texi: Update default values section.
34660 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
34662         [BZ #21967]
34663         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
34664         New.
34665         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
34666         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34667         Handle MathVec_Prefer_No_AVX512.
34668         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
34669         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
34670         is set.
34672 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34674         * posix/sched_primax.c (__sched_get_priority_max): Add
34675         libc_hidden_def.
34676         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
34677         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34678         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34679         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
34680         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
34681         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
34682         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
34683         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
34684         Add aliases.
34686 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
34688         * sysdeps/generic/libm-alias-float.h: New file.
34689         * sysdeps/generic/math-type-macros-float.h: Include
34690         <libm-alias-float.h>.
34691         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
34693 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
34695         [BZ #22093]
34696         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
34697         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
34698         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
34699         (HWCAP_IMPORTANT): Likewise.
34700         (HWCAP_X86_64): New enum.
34701         (HWCAP_X86_AVX512_1): Updated.
34702         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
34703         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
34704         (modules-names): Add x86_64/tst-x86_64mod-1.
34705         (LDFLAGS-tst-x86_64mod-1.so): New.
34706         ($(objpfx)tst-x86_64-1): Likewise.
34707         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
34708         (tst-x86_64-1-clean): Likewise.
34709         * sysdeps/x86_64/tst-x86_64-1.c: New file.
34710         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
34712 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34714         * po/sv.po: Update translations.
34715         * po/fr.po: Likewise.
34717 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34719         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
34720         seconds.
34721         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
34722         seconds.
34723         * elf/rtld-Rules: Fix $(error) use.
34725 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
34727         [BZ #14925]
34728         * libio/tst-widetext.input: Change â€œBengali” to â€œBangla”.
34729         * locale/iso-639.def: Change â€œBengali” to â€œBangla”.
34730         * localedata/locales/bn_BD: â€œBengali” was still used in some
34731         comments. Change it to â€œBangla”.
34733 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
34735         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
34737 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
34739         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
34740         thunderx2t99p1 to list of cpu names.
34741         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34742         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
34744 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
34746         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
34747         Use strcmp instead of tunable_is_name.
34749 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
34751         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34752         (F_GET_RW_HINT): New macro.
34753         [__USE_GNU] (F_SET_RW_HINT): Likewise.
34754         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
34755         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
34756         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
34757         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
34758         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
34759         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
34760         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
34761         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
34763         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34764         (F_ADD_SEALS): New macro.
34765         [__USE_GNU] (F_GET_SEALS): Likewise.
34766         [__USE_GNU] (F_SEAL_SEAL): Likewise.
34767         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
34768         [__USE_GNU] (F_SEAL_GROW): Likewise.
34769         [__USE_GNU] (F_SEAL_WRITE): Likewise.
34771 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34773         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
34774         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
34775         * posix/glob_internal.h (__glob_pattern_type):
34776         * posix/glob.c (glob):
34777         * posix/glob_pattern_p.c (__glob_pattern_p):
34778         Use them.
34780         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
34781         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
34782         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
34783         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
34784         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
34786         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
34787         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
34788         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34789         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
34790         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34791         * sysdeps/wordsize-64/glob.c: Likewise.
34792         * sysdeps/wordsize-64/glob64.c: Likewise.
34793         * sysdeps/wordsize-64/globfree.c: Likewise.
34794         * sysdeps/wordsize-64/globfree64.c: Likewise.
34795         * sysdeps/unix/sysv/linux/glob.c: New file.
34796         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
34797         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
34798         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
34799         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
34800         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
34801         adds !GLOB_NO_OLD_VERSION as an extra condition.
34802         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
34803         using relative path instead of absolute one.
34804         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
34805         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
34806         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
34807         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
34808         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
34809         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
34811         [BZ #1062]
34812         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
34813         (glob): Use the same scratch buffer for both getlogin_r and
34814         getpwnam_r.  Don’t require preallocation of the login name.  This
34815         simplifies storage allocation, and corrects the handling of
34816         long login names.
34818         [BZ #1062]
34819         * posix/glob.c (glob): Port recent patches to platforms
34820         lacking getpwnam_r.
34821         (glob): Fix longstanding misuse of errno after getpwnam_r, which
34822         returns an error number rather than setting errno.
34824         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
34825         instead of GCC extension.
34826         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
34827         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
34828         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
34830         [BZ #866]
34831         [BZ #1062]
34832         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
34833         * posix/bug-glob1.c: Remove file.
34834         * posix/tst-glob_symlinks.c: New file.
34835         * posix/glob.c (__lstat64): New macro.
34836         (is_dir): New function.
34837         (glob, glob_in_dir): Match symlinks even if they are dangling.
34838         (link_stat, link_exists_p): Remove.  All uses removed.
34840         [BZ #1062]
34841         [BZ #19971]
34842         * posix/glob.c (struct readdir_result): Remove skip_entry member.
34843         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
34844         All uses removed.
34846         [BZ #1062]
34847         CVE-2017-15671
34848         * posix/Makefile (routines): Add globfree, globfree64, and
34849         glob_pattern_p.
34850         * posix/flexmember.h: New file.
34851         * posix/glob_internal.h: Likewise.
34852         * posix/glob_pattern_p.c: Likewise.
34853         * posix/globfree.c: Likewise.
34854         * posix/globfree64.c: Likewise.
34855         * sysdeps/gnu/globfree64.c: Likewise.
34856         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
34857         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34858         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
34859         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34860         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34861         * sysdeps/wordsize-64/globfree.c: Likewise.
34862         * sysdeps/wordsize-64/globfree64.c: Likewise.
34863         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
34864         [NDEBUG): Remove comments.
34865         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
34866         (dirent_type): New type.  Use uint_fast8_t not
34867         uint8_t, as C99 does not require uint8_t.
34868         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
34869         (struct readdir_result): Use dirent_type.  Do not define skip_entry
34870         unless it is needed; this saves a byte on platforms lacking d_ino.
34871         (readdir_result_type, readdir_result_skip_entry):
34872         New functions, replacing ...
34873         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
34874         these functions, which were removed.  This makes the callers
34875         easier to read.  All callers changed.
34876         (D_INO_TO_RESULT): Now empty if there is no d_ino.
34877         (size_add_wrapv, glob_use_alloca): New static functions.
34878         (glob, glob_in_dir): Check for size_t overflow in several places,
34879         and fix some size_t checks that were not quite right.
34880         Remove old code using SHELL since Bash no longer
34881         uses this.
34882         (glob, prefix_array): Separate MS code better.
34883         (glob_in_dir): Remove old Amiga and VMS code.
34884         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
34885         separate files.
34886         (glob_in_dir): Do not rely on undefined behavior in accessing
34887         struct members beyond their bounds.  Use a flexible array member
34888         instead
34889         (link_stat): Rename from link_exists2_p and return -1/0 instead of
34890         0/1.  Caller changed.
34891         (glob): Fix memory leaks.
34892         * posix/glob64 (globfree64): Move to separate file.
34893         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
34894         (globfree64): Remove hidden alias.
34895         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
34896         oldglob.
34897         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
34898         separate file.
34899         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
34900         define.
34901         Move compat code to separate file.
34902         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
34903         separate file.
34905 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
34907         * resolv/tst-resolv-qtypes.c (domain): Changed to
34908         "const char domain[] =".
34910 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
34912         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
34913         version to 3.1.6.
34915         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
34916         (TCP_MD5SIG_EXT): Likewise.
34917         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
34918         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
34919         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
34921         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
34923 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
34925         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34927 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
34929         [BZ #22100]
34930         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34932 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34934         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34935         before assuming that the file is empty.  Avoid testing buffer content
34936         when nread == 0.
34938 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34940         [BZ #18858]
34941         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34942         Remove define.
34943         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34944         Likewise.
34945         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34946         Likewise.
34947         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34948         Likewise.
34949         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34950         Likewise.
34951         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34952         Likewise.
34953         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34954         Likewise.
34956 2017-09-06  Florian Weimer  <fweimer@redhat.com>
34958         * malloc/dynarray_emplace_enlarge.c
34959         (__libc_dynarray_emplace_enlarge): Add missing else.
34961 2017-09-06  Florian Weimer  <fweimer@redhat.com>
34963         [BZ #22096]
34964         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34965         case of failure to obtain the global conf object.
34967 2017-09-06  Florian Weimer  <fweimer@redhat.com>
34969         [BZ #22095]
34970         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34971         dynarray allocation failure.
34973 2017-09-06  Florian Weimer  <fweimer@redhat.com>
34975         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34976         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34977         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34978         New functions.
34979         (response): Call them.  Add 'p', '6' flag processing.
34980         (test_reverse): New function.
34981         (test_get2_any): Call it.
34982         (test_no_inet6): Add 'p' test.
34983         (test_inet6): Likewise.
34985 2017-09-06  Florian Weimer  <fweimer@redhat.com>
34987         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34988         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34989         the QNAME.
34990         (test_gai): Adjust query names.  Add additional tests.
34991         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34992         test_get2.  Adjust query names.  Add additional tests.
34993         (test_no_inet6): New function, extracted from threadfunc.
34994         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34995         Add additional tests.
34997 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
34999         [BZ #22070]
35000         * localedata/unicode-gen/utf8_gen.py: Set the width for
35001         characters with Prepended_Concatenation_Mark property to 1
35002         * localedata/charmaps/UTF-8: Updated using the improved script.
35004 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
35006         [BZ #21750]
35007         * localedata/unicode-gen/utf8_gen.py: Improve the script to
35008         use the range notation for all ranges of neighbouring characters
35009         with the same width.
35011 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
35013         * sysdeps/generic/math-type-macros-double.h: Include
35014         <math-svid-compat.h>.
35015         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
35016         * sysdeps/generic/math-type-macros-float.h: Include
35017         <math-svid-compat.h>.
35018         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
35019         * sysdeps/generic/math-type-macros-ldouble.h: Include
35020         <math-svid-compat.h>.
35021         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
35022         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
35023         condition.
35024         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
35025         * math/w_acosf_compat.c: Likewise.
35026         * math/w_acosh_compat.c: Likewise.
35027         * math/w_acoshf_compat.c: Likewise.
35028         * math/w_acoshl_compat.c: Likewise.
35029         * math/w_acosl_compat.c: Likewise.
35030         * math/w_asin_compat.c: Likewise.
35031         * math/w_asinf_compat.c: Likewise.
35032         * math/w_asinl_compat.c: Likewise.
35033         * math/w_atan2_compat.c: Likewise.
35034         * math/w_atan2f_compat.c: Likewise.
35035         * math/w_atan2l_compat.c: Likewise.
35036         * math/w_atanh_compat.c: Likewise.
35037         * math/w_atanhf_compat.c: Likewise.
35038         * math/w_atanhl_compat.c: Likewise.
35039         * math/w_cosh_compat.c: Likewise.
35040         * math/w_coshf_compat.c: Likewise.
35041         * math/w_coshl_compat.c: Likewise.
35042         * math/w_exp10_compat.c: Likewise.
35043         * math/w_exp10f_compat.c: Likewise.
35044         * math/w_exp10l_compat.c: Likewise.
35045         * math/w_exp2_compat.c: Likewise.
35046         * math/w_exp2f_compat.c: Likewise.
35047         * math/w_exp2l_compat.c: Likewise.
35048         * math/w_fmod_compat.c: Likewise.
35049         * math/w_fmodf_compat.c: Likewise.
35050         * math/w_fmodl_compat.c: Likewise.
35051         * math/w_hypot_compat.c: Likewise.
35052         * math/w_hypotf_compat.c: Likewise.
35053         * math/w_hypotl_compat.c: Likewise.
35054         * math/w_j0_compat.c: Likewise.
35055         * math/w_j0f_compat.c: Likewise.
35056         * math/w_j0l_compat.c: Likewise.
35057         * math/w_j1_compat.c: Likewise.
35058         * math/w_j1f_compat.c: Likewise.
35059         * math/w_j1l_compat.c: Likewise.
35060         * math/w_jn_compat.c: Likewise.
35061         * math/w_jnf_compat.c: Likewise.
35062         * math/w_jnl_compat.c: Likewise.
35063         * math/w_lgamma_r_compat.c: Likewise.
35064         * math/w_lgammaf_r_compat.c: Likewise.
35065         * math/w_lgammal_r_compat.c: Likewise.
35066         * math/w_log10_compat.c: Likewise.
35067         * math/w_log10f_compat.c: Likewise.
35068         * math/w_log10l_compat.c: Likewise.
35069         * math/w_log2_compat.c: Likewise.
35070         * math/w_log2f_compat.c: Likewise.
35071         * math/w_log2l_compat.c: Likewise.
35072         * math/w_log_compat.c: Likewise.
35073         * math/w_logf_compat.c: Likewise.
35074         * math/w_logl_compat.c: Likewise.
35075         * math/w_pow_compat.c: Likewise.
35076         * math/w_powf_compat.c: Likewise.
35077         * math/w_powl_compat.c: Likewise.
35078         * math/w_remainder_compat.c: Likewise.
35079         * math/w_remainderf_compat.c: Likewise.
35080         * math/w_remainderl_compat.c: Likewise.
35081         * math/w_sinh_compat.c: Likewise.
35082         * math/w_sinhf_compat.c: Likewise.
35083         * math/w_sinhl_compat.c: Likewise.
35084         * math/w_sqrt_compat.c: Likewise.
35085         * math/w_sqrtf_compat.c: Likewise.
35086         * math/w_sqrtl_compat.c: Likewise.
35087         * math/w_tgamma_compat.c: Likewise.
35088         * math/w_tgammaf_compat.c: Likewise.
35089         * math/w_tgammal_compat.c: Likewise.
35090         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
35091         [LIBM_SVID_COMPAT].
35092         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
35093         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
35094         [LIBM_SVID_COMPAT].
35095         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
35096         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
35097         [LIBM_SVID_COMPAT].
35098         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
35099         * sysdeps/i386/fpu/w_sqrt.c: New file.
35100         * sysdeps/ia64/fpu/w_acos.c: Likewise.
35101         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
35102         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
35103         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
35104         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
35105         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
35106         * sysdeps/ia64/fpu/w_asin.c: Likewise.
35107         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
35108         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
35109         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
35110         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
35111         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
35112         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
35113         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
35114         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
35115         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
35116         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
35117         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
35118         * sysdeps/ia64/fpu/w_exp.c: Likewise.
35119         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
35120         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
35121         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
35122         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
35123         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
35124         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
35125         * sysdeps/ia64/fpu/w_expf.c: Likewise.
35126         * sysdeps/ia64/fpu/w_expl.c: Likewise.
35127         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
35128         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
35129         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
35130         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
35131         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
35132         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
35133         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
35134         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
35135         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
35136         * sysdeps/ia64/fpu/w_log.c: Likewise.
35137         * sysdeps/ia64/fpu/w_log10.c: Likewise.
35138         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
35139         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
35140         * sysdeps/ia64/fpu/w_log2.c: Likewise.
35141         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
35142         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
35143         * sysdeps/ia64/fpu/w_logf.c: Likewise.
35144         * sysdeps/ia64/fpu/w_logl.c: Likewise.
35145         * sysdeps/ia64/fpu/w_pow.c: Likewise.
35146         * sysdeps/ia64/fpu/w_powf.c: Likewise.
35147         * sysdeps/ia64/fpu/w_powl.c: Likewise.
35148         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
35149         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
35150         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
35151         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
35152         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
35153         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
35154         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
35155         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
35156         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
35157         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
35158         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
35159         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
35160         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
35161         [LIBM_SVID_COMPAT].
35162         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
35163         * sysdeps/ieee754/k_standard.c: Likewise.
35164         * sysdeps/ieee754/k_standardf.c: Likewise.
35165         * sysdeps/ieee754/k_standardl.c: Likewise.
35166         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
35167         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
35168         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
35169         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
35170         long_double_symbol call on [LIBM_SVID_COMPAT].
35171         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
35172         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
35173         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
35174         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
35175         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
35176         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
35177         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
35178         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
35179         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
35180         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
35181         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
35182         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
35183         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
35184         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
35185         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
35186         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
35187         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
35188         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
35189         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
35190         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
35191         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
35192         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
35194 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
35196         * include/shlib-compat.h (TEST_COMPAT): New Macro.
35197         * malloc/tst-mallocstate.c: Convert from test-skeleton
35198         to test-driver.  Ifdef code using TEST_COMPAT macro.
35199         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
35200         * math/test-matherr.c: Likewise.
35202 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
35204         [BZ #22086]
35205         * debug/pcprofiledump.c (main): Use byte-swapped mask when
35206         comparing word with byte-swapped constant.
35208 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
35210         [BZ #20498]
35211         * locale/iso-639.def: add Miskito.
35212         * localedata/SUPPORTED: Add miq_NI/UTF-8.
35213         * localedata/locales/miq_NI: New file.
35215 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
35217         [BZ #18822]
35218         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
35219         (__mkdir): Likewise.
35220         * io/chmod.c (__chmod): Add libc_hidden_def.
35221         * io/mkdir.c (__mkdir): Likewise.
35222         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
35223         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
35224         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
35225         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
35227 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
35229         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
35230         version to 4.13.
35232         [BZ #22082]
35233         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
35234         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
35236 2017-09-04  Florian Weimer  <fweimer@redhat.com>
35238         * math/math.h: Issue warning if log is defined.
35240 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
35242         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
35243         kernel version to 4.13.
35245 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35247         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
35248         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
35249         parameter.
35250         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
35251         just <bits/types.h>.
35252         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
35253         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
35254         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
35255         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
35256         * misc/preadv2.c: Include <errno.h>.
35257         * misc/preadv64v2.c: Include <errno.h>.
35258         * misc/pwritev2.c: Include <errno.h>.
35259         * misc/pwritev64v2.c: Include <errno.h>.
35260         * sysdeps/posix/preadv2.c: Include <errno.h>.
35261         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
35262         Fix <unistd.h> inclusion.
35263         * sysdeps/posix/pwritev2.c: Include <errno.h>.
35264         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
35265         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
35266         __strtoul_internal): New functions.
35267         * sysdeps/posix/pause.c: Include <sigsetops.h>.
35268         * sysdeps/posix/system.c: Include <sigsetops.h>.
35269         * sysdeps/mach/hurd/i386/Makefile
35270         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
35271         [$(subdir) = csu] (sysdep-only-routines): Likewise.
35272         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
35273         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
35274         __feraiseexcept_renamed to feraiseexcept instead of
35275         __GI_feraiseexcept.
35276         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
35277         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
35278         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
35279         RWF_NOWAIT): Define to 0 if undefined already.
35280         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
35281         boils down to 0.
35282         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
35283         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
35285 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
35287         * manual/math.texi (pow10): Do not document.
35288         (pow10f): Likewise.
35289         (pow10l): Likewise.
35290         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
35291         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
35292         * math/libm-test-exp10.inc (pow10_test): Remove.
35293         (do_test): Do not call pow10.
35294         * math/w_exp10_compat.c (pow10): Make into compat symbol.
35295         [NO_LONG_DOUBLE] (pow10l): Likewise.
35296         * math/w_exp10f_compat.c (pow10f): Likewise.
35297         * math/w_exp10l_compat.c (pow10l): Likewise.
35298         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
35299         (pow10): Make into compat symbol.
35300         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
35301         (pow10f): Make into compat symbol.
35302         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
35303         (pow10l): Make into compat symbol.
35304         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
35305         pow10.
35306         (CFLAGS-nldbl-pow10.c): Remove variable..
35307         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
35308         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
35309         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
35310         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
35311         Undefine and redefine.
35312         (pow10l): Make into compat symbol.
35313         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
35314         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
35315         * sysdeps/arm/libm-test-ulps: Likewise.
35316         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
35317         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
35318         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
35319         * sysdeps/microblaze/libm-test-ulps: Likewise.
35320         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
35321         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
35322         * sysdeps/nios2/libm-test-ulps: Likewise.
35323         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
35324         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
35325         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
35326         * sysdeps/sh/libm-test-ulps: Likewise.
35327         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
35328         * sysdeps/tile/libm-test-ulps: Likewise.
35329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35331 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
35333         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
35335 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
35337         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
35338         "../ChangeLog.old/ChangeLog.8".
35339         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
35340         "../ChangeLog.old/ChangeLog.14".
35342 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
35344         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
35345         Threads Library.
35347 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
35349         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
35351 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
35353         * csu/version.c (banner): Remove "by Roland McGrath et al.".
35354         * nptl/Banner: Remove "by Ulrich Drepper et al.".
35356 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
35358         * stdlib/tst-atexit-common.c (do_test): Test support for at least
35359         32 atexit handlers.
35361 2017-09-01  Zack Weinberg  <zackw@panix.com>
35363         * math/math.h (HUGE_VAL): Improve commentary.
35365 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
35366             Andreas Schwab  <schwab@suse.de>
35368         [BZ #21530]
35369         * include/stdio.h (__gen_tempfd): New function.
35370         * stdio-common/Makefile (routines): Add gentempfd.
35371         * stdio-common/gentempfd.c: New file.
35372         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
35373         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
35374         unnamed file first.
35376 2017-09-01  Florian Weimer  <fweimer@redhat.com>
35378         [BZ #21915]
35379         [BZ #21922]
35380         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
35381         result to determine success or failure, not the errno value.
35382         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
35383         (tst-nss-files-hosts-erange): Link with -ldl.
35384         * nss/tst-nss-files-hosts-erange.c: New file.
35385         * nss/tst-resolv-basic.c (response): Handle nodata.example.
35386         (do_test): Add NO_DATA tests.
35387         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
35388         (do_test): Call it.
35390 2017-09-01  Florian Weimer  <fweimer@redhat.com>
35392         [BZ #21922]
35393         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
35394         coming from gethostbyname2_r.
35396 2017-09-01  Florian Weimer  <fweimer@redhat.com>
35398         * support/namespace.h (struct support_chroot_configuration): Add
35399         hosts, host_conf.
35400         (struct support_chroot): Add path_hosts, path_host_conf.
35401         * support/support_chroot.c (write_file): New function.
35402         (support_chroot_create): Call it to process /etc/resolv.conf,
35403         /etc/hosts, /etc/host.conf.
35404         (support_chroot_free): Update.
35406 2017-09-01  Florian Weimer  <fweimer@redhat.com>
35408         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
35409         status indicates it is set.
35411 2017-09-01  Florian Weimer  <fweimer@redhat.com>
35413         [BZ #20532]
35414         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
35415         function lookup failures more reliable.
35417 2017-09-01  Florian Weimer  <fweimer@redhat.com>
35419         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
35420         (getcanonname): Likewise.
35421         (gaih_inet): Likewise.
35423 2017-09-01  Florian Weimer  <fweimer@redhat.com>
35425         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
35426         (getcanonname): Likewise.
35427         (gaih_inet): Likewise.
35429 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
35430             Richard Henderson  <rth@twiddle.net>
35432         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
35433         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
35434         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
35435         (IREG_SIZE, OREG_SIZE): New macros.
35436         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
35437         (IREG_SIZE, OREG_SIZE): New macros.
35438         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
35439         (IREG_SIZE): New macro.
35440         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
35441         (IREG_SIZE): New macro.
35442         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
35443         New includes.
35444         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
35445         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
35446         (__CONCATX): Handle exceptions correctly on large values that may
35447         set FE_INVALID.
35448         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
35449         Initialize if not already set.
35450         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
35452 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
35454         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
35455         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
35456         Likewise.
35457         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
35458         Likewise.
35459         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
35460         Likewise.
35461         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
35462         Likewise.
35463         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
35464         Likewise.
35465         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
35466         Likewise.
35467         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
35468         Likewise.
35469         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
35470         (NO_CANCELLATION): Likewise.
35471         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
35472         Likewise.
35473         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
35474         Likewise.
35475         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
35476         Likewise.
35477         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
35478         (NO_CANCELLATION): Likewise.
35479         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
35480         (NO_CANCELLATION): Likewise.
35481         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
35482         Likewise
35483         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
35484         Likewise.
35485         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
35486         Likewise.
35487         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
35488         Likewise.
35489         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
35490         hidden prototype.
35491         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
35492         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
35494 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
35496         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
35497         in resolver call.
35499 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35501         * include/libc-symbols.h (internal_function): Remove.
35503 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35505         * stdlib/fmtmsg.c (internal_addseverity): Remove
35506         internal_function.
35508 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35510         * stdio-common/printf_fp.c (group_number): Remove
35511         internal_function.
35512         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
35514 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35516         * posix/fnmatch.c (internal_function): Remove definition.
35517         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
35518         * posix/regcomp.c (peek_token, init_word_char)
35519         (duplicate_node_closure, fetch_token, peek_token)
35520         (peek_token_bracket, build_range_exp, build_collating_symbol):
35521         Likewise.
35522         * posix/regex_internal.c (re_string_construct_common)
35523         (create_ci_newstate, create_cd_newstate, re_string_allocate)
35524         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
35525         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
35526         (re_string_translate_buffer, re_string_reconstruct)
35527         (re_string_peek_byte_case, re_string_fetch_byte_case)
35528         (re_string_destruct, re_string_context_at, re_node_set_alloc)
35529         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
35530         (re_node_set_add_intersect, re_node_set_init_union)
35531         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
35532         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
35533         (re_dfa_add_node, calc_state_hash, re_acquire_state)
35534         (re_acquire_state_context): Likewise.
35535         * posix/regex_internal.h (internal_function): Remove definition.
35536         (re_string_realloc_buffers, build_wcs_buffer)
35537         (build_wcs_upper_buffer, build_upper_buffer)
35538         (re_string_translate_buffer, re_string_context_at)
35539         (re_string_char_size_at, re_string_wchar_at)
35540         (re_string_elem_size_at): Likewise.
35541         * posix/regexec.c (match_ctx_init, match_ctx_clean)
35542         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
35543         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
35544         (re_search_internal, re_search_2_stub, re_search_stub)
35545         (re_copy_regs, prune_impossible_nodes, check_matching)
35546         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
35547         (free_fail_stack_return, sift_states_iter_mb)
35548         (sift_states_backward, build_sifted_states)
35549         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
35550         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
35551         (check_subexp_limits, sift_states_bkref, merge_state_array)
35552         (find_recover_state, transit_state, merge_state_with_log)
35553         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
35554         (transit_state_mb, transit_state_bkref, get_subexp)
35555         (get_subexp_sub, find_subexp_node, check_arrival)
35556         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
35557         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
35558         (check_node_accept_bytes, find_collation_sequence_value)
35559         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
35560         (acquire_init_state_context, check_halt_node_context)
35561         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
35562         (sub_epsilon_src_nodes): Likewise.
35563         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
35564         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
35565         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
35566         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
35567         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
35568         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
35569         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
35570         * sysdeps/posix/ttyname.c (getttyname): Likewise.
35571         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
35572         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
35573         (PREADV): Likewise.
35574         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
35575         (PREADV): Likewise.
35576         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
35577         (PWRITEV): Likewise.
35578         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
35579         (PWRITEV): Likewise.
35580         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
35581         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
35583 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35585         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
35586         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
35587         Remove internal_function.
35588         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
35589         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
35590         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
35591         (__deallocate_stack, __libc_pthread_init)
35592         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
35593         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
35594         (__libc_disable_asynccancel, __librt_disable_asynccancel):
35595         Likewise.
35596         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
35597         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
35598         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
35599         Likewise.
35600         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
35601         (__pthread_mutex_unlock_usercnt): Likewise.
35603 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35605         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
35606         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
35607         (fts_safe_changedir): Remove internal_function.
35608         * io/ftw.c (internal_function): Remove definition.
35609         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
35611 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35613         * inet/deadline.c (__deadline_current_time)
35614         (__deadline_from_timeval, __deadline_to_ms): Remove
35615         internal_function.
35616         * inet/getnameinfo.c (nrl_domainname): Likewise.
35617         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
35618         * inet/inet6_option.c (add_pad): Likewise.
35619         * inet/net-internal.h (__deadline_current_time)
35620         (__deadline_from_timeval, __deadline_to_ms): Likewise.
35621         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
35622         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
35623         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
35625 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
35627         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
35628         include <bits/nan.h>.
35629         * math/Makefile (headers): Remove bits/nan.h.
35630         * bits/nan.h: Remove.
35631         * sysdeps/ieee754/bits/nan.h: Likewise.
35632         * sysdeps/mips/bits/nan.h: Likewise.
35634         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
35635         not include <bits/inf.h>.
35636         * math/Makefile (headers): Remove bits/inf.h.
35637         * bits/inf.h: Remove.
35638         * sysdeps/ieee754/bits/inf.h: Likewise.
35640         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
35641         bits/huge_vall.h or bits/huge_val_flt128.h.
35642         (HUGE_VAL): Define directly here.
35643         [__USE_ISOC99] (HUGE_VALF): Likewise.
35644         [__USE_ISOC99] (HUGE_VALL): Likewise.
35645         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35646         (HUGE_VAL_F128): Likewise.
35647         * math/Makefile (headers): Remove bits/huge_val.h,
35648         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
35649         * bits/huge_val.h: Remove.
35650         * bits/huge_val_flt128.h: Likewise.
35651         * bits/huge_valf.h: Likewise.
35652         * bits/huge_vall.h: Likewise.
35653         * sysdeps/ia64/bits/huge_vall.h: Likewise.
35654         * sysdeps/ieee754/bits/huge_val.h: Likewise.
35655         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
35656         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
35657         * sysdeps/sh/bits/huge_val.h: Likewise.
35658         * sysdeps/sparc/bits/huge_vall.h: Likewise.
35659         * sysdeps/x86/bits/huge_vall.h: Likewise.
35661 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35663         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
35664         internal_function.
35665         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
35666         Likewise.
35667         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
35668         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
35669         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
35670         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
35671         * elf/dl-fini.c (_dl_sort_fini): Likewise.
35672         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
35673         * elf/dl-libc.c (dlerror_run): Likewise.
35674         * elf/dl-load.c (add_name_to_object, decompose_rpath)
35675         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
35676         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
35677         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
35678         Likewise.
35679         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
35680         (_dl_higher_prime_number, _dl_strtoul): Likewise.
35681         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
35682         * elf/dl-profile.c (_dl_start_profile): Likewise.
35683         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
35684         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
35685         Likewise.
35686         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
35687         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
35688         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
35689         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
35690         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
35691         (_dl_allocate_tls_storage): Likewise.
35692         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
35693         (_dl_check_all_versions): Likewise.
35694         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
35695         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
35696         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
35697         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35698         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
35699         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
35700         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
35701         internal_function from __dl_start.
35702         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
35703         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
35704         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
35705         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
35706         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
35707         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
35708         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
35709         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
35710         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
35711         (_dl_next_ld_env_entry, _dl_important_hwcaps)
35712         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
35713         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
35714         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
35715         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
35716         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
35717         Likewise.
35718         (struct rtld_global_ro): Remove internal_function from the
35719         _dl_lookup_symbol_x member.
35720         (_dl_symbol_value): Remove.  No longer defined anywhere.
35721         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
35722         internal_function.
35723         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35724         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
35725         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
35726         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
35727         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
35728         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
35729         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
35730         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
35731         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
35732         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
35733         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35734         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
35736 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35738         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
35739         Remove internal_function.
35740         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35741         Likewise.
35742         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35743         Likewise.
35745 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35747         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
35748         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
35749         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
35751 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35753         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
35754         (__gai_enqueue_request): Remove internal_function.
35755         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
35756         (__gai_remove_request, __gai_notify, __gai_notify_only)
35757         (__gai_sigqueue): Likewise.
35758         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
35759         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
35760         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
35761         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
35762         Likewise.
35764 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35766         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
35767         * include/dirent.h (__opendirat, __getdents, __getdents64)
35768         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
35769         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
35770         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35771         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
35772         Likewise.
35773         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
35775 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35777         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
35778         internal_function.
35779         (GETCWD_RETURN_TYPE): Likewise.
35781 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35783         * include/time.h (__tz_compute, __strptime_internal): Remove
35784         internal_function.
35785         * time/strptime_l.c (__strptime_internal): Likewise.
35786         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
35788 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35790         * iconv/gconv.c (__gconv): Remove internal_function.
35791         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
35792         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
35793         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
35794         (__gconv_release_cache): Likewise.
35795         * iconv/gconv_close.c (__gconv_close): Likewise.
35796         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
35797         (read_conf_file, __gconv_get_path): Likewise.
35798         * iconv/gconv_db.c (derivation_lookup, add_derivation)
35799         (__gconv_release_step, gen_steps, increment_counter)
35800         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
35801         (__gconv_close_transform, free_modules_db): Likewise.
35802         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
35803         Likewise.
35804         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
35805         (__gconv_find_transform, __gconv_lookup_cache)
35806         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
35807         (__gconv_close_transform, __gconv_release_cache)
35808         (__gconv_loaded_object, __gconv_release_shlib)
35809         (__gconv_compare_alias): Likewise.
35810         * iconv/gconv_open.c (__gconv_open): Likewise.
35811         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
35812         * iconv/iconvconfig.c (add_module): Likewise.
35813         * intl/dcigettext.c (plural_lookup, guess_category_value)
35814         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
35815         * intl/eval-plural.h (plural_eval): Likewise.
35816         * intl/finddomain.c (_nl_find_domain): Likewise.
35817         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
35818         (_nl_load_domain, _nl_find_msg): Likewise.
35819         (internal_function): Remove definition.
35820         * intl/loadinfo.h (internal_function): Likewise.
35821         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
35822         internal_function.
35823         * intl/localealias.c (internal_function): Remove definition.
35824         (read_alias_file): Remove internal_function.
35825         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
35826         * intl/plural-exp.h (internal_function): Remove definition.
35827         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
35828         internal_function.
35829         * intl/plural.c: Regenerate.
35830         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
35831         * locale/coll-lookup.c (__collidx_table_lookup)
35832         (__collseq_table_lookup): Likewise.
35833         * locale/coll-lookup.h (__collidx_table_lookup)
35834         (__collseq_table_lookup): Likewise.
35835         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
35836         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35837         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
35838         (_nl_unload_locale): Likewise.
35839         * locale/localeinfo.h (struct __locale_data): Remove
35840         internal_function from cleanup member.
35841         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
35842         (_nl_remove_locale, _nl_load_locale_from_archive)
35843         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
35844         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
35845         (_nl_cleanup_time): Remove internal_function.
35846         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
35847         (_nl_parse_alt_digit): Likewise.
35848         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
35849         (_nl_select_era_entry): Likewise.
35850         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
35851         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35852         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35853         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35854         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35856 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35858         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
35859         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
35860         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
35861         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
35862         Likewise.
35863         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
35864         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
35865         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
35866         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35867         Likewise.
35868         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
35870 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35872         * misc/getttyent.c (skip, value): Remove internal_function.
35873         * misc/syslog.c (openlog_internal): Likewise.
35874         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
35876 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35878         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
35879         (__nss_rewrite_field): Remove internal_function.
35880         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35881         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35882         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35883         * nss/nsswitch.c (nss_parse_file, nss_getline)
35884         (nss_parse_service_list, nss_new_service): Likewise.
35885         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
35886         * nss/valid_field.c (__nss_valid_field): Likewise.
35887         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
35889 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35891         * malloc/arena.c (__malloc_fork_lock_parent)
35892         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
35893         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
35894         internal_function from defintions.
35895         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
35896         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
35897         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
35898         internal_function from declarations.
35899         * malloc/malloc.c (internal_function): Do not define.
35900         (mem2mem_check): Remove internal_function from declaration.
35901         (munmap_chunk, mremap_chunk): Remove internal_function.
35902         * malloc/mtrace.c (tr_where): Likewise.
35904 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35906         * include/rpc/pmap_clnt.h (__get_socket): Remove
35907         internal_function.
35908         * sunrpc/auth_des.c (synchronize): Likewise.
35909         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
35910         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
35911         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
35912         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
35913         (key_call): Likewise.
35914         * sunrpc/pm_getport.c (__get_socket): Likewise.
35915         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
35916         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
35917         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
35918         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
35919         (invalidate): Likewise.
35920         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
35921         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
35922         (set_input_fragment, get_input_bytes): Likewise.
35924 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35926         * malloc/malloc.c (_int_free): Remove locked variable and related
35927         asserts.
35929 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
35931         [BZ #22051]
35932         * Makerules (build-module-helper-objlist): Filter out
35933         $(elf-objpfx)sofini.os.
35934         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35935         needed.
35937 2017-08-31  Florian Weimer  <fweimer@redhat.com>
35939         * libio/fcloseall.c: Assume weak_alias is defined.
35940         * libio/feof.c: Likewise.
35941         * libio/fileno.c: Likewise.
35942         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35943         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35944         definitions.
35945         (_IO_file_open): Call __open directly.
35946         (_IO_new_file_sync): Assume ESPIPE is defined.
35947         (_IO_file_seekoff_maybe_mmap): Call __read directly.
35948         (_IO_new_file_write): Call __write directly.
35949         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35950         * libio/ftello64.c (__ftello64): Assume EIO is defined.
35951         * libio/genops.c: Assume _LIBC is defined.
35952         (save_for_backup): Remove internal_function.
35953         * libio/getc.c: Assume weak_alias is defined.
35954         * libio/getwc.c: Likewise.
35955         * libio/iofclose.c: Assume _LIBC is defined.
35956         * libio/iofdopen.c: Likewise.
35957         (_IO_fcntl): Remove macro definition.
35958         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35959         Call __fcntl directly.
35960         * libio/iofflush.c: Assume weak_alias is defined.
35961         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35962         defined.
35963         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35964         * libio/iofgets.c: Likewise.
35965         * libio/iofopen.c: Assume _LIBC is defined.
35966         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35967         * libio/iofputs.c: Assume weak_alias is defined.
35968         * libio/iofread.c: Likewise.
35969         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35970         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35971         * libio/ioftell.c: Assume weak_alias is defined.
35972         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35973         * libio/iofwide.c: Assume _LIBC is defined.
35974         (_IO_fwide): Drop SHARED conditional because it is implied by
35975         SHLIB_COMPAT.
35976         * libio/iofwrite.c: Assume weak_alias is defined.
35977         * libio/iogetdelim.c: Likewise.
35978         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35979         * libio/iogetwline.c (wmemcpy): Remove macro definition.
35980         (_IO_getwline): Call __wmemcpy directly.
35981         * libio/iopopen.c: Assume _LIBC is defined.
35982         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35983         (_IO_close): Remove macro definitions.
35984         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35985         _exit directly.
35986         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35987         directly.
35988         * libio/ioputs.c: Assume weak_alias is defined.
35989         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35990         * libio/iosetbuffer.c: Assume weak_alias is defined.
35991         * libio/iosetvbuf.c: Likewise.
35992         * libio/ioungetc.c: Likewise.
35993         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35994         libc_hidden_def, libc_hidden_weak, NULL are defined.
35995         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35996         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35997         defined.
35998         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35999         definitions.
36000         (_IO_old_file_init_internal): Drop SHARED conditional because it
36001         is implied by SHLIB_COMPAT.
36002         (_IO_old_file_fopen): Call __open directly.
36003         (_IO_old_file_sync): Assume ESPIPE is defined.
36004         (_IO_old_file_write): Call __write directly.
36005         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
36006         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
36007         Call __fcntl directly.
36008         * libio/oldiofgetpos.c: Assume weak_alias is defined.
36009         (_IO_old_fgetpos): Assume EIO is defined.
36010         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
36011         (_IO_old_fgetpos64): Assume EIO is defined.
36012         * libio/oldiofsetpos.c: Assume weak_alias is defined.
36013         (_IO_old_fsetpos): Assume EIO is defined.
36014         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
36015         (_IO_old_fsetpos64): Assume EIO is defined.
36016         * libio/oldiopopen.c:  Assume _LIBC is defined.
36017         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
36018         (_IO_close): Remove macro definitions.
36019         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
36020         directly.
36021         (_IO_old_proc_close): Call __close, __waitpid directly.
36022         * libio/put.c: Assume weak_alias is defined.
36023         * libio/stdfiles.c: Assume _LIBC is defined.
36024         * libio/stdio.c: Likewise.
36025         * libio/wfileops.c: Likewise.
36026         (_IO_wfile_sync): Assume ESPIPE is defined.
36027         * libio/wgenops.c: Assume _LIBC is defined.
36028         (save_for_wbackup): Remove internal_function.
36030 2017-08-31  Florian Weimer  <fweimer@redhat.com>
36032         * malloc/malloc.c (top_check): Change return type to void.  Remove
36033         internal_function.
36034         * malloc/hooks.c (top_check): Likewise.
36035         (malloc_check, realloc_check, memalign_check): Adjust.
36037 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
36039         [BZ #21457]
36040         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
36041         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
36042         sigcontext and namespace requirements.
36043         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
36044         * sysdeps/m68k/sys/ucontext.h: Likewise.
36045         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
36046         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
36047         <bits/sigcontext.h>.
36048         (__ctx): Define earlier.
36049         (mcontext_t): Define structure contents rather than using struct
36050         sigcontext.
36051         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
36052         __glibc_reserved1 instead of __reserved.
36053         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
36054         <bits/sigcontext.h>.
36055         (__ctx): Define earlier.
36056         (mcontext_t): Define structure contents rather than using struct
36057         sigcontext.
36058         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
36059         mcontext_t instead of struct sigcontext.
36060         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
36061         <bits/sigcontext.h>.
36062         (__ctx): Define earlier.
36063         (mcontext_t): Define structure contents rather than using struct
36064         sigcontext.
36065         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
36066         <bits/sigcontext.h>.
36067         (__ctx): Define earlier.
36068         (mcontext_t): Define structure contents rather than using struct
36069         sigcontext.
36070         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
36071         mcontext_t instead of struct sigcontext.
36072         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
36073         mcontext_t instead of struct sigcontext.
36074         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
36075         <bits/sigcontext.h>.
36076         (__ctx): New macro.
36077         (struct __ia64_fpreg_mcontext): New type.
36078         (mcontext_t): Define structure contents rather than using struct
36079         sigcontext.
36080         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
36081         (uc_sigmask): Define using __ctx.
36082         (uc_stack): Likewise.
36083         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
36084         <bits/sigcontext.h>.
36085         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
36086         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
36087         <bits/sigcontext.h>.
36088         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
36089         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
36090         <bits/sigcontext.h>.
36091         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
36092         <bits/sigcontext.h>.
36093         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
36094         <bits/sigcontext.h>.
36095         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
36096         <bits/sigcontext.h>.
36097         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
36098         <bits/sigcontext.h>.
36099         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
36100         <bits/sigcontext.h>.
36101         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
36102         <bits/sigcontext.h>.
36103         (__ctx): Define earlier.
36104         (mcontext_t): Define structure contents rather than using struct
36105         sigcontext.
36106         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
36107         <bits/sigcontext.h>.  Include <bits/types.h>.
36108         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
36109         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
36110         (test-xfail-XPG42/ucontext.h/conform): Likewise.
36111         (test-xfail-UNIX98/signal.h/conform): Likewise.
36112         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36113         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36114         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36115         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36116         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36117         (test-xfail-POSIX2008/signal.h/conform): Likewise.
36118         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36119         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36120         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36122 2017-08-30  Florian Weimer  <fweimer@redhat.com>
36124         * malloc/dynarray_emplace_enlarge.c
36125         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
36126         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
36127         * malloc/tst-dynarray.c (test_long_overflow): New function.
36128         (do_test): Call it.
36130 2017-08-30  Florian Weimer  <fweimer@redhat.com>
36132         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
36133         (set_arena_corrupt): Remove definitions.
36134         (mtrim): Do not check for corrupt arena.
36135         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
36136         Likewise.
36138 2017-08-30  Florian Weimer  <fweimer@redhat.com>
36140         [BZ #21754]
36141         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
36142         check_action.
36143         (ptmalloc_init): Do not set or use check_action.
36144         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
36145         call to malloc_printerr.  Remove return statement.
36146         (free_check): Likewise.  Remove arena unlock.
36147         (top_check): Update comment.  Adjust call to malloc_printerr.
36148         Remove heap repair code.
36149         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
36150         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
36151         (sysmalloc): Adjust call to malloc_printerr.
36152         (munmap_chunk, __libc_realloc): Likewise.  Remove return
36153         statement.
36154         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
36155         Remove errout label and corresponding gotos.
36156         (_int_free): Likewise.  Remove arena unlock.
36157         (do_set_mallopt_check): Do not set check_action.
36158         (malloc_printerr): Adjust parameter list.  Do not mark arena as
36159         corrupt.
36160         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
36161         comment.
36162         * manual/probes.texi (Memory Allocation Probes): Remove
36163         memory_mallopt_check_action.
36165 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
36167         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
36168         Use pointer to uint64_t instead of long int for sp.
36170 2017-08-30  Florian Weimer  <fweimer@redhat.com>
36172         [BZ #21754]
36173         * malloc/malloc.c (malloc_printerr): Always terminate the process,
36174         without printing a backtrace.  Do not leak any information in the
36175         error message.
36176         * manual/memory.texi (Heap Consistency Checking): Update.
36177         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
36179 2017-08-30  Florian Weimer  <fweimer@redhat.com>
36181         Do not scale NPTL tests with available number of CPUs.
36182         * nptl/tst-cond16.c (count): Set to constant value of 8.
36183         * nptl/tst-cond18.c (count): Likewise.
36185 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
36187         [BZ #22035]
36188         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
36189         Define to take a second argument that is a macro that
36190         concatentates a suffix, not the suffix itself.
36191         (__CONCAT_d): New macro.
36192         (__CONCAT_f): Likewise.
36193         (__CONCAT_l): Likewise.
36195 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
36197         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
36198         by child.
36200 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
36201             Aurelien Jarno  <aurelien@aurel32.net>
36202             Maciej W. Rozycki  <macro@imgtec.com>
36204         [BZ #21956]
36205         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
36206         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
36207         `mips16-syscall6' and `mips16-syscall7'.
36208         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
36209         (CFLAGS-mips16-syscall7.c): Remove.
36210         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
36211         Remove `__mips16_syscall5', `__mips16_syscall6' and
36212         `__mips16_syscall7'.
36213         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
36214         (__mips16_syscall0): Rename `__mips16_syscall_return' to
36215         `__mips_syscall_return'.
36216         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
36217         (__mips16_syscall1): Likewise.
36218         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
36219         (__mips16_syscall2): Likewise.
36220         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
36221         (__mips16_syscall3): Likewise.
36222         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
36223         (__mips16_syscall4): Likewise.
36224         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
36225         Remove.
36226         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
36227         Remove.
36228         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
36229         Remove.
36230         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
36231         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
36232         `__mips16_syscall5'.  Remove prototype.
36233         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
36234         `__mips16_syscall6'.  Remove prototype.
36235         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
36236         `__mips16_syscall7'.  Remove prototype.
36237         (__nomips16, __mips16_syscall_return): Move to...
36238         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
36239         (__nomips16, __mips_syscall_return): ... here.
36240         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
36241         `__mips16_syscall_return' to `__mips_syscall_return'.
36242         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
36243         `internal_syscall##nr'.
36244         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
36245         `internal_syscall##nr'.
36246         (FORCE_FRAME_POINTER): Remove.
36247         (__mips_syscall5): New prototype.
36248         (internal_syscall5): Rewrite to call `__mips_syscall5'.
36249         (__mips_syscall6): New prototype.
36250         (internal_syscall6): Rewrite to call `__mips_syscall6'.
36251         (__mips_syscall7): New prototype.
36252         (internal_syscall7): Rewrite to call `__mips_syscall7'.
36253         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
36254         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
36255         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
36256         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
36257         (sysdep_routines): Add libc-do-syscall.
36258         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
36259         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
36261 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
36263         [BZ #21672]
36264         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
36265         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
36266         (advise_stack_range): New function.
36267         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
36268         stack non required to advise_stack_range at allocatestack.c
36270 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
36272         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
36274 2017-08-29  Florian Weimer  <fweimer@redhat.com>
36276         [BZ #22026]
36277         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
36278         __end_fct.  Mangle __end_fct after setting it to NULL.
36279         * iconv/Makefile (tests): Add tst-gconv-init-failure.
36280         (modules-names, modules-names-tests): Add
36281         tst-gconv-init-failure-mod.
36282         (gconv-modules): New target.
36283         (tst-gconv-init-failure-mod.so): Link against libsupport.
36284         (tst-gconv-init-failure): Depend on gconv-modules,
36285         tst-gconv-init-failure-mod.so.
36286         * iconv/tst-gconv-init-failure-mod.c: New file.
36287         * iconv/tst-gconv-init-failure.c: Likewise.
36288         * iconv/test-gconv-modules: Likewise.
36290 2017-08-29  Florian Weimer  <fweimer@redhat.com>
36292         [BZ #22025]
36293         * iconv/gconv_db.c (free_derivation): Remove redundant
36294         parentheses.
36295         (gen_steps): Unconditionally mangle __btowc_fct after
36296         initialization.
36297         (increment_counter): Likewise.  Do not call init_fct for internal
36298         modules.
36300 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
36302         [BZ #22028]
36303         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
36304         (_MSUF_): Remove macro.
36305         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
36306         Likewise.
36307         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
36308         (__REDIRFROM_X): New macro.
36309         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
36310         Likewise.
36311         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
36312         (__REDIRTO_X): Likewise.
36313         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
36314         arguments.
36315         (__MATH_REDIRCALL_2): Likewise.
36316         (__MATH_REDIRCALL_INTERNAL): Likewise.
36317         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
36318         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
36319         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
36320         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
36321         * math/test-finite-macros.c: New file.
36322         * math/Makefile (tests): Add test-finite-macros.
36323         (CFLAGS-test-finite-macros.c): New variable.
36325 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
36326             Jeff Law  <law@redhat.com>
36328         [BZ #22025]
36329         Mangle NULL pointers in iconv/gconv.
36330         * iconv/gconv_cache.c (find_module): Demangle init_fct before
36331         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
36332         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
36333         is non-NULL before demangling the end_fct.  Check for NULL
36334         end_fct after demangling.
36335         (__gconv_release_step): Demangle the end_fct before checking
36336         it for NULL.   Remove assert on __shlibc_handle != NULL.
36337         (gen_steps): Don't check btowc_fct for NULL before mangling.
36338         Demangle init_fct before checking for NULL.
36339         (increment_counter): Likewise.
36340         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
36341         end_fct for NULL before mangling.
36342         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
36343         for NULL.
36345 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
36347         [BZ #21971]
36348         * locale/iso-639.def: add Morisyen.
36350 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
36352         [BZ #21930]
36353         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
36354         (iszero): New C++ implementation that does not use
36355         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
36356         signaling nans are enabled, since __builtin_types_compatible_p
36357         is a C-only feature.
36358         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
36359         defined, include ieee754_float128.h for access to the union and
36360         member ieee854_float128.ieee.
36361         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
36362         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
36363         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36364         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
36365         options of test-math-zero on powerpc64le.
36367 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
36369         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
36370         Change double to float.
36372 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
36374         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
36375         unconditional.
36376         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
36377         conditional code; define contents only for [LIBM_SVID_COMPAT].
36379 2017-08-28  Florian Weimer  <fweimer@redhat.com>
36381         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
36382         (abi-lp64_be-options): Remove.
36383         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
36384         (abi-hard-options): Likewise.
36385         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
36386         (abi-o32_hard-options, abi-o32_soft_2008-options)
36387         (abi-o32_hard_2008-options, abi-n32_soft-options)
36388         (abi-n32_hard-options, abi-n32_soft_2008-options)
36389         (abi-n32_hard_2008-options, abi-n64_soft-options)
36390         (abi-n64_hard-options, abi-n64_soft_2008-options)
36391         (abi-n64_hard_2008-options): Likewise.
36392         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
36393         (abi-64-v1-options, abi-64-v2-options): Likewise.
36394         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
36395         (abi-64-options): Likewise.
36396         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
36397         (abi-64-options): Likewise.
36398         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
36399         (abi-64-options): Likewise.
36400         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
36401         (abi-64-options, abi-x32-options): Likewise.
36403 2017-08-28  Florian Weimer  <fweimer@redhat.com>
36405         Store supported list of SYS_* system calls in the source tree.
36406         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
36407         (bits/syscall.h): Generate from list file.
36408         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
36409         [$(subdir) = misc] (tests): Add tst-syscall-list.
36410         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
36411         [$(subdir) = misc] (tst-syscall-list-macros.list)
36412         [$(subdir) = misc] (tst-syscall-list-nr.list)
36413         (tst-syscall-list-sys.list): Helper targets for new
36414         tst-syscall-list test.
36415         [$(subdir) = misc] (tst-syscall-list.out): Run test script
36416         tst-syscall-list.sh.
36417         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
36418         target. Do not include bits/syscall.d.
36419         [$(subdir) = misc] (generated): Do not update.
36420         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
36421         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
36422         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
36423         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
36425 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
36427         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
36428         (tst-cxa_atexit, tst-on_exit): Likewise.
36429         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
36430         tst-cxa_atexit, and tst-on_exit.
36431         * stdlib/tst-atexit-common.c: New file.
36432         * stdlib/tst-atexit.c: New file.
36433         * stdlib/tst-at_quick_exit.c: New file.
36434         * stdlib/tst-cxa_atexit.c: New file.
36435         * stdlib/tst-on_exit.c: New file.
36437 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36439         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
36440         * mach/stack_chk_fail_local.c: New file.
36441         * hurd/stack_chk_fail_local.c: New file.
36442         * mach/Machrules ($(interface-library)-routines): Add
36443         stack_chk_fail_local.
36444         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
36445         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
36446         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
36447         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
36448         * hurd/Makefile (CFLAGS-hurdstartup.o,
36449         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
36451 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
36453         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
36454         (index_cpu_*, index_arch_*): Removed.
36456 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
36458         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
36459         Use uint64_t instead of unsigned long.
36461 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
36463         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
36464         [__HAVE_DISTINCT_FLOAT128].
36466         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
36467         of <bits/math-finite.h>.
36468         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
36469         inclusion of <bits/math-finite.h>.
36470         * math/bits/math-finite.h (__REDIRTO_X): Do not define
36471         conditionally on [__MATH_DECLARING_LDOUBLE && defined
36472         __NO_LONG_DOUBLE_MATH].
36473         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
36474         (__MATH_REDIRCALL_2): Likewise.
36475         (__MATH_REDIRCALL_INTERNAL): Likewise.
36476         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
36477         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
36478         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
36480         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
36481         Remove file.
36482         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
36483         Likewise.
36484         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
36485         Likewise.
36486         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
36487         Likewise.
36488         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
36489         Likewise.
36490         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
36491         Likewise.
36492         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36493         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36494         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36495         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36496         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
36497         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
36498         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
36499         w_sqrtf_compat-ppc32.
36501 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
36503         * math/math.h [defined __cplusplus] (issignaling): In the long
36504         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
36505         is not defined.  Call __issignaling, otherwise.
36507 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
36509         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
36510         syscall definitions and replace __builtin_expect with __glibc_likely.
36511         * sysdeps/unix/syscall-template.S: Update comment about cancellable
36512         syscall.
36513         (SYSCALL_CANCELLABLE): Removedefinition
36514         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
36515         definition.
36516         (PSEUDO_END): Likewise.
36517         [IS_IN (libpthread)] (CENABLE): Likewise.
36518         [IS_IN (libpthread)] (CDISABLE): Likewise.
36519         [IS_IN (libc)] (CENABLE): Likewise.
36520         [IS_IN (libc)] (CENABLE): Likewise.
36521         [IS_IN (librt)] (CDISABLE): Likewise.
36522         [IS_IN (librt)] (CDISABLE): Likewise.
36523         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36524         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
36525         definition.
36526         (PSEUDO_END): Likewise.
36527         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
36528         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
36529         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
36530         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
36531         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
36532         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
36533         (CENABLE): Likewise.
36534         (CDISABLE): Likewise.
36535         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36536         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
36537         defintion.
36538         (PSEUDO_END): Likewise.
36539         [IS_IN (libpthread)] (CENABLE): Likewise.
36540         [IS_IN (libpthread)] (CDISABLE): Likewise.
36541         [IS_IN (libc)] (CENABLE): Likewise.
36542         [IS_IN (libc)] (CENABLE): Likewise.
36543         [IS_IN (librt)] (CDISABLE): Likewise.
36544         [IS_IN (librt)] (CDISABLE): Likewise.
36545         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36546         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
36547         definition.
36548         (PSEUDO_END): Likewise.
36549         [IS_IN (libpthread)] (CENABLE): Likewise.
36550         [IS_IN (libpthread)] (CDISABLE): Likewise.
36551         [IS_IN (libc)] (CENABLE): Likewise.
36552         [IS_IN (libc)] (CENABLE): Likewise.
36553         [IS_IN (librt)] (CDISABLE): Likewise.
36554         [IS_IN (librt)] (CDISABLE): Likewise.
36555         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36556         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
36557         definition.
36558         (PSEUDO_END): Likewise.
36559         [IS_IN (libpthread)] (CENABLE): Likewise.
36560         [IS_IN (libpthread)] (CDISABLE): Likewise.
36561         [IS_IN (libc)] (CENABLE): Likewise.
36562         [IS_IN (libc)] (CENABLE): Likewise.
36563         [IS_IN (librt)] (CDISABLE): Likewise.
36564         [IS_IN (librt)] (CDISABLE): Likewise.
36565         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36566         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
36567         definition.
36568         (PSEUDO_END): Likewise.
36569         [IS_IN (libpthread)] (CENABLE): Likewise.
36570         [IS_IN (libpthread)] (CDISABLE): Likewise.
36571         [IS_IN (libc)] (CENABLE): Likewise.
36572         [IS_IN (libc)] (CENABLE): Likewise.
36573         [IS_IN (librt)] (CDISABLE): Likewise.
36574         [IS_IN (librt)] (CDISABLE): Likewise.
36575         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36576         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
36577         definition.
36578         (PSEUDO_END): Likewise.
36579         [IS_IN (libpthread)] (CENABLE): Likewise.
36580         [IS_IN (libpthread)] (CDISABLE): Likewise.
36581         [IS_IN (libc)] (CENABLE): Likewise.
36582         [IS_IN (libc)] (CENABLE): Likewise.
36583         [IS_IN (librt)] (CDISABLE): Likewise.
36584         [IS_IN (librt)] (CDISABLE): Likewise.
36585         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36586         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
36587         definition.
36588         (PSEUDO_END): Likewise.
36589         [IS_IN (libpthread)] (CENABLE): Likewise.
36590         [IS_IN (libpthread)] (CDISABLE): Likewise.
36591         [IS_IN (libc)] (CENABLE): Likewise.
36592         [IS_IN (libc)] (CENABLE): Likewise.
36593         [IS_IN (librt)] (CDISABLE): Likewise.
36594         [IS_IN (librt)] (CDISABLE): Likewise.
36595         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36596         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
36597         Remove definition.
36598         (PSEUDO_END): Likewise.
36599         [IS_IN (libpthread)] (CENABLE): Likewise.
36600         [IS_IN (libpthread)] (CDISABLE): Likewise.
36601         [IS_IN (libc)] (CENABLE): Likewise.
36602         [IS_IN (libc)] (CENABLE): Likewise.
36603         [IS_IN (librt)] (CDISABLE): Likewise.
36604         [IS_IN (librt)] (CDISABLE): Likewise.
36605         (SINGLE_THREAD_P): Likewise.
36606         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
36607         definition.
36608         (PSEUDO_END): Likewise.
36609         [IS_IN (libpthread)] (CENABLE): Likewise.
36610         [IS_IN (libpthread)] (CDISABLE): Likewise.
36611         [IS_IN (libc)] (CENABLE): Likewise.
36612         [IS_IN (libc)] (CENABLE): Likewise.
36613         [IS_IN (librt)] (CDISABLE): Likewise.
36614         [IS_IN (librt)] (CDISABLE): Likewise.
36615         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36616         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
36617         definition.
36618         (PSEUDO_END): Likewise.
36619         [IS_IN (libpthread)] (CENABLE): Likewise.
36620         [IS_IN (libpthread)] (CDISABLE): Likewise.
36621         [IS_IN (libc)] (CENABLE): Likewise.
36622         [IS_IN (libc)] (CENABLE): Likewise.
36623         [IS_IN (librt)] (CDISABLE): Likewise.
36624         [IS_IN (librt)] (CDISABLE): Likewise.
36625         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36626         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
36627         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
36628         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
36629         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
36630         definition.
36631         (PSEUDO_END): Likewise.
36632         [IS_IN (libpthread)] (CENABLE): Likewise.
36633         [IS_IN (libpthread)] (CDISABLE): Likewise.
36634         [IS_IN (libc)] (CENABLE): Likewise.
36635         [IS_IN (libc)] (CENABLE): Likewise.
36636         [IS_IN (librt)] (CDISABLE): Likewise.
36637         [IS_IN (librt)] (CDISABLE): Likewise.
36638         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36639         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
36640         definition.
36641         (PSEUDO_END): Likewise.
36642         [IS_IN (libpthread)] (CENABLE): Likewise.
36643         [IS_IN (libpthread)] (CDISABLE): Likewise.
36644         [IS_IN (libc)] (CENABLE): Likewise.
36645         [IS_IN (libc)] (CENABLE): Likewise.
36646         [IS_IN (librt)] (CDISABLE): Likewise.
36647         [IS_IN (librt)] (CDISABLE): Likewise.
36648         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36649         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
36650         definition.
36651         (PSEUDO_END): Likewise.
36652         [IS_IN (libpthread)] (CENABLE): Likewise.
36653         [IS_IN (libpthread)] (CDISABLE): Likewise.
36654         [IS_IN (libc)] (CENABLE): Likewise.
36655         [IS_IN (libc)] (CENABLE): Likewise.
36656         [IS_IN (librt)] (CDISABLE): Likewise.
36657         [IS_IN (librt)] (CDISABLE): Likewise.
36658         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36659         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
36660         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
36661         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
36662         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
36663         definition.
36664         (PSEUDO_END): Likewise.
36665         [IS_IN (libpthread)] (CENABLE): Likewise.
36666         [IS_IN (libpthread)] (CDISABLE): Likewise.
36667         [IS_IN (libc)] (CENABLE): Likewise.
36668         [IS_IN (libc)] (CENABLE): Likewise.
36669         [IS_IN (librt)] (CDISABLE): Likewise.
36670         [IS_IN (librt)] (CDISABLE): Likewise.
36671         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36672         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
36673         definition.
36674         (PSEUDO_END): Likewise.
36675         [IS_IN (libpthread)] (CENABLE): Likewise.
36676         [IS_IN (libpthread)] (CDISABLE): Likewise.
36677         [IS_IN (libc)] (CENABLE): Likewise.
36678         [IS_IN (libc)] (CENABLE): Likewise.
36679         [IS_IN (librt)] (CDISABLE): Likewise.
36680         [IS_IN (librt)] (CDISABLE): Likewise.
36681         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36683 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
36685         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
36687 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
36689         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
36691 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
36693         [BZ #21982]
36694         * string/stratcliff.c (do_test): Declare size, nchars, inner,
36695         middle and outer with size_t instead of int.  Repleace %d and
36696         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
36697         "MAX (outer, nchars - 64)" to support unsigned outer and
36698         nchars.  Also exit loop when outer == 0.
36700 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
36702         * include/fcntl.h (__fcntl_nocancel): Remove definition.
36703         * include/signal.h (__sigsuspend_nocancel): Likewise.
36704         * include/time.h (__nanosleep_nocancel): Likewise.
36705         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
36706         * login/utmp_file.c: Include non cancellable syscall header.
36707         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
36708         prototype.
36710 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
36712         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
36713         .byte sequences with AVX512F instructions.
36714         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
36715         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
36716         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
36717         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
36718         Likewise.
36719         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
36720         Likewise.
36722 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
36723             Steve Ellcey  <sellcey@cavium.com>
36725         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
36726         Use PTR_REG macro in cmp instruction.
36728 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
36730         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
36731         Change the return type of the ifunc resolver to match the return
36732         type of the target function.
36734 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
36736         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
36737         (preadv64): Likewise.
36738         (pwrite64(: Likewise.
36739         (pwritev64): Likewise.
36741         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
36742         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
36743         (LOAD_ARGS_0): Likewise.
36744         (LOAD_ARGS_1): Likewise.
36745         (LOAD_ARGS_2): Likewise.
36746         (LOAD_ARGS_3): Likewise.
36747         (LOAD_ARGS_4): Likewise.
36748         (LOAD_ARGS_5): Likewise.
36749         (LOAD_ARGS_6): Likewise.
36750         (LOAD_REGS_0): Likewise.
36751         (LOAD_REGS_1): Likewise.
36752         (LOAD_REGS_2): Likewise.
36753         (LOAD_REGS_3): Likewise.
36754         (LOAD_REGS_4): Likewise.
36755         (LOAD_REGS_5): Likewise.
36756         (LOAD_REGS_6): Likewise.
36757         (ASM_ARGS_0): Likewise.
36758         (ASM_ARGS_1): Likewise.
36759         (ASM_ARGS_2): Likewise.
36760         (ASM_ARGS_3): Likewise.
36761         (ASM_ARGS_4): Likewise.
36762         (ASM_ARGS_5): Likewise.
36763         (ASM_ARGS_6): Likewise.
36764         (LOAD_ARGS_TYPES_1): Likewise.
36765         (LOAD_ARGS_TYPES_2): Likewise.
36766         (LOAD_ARGS_TYPES_3): Likewise.
36767         (LOAD_ARGS_TYPES_4): Likewise.
36768         (LOAD_ARGS_TYPES_5): Likewise.
36769         (LOAD_ARGS_TYPES_6): Likewise.
36770         (LOAD_REGS_TYPES_1): Likewise.
36771         (LOAD_REGS_TYPES_2): Likewise.
36772         (LOAD_REGS_TYPES_3): Likewise.
36773         (LOAD_REGS_TYPES_4): Likewise.
36774         (LOAD_REGS_TYPES_5): Likewise.
36775         (LOAD_REGS_TYPES_6): Likewise.
36776         (TYPEFY): New define.
36777         (ARGIFY): Likewise.
36778         (internal_syscall0): Likewise.
36779         (internal_syscall1): Likewise.
36780         (internal_syscall2): Likewise.
36781         (internal_syscall3): Likewise.
36782         (internal_syscall4): Likewise.
36783         (internal_syscall5): Likewise.
36784         (internal_syscall6): Likewise.
36785         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
36786         (INTERNAL_SYSCALL_NCS): Remove define.
36787         (internal_syscall1): Add define.
36789 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
36791         * math/w_remainder_compat.c: Remove duplicate inclusion of
36792         math-svid-compat.h.
36793         * math/w_remainderf_compat.c: Likewise.
36794         * math/w_remainderl_compat.c: Likewise.
36796 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
36798         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36800 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
36802         [BZ #21684]
36803         * math/tgmath.h (__floating_type): Simplify definitions.
36804         (__real_integer_type): New macro.
36805         (__complex_integer_type): Likewise.
36806         (__expr_is_real): Likewise.
36807         (__tgmath_real_type_sub): Update comment to describe handling of
36808         complex types.
36809         (__tgmath_complex_type_sub): New macro.
36810         (__tgmath_complex_type): Likewise.
36811         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36812         (__TGMATH_CF128): Use __expr_is_real.
36813         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
36814         __expr_is_real.
36815         (__TGMATH_BINARY_REAL_IMAG): Likewise.
36816         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
36817         * math/gen-tgmath-tests.py (Type.create_type): Create complex
36818         integer types.
36820 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
36822         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
36823         macro.
36824         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
36825         alias.
36826         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
36827         Likewise.
36829         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
36830         nanosleep_not_cancel with __nanosleep_nocancel.
36831         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
36832         (__nanosleep_nocancel): New macro.
36833         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
36834         function.
36835         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
36836         macro.
36837         (__nanosleep_nocancel): New prototype.
36839         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
36840         pause_not_cancel with __pause_nocancel.
36841         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
36842         (__pause_nocancel): New macro.
36843         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
36844         macro.
36845         (__pause_nocancel): New prototype.
36846         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
36848 2017-08-22  Martin Sebor  <msebor@redhat.com>
36850         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
36851         to return a pointer to the same type as the target function.
36853 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
36855         [BZ #18822]
36856         [BZ #21986]
36857         * include/printf.h (__printf_fphex): Add attribute_hidden.
36858         (__guess_grouping): New prototype.
36859         * stdio-common/printf_fp.c (__guess_grouping): Removed.
36860         * stdio-common/reg-printf.c (__register_printf_specifier): Add
36861         libc_hidden_proto and libc_hidden_def.
36862         * stdlib/strfmon_l.c (__guess_grouping): Removed.
36863         (__vstrfmon_l): Remove the third argument passed to
36864         __guess_grouping.
36866 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
36868         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
36869         definition for issignaling that does not rely on __MATH_TG,
36870         since __MATH_TG uses __builtin_types_compatible_p, which is only
36871         available in C mode.
36872         (CFLAGS-test-math-issignaling.cc): New variable.
36873         * math/Makefile [CXX] (tests): Add test-math-issignaling.
36874         * math/test-math-issignaling.cc: New test for C++ implementation
36875         of type-generic issignaling.
36876         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36877         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
36878         options of test-math-issignaling on powerpc64le.
36880 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
36882         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36883         building libc.a.
36884         (hidden_proto): Likewise.
36885         (hidden_tls_proto): Likewise.
36886         (__hidden_proto): Likewise.
36888 2017-08-22  Florian Weimer  <fweimer@redhat.com>
36890         math: Statically link tests of internal functionality.
36891         * math/Makefile (tests): Remove atest-exp, atest-sincos,
36892         atest-exp2.
36893         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
36894         (gmp-objs): Remove assignment.
36895         (atest-exp, atest-sincos, atest-exp2): Remove targets.
36897 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
36899         [BZ #21987]
36900         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
36901         and copy to ...
36902         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
36903         ... here.
36904         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
36905         ... and here.
36907         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
36908         variable definitions above inclusion of ../Rules.
36910 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
36912         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
36913         case calling __builtin_unreachable.
36915 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
36917         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
36918         __waitpid_nocancel.
36919         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
36920         (__waitpid_nocancel): New macro.
36921         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
36922         macro.
36923         (__waitpid_nocancel): Replace macro with a function.
36924         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36925         function.
36927         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36928         __fcntl_nocancel.
36929         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36930         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36932         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36933         __writev_nocancel_nostatus.
36934         (write_call_graph): Likewise.
36935         (write_bb_counts): Likewise.
36936         * resolv/herror.c (herror): Likewise.
36937         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36938         macro.
36939         (__writev_nocancel_nostatus): New macro.
36940         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36941         Remove macro.
36942         (__writev_nocancel_nostatus): New function.
36944 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
36946         Revert:
36947         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
36949         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36950         building libc.a.
36951         (hidden_proto): Likewise.
36952         (hidden_tls_proto): Likewise.
36953         (__hidden_proto): Likewise.
36955         [BZ #21973]
36956         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36957         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36959         Likewise.
36960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36961         Likewise.
36962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36963         Likewise.
36964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36965         Likewise.
36966         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36967         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36968         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36969         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36970         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36971         GLIBC_2.0 sqrtl symbol.
36973         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36974         [__USE_MISC] (_LIB_VERSION): Likewise.
36975         [__USE_MISC] (struct exception): Likewise.
36976         [__USE_MISC] (matherr): Likewise.
36977         [__USE_MISC] (DOMAIN): Likewise.
36978         [__USE_MISC] (SING): Likewise.
36979         [__USE_MISC] (OVERFLOW): Likewise.
36980         [__USE_MISC] (UNDERFLOW): Likewise.
36981         [__USE_MISC] (TLOSS): Likewise.
36982         [__USE_MISC] (PLOSS): Likewise.
36983         [__USE_MISC] (HUGE): Likewise.
36984         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36985         * math/math-svid-compat.h: New file.
36986         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36987         and matherrl.
36988         * include/math.h [!_ISOMAC] (__matherr): Remove.
36989         * manual/arith.texi (FP Exceptions): Do not document matherr.
36990         * math/Makefile (tests): Change test-matherr to test-matherr-3.
36991         (tests-internal): New variable.
36992         (install-lib): Do not add libieee.a.
36993         (non-lib.a): Likewise.
36994         (extra-objs): Do not add libieee.a and ieee-math.o.
36995         (CPPFLAGS-s_lib_version.c): Remove variable.
36996         ($(objpfx)libieee.a): Remove rule.
36997         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36998         * math/ieee-math.c: Remove.
36999         * math/libm-test-support.c (matherr): Remove.
37000         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
37001         and license notices.  Include <math-svid-compat.h> and
37002         <shlib-compat.h>.
37003         (matherr): Undefine as macro.  Use compat_symbol_reference.
37004         (_LIB_VERSION): Likewise.
37005         * math/test-matherr-2.c: New file.
37006         * math/test-matherr-3.c: Likewise.
37007         * sysdeps/generic/math_private.h (__kernel_standard): Remove
37008         declaration.
37009         (__kernel_standard_f): Likewise.
37010         (__kernel_standard_l): Likewise.
37011         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
37012         <math_private.h>.  Include <math-svid-compat.h>.
37013         (_LIB_VERSION): Undefine as macro.
37014         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
37015         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
37016         [LIBM_SVID_COMPAT], use compat_symbol.
37017         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
37018         <math_private.h>.  Include <math-svid-compat.h>.
37019         (matherr): Undefine as macro.
37020         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
37021         compat_symbol.
37022         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
37023         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
37024         compat_symbol_reference.
37025         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
37026         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
37027         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
37028         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
37029         (MATHERR_D): Remove declaration.
37030         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
37031         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
37032         [LIBM_BUILD] (pmatherrf): Likewise.
37033         [LIBM_BUILD] (pmatherr): Likewise.
37034         [LIBM_BUILD] (pmatherrl): Likewise.
37035         (DOMAIN): Likewise.
37036         (SING): Likewise.
37037         (OVERFLOW): Likewise.
37038         (UNDERFLOW): Likewise.
37039         (TLOSS): Likewise.
37040         (PLOSS): Likewise.
37041         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
37042         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
37043         compat_symbol.
37044         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
37045         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
37046         compat_symbol.
37047         * math/lgamma-compat.h: Include <math-svid-compat.h>.
37048         * math/w_acos_compat.c: Likewise.
37049         * math/w_acosf_compat.c: Likewise.
37050         * math/w_acosh_compat.c: Likewise.
37051         * math/w_acoshf_compat.c: Likewise.
37052         * math/w_acoshl_compat.c: Likewise.
37053         * math/w_acosl_compat.c: Likewise.
37054         * math/w_asin_compat.c: Likewise.
37055         * math/w_asinf_compat.c: Likewise.
37056         * math/w_asinl_compat.c: Likewise.
37057         * math/w_atan2_compat.c: Likewise.
37058         * math/w_atan2f_compat.c: Likewise.
37059         * math/w_atan2l_compat.c: Likewise.
37060         * math/w_atanh_compat.c: Likewise.
37061         * math/w_atanhf_compat.c: Likewise.
37062         * math/w_atanhl_compat.c: Likewise.
37063         * math/w_cosh_compat.c: Likewise.
37064         * math/w_coshf_compat.c: Likewise.
37065         * math/w_coshl_compat.c: Likewise.
37066         * math/w_exp10_compat.c: Likewise.
37067         * math/w_exp10f_compat.c: Likewise.
37068         * math/w_exp10l_compat.c: Likewise.
37069         * math/w_exp2_compat.c: Likewise.
37070         * math/w_exp2f_compat.c: Likewise.
37071         * math/w_exp2l_compat.c: Likewise.
37072         * math/w_fmod_compat.c: Likewise.
37073         * math/w_fmodf_compat.c: Likewise.
37074         * math/w_fmodl_compat.c: Likewise.
37075         * math/w_hypot_compat.c: Likewise.
37076         * math/w_hypotf_compat.c: Likewise.
37077         * math/w_hypotl_compat.c: Likewise.
37078         * math/w_j0_compat.c: Likewise.
37079         * math/w_j0f_compat.c: Likewise.
37080         * math/w_j0l_compat.c: Likewise.
37081         * math/w_j1_compat.c: Likewise.
37082         * math/w_j1f_compat.c: Likewise.
37083         * math/w_j1l_compat.c: Likewise.
37084         * math/w_jn_compat.c: Likewise.
37085         * math/w_jnf_compat.c: Likewise.
37086         * math/w_jnl_compat.c: Likewise.
37087         * math/w_lgamma_main.c: Likewise.
37088         * math/w_lgamma_r_compat.c: Likewise.
37089         * math/w_lgammaf_main.c: Likewise.
37090         * math/w_lgammaf_r_compat.c: Likewise.
37091         * math/w_lgammal_main.c: Likewise.
37092         * math/w_lgammal_r_compat.c: Likewise.
37093         * math/w_log10_compat.c: Likewise.
37094         * math/w_log10f_compat.c: Likewise.
37095         * math/w_log10l_compat.c: Likewise.
37096         * math/w_log2_compat.c: Likewise.
37097         * math/w_log2f_compat.c: Likewise.
37098         * math/w_log2l_compat.c: Likewise.
37099         * math/w_log_compat.c: Likewise.
37100         * math/w_logf_compat.c: Likewise.
37101         * math/w_logl_compat.c: Likewise.
37102         * math/w_pow_compat.c: Likewise.
37103         * math/w_powf_compat.c: Likewise.
37104         * math/w_powl_compat.c: Likewise.
37105         * math/w_remainder_compat.c: Likewise.
37106         * math/w_remainderf_compat.c: Likewise.
37107         * math/w_remainderl_compat.c: Likewise.
37108         * math/w_scalb_compat.c: Likewise.
37109         * math/w_scalbf_compat.c: Likewise.
37110         * math/w_scalbl_compat.c: Likewise.
37111         * math/w_sinh_compat.c: Likewise.
37112         * math/w_sinhf_compat.c: Likewise.
37113         * math/w_sinhl_compat.c: Likewise.
37114         * math/w_sqrt_compat.c: Likewise.
37115         * math/w_sqrtf_compat.c: Likewise.
37116         * math/w_sqrtl_compat.c: Likewise.
37117         * math/w_tgamma_compat.c: Likewise.
37118         * math/w_tgammaf_compat.c: Likewise.
37119         * math/w_tgammal_compat.c: Likewise.
37120         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
37121         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
37122         * sysdeps/ieee754/k_standard.c: Likewise.
37123         * sysdeps/ieee754/k_standardf.c: Likewise.
37124         * sysdeps/ieee754/k_standardl.c: Likewise.
37125         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
37126         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
37127         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
37128         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
37129         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
37130         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
37131         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
37132         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
37133         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
37134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
37135         Likewise.
37136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
37137         Likewise.
37138         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
37139         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
37140         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
37141         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
37143 2017-08-21  Florian Weimer  <fweimer@redhat.com>
37145         [BZ #21864]
37146         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
37147         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
37148         Move before inclusion of ../Rules.
37150 2017-08-21  Florian Weimer  <fweimer@redhat.com>
37152         [BZ #21972]
37153         * assert/assert.h (assert): Use static_cast (bool) for C++.
37154         Use the ternary operator in the warning branch for GNU C.
37155         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
37156         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
37157         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
37158         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
37159         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
37161 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
37163         [BZ #18822]
37164         * sysdeps/unix/sysv/linux/x86_64/init-first.c
37165         (__syscall_clock_gettime): Add attribute_hidden.
37166         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
37167         (__start_context): Likewise.
37169 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
37171         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
37172         building libc.a.
37173         (hidden_proto): Likewise.
37174         (hidden_tls_proto): Likewise.
37175         (__hidden_proto): Likewise.
37177 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
37179         * include/libc-symbols.h (attribute_hidden): Enable hidden
37180         visibility in libc.a compiled with PIE.
37182 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
37184         [BZ #18822]
37185         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
37186         Add attribute_hidden.
37188 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
37190         [BZ #21864]
37191         * Makerules (all-nonlib): Add $(others-extras).
37192         * catgets/Makefile (others-extras): New.
37193         * elf/Makefile (others-extras): Likewise.
37194         * nss/Makefile (others-extras): Likewise.
37196 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
37198         [BZ #18822]
37199         * csu/libc-start.c (__libc_multiple_libcs): Removed.
37200         * elf/dl-open.c: Include <libc-internal.h>.
37201         (__libc_multiple_libcs): Removed.
37202         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
37203         <hp-timing.h>.
37204         * include/libc-internal.h (__libc_multiple_libcs): New.
37205         * misc/sbrk.c: Include <libc-internal.h>.
37206         (__libc_multiple_libcs): Removed.
37208 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
37210         [BZ #18822]
37211         * grp/initgroups.c (__nss_group_database): Removed.
37212         (__nss_initgroups_database): Likewise.
37213         * nscd/gai.c (__nss_hosts_database): Likewise.
37214         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
37215         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
37216         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
37217         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
37218         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
37219         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
37220         attribute_hidden.
37221         * nss/nsswitch.c (__nss_database_custom): Define only if
37222         USE_NSCD is defined.
37223         (__nss_configure_lookup): Use __nss_database_custom only if
37224         USE_NSCD is defined.
37225         * nss/nsswitch.h (__nss_database_custom): Declare only if
37226         USE_NSCD is defined.  Add attribute_hidden.
37227         (__nss_setent): Add attribute_hidden.
37228         (__nss_endent): Likewise.
37229         (__nss_getent_r): Likewise.
37230         (__nss_getent): Likewise.
37231         (DEFINE_DATABASE): Declare __nss_##arg##_database.
37233 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
37235         [BZ #18822]
37236         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
37237         libc_hidden_proto and libc_hidden_def.
37239 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
37241         [BZ #18822]
37242         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
37243         Add libc_hidden_proto.
37244         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
37245         Add libc_hidden_def.
37247 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
37249         [BZ #21974]
37250         * gmon/Makefile (routines): Remove bb_init_func and
37251         bb_exit_func.
37252         (elide-routines.os): Removed.
37253         * gmon/bb_exit_func.c: Likewise.
37254         * gmon/bb_init_func.c: Likewise.
37255         * include/sys/gmon.h (__bb): Likewise.
37256         (__bb_init_func): Likewise.
37257         (__bb_exit_func): Likewise.
37258         * sysdeps/alpha/bb_init_func.S: Likewise.
37260 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
37262         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
37263         * include/setjmp.h (____longjmp_chk): Here.  Add
37264         attribute_hidden.
37266 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
37268         [BZ #18822]
37269         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
37270         attribute_hidden.
37271         (__strspn_sse2): Likewise.
37273 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
37275         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
37276         (close_not_cancel_no_status): Likewise.
37277         (__close_nocancel): New macro.
37278         (__close_nocancel_nostatus): Likewise.
37279         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
37280         macro.
37281         (close_not_cancel): Likewise.
37282         (close_not_cancel_no_status): Likewise.
37283         (__close_nocancel): New prototype.
37284         (__close_nocancel_nostatus): New function.
37285         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
37286         * catgets/open_catalog.c (__open_catalog): Replace
37287         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
37288         * gmon/gmon.c (write_gmon): Likewise.
37289         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37290         * intl/loadmsgcat.c (close): Likewise.
37291         * io/ftw.c (open_dir_stream): Likewise.
37292         (ftw_startup): Likewise.
37293         * libio/fileops.c (_IO_file_open): Likewise.
37294         (_IO_file_close_mmap): Likewise.
37295         (_IO_file_close): Likewise.
37296         * libio/iopopen.c (_IO_dup2): Likewise.
37297         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37298         * locale/loadlocale.c (_nl_load_locale): Likewise.
37299         * login/utmp_file.c (pututline_file): Likewise.
37300         (endutent_file): Likewise.
37301         * misc/daemon.c (daemon): Likewise.
37302         * nscd/nscd_getai.c (__nscd_getai): Likewise.
37303         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
37304         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
37305         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
37306         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
37307         * nscd/nscd_helper.c (open_socket): Likewise.
37308         (__nscd_open_socket): Likewise.
37309         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
37310         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
37311         (__nscd_innetgr): Likewise.
37312         * nss/nss_db/db-open.c (internal_setent): Likewise.
37313         * resolv/res-close.c (__res_iclose): Likewise.
37314         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
37315         * sysdeps/posix/closedir.c (__closedir): Likewise.
37316         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
37317         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37318         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
37319         (opendir_tail): Likewise.
37320         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
37321         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
37322         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
37323         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
37324         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
37325         (gethostid): Likewise.
37326         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
37327         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37328         Likewise.
37329         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
37330         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
37331         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
37332         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
37333         Likewise.
37334         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
37335         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
37336         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
37337         Likewise.
37338         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
37339         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
37340         Likewise.
37341         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
37342         Likewise.
37343         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
37344         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
37345         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
37346         __close_nocancel.
37348         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
37349         (openat_not_cancel_3): Likewise.
37350         (openat64_not_cancel_3): Likewise).
37351         (openat_not_cancel_3): Likewise).
37352         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
37353         macro.
37354         (openat_not_cancel_3): Likewise.
37355         (openat64_not_cancel): Likewise.
37356         (openat64_not_cancel_3): Likewise.
37357         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
37358         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
37359         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
37360         __open{64}_nocancel.
37361         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
37362         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37363         * sysdeps/posix/opendir.c (__opendirat): Likewise.
37365 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
37367         [BZ #18822]
37368         * include/argz.h (__argz_create_sep): New function prototype.
37369         (__argz_append): Likewise.
37370         (__argz_add): Likewise.
37371         (__argz_add_sep): Likewise.
37372         (__argz_delete): Likewise.
37373         (__argz_insert): Likewise.
37374         (__argz_replace): Likewise.
37375         * string/argz.h (__argz_create_sep): Removed.
37376         (__argz_append): Likewise.
37377         (__argz_add): Likewise.
37378         (__argz_add_sep): Likewise.
37379         (__argz_delete): Likewise.
37380         (__argz_insert): Likewise.
37381         (__argz_replace): Likewise.
37383 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
37385         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
37386         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
37387         (GNU_PROPERTY_STACK_SIZE): Likewie.
37388         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
37389         (GNU_PROPERTY_LOPROC): Likewise.
37390         (GNU_PROPERTY_HIPROC): Likewise.
37391         (GNU_PROPERTY_LOUSER): Likewise.
37392         (GNU_PROPERTY_HIUSER): Likewise.
37393         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
37394         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
37395         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
37396         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
37397         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
37398         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
37399         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
37400         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
37401         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
37402         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
37403         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
37404         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
37405         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
37406         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
37407         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
37408         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
37409         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
37410         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
37411         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
37412         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
37413         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
37414         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
37415         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
37417 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
37419         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
37420         in C++ mode.
37422 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
37424         [BZ #21930]
37425         * math/math.h (isinf): Check if in C or C++ mode before using
37426         __builtin_types_compatible_p, since this is a C mode feature.
37428 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
37430         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
37431         (__write_nocancel): New macro.
37432         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
37433         Rewrite as a function prototype.
37434         (write_not_cancel): Remove macro.
37435         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
37436         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
37437         (write_gmon): Likewise.
37438         * libio/fileops.c (_IO_new_file_write): Likewise.
37439         * login/utmp_file.c (pututline_file): Likewise.
37440         (updwtmp_file): Likewise.
37441         * stdio-common/psiginfo.c (psiginfo): Likewise.
37442         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
37443         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
37444         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
37445         Likewise.
37446         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
37447         Likewise.
37449         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
37450         (__read_nocancel): New macro.
37451         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
37452         __read_nocancel.
37453         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
37454         macro.
37455         (__read_nocancel): New prototype.
37456         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
37457         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
37458         with __read_nocancel.
37459         * intl/loadmsgcat.c (read): Likewise.
37460         * libio/fileops.c (_IO_file_read): Likewise.
37461         * locale/loadlocale.c (_nl_load_locale): Likewise.
37462         * login/utmp_file.c (getutent_r_file): Likewise.
37463         (internal_getut_r): Likewise.
37464         (getutline_r_file): Likewise.
37465         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
37466         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
37467         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
37468         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37469         Likewise.
37470         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
37471         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
37472         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
37473         Likewise.
37474         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
37475         Likewise.
37476         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
37477         Likewise.
37478         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
37479         Likewise.
37480         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
37482 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
37484         [BZ #21966]
37485         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
37486         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
37487         usable.
37489 2017-08-17  DJ Delorie  <dj@redhat.com>
37491         * bug17079.c: Update to new test harness.
37492         * test-digits-dots.c: Likewise.
37493         * test-netdb.c: Likewise.
37494         * tst-field.c: Likewise.
37495         * tst-nss-getpwent.c: Likewise.
37496         * tst-nss-static.c: Likewise.
37497         * tst-nss-test1.c: Likewise.
37498         * tst-nss-test2.c: Likewise.
37499         * tst-nss-test3.c: Likewise.
37500         * tst-nss-test4.c: Likewise.
37501         * tst-nss-test5.c: Likewise.
37503 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
37505         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
37506         (open_not_cancel_2): Likewise.
37507         (open_nocancel): New macro.
37508         (open64_nocancel): Likewise.
37509         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
37510         (open_not_cancel_2): Likewise.
37511         (__open_nocancel): New prototype.
37512         (__open64_nocancel): Likewise.
37513         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
37514         __open_nocancel.
37515         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
37516         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
37517         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
37518         with __open_nocancel.
37519         * csu/check_fds.c (check_one_fd): Likewise.
37520         * gmon/gmon.c (write_gmon): Likewise.
37521         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
37522         * intl/loadmsgcat.c (open): Likewise.
37523         * libio/fileops.c (_IO_file_open): Likewise.
37524         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37525         * locale/loadlocale.c (_nl_load_locale): Likewise.
37526         * login/utmp_file.c (setutent_file): Likewise.
37527         * misc/daemon.c (daemon): Likewise.
37528         * nss/nss_db/db-open.c (internal_setent): Likewise.
37529         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
37530         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
37531         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
37532         (__opendir): Likewise.
37533         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
37534         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
37535         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
37536         (gethostid): Likewise.
37537         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
37538         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37539         Likewise.
37540         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
37541         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
37542         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
37543         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
37544         Likewise.
37545         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
37546         Likewise.
37547         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
37548         Likewise.
37549         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
37550         Likewise.
37551         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
37552         Likewise.
37553         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
37554         Likewise.
37555         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
37556         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
37558 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
37560         * benchtests/bench-skeleton.c (main): Add support for
37561         latency benchmarking.
37562         * benchtests/scripts/bench.py: Add support for latency benchmarking.
37564 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
37566         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
37567         the startup object.
37569 2017-08-17  Florian Weimer  <fweimer@redhat.com>
37571         * include/sys/socket.h (__opensock): Remove internal_function.
37572         * socket/opensock.c (__opensock): Likewise.
37573         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
37575 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
37577         [BZ #21944]
37578         * signal/bits/types/__sigval_t.h: New file.
37579         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
37580         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
37581         and define sigval_t using __sigval_t.
37582         * include/bits/types/__sigval_t.h: New file.
37583         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
37584         instead of <bits/types/__sigval_t.h>.
37585         (struct sigevent): Use __sigval_t instead of sigval_t.
37586         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
37587         instead of <bits/types/__sigval_t.h>.
37588         (siginfo_t): Use __sigval_t instead of sigval_t.
37589         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
37590         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
37591         (struct sigevent): Use __sigval_t instead of sigval_t.
37592         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
37593         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
37594         (siginfo_t): Use __sigval_t instead of sigval_t.
37595         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
37597 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
37599         * NEWS: Remove "[Add new features here]" for 2.27.
37601 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
37603         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
37604         libc.so.
37606 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
37608         * NEWS: Mention x86-64 FMA optimization.
37610 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
37612         [BZ #21912]
37613         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37614         Add e_expf-fma.
37615         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
37616         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
37617         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
37619 2017-08-16  Andreas Schwab  <schwab@suse.de>
37621         [BZ #16750]
37622         CVE-2009-5064
37623         * elf/ldd.bash.in: Never run file directly.
37625 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
37627         [BZ #21955]
37628         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
37629         (L(SP_INF_0)): Likewise.
37631 2017-08-15  Florian Weimer  <fweimer@redhat.com>
37633         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
37634         run-built-tests.
37636 2017-08-15  Florian Weimer  <fweimer@redhat.com>
37638         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
37639         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
37640         BROKEN_THREAD_SIGNALS code.
37641         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
37642         request_list): Remove caller_pid member used for
37643         BROKEN_THREAD_SIGNALS.
37644         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
37645         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
37646         Remove BROKEN_THREAD_SIGNALS support.
37647         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
37648         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
37650 2017-08-15  Florian Weimer  <fweimer@redhat.com>
37652         * gmon/Makefile (tests): Add tst-gmon.
37653         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
37654         Set.
37655         (tests-special): Add tst-gmon-prof.out.
37656         (tst-gmon.out): Depend on clean-tst-gmon-data.
37657         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
37658         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
37659         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
37660         startup object.
37661         * aclocal.m4 (GPROF): Set and substitute.
37662         * config.amke.in (GPROF): Set.
37663         * configure: Regenerate.
37665 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
37667         * elf/elf.h A (NT_PPC_TAR): New macro.
37668         (NT_PPC_PPR): Likewise.
37669         (NT_PPC_DSCR): Likewise.
37670         (NT_PPC_EBB): Likewise.
37671         (NT_PPC_PMU): Likewise.
37672         (NT_PPC_TM_CGPR): Likewise.
37673         (NT_PPC_TM_CFPR): Likewise.
37674         (NT_PPC_TM_CVMX): Likewise.
37675         (NT_PPC_TM_CVSX): Likewise.
37676         (NT_PPC_TM_SPR): Likewise.
37677         (NT_PPC_TM_CTAR): Likewise.
37678         (NT_PPC_TM_CPPR): Likewise.
37679         (NT_PPC_TM_CDSCR): Likewise.
37681 2017-08-15  Florian Weimer  <fweimer@redhat.com>
37683         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
37684         regparm (2) instead of internal_function.
37685         (_MCOUNT_DECL): Adjust.
37687 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
37689         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
37690         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
37692 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
37694         * conform/data/sys/wait.h-data (si_value): Do not expect for
37695         XPG42.
37697 2017-08-14  Florian Weimer  <fweimer@redhat.com>
37699         [BZ #21962]
37700         NSS: Create stubs for accidentally exported lookup functions.
37701         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
37702         Remove declaration.
37703         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
37704         (ether_hostton): Call __nss_ethers_lookup2 instead.
37705         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
37706         (ether_ntohost): Call __nss_ethers_lookup2 instead.
37707         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
37708         (setup): Call __nss_netgroup_lookup2 instead.
37709         * nss/Makefile (routines): Add compat-lookup.
37710         * nss/Versions (GLIBC_2.27): Add symbol version.
37711         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
37712         (DB_COMPAT_FCT): Remove.
37713         * nss/compat-lookup.c: New file.
37714         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
37715         from databases.def.
37716         * nss/service-lookup.c (NO_COMPAT): Remove definition.
37717         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
37718         (netname2user): Call __nss_publickey_lookup2 instead.
37719         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
37720         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
37721         instead.
37723 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
37724             Sergei Trofimovich  <slyfox@inbox.ru>
37726         [BZ #21908]
37727         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
37728         Rename to MMAP2_PAGE_UNIT.
37729         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
37730         __OFF_T_MATCHES_OFF64_T is not defined.
37731         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
37732         uint64_t.
37733         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
37734         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
37736 2017-08-14  Florian Weimer  <fweimer@redhat.com>
37738         i386: Do not set internal_function.
37739         * config.h.in (USE_REGPARMS, internal_function): Remove.
37740         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
37741         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
37743 2017-08-14  Florian Weimer  <fweimer@redhat.com>
37745         * elf/dl-init.c (_dl_init): Remove internal_function.
37746         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
37747         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
37749 2017-08-14  Florian Weimer  <fweimer@redhat.com>
37751         * elf/rtld.c (_dl_start): Remove internal_function.
37752         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
37753         _dl_start.
37755 2017-08-14  Florian Weimer  <fweimer@redhat.com>
37757         * elf/dl-fini.c (_dl_fini): Remove internal_function
37758         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
37760 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
37762         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
37763         (bit_cpu_SHSTK): Likewise.
37764         (index_cpu_IBT): Likewise.
37765         (index_cpu_SHSTK): Likewise.
37766         (reg_IBT): Likewise.
37767         (reg_SHSTK): Likewise.
37768         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
37769         Handle index_cpu_IBT and index_cpu_SHSTK.
37771 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
37773         [BZ #19982]
37774         * po/fr.po: Fix spelling mistake.
37776 2017-08-13  Florian Weimer  <fweimer@redhat.com>
37778         * elf/dl-addr.c (_dl_addr): Remove internal_function.
37779         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
37780         (_dl_catch_error, _dl_receive_error): Likewise.
37781         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
37782         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
37783         (_dl_deallocate_tls): Likewise.
37784         * include/dlfcn.h (_dl_addr): Likewise.
37785         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
37786         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
37787         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
37788         Likewise.
37790 2017-08-13  Florian Weimer  <fweimer@redhat.com>
37792         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
37793         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
37794         internal_function.
37795         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
37797 2017-08-13  Florian Weimer  <fweimer@redhat.com>
37799         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
37800         internal_function.
37801         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
37802         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
37803         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
37804         internal_function from _dl_make_stack_executable_hook member.
37805         (_dl_make_stack_executable): Remove internal_function.
37806         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
37807         Likewise.
37808         * sysdeps/unix/sysv/linux/dl-execstack.c
37809         (_dl_make_stack_executable): Likewise.
37811 2017-08-13  Florian Weimer  <fweimer@redhat.com>
37813         * sysdeps/unix/sysv/linux/netlinkaccess.h
37814         (__netlink_assert_response): Remove internal_function.
37815         * sysdeps/unix/sysv/linux/netlink_assert_response.c
37816         (__netlink_assert_response): Likewise.
37818 2017-08-13  Florian Weimer  <fweimer@redhat.com>
37820         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
37821         internal_function.
37822         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
37824 2017-08-13  Florian Weimer  <fweimer@redhat.com>
37826         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
37827         internal_function.
37828         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
37829         * inet/netgroup.h (__internal_setnetgrent)
37830         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37831         * inet/getnetgrent_r.c (__internal_setnetgrent)
37832         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37833         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
37834         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
37835         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
37836         * nss/nsswitch.h (db_lookup_function): Likewise.
37838 2017-08-13  Florian Weimer  <fweimer@redhat.com>
37840         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
37841         Remove internal_function.
37842         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
37843         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
37844         message argument on the stack.
37845         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
37846         Likeweise.
37848 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
37850         Adapt test case data to the changes in the thousands
37851         separators.
37853         [BZ #20756]
37854         * localedata/tst-langinfo.sh: Adapt test case data.
37855         * stdlib/tst-strfmon_l.c: Likewise.
37856         * stdlib/tst-strtod4.c: Likewise.
37857         * stdlib/tst-strtod5i.c: Likewise.
37859 2017-08-11  Florian Weimer  <fweimer@redhat.com>
37861         [BZ #21242]
37862         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
37863         Suppress pedantic warning resulting from statement expression.
37864         (__ASSERT_FUNCTION): Add missing __extension__.
37866 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
37868         * benchtests/bench-memmove-large.c: Print output in JSON
37869         format.
37870         * benchtests/bench-memmove.c: Likewise.
37872         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
37873         * benchtests/bench-memchr.c (do_one_test): Likewise.
37874         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
37875         * benchtests/bench-memcpy.c (do_one_test): Likewise.
37876         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
37877         * benchtests/bench-memmove.c (do_one_test): Likewise.
37878         * benchtests/bench-memset-large.c (do_one_test): Likewise.
37879         * benchtests/bench-memset.c (do_one_test): Likewise.
37880         * benchtests/bench-string.h (test_init): Remove memsets.
37882 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
37884         * manual/lang.texi
37885         (Computing the Width of an Integer Data Type): Rename section to
37886         "Width of an Integer Type".  Remove inaccurate statement regarding
37887         lack of C language facilities for determining width of integer
37888         types, and reorder content to improve flow and context of
37889         discussion.
37891 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
37893         * lang.texi (va_copy): Change standard from ISO to C99.
37894         (__va_copy): Add standard and header annotation.
37895         Update description for clarity of origins and current use.
37897 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
37899         [BZ #21941]
37900         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
37901         xssqrtqp requires operands to be in Vector Registers
37902         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
37903         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
37904         (__ieee754_sqrtf128): Likewise.
37906 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
37908         * sysdeps/aarch64/memcmp.S (memcmp):
37909         Rewrite of optimized memcmp.
37911 2017-08-10  Florian Weimer  <fweimer@redhat.com>
37913         Introduce ld.so exceptions.
37914         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
37915         (_dl_exception_create, _dl_exception_create_format)
37916         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
37917         (_dl_catch_exception): Declare.
37918         (_dl_catch_error): Update comment.
37919         * elf/dl-error-skeleton.c (struct catch): Replace objname,
37920         errstring, malloced members with exception member.
37921         (_dl_out_of_memory): Remove.
37922         (fatal_error): New function, extracted from _dl_signal_error.
37923         (_dl_signal_exception, _dl_signal_cexception): New functions.
37924         (_dl_signal_error): Call _dl_exception_create to allocate an
37925         exception object.
37926         (_dl_catch_exception): New function, based on _dl_catch_error.
37927         (_dl_catch_error): Implement using _dl_catch_exception.
37928         * elf/dl-exception.c: New file.
37929         * elf/Makefile (dl-routines): Add dl-exception.
37930         (elide-routines.os): Likewise.
37931         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37932         _dl_exception_create_format, _dl_exception_free.
37933         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37934         _dl_signal_exception.
37935         * elf/dl-lookup.c (make_string): Remove.
37936         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37937         _dl_signal_cexception, _dl_exception_free.
37938         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37939         _dl_signal_exception.
37940         * elf/dl-sym.c (do_sym): Likewise.
37941         * elf/dl-version.c (make_string): Remove.
37942         (match_symbol): Use _dl_exception_create_format,
37943         _dl_signal_cexception, _dl_exception_free.
37944         (_dl_check_map_versions): Likewise.
37945         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37946         _dl_catch_exception.
37947         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37948         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37949         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37950         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37951         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37952         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37953         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37954         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37955         Likewise.
37956         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37958         (ld.so): Likewise.
37959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37960         (ld.so): Likewise.
37961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37962         Likewise.
37963         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37964         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37965         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37966         Likewise.
37967         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37968         Likewise.
37969         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37971 2017-08-10  Florian Weimer  <fweimer@redhat.com>
37973         * inet/net-internal.h (__inet6_scopeid_pton): Remove
37974         attribute_hidden, internal_function.
37975         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37976         internal_function.
37978 2017-08-10  Florian Weimer  <fweimer@redhat.com>
37980         * malloc/malloc.c (get_max_fast): Reimplement as an inline
37981         function which calls __builtin_unreachable.
37983 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
37985         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37986         Indian monetary formatting
37987         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37988         test cases.
37990 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
37992         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37993         Fix typo in comment.
37995         [BZ #21928]
37996         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37997         PTRACE_SEIZE_DEVEL): Remove.
37998         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37999         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
38000         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
38001         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
38002         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
38004 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
38006         * posix/bits/types.h (__qaddr_t): Remove.
38008         [BZ #21457]
38009         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
38010         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
38011         __glibc_reserved1.
38012         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
38013         (ucontext_t): Use __ctx with uc_flags.
38014         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
38015         (__ctxt): Likewise.
38016         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
38017         __glibc_reserved1.
38018         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
38019         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
38020         __glibc_reserved1.
38021         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
38022         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
38023         __glibc_reserved1.
38024         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
38025         macro.
38026         (ucontext_t): Use __ctx with uc_flags.
38027         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
38028         (ucontext_t): Use __ctx with uc_flags.
38029         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
38030         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
38031         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
38032         (ucontext_t): Use __ctx with uc_flags.
38033         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
38034         undefine further down.
38035         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
38036         __glibc_reserved1.
38037         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
38038         undefine further down.
38039         (ucontext_t): Use __ctx with uc_flags.
38040         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
38041         undefine further down.
38042         (ucontext_t): Use __ctx with uc_flags.
38043         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
38044         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
38045         Rename uc_pad to __glibc_reserved1.
38046         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
38047         undefine further down.
38048         (ucontext_t): Use __ctx with uc_flags.
38049         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
38050         further down.
38051         (ucontext_t): Use __ctx with uc_flags.
38052         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
38053         __ctx with uc_flags.
38054         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
38055         (ucontext_t): Use __ctx with uc_flags.
38056         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
38057         __ctx with uc_flags.
38059 2017-08-09  Florian Weimer  <fweimer@redhat.com>
38061         [BZ #21932]
38062         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
38063         before early return.
38065 2017-08-09  Andreas Schwab  <schwab@suse.de>
38067         [BZ #21041]
38068         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
38069         renamed alias.
38071         [BZ #21041]
38072         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
38073         tst-compat-forwarder.
38074         (modules-names): Add tst-compat-forwarder-mod.
38075         ($(objpfx)tst-compat-forwarder): Depend on
38076         $(objpfx)tst-compat-forwarder-mod.so.
38077         * nptl/tst-compat-forwarder.c: New file.
38078         * nptl/tst-compat-forwarder-mod.c: New file.
38080 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
38082         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
38083         comments.
38085         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
38086         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
38087         memcpy_falkor.
38088         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
38089         Bump.
38090         (__libc_ifunc_impl_list): Add __memcpy_falkor.
38091         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
38092         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
38093         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
38094         Add falkor.
38095         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
38096         New macro.
38098 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
38100         [BZ #759]
38101         * manual/setjmp.texi (getcontex): Document uc_stack value
38102         compatibility differences.
38104 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
38106         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
38107         (old_malloc_hook): Likewise.
38108         (old_memalign_hook): Likewise.
38109         (old_realloc_hook): Likewise.
38110         (struct hdr): Likewise.
38111         (flood): Likewise.
38112         (freehook): Likewise.
38113         (mallochook): Likewise.
38114         (memalignhook): Likewise.
38115         (reallochook): Likewise.
38116         (mprobe): Likewise.
38117         * malloc/mtrace.c (mallwatch): Likewise.
38118         (tr_old_free_hook): Likewise.
38119         (tr_old_malloc_hook): Likewise.
38120         (tr_old_realloc_hook): Likewise.
38121         (tr_old_memalign_hook): Likewise.
38122         (tr_where): Likewise.
38123         (lock_and_info): Likewise.
38124         (tr_freehook): Likewise.
38125         (tr_mallochook): Likewise.
38126         (tr_reallochook): Likewise.
38127         (tr_memalignhook): Likewise.
38128         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
38129         * misc/mmap.c (__mmap): Likewise.
38130         * misc/mmap64.c (__mmap64): Likewise.
38131         * misc/mprotect.c (__mprotect): Likewise.
38132         * misc/msync.c (msync): Likewise.
38133         * misc/munmap.c (__munmap): Likewise.
38134         * posix/posix_madvise.c (posix_madvise): Likewise.
38135         * socket/send.c (__send): Likewise.
38136         * socket/sendto.c (__sendto): Likewise.
38137         * socket/setsockopt.c (__setsockopt): Likewise.
38138         * string/memcmp.c (__ptr_t): Remove macro.
38139         (MEMCMP): Use void * instead of ptr_t.
38140         * string/memrchr.c (__ptr_t): Remove macro.
38141         (__memrchr): Use void * instead of ptr_t.
38142         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
38143         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
38144         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
38145         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
38146         * sysdeps/mach/msync.c (msync): Likewise.
38147         * sysdeps/mach/munmap.c (__munmap): Likewise.
38148         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
38149         Likewise.
38150         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
38151         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
38152         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
38153         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
38154         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
38155         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
38156         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
38157         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
38158         Likewise.
38159         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
38160         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
38161         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
38162         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
38163         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
38164         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
38165         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
38166         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
38167         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
38168         Likewise.
38169         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
38170         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
38171         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
38172         (MEMCMP): Use void * instead of ptr_t.
38173         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
38174         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
38176 2017-08-08  Florian Weimer  <fweimer@redhat.com>
38178         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
38179         return statement.
38181 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
38183         [BZ #21913]
38184         * csu/libc-tls.c: Include <startup.h> first.
38185         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
38186         * elf/dl-tunables.c: Include <startup.h> first.
38187         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
38188         * sysdeps/generic/startup.h: New file.
38189         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
38190         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
38191         (I386_USE_SYSENTER): New.  Defined to 0.
38193 2017-08-08  Andreas Schwab  <schwab@suse.de>
38195         [BZ #21041]
38196         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
38197         * nptl/pt-system.c (system): Likewise.
38199 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
38201         [BZ #21780]
38202         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
38203         EOPNOTSUPP.
38204         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
38205         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
38206         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
38207         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
38208         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
38209         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
38210         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
38212 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
38214         [BZ #21899]
38215         * bits/sigaction.h (struct sigaction): Define sa_handler and
38216         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
38217         (SA_ONSTACK): Change [__USE_UNIX98] condition to
38218         [__USE_XOPEN_EXTENDED].
38219         (SA_RESTART): Likewise.
38220         (SA_NODEFER): Likewise.
38221         (SA_RESETHAND): Likewise.
38222         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
38223         (struct sigaction): Define sa_handler and sa_sigaction using union
38224         also for [__USE_XOPEN_EXTENDED].
38225         (SA_ONSTACK): Change [__USE_UNIX98] condition to
38226         [__USE_XOPEN_EXTENDED].
38227         (SA_RESTART): Likewise.
38228         (SA_NODEFER): Likewise.
38229         (SA_RESETHAND): Likewise.
38230         * sysdeps/unix/sysv/linux/bits/sigaction.h
38231         (struct sigaction): Define sa_handler and sa_sigaction using union
38232         also for [__USE_XOPEN_EXTENDED].
38233         (SA_ONSTACK): Change [__USE_UNIX98] condition to
38234         [__USE_XOPEN_EXTENDED].
38235         (SA_RESTART): Likewise.
38236         (SA_NODEFER): Likewise.
38237         (SA_RESETHAND): Likewise.
38238         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
38239         (struct sigaction): Define sa_handler and sa_sigaction using union
38240         also for [__USE_XOPEN_EXTENDED].
38241         (SA_ONSTACK): Change [__USE_UNIX98] condition to
38242         [__USE_XOPEN_EXTENDED].
38243         (SA_RESTART): Likewise.
38244         (SA_NODEFER): Likewise.
38245         (SA_RESETHAND): Likewise.
38246         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
38247         (struct sigaction): Define sa_handler and sa_sigaction using union
38248         also for [__USE_XOPEN_EXTENDED].
38249         (SA_ONSTACK): Change [__USE_UNIX98] condition to
38250         [__USE_XOPEN_EXTENDED].
38251         (SA_RESTART): Likewise.
38252         (SA_NODEFER): Likewise.
38253         (SA_RESETHAND): Likewise.
38254         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
38255         (struct sigaction): Define sa_handler and sa_sigaction using union
38256         also for [__USE_XOPEN_EXTENDED].
38257         (SA_ONSTACK): Change [__USE_UNIX98] condition to
38258         [__USE_XOPEN_EXTENDED].
38259         (SA_RESTART): Likewise.
38260         (SA_NODEFER): Likewise.
38261         (SA_RESETHAND): Likewise.
38262         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
38263         (struct sigaction): Define sa_handler and sa_sigaction using union
38264         also for [__USE_XOPEN_EXTENDED].
38265         (SA_ONSTACK): Change [__USE_UNIX98] condition to
38266         [__USE_XOPEN_EXTENDED].
38267         (SA_RESTART): Likewise.
38268         (SA_NODEFER): Likewise.
38269         (SA_RESETHAND): Likewise.
38270         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
38271         (struct sigaction): Define sa_handler and sa_sigaction using union
38272         also for [__USE_XOPEN_EXTENDED].
38273         (SA_ONSTACK): Change [__USE_UNIX98] condition to
38274         [__USE_XOPEN_EXTENDED].
38275         (SA_RESTART): Likewise.
38276         (SA_NODEFER): Likewise.  Define directly rather than as alias.
38277         (SA_RESETHAND): Likewise.
38278         (SA_INTERRUPT): Define only for [__USE_MISC].
38279         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
38280         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
38281         [__USE_MISC].
38282         (SA_STACK): Define only for [__USE_MISC].
38283         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
38284         (struct sigaction): Define sa_handler and sa_sigaction using union
38285         also for [__USE_XOPEN_EXTENDED].
38286         (SA_ONSTACK): Change [__USE_UNIX98] condition to
38287         [__USE_XOPEN_EXTENDED].
38288         (SA_RESTART): Likewise.
38289         (SA_NODEFER): Likewise.
38290         (SA_RESETHAND): Likewise.
38291         (SA_NOPTRACE): Define only for [__USE_MISC].
38293         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
38294         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
38295         (struct catalog_info): Likewise.
38296         * inet/htontest.c (lo): Likewise.
38297         (foo): Likewise.
38298         * inet/inet_lnaof.c (inet_lnaof): Likewise.
38299         * inet/inet_net.c (inet_network): Likewise.
38300         * inet/inet_netof.c (inet_netof): Likewise.
38301         * inet/rcmd.c (__ivaliduser): Likewise.
38302         (iruserok): Likewise.
38303         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
38304         * locale/programs/locale-spec.c (locale_special): Likewise.
38305         * nis/nis_findserv.c (struct findserv_req): Likewise.
38306         (__nis_findfastest_with_timeout): Likewise.
38307         * nss/test-netdb.c (test_network): Likewise.
38308         * resolv/inet_neta.c (inet_neta): Likewise.
38309         * resolv/ns_date.c (ns_datetosecs): Likewise.
38310         (SECS_PER_DAY): Likewise.
38311         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
38312         Likewise.
38313         * resolv/res_comp.c (__putlong): Likewise.
38314         (__putshort): Likewise.
38315         (_getlong): Likewise.
38316         (_getshort): Likewise.
38317         * resolv/res_debug.c (p_time): Likewise.
38318         (precsize_ntoa): Likewise.
38319         (precsize_aton): Likewise.
38320         (latlon2ul): Likewise.
38321         (loc_aton): Likewise.
38322         (loc_ntoa): Likewise.
38323         * resolv/res_hconf.c (struct netaddr): Likewise.
38324         (_res_hconf_reorder_addrs): Likewise.
38325         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
38326         (clnttcp_control): Likewise.
38327         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
38328         (clntudp_control): Likewise.
38329         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
38330         (clntunix_control): Likewise.
38331         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
38332         * sunrpc/rpc/auth.h (union des_block): Likewise.
38333         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
38334         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
38335         (xdrrec_create): Likewise.
38336         (xdrrec_endofrecord): Likewise.
38337         (flush_out): Likewise.
38338         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
38339         (xdrstdio_putlong): Likewise.
38340         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
38341         Likewise.
38343         * misc/sys/cdefs.h (__long_double_t): Remove.
38344         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
38345         instead of __long_double_t,
38346         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
38348 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
38350         * benchtests/scripts/compare_strings.py: Avoid display error when
38351         running on a text terminal.
38353         * benchtests/scripts/compare_strings.py (main): Add an
38354         optional -base option.
38355         (process_results): New argument base_func.
38357         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
38358         hardcoding memcpy.
38359         * benchtests/bench-memcpy-large.c (test_name): Likewise.
38360         * benchtests/bench-memcpy-random.c (test_name): Likewise.
38362 2017-08-07  Andreas Schwab  <schwab@suse.de>
38364         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
38365         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
38366         * intl/Makefile ($(objpfx)tst-gettext.out)
38367         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
38368         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
38369         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
38370         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
38371         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
38372         * posix/Makefile ($(objpfx)globtest.out)
38373         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
38374         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
38375         ($(objpfx)tst-printf.out): Likewise.
38376         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
38377         ($(objpfx)tst-setcontext3.out): Likewise.
38379 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
38381         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38382         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
38383         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
38384         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
38385         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
38386         and mptan-fma.
38387         (CFLAGS-doasin-fma.c): New.
38388         (CFLAGS-dosincos-fma.c): Likewise.
38389         (CFLAGS-e_asin-fma.c): Likewise.
38390         (CFLAGS-e_atan2-fma.c): Likewise.
38391         (CFLAGS-e_exp-fma.c): Likewise.
38392         (CFLAGS-e_log-fma.c): Likewise.
38393         (CFLAGS-e_pow-fma.c): Likewise.
38394         (CFLAGS-halfulp-fma.c): Likewise.
38395         (CFLAGS-mpa-fma.c): Likewise.
38396         (CFLAGS-mpatan-fma.c): Likewise.
38397         (CFLAGS-mpatan2-fma.c): Likewise.
38398         (CFLAGS-mpexp-fma.c): Likewise.
38399         (CFLAGS-mplog-fma.c): Likewise.
38400         (CFLAGS-mpsqrt-fma.c): Likewise.
38401         (CFLAGS-mptan-fma.c): Likewise.
38402         (CFLAGS-s_atan-fma.c): Likewise.
38403         (CFLAGS-sincos32-fma.c): Likewise.
38404         (CFLAGS-slowexp-fma.c): Likewise.
38405         (CFLAGS-slowpow-fma.c): Likewise.
38406         (CFLAGS-s_sin-fma.c): Likewise.
38407         (CFLAGS-s_tan-fma.c): Likewise.
38408         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
38409         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
38410         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
38411         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
38412         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
38413         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
38414         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
38415         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
38416         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
38417         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
38418         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
38419         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
38420         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
38421         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
38422         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
38423         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
38424         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
38425         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
38426         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
38427         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
38428         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
38429         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
38430         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
38431         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
38432         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
38433         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
38434         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
38435         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
38436         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
38437         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
38438         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
38440 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
38442         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
38443         (min_of_type_f): New macro.
38444         (min_of_type_): Likewise.
38445         (min_of_type_l): Likewise.
38446         (min_of_type_f128): Likewise.
38447         (min_of_type): Define using __MATH_TG and taking an expression
38448         argument.
38449         (math_check_force_underflow): Pass expression instead of type to
38450         min_of_type.
38451         (math_check_force_underflow_nonneg): Likewise.
38453 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
38455         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
38456         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
38457         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
38459 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
38461         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38462         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
38463         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
38464         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
38465         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
38466         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
38467         memcpy_chk-nonshared, mempcpy_chk-nonshared,
38468         memmove_chk-nonshared and memset_chk-nonshared
38469         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
38470         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
38471         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
38472         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
38473         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
38474         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
38475         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
38476         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
38477         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
38478         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
38479         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
38480         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
38481         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
38482         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
38483         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
38484         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
38485         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
38486         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
38487         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
38488         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
38489         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
38490         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
38491         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
38492         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
38493         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
38494         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
38495         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
38496         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
38497         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
38498         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
38499         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
38500         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
38501         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
38502         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
38503         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
38504         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
38505         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
38506         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
38507         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
38508         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
38509         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
38510         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
38511         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
38512         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
38513         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
38514         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
38515         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
38516         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
38517         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
38518         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
38519         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
38520         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
38521         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
38522         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
38523         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
38524         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
38525         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
38526         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
38527         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
38528         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
38529         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
38530         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
38531         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
38532         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
38533         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
38534         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
38535         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
38536         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
38537         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
38538         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
38539         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
38540         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
38541         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
38542         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
38543         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
38544         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
38545         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
38546         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
38547         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
38548         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
38549         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
38550         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
38551         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
38552         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
38553         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
38554         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
38555         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
38556         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
38557         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
38558         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
38559         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
38560         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
38561         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
38562         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
38563         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
38564         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
38565         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
38566         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
38567         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
38568         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
38569         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
38570         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
38571         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
38572         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
38573         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
38574         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
38575         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
38576         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
38578 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
38580         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
38581         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
38582         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
38583         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
38584         svml_d_log2_core-sse2, svml_d_log4_core-sse,
38585         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
38586         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
38587         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
38588         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
38589         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
38590         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
38591         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
38592         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
38593         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
38594         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
38595         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
38596         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
38597         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
38598         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
38599         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
38600         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
38601         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
38602         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
38603         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
38604         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
38605         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
38606         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
38607         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
38608         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
38609         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
38610         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
38611         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
38612         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
38613         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
38614         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
38615         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
38616         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
38617         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
38618         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
38619         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
38620         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
38621         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
38622         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
38623         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
38624         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
38625         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
38626         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
38627         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
38628         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
38629         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
38630         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
38631         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
38632         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
38633         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
38634         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
38635         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
38636         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
38637         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
38638         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
38639         ...
38640         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
38641         Don't include <sysdep.h> nor <init-arch.h>.
38642         (_ZGVbN2v_cos): Removed.
38643         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
38644         ...
38645         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
38646         Don't include <sysdep.h> nor <init-arch.h>.
38647         (_ZGVdN4v_cos): Removed.
38648         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
38649         ...
38650         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
38651         Don't include <sysdep.h> nor <init-arch.h>.
38652         (_ZGVeN8v_cos): Removed.
38653         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
38654         ...
38655         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
38656         Don't include <sysdep.h> nor <init-arch.h>.
38657         (_ZGVbN2v_exp): Removed.
38658         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
38659         ...
38660         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
38661         Don't include <sysdep.h> nor <init-arch.h>.
38662         (_ZGVdN4v_exp): Removed.
38663         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
38664         ...
38665         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
38666         Don't include <sysdep.h> nor <init-arch.h>.
38667         (_ZGVeN8v_exp): Removed.
38668         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
38669         ...
38670         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
38671         Don't include <sysdep.h> nor <init-arch.h>.
38672         (_ZGVbN2v_log): Removed.
38673         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
38674         ...
38675         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
38676         Don't include <sysdep.h> nor <init-arch.h>.
38677         (_ZGVdN4v_log): Removed.
38678         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
38679         ...
38680         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
38681         Don't include <sysdep.h> nor <init-arch.h>.
38682         (_ZGVeN8v_log): Removed.
38683         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
38684         ...
38685         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
38686         Don't include <sysdep.h> nor <init-arch.h>.
38687         (_ZGVbN2vv_pow): Removed.
38688         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
38689         ...
38690         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
38691         Don't include <sysdep.h> nor <init-arch.h>.
38692         (_ZGVdN4vv_pow): Removed.
38693         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
38694         ...
38695         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
38696         Don't include <sysdep.h> nor <init-arch.h>.
38697         (_ZGVeN8vv_pow): Removed.
38698         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
38699         ...
38700         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
38701         Don't include <sysdep.h> nor <init-arch.h>.
38702         (_ZGVbN2v_sin): Removed.
38703         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
38704         ...
38705         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
38706         Don't include <sysdep.h> nor <init-arch.h>.
38707         (_ZGVbN4v_sin): Removed.
38708         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
38709         ...
38710         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
38711         Don't include <sysdep.h> nor <init-arch.h>.
38712         (_ZGVbN8v_sin): Removed.
38713         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
38714         ...
38715         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
38716         Don't include <sysdep.h> nor <init-arch.h>.
38717         (_ZGVbN2vvv_sincos): Removed.
38718         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
38719         ...
38720         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
38721         Don't include <sysdep.h> nor <init-arch.h>.
38722         (_ZGVdN4vvv_sincos): Removed.
38723         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
38724         ...
38725         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
38726         Don't include <sysdep.h> nor <init-arch.h>.
38727         (_ZGVeN8vvv_sincos): Removed.
38728         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
38729         ...
38730         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
38731         Don't include <sysdep.h> nor <init-arch.h>.
38732         (_ZGVeN16v_cosf): Removed.
38733         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
38734         ...
38735         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
38736         Don't include <sysdep.h> nor <init-arch.h>.
38737         (_ZGVbN4v_cosf): Removed.
38738         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
38739         ...
38740         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
38741         Don't include <sysdep.h> nor <init-arch.h>.
38742         (_ZGVdN8v_cosf): Removed.
38743         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
38744         ...
38745         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
38746         Don't include <sysdep.h> nor <init-arch.h>.
38747         (_ZGVeN16v_expf): Removed.
38748         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
38749         ...
38750         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
38751         Don't include <sysdep.h> nor <init-arch.h>.
38752         (_ZGVbN4v_expf): Removed.
38753         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
38754         ...
38755         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
38756         Don't include <sysdep.h> nor <init-arch.h>.
38757         (_ZGVdN8v_expf): Removed.
38758         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
38759         ...
38760         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
38761         Don't include <sysdep.h> nor <init-arch.h>.
38762         (_ZGVeN16v_logf): Removed.
38763         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
38764         ...
38765         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
38766         Don't include <sysdep.h> nor <init-arch.h>.
38767         (_ZGVbN4v_logf): Removed.
38768         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
38769         ...
38770         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
38771         Don't include <sysdep.h> nor <init-arch.h>.
38772         (_ZGVdN8v_logf): Removed.
38773         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
38774         ...
38775         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
38776         Don't include <sysdep.h> nor <init-arch.h>.
38777         (_ZGVeN16vv_powf): Removed.
38778         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
38779         ...
38780         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
38781         Don't include <sysdep.h> nor <init-arch.h>.
38782         (_ZGVbN4vv_powf): Removed.
38783         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
38784         ...
38785         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
38786         Don't include <sysdep.h> nor <init-arch.h>.
38787         (_ZGVdN8vv_powf): Removed.
38788         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
38789         ...
38790         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
38791         Don't include <sysdep.h> nor <init-arch.h>.
38792         (_ZGVeN16vvv_sincosf): Removed.
38793         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
38794         ...
38795         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
38796         Don't include <sysdep.h> nor <init-arch.h>.
38797         (_ZGVbN4vvv_sincosf): Removed.
38798         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
38799         ...
38800         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
38801         Don't include <sysdep.h> nor <init-arch.h>.
38802         (_ZGVdN8vvv_sincosf): Removed.
38803         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
38804         ...
38805         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
38806         Don't include <sysdep.h> nor <init-arch.h>.
38807         (_ZGVeN16v_sinf): Removed.
38808         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
38809         ...
38810         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
38811         Don't include <sysdep.h> nor <init-arch.h>.
38812         (_ZGVbN4v_sinf): Removed.
38813         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
38814         ...
38815         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
38816         Don't include <sysdep.h> nor <init-arch.h>.
38817         (_ZGVdN8v_sinf): Removed.
38819 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
38821         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38822         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
38823         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
38824         s_rint-sse4_1 and s_rintf-sse4_1.
38825         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
38826         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
38827         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
38828         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
38829         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
38830         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
38831         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
38832         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
38833         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
38834         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
38835         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
38836         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
38837         (__ceil): Removed.
38838         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
38839         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
38840         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
38841         (__ceilf): Removed.
38842         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
38843         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
38844         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
38845         (__floor): Removed.
38846         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
38847         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
38848         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
38849         (__floorf): Removed.
38850         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
38851         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
38852         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
38853         (__nearbyint): Removed.
38854         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
38855         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
38856         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
38857         (__nearbyintf): Removed.
38858         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
38859         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
38860         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
38861         (__rint): Removed.
38862         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
38863         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
38864         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
38865         (__rintf): Removed.
38867 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
38869         * sysdeps/i386/start.S (_start): Check Check PIC instead of
38870         SHARED.  Avoid dynamic relocation against main in static PIE.
38872 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
38874         [BZ #21815]
38875         * elf/Makefile (CFLAGS-tst-prelink.c): New.
38876         (LDFLAGS-tst-prelink): Likewise.
38878 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
38880         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
38881         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
38882         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
38883         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
38884         (INTERNAL_SYSCALL_NCS): Likewise.
38885         (LOADARGS_1): Likewise.
38886         (LOADARGS_5): Likewise.
38887         (RESTOREARGS_1): Likewise.
38888         (RESTOREARGS_5): Likewise.
38890 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
38892         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
38893         (MEMPCPY_SYMBOL): Likewise.
38894         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
38895         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
38896         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
38897         in libc.a.
38898         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38899         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
38900         Likewise.
38901         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
38902         (__hidden_ver1): Don't use in libc.a.
38903         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
38904         (__mempcpy): Don't create a weak alias in libc.a.
38905         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
38906         libc.a.
38907         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
38908         (__hidden_ver1): Don't use in libc.a.
38910 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
38912         * config.make.in (have-insert): New.
38913         * configure.ac (libc_cv_insert): New.  Set to yes if linker
38914         supports INSERT in linker script.
38915         (AC_SUBST(libc_cv_insert): New.
38916         * configure: Regenerated.
38917         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
38918         if $(have-insert) == yes.
38920 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
38922         * elf/Makefile (tests): Add vismain only if
38923         $(have-protected-data) == yes.
38924         (tests-pie): Likewise.
38926 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
38928         [BZ #21871]
38929         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38930         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38932 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
38934         [BZ #21790]
38935         * sysdeps/i386/i586/memset.S
38936         (__memset_zero_constant_len_parameter): Removed.
38937         * sysdeps/i386/i686/memset.S
38938         (__memset_zero_constant_len_parameter): Likewise.
38939         * sysdeps/i386/i686/multiarch/memset_chk.S
38940         (__memset_zero_constant_len_parameter): Likewise.
38941         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38942         Likewise.
38944 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
38946         * stdlib/getentropy.c (getentropy): Change return type to int.
38948 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
38950         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38952 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
38954         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38955         u_intN_t.
38956         * math/s_nexttowardf.c (__nexttowardf): Likewise.
38957         * sysdeps/generic/math_private.h (ieee_double_shape_type):
38958         Likewise.
38959         (ieee_float_shape_type): Likewise.
38960         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38961         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38962         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38963         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38964         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38965         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38966         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38967         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38968         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38969         Likewise.
38970         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38971         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38972         (__ieee754_yn): Likewise.
38973         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38974         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38975         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38976         Likewise.
38977         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38978         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38979         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38980         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38981         (__erfc): Likewise.
38982         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38983         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38984         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38985         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38986         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38987         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38988         Likewise.
38989         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38990         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38991         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38992         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38993         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38994         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38995         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38996         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38997         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38998         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38999         (__issignaling): Likewise.
39000         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
39001         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
39002         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
39003         Likewise.
39004         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
39005         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
39006         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
39007         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
39008         Likewise.
39009         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
39010         Likewise.
39011         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
39012         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
39013         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
39014         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
39015         (__erfcf): Likewise.
39016         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
39017         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
39018         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
39019         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
39020         Likewise.
39021         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
39022         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
39023         Likewise.
39024         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
39025         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
39026         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
39027         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
39028         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
39029         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
39030         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
39031         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
39032         Likewise.
39033         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
39034         Likewise.
39035         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
39036         Likewise.
39037         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
39038         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
39039         Likewise.
39040         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39041         Likewise.
39042         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
39043         (__ieee754_ynl): Likewise.
39044         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
39045         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
39046         Likewise.
39047         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
39048         Likewise.
39049         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
39050         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
39051         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
39052         Likewise.
39053         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
39054         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
39055         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
39056         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
39057         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
39058         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
39059         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
39060         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
39061         Likewise.
39062         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
39063         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
39064         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
39065         Likewise.
39066         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
39067         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
39068         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
39069         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
39070         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
39071         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
39072         Likewise.
39073         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
39074         Likewise.
39075         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
39076         Likewise.
39077         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
39078         Likewise.
39079         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
39080         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
39081         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
39082         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
39083         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
39084         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
39085         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
39086         Likewise.
39087         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
39088         Likewise.
39089         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
39090         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
39091         Likewise.
39092         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
39093         (__ieee754_remainderl): Likewise.
39094         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
39095         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
39096         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
39097         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
39098         Likewise.
39099         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
39100         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
39101         Likewise.
39102         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
39103         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
39104         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
39105         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
39106         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
39107         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
39108         Likewise.
39109         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
39110         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
39111         (__ieee754_y0l): Likewise.
39112         (pzero): Likewise.
39113         (qzero): Likewise.
39114         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
39115         (__ieee754_y1l): Likewise.
39116         (pone): Likewise.
39117         (qone): Likewise.
39118         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
39119         (__ieee754_ynl): Likewise.
39120         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
39121         (__ieee754_lgammal_r): Likewise.
39122         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
39123         Likewise.
39124         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
39125         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
39126         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
39127         (__erfcl): Likewise.
39128         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
39129         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
39130         Likewise.
39131         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
39132         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
39133         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
39134         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
39135         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
39136         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
39137         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
39138         Likewise.
39139         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
39140         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
39141         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
39142         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
39143         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
39144         Likewise.
39145         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
39146         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
39147         Likewise.
39148         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
39149         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
39150         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
39151         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
39152         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
39154 2017-08-03  Florian Weimer  <fweimer@redhat.com>
39156         [BZ #21885]
39157         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
39158         on memory allocation failure.
39160 2017-08-03  Alan Modra  <amodra@gmail.com>
39162         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
39163         tst-tlsopt-powerpc.c with function name change and no test harness.
39164         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
39165         Call tls_get_addr_opt_test.
39166         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
39167         (modules-names): Add mod-tlsopt-powerpc.
39168         (mod-tlsopt-powerpc.so-no-z-defs): Define.
39169         (tst-tlsopt-powerpc): Depend on .so.
39170         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
39171         define.  Expand use in TLS_GD and TLS_LD.
39173 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
39175         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
39176         function.
39177         * sysdeps/posix/shm_open.c: Include <pthread.h>.
39179 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
39181         [BZ #21686]
39182         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
39183         comparing size with that of double.
39184         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
39185         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
39186         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
39187         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
39188         (__TGMATH_BINARY_REAL_IMAG): Likewise.
39189         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
39190         unsigned __int128 types.
39192 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
39194         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
39195         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
39196         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
39197         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
39198         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
39200 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
39202         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
39204 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
39206         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
39207         of SHARED.
39208         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
39209         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
39210         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
39211         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
39212         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
39213         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
39214         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
39216 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
39218         [BZ #21685]
39219         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
39220         bit-field expressions passed to sizeof or typeof.
39221         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
39222         (__TGMATH_F128): Likewise.
39223         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
39224         (__TGMATH_CF128): Likewise.
39225         (__TGMATH_UNARY_REAL_ONLY): Likewise.
39226         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
39227         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
39228         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
39229         (__TGMATH_BINARY_REAL_ONLY): Likewise.
39230         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
39231         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
39232         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
39233         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
39234         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
39235         (__TGMATH_UNARY_REAL_IMAG): Likewise.
39236         (__TGMATH_UNARY_IMAG): Likewise.
39237         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
39238         (__TGMATH_BINARY_REAL_IMAG): Likewise.
39239         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
39240         type.
39241         (define_vars_for_type): Handle bit_field type specially.
39242         (Tests.__init__): Declare structure with bit-field element.
39244 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
39246         [BZ #21791]
39247         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
39248         (MEMCPY_CHK): Define only if SHARED is defined.
39249         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
39250         Likewise.
39251         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
39252         Likewise.
39254 See ChangeLog.18 for earlier changes.