]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog.old/ChangeLog.19
Add nocancel version of pread64()
[thirdparty/glibc.git] / ChangeLog.old / ChangeLog.19
1 2019-10-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 [BZ #18231]
4 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5 bits/ipc-perm.h.
6 * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: Remove file.
7 * sysdeps/unix/sysv/linux/alpha/bits/ipc.h: Likewise.
8 * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: Likewise.
9 * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: Likewise.
10 * sysdeps/unix/sysv/linux/mips/bits/ipc.h: Likewise.
11 * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
12 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
13 * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
14 * sysdeps/unix/sysv/linux/arm/kernel-features.h
15 [__BYTE_ORDER == __BIG_ENDIAN] (__ASSUME_SYSVIPC_BROKEN_MODE_T):
16 Define.
17 * sysdeps/sysv/linux/microblaze/kernel-features.h: Likewise.
18 * sysdeps/unix/sysv/linux/s390/kernel-features.h
19 [!__s390x__] (__ASSUME_SYSVIPC_BROKEN_MODE_T): Define.
20 * sysdeps/unix/sysv/linux/sh/kernel-features.h
21 (__ASSUME_SYSVIPC_BROKEN_MODE_T): Define.
22 * sysdeps/unix/sysv/linux/m68k/kernel-features.h: Likewise.
23 * sysdeps/unix/sysv/linux/bits/ipc-perm.h: New file.
24 * sysdeps/unix/sysv/linux/powerpc/bits/ipc-perm.h: Likewise.
25 * sysdeps/unix/sysv/linux/sparc/bits/ipc-perm.h: Likewise.
26 * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Move to
27 bits/ipc-perm.h.
28 * sysdeps/unix/sysv/linux/hppa/bits/ipc-perm.h: New file.
29 * sysdeps/unix/sysv/linux/kernel-features.h: Add comment about
30 __ASSUME_SYSVIPC_BROKEN_MODE_T semantic.
31 * sysdeps/unix/sysv/linux/msgctl.c (DEFAULT_VERSION): Define as
32 2.31 if __ASSUME_SYSVIPC_BROKEN_MODE_T is defined.
33 (msgctl_syscall, __msgctl_mode16): New symbol.
34 (__new_msgctl): Add bits for __ASSUME_SYSVIPC_BROKEN_MODE_T.
35 * sysdeps/unix/sysv/linux/semctl.c: Likewise.
36 * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
37 * sysdeps/unix/sysv/linux/arm/be/libc.abilist (GLIBC_2.31): Add
38 msgctl, semctl, and shmctl.
39 * sysdeps/sysv/linux/microblaze/be/libc.abilist: Likewise.
40 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
41 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
42 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
43 * sysdeps/unix/sysv/linux/sh/be/libc.abilist: Likewise.
44 * conform/data/sys/ipc.h-data: Only xfail {struct ipc_perm} mode_t
45 mode for Hurd.
46 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_2.31]: Add
47 msgctl, semctl, and shmctl.
48 * sysdeps/unix/sysv/linux/arm/be/Versions: New file.
49 * sysdeps/unix/sysv/linux/microblaze/be/Versions: Likewise.
50 * sysdeps/unix/sysv/linux/sh/be/Versions: Likewise.
51
52 2019-10-10 Andreas Schwab <schwab@suse.de>
53
54 * elf/dl-load.c (open_verify): Remove dead code.
55
56 2019-10-10 Dmitry V. Levin <ldv@altlinux.org>
57
58 * sysdeps/unix/sysv/linux/syscall-names.list: Fix typos in comment,
59 reformat the affected paragraph.
60
61 2019-10-10 Ɓukasz Majewski <lukma@denx.de>
62
63 * include/time.h (__clock_settime64):
64 Add __clock_settime alias according to __TIMESIZE define
65 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime):
66 Refactor this function to be used only on 32 bit machines as a
67 wrapper on __clock_settime64.
68 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime64): Add
69 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime64):
70 Use clock_settime64 kernel syscall (available from 5.1+ Linux)
71
72 2019-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
73
74 * include/spawn.h (__posix_spawn_file_actions_addopen): New
75 prototype.
76 * posix/spawn_faction_addopen.c (posix_spawn_file_actions_addopen):
77 Add internal alias.
78 * posix/wordexp.c (create_environment, free_environment): New
79 functions.
80 (exec_comm_child, exec_comm): Use posix_spawn instead of fork+exec.
81 * posix/wordexp-test.c: Use libsupport.
82
83 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
84 Add small optimization for older kernel to avoid issuing
85 __NR_getdents64 on each call and replace scratch_buffer usage with
86 a static allocated buffer.
87
88 2019-10-09 Florian Weimer <fweimer@redhat.com>
89
90 * config.h.in (HAVE_GCC_GOTDATA): Remove.
91 * sysdeps/sparc/configure.ac: Remove checks for HAVE_GCC_GOTDATA
92 and PI_STATIC_AND_HIDDEN. Always define PI_STATIC_AND_HIDDEN.
93 * sysdeps/sparc/configure: Regenerate.
94
95 2019-10-09 Petr Vorel <pvorel@suse.cz>
96
97 * include/dirent.h (__getdents64): Update comment.
98
99 2019-10-08 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
100
101 * Makefile: Fix locale dependency for a couple of tests.
102 ($(objpfx)tst-strftime2.out): New rule.
103 ($(objpfx)tst-strftime3.out): Likewise.
104
105 2019-10-08 Florian Weimer <fweimer@redhat.com>
106
107 * posix/tst-wordexp-nocmd.c (do_test): Fix diagnostics output.
108
109 2019-10-08 Florian Weimer <fweimer@redhat.com>
110
111 * posix/Makefile (tests): Add tst-wordexp-nocmd.
112 * posix/wordexp-test.c (__app_register_atfork): Remove function.
113 (registered_forks): Remove variable.
114 (register_fork): Remove function.
115 (test_case): Remove WRDE_NOCMD tests.
116 (main): Do not set up fork tracking. Remove integer overflow in
117 division tests.
118 (testit): Do not check for unexpected forks.
119 * posix/tst-wordexp-nocmd.c: New file containing the tests removed
120 from posix/wordexp-test.c.
121
122 2019-10-07 Florian Weimer <fweimer@redhat.com>
123
124 nptl: Move pthread_attr_setschedparam implementation into libc.
125 * nptl/Makefile (routines): Add pthread_attr_setschedparam.
126 (libpthread-routines): Remove pthread_attr_setschedparam.
127 * nptl/Versions (libpthread GLIBC_2.0): Remove
128 pthread_attr_setschedparam.
129 * nptl/forward.c (pthread_attr_setschedparam): Remove definition.
130 * nptl/nptl-init.c (pthread_functions): Remove initializer for
131 ptr_pthread_attr_setschedparam.
132 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
133 Remove ptr_pthread_attr_setschedparam member.
134 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
135 Remove pthread_attr_setschedparam.
136 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
137 Likewise.
138 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
139 Likewise.
140 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
141 Likewise.
142 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
143 Likewise.
144 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
145 Likewise.
146 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
147 Likewise.
148 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
149 Likewise.
150 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
151 (GLIBC_2.4): Likewise.
152 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
153 (GLIBC_2.0): Likewise.
154 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
155 (GLIBC_2.18): Likewise.
156 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
157 (GLIBC_2.18): Likewise.
158 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
159 (GLIBC_2.0): Likewise.
160 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
161 (GLIBC_2.0): Likewise.
162 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
163 Likewise.
164 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
165 (GLIBC_2.0): Likewise.
166 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
167 (GLIBC_2.3): Likewise.
168 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
169 (GLIBC_2.17): Likewise.
170 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
171 (GLIBC_2.27): Likewise.
172 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
173 (GLIBC_2.0): Likewise.
174 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
175 (GLIBC_2.2): Likewise.
176 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
177 Likewise.
178 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
179 Likewise.
180 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
181 (GLIBC_2.0): Likewise.
182 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
183 (GLIBC_2.2): Likewise.
184 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
185 (GLIBC_2.2.5): Likewise.
186 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
187 (GLIBC_2.16): Likewise.
188
189 2019-10-07 Florian Weimer <fweimer@redhat.com>
190
191 riscv: Remove support for variable page sizes.
192 * sysdeps/unix/sysv/linux/riscv/Makefile [$(subdir) == elf]
193 (sysdep_routines): Do not add dl-static.
194 * sysdeps/unix/sysv/linux/riscv/dl-static.c: Remove file.
195 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
196
197 2019-10-07 Florian Weimer <fweimer@redhat.com>
198
199 nptl: Move pthread_attr_getschedparam implementation into libc.
200 * nptl/Makefile (routines): Add pthread_attr_getschedparam.
201 (libpthread-routines): Remove pthread_attr_getschedparam.
202 * nptl/Versions (libpthread GLIBC_2.0): Remove
203 pthread_attr_getschedparam.
204 * nptl/forward.c (pthread_attr_getschedparam): Remove definition.
205 * nptl/nptl-init.c (pthread_functions): Remove initializer for
206 ptr_pthread_attr_getschedparam.
207 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
208 Remove ptr_pthread_attr_getschedparam member.
209 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
210 Remove pthread_attr_getschedparam.
211 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
212 Likewise.
213 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
214 Likewise.
215 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
216 Likewise.
217 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
218 Likewise.
219 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
220 Likewise.
221 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
222 Likewise.
223 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
224 Likewise.
225 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
226 (GLIBC_2.4): Likewise.
227 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
228 (GLIBC_2.0): Likewise.
229 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
230 (GLIBC_2.18): Likewise.
231 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
232 (GLIBC_2.18): Likewise.
233 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
234 (GLIBC_2.0): Likewise.
235 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
236 (GLIBC_2.0): Likewise.
237 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
238 Likewise.
239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
240 (GLIBC_2.0): Likewise.
241 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
242 (GLIBC_2.3): Likewise.
243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
244 (GLIBC_2.17): Likewise.
245 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
246 (GLIBC_2.27): Likewise.
247 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
248 (GLIBC_2.0): Likewise.
249 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
250 (GLIBC_2.2): Likewise.
251 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
252 Likewise.
253 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
254 Likewise.
255 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
256 (GLIBC_2.0): Likewise.
257 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
258 (GLIBC_2.2): Likewise.
259 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
260 (GLIBC_2.2.5): Likewise.
261 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
262 (GLIBC_2.16): Likewise.
263
264 2019-10-04 Florian Weimer <fweimer@redhat.com>
265
266 [BZ #24930]
267 * elf/dl-load.c (_dl_map_object_from_fd): Only assign TLS modid if
268 the link map will be returned to the caller.
269 * elf/Makefile [$(have-fpie) && $(build-shared)] (tests, tests-pie):
270 Add tst-dlopen-aout-pie.
271 (tst-tst-dlopen-aout-no-pie): Set.
272 (CFLAGS-tst-dlopen-aout-pie.c): Build with -fpie.
273 (tst-dlopen-aout-pie): Link with -ldl -lpthread.
274 * elf/tst-dlopen-aout-pie.c: New file.
275
276 2019-10-04 Florian Weimer <fweimer@redhat.com>
277
278 [BZ #24900]
279 * elf/dl-load.c (_dl_map_object_from_fd): Do not use the file ID
280 when loading the executable as part of an explicit loader
281 invocation.
282
283 2019-10-04 Florian Weimer <fweimer@redhat.com>
284
285 nptl: Move pthread_attr_setinheritsched implementation into libc.
286 * nptl/Makefile (routines): Add pthread_attr_setinheritsched.
287 (libpthread-routines): Remove pthread_attr_setinheritsched.
288 * nptl/Versions (libpthread GLIBC_2.0): Remove
289 pthread_attr_setinheritsched.
290 * nptl/forward.c (pthread_attr_setinheritsched): Remove definition.
291 * nptl/nptl-init.c (pthread_functions): Remove initializer for
292 ptr_pthread_attr_setinheritsched.
293 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
294 Remove ptr_pthread_attr_setinheritsched member.
295 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
296 Remove pthread_attr_setinheritsched.
297 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
298 Likewise.
299 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
300 Likewise.
301 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
302 Likewise.
303 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
304 Likewise.
305 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
306 Likewise.
307 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
308 Likewise.
309 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
310 Likewise.
311 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
312 (GLIBC_2.4): Likewise.
313 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
314 (GLIBC_2.0): Likewise.
315 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
316 (GLIBC_2.18): Likewise.
317 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
318 (GLIBC_2.18): Likewise.
319 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
320 (GLIBC_2.0): Likewise.
321 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
322 (GLIBC_2.0): Likewise.
323 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
324 Likewise.
325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
326 (GLIBC_2.0): Likewise.
327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
328 (GLIBC_2.3): Likewise.
329 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
330 (GLIBC_2.17): Likewise.
331 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
332 (GLIBC_2.27): Likewise.
333 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
334 (GLIBC_2.0): Likewise.
335 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
336 (GLIBC_2.2): Likewise.
337 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
338 Likewise.
339 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
340 Likewise.
341 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
342 (GLIBC_2.0): Likewise.
343 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
344 (GLIBC_2.2): Likewise.
345 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
346 (GLIBC_2.2.5): Likewise.
347 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
348 (GLIBC_2.16): Likewise.
349
350 2019-10-02 Joseph Myers <joseph@codesourcery.com>
351
352 * sunrpc/clnt_udp.c: Include <libc-diag.h>.
353 (clntudp_call): Disable -Wmaybe-uninitialized around declaration
354 of total_deadline.
355
356 2019-10-02 Alistair Francis <alistair.francis@wdc.com>
357
358 * string/endian.h: Restore the __USE_MISC conditionals.
359
360 2019-10-02 Joseph Myers <joseph@codesourcery.com>
361
362 * string/tester.c: Ignore -Warray-bounds and
363 -Wmemset-transposed-args at top level.
364 [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict and -Wstringop-overflow=
365 at top level.
366 [__GNUC_PREREQ (8, 0)]: Ignore -Wstringop-truncation at top level.
367 (test_stpncpy): Do not ignore warnings here.
368 (test_strncat): Likewise.
369 (test_strncpy): Likewise.
370 (test_memset): Likewise.
371
372 2019-10-02 Ɓukasz Majewski <lukma@denx.de>
373
374 * include/time.h: Add #include <bits/types/struct_timeval.h>
375
376 2019-10-02 Paul A. Clarke <pc@us.ibm.com>
377
378 * sysdeps/powerpc/fpu/fenv_private.h:
379 (__TEST_AND_BEGIN_NON_STOP): New.
380 (__TEST_AND_END_NON_STOP): New.
381 (libc_feholdexcept_setround_ppc): Use __TEST_AND_BEGIN_NON_STOP.
382 (__libc_femergeenv_ppc): Use __TEST_AND_BEGIN_NON_STOP and
383 __TEST_AND_END_NON_STOP.
384 (libc_feholdsetround_noex_ppc_ctx): Use __TEST_AND_END_NON_STOP.
385
386 2019-10-02 Arjun Shankar <arjun@redhat.com>
387
388 debugglibc.sh: Implement program arguments
389 * Makefile (debugglibc): Change variable definition.
390
391 2019-10-01 Alistair Francis <alistair.francis@wdc.com>
392
393 * time/bits/types/struct_timespec.h: Add padding for the timespec if
394 required.
395
396 2019-10-01 Zack Weinberg <zackw@panix.com>
397 Alistair Francis <alistair.francis@wdc.com>
398
399 * string/endian.h: Unconditionally define LITTLE_ENDIAN,
400 BIG_ENDIAN, PDP_ENDIAN, and BYTE_ORDER. Condition byteswapping
401 macros only on !__ASSEMBLER__. Move the definitions of
402 __BIG_ENDIAN, __LITTLE_ENDIAN, __PDP_ENDIAN, __FLOAT_WORD_ORDER,
403 and __LONG_LONG_PAIR to...
404 * string/bits/endian.h: ...this new file, which includes
405 the renamed header bits/endianness.h for the definition of
406 __BYTE_ORDER and possibly __FLOAT_WORD_ORDER.
407
408 * string/Makefile: Install bits/endianness.h.
409 * include/bits/endian.h: New wrapper.
410
411 * bits/endian.h: Rename to bits/endianness.h.
412 Add multiple-include guard. Rewrite the comment explaining what
413 the machine-specific variants of this file should do.
414
415 * sysdeps/unix/sysv/linux/ia64/bits/endian.h:
416 Move to sysdeps/ia64.
417
418 * sysdeps/aarch64/bits/endian.h
419 * sysdeps/alpha/bits/endian.h
420 * sysdeps/arm/bits/endian.h
421 * sysdeps/csky/bits/endian.h
422 * sysdeps/hppa/bits/endian.h
423 * sysdeps/ia64/bits/endian.h
424 * sysdeps/m68k/bits/endian.h
425 * sysdeps/microblaze/bits/endian.h
426 * sysdeps/mips/bits/endian.h
427 * sysdeps/nios2/bits/endian.h
428 * sysdeps/powerpc/bits/endian.h
429 * sysdeps/riscv/bits/endian.h
430 * sysdeps/s390/bits/endian.h
431 * sysdeps/sh/bits/endian.h
432 * sysdeps/sparc/bits/endian.h
433 * sysdeps/x86/bits/endian.h:
434 Rename to endianness.h; canonicalize form of file; remove
435 redundant definitions of __FLOAT_WORD_ORDER.
436
437 * sysdeps/powerpc/bits/endianness.h: Remove logic to check for
438 broken compilers.
439
440 * ctype/ctype.h
441 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
442 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
443 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h
444 * sysdeps/ia64/ieee754.h
445 * sysdeps/ieee754/ieee754.h
446 * sysdeps/ieee754/ldbl-128/ieee754.h
447 * sysdeps/ieee754/ldbl-128ibm/ieee754.h
448 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
449 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
450 * sysdeps/mips/ieee754/ieee754.h
451 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
452 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
453 * sysdeps/nptl/pthread.h
454 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h
455 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
456 * sysdeps/sparc/sparc32/ieee754.h
457 * sysdeps/unix/sysv/linux/generic/bits/stat.h
458 * sysdeps/unix/sysv/linux/generic/bits/statfs.h
459 * sysdeps/unix/sysv/linux/sys/acct.h
460 * wctype/bits/wctype-wchar.h:
461 Include bits/endian.h, not endian.h.
462
463 * sysdeps/unix/sysv/linux/hppa/pthread.h: Don’t include endian.h.
464
465 * sysdeps/mips/ieee754/ieee754.h: Use __LDBL_MANT_DIG__
466 in ifdefs, instead of LDBL_MANT_DIG. Only include float.h
467 when __LDBL_MANT_DIG__ is not predefined, in which case
468 define __LDBL_MANT_DIG__ to equal LDBL_MANT_DIG.
469
470 2019-09-17 Mike FABIAN <mfabian@redhat.com>
471
472 * localedata/locales/az_AZ: Make lang_name agree with CLDR
473 * localedata/locales/be_BY@latin: Make lang_name agree with langtable
474 * localedata/locales/ber_DZ: Make language, country_name, lang_name agree with langtable
475 * localedata/locales/ber_MA: Add country_name from langtable, make language, lang_name agree with langtable
476 * localedata/locales/bhb_IN: Add country_name from langtable, make lang_name agree with langtable
477 * localedata/locales/bho_IN: Add country_name from langtable
478 * localedata/locales/chr_US: Make country_name agree with CLDR
479 * localedata/locales/crh_UA: Make lang_name agree with langtable
480 * localedata/locales/csb_PL: Add country_name from langtable
481 * localedata/locales/doi_IN: Add country_name from langtable
482 * localedata/locales/dv_MV: Add country_name from langtable
483 * localedata/locales/eo: Fix capitalisation of lang_name, agree with CLDR
484 * localedata/locales/hak_TW: Make lang_name agree with langtable
485 * localedata/locales/hif_FJ: Make lang_name agree with langtable
486 * localedata/locales/hne_IN: Add country_name from langtable
487 * localedata/locales/ia_FR: Fix capitalisation of lang_name, agree with CLDR
488 * localedata/locales/id_ID: Make lang_name agree with CLDR
489 * localedata/locales/ig_NG: Make country_name, lang_name agree with CLDR
490 * localedata/locales/kab_DZ: Make country_name agree with CLDR
491 * localedata/locales/ks_IN: Make country_name agree with CLDR
492 * localedata/locales/ku_TR: Make country_name, lang_name agree with CLDR
493 * localedata/locales/mag_IN: Add country_name from langtable
494 * localedata/locales/mfe_MU: Make country_name agree with CLDR
495 * localedata/locales/mhr_RU: Add lang_name from langtable
496 * localedata/locales/mi_NZ: Make lang_name agree with CLDR
497 * localedata/locales/ms_MY: Make lang_name agree with CLDR
498 * localedata/locales/nan_TW: Make lang_name agree with langtable
499 * localedata/locales/nan_TW@latin: Make lang_name agree with langtable
500 * localedata/locales/nds_DE: Make lang_name agree with langtable
501 * localedata/locales/nds_NL: Make lang_name agree with langtable
502 * localedata/locales/nhn_MX: Add country_name from langtable, make lang_name agree with langtable
503 * localedata/locales/niu_NU: Add country_name, lang_name from langtable
504 * localedata/locales/niu_NZ: Add lang_name from langtable
505 * localedata/locales/nr_ZA: Fix capitalisation of lang_name from langtable
506 * localedata/locales/oc_FR: Fix capitalisation of lang_name from langtable
507 * localedata/locales/or_IN: Fix spelling of language from langtable
508 * localedata/locales/pa_PK: Make country_name agree with CLDR
509 * localedata/locales/ps_AF: Make country_name agree with CLDR
510 * localedata/locales/quz_PE: Make language, lang_name agree with langtable
511 * localedata/locales/raj_IN: Make country_name, lang_name agree with langtable
512 * localedata/locales/rw_RW: Make country_name agree with CLDR
513 * localedata/locales/sah_RU: Make langauge, country_name, lang_name agree with CLDR
514 * localedata/locales/sat_IN: Make country_name, lang_name agree with langtable
515 * localedata/locales/sc_IT: Fix capitalisaton of lang_name according to langtable
516 * localedata/locales/sd_IN: Make country_name, lang_name agree with CLDR
517 * localedata/locales/sd_IN@devanagari: Make lang_name agree with langtable
518 * localedata/locales/shn_MM: Make country_name agree with langtable
519 * localedata/locales/shs_CA: Make language, lang_name agree with langtable
520 * localedata/locales/sm_WS: Make country_name agree with langtable
521 * localedata/locales/ss_ZA: Fix capitalisation of lang_name from langtable
522 * localedata/locales/szl_PL: Add country_name from langtable
523 * localedata/locales/te_IN: Fix country_name from CLDR
524 * localedata/locales/tg_TJ: Add lang_name from CLDR
525 * localedata/locales/the_NP: Add country_name, lang_name from langtable
526 * localedata/locales/tk_TM: Make lang_name agree with CLDR
527 * localedata/locales/tl_PH: Add lang_name from langtable
528 * localedata/locales/to_TO: Make lang_name agree with CLDR
529 * localedata/locales/tpi_PG: Make country_name, lang_name agree with langtable
530 * localedata/locales/tt_RU@iqtelif: Add country_name, lang_name from langtable
531 * localedata/locales/ug_CN: Add lang_name from CLDR
532 * localedata/locales/unm_US: Add lang_name from langtable
533 * localedata/locales/wa_BE: Fix capitalisation of lang_name from langtable
534 * localedata/locales/wo_SN: Add lang_name from CLDR
535 * localedata/locales/xh_ZA: Fix capitalisation of country_name, lang_name from CLDR
536 * localedata/locales/yo_NG: Make country_name agree with CLDR
537 * localedata/locales/yuw_PG: Make langauge, lang_name agree with langtable
538 * localedata/locales/zh_HK: Add lang_name from langtable
539 * localedata/locales/zh_SG: Add lang_name from langtable
540
541 2019-09-30 Joseph Myers <joseph@codesourcery.com>
542
543 * scripts/build-many-glibcs.py (Context.checkout): Default
544 binutils version to 2.33 branch.
545
546 2019-10-01 Lukasz Majewski <lukma@denx.de>
547
548 * include/time.h (valid_timeval_to_timespec64): Add.
549 * include/time.h (valid_timespec_to_timespec64): Likewise.
550 * include/time.h (valid_timespec64_to_timespec): Likewise.
551 * include/time.h (valid_timespec64_to_timeval): Likewise.
552
553 2019-09-30 Joseph Myers <joseph@codesourcery.com>
554
555 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
556 (MAP_SYNC): New macro.
557 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
558 (MAP_SYNC): Likewise.
559 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
560 kernel version number to 5.3.
561
562 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
563
564 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): Rename to
565 fesetenv_control.
566 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Accommodate
567 rename of fesetenv_mode to fegetenv_control.
568 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
569 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
570 * sysdeps/powerpc/fpu/fenv_private.h (__libc_femergeenv_ppc): Likewise.
571 (libc_feholdsetround_noex_ppc_ctx): Likewise.
572
573 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
574
575 * sysdeps/powerpc/fpu/fenv_private.h
576 (libc_feholdsetround_noex_ppc_ctx): Call fesetenv_mode instead
577 of fesetenv_register.
578
579 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
580
581 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status): Rename to
582 fegetenv_control.
583 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Accommodate
584 rename of fegetenv_status to fegetenv_control.
585 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
586 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
587 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Likewise.
588 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
589 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
590
591 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
592
593 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline): Use
594 'mffscrn' instruction on POWER9.
595 (__fesetround_inline_nocheck): Likewise.
596
597 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
598
599 * sysdeps/powerpc/fpu/fenv_libc.h (FPSCR_EXCEPTIONS_MASK): New.
600 * sysdeps/powerpc/fpu/fenv_private.h (__libc_femergeenv_ppc): Optimize
601 to write FPSCR control only, if exceptions have not changed.
602
603 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
604
605 * sysdeps/powerpc/fpu/fenv_libc.h:
606 (__TEST_AND_ENTER_NON_STOP): New.
607 (__TEST_AND_EXIT_NON_STOP): New.
608 * sysdeps/powerpc/fpu/fenv_private.h
609 (_FPU_ALL_TRAPS): Delete, replace with FPSCR_ENABLES_MASK.
610 (_FPU_MASK_RN): Delete.
611 (_FPU_MASK_NOT_RN_NI): Delete.
612 (_FPU_MASK_TRAPS_RN): Delete, replace with ~FPSCR_CONTROL_MASK.
613 (_FPU_MASK_FRAC_INEX_RET_CC): Delete, replace with ~FPSCR_STATUS_MASK.
614 (__libc_feholdbits_ppc): Delete, move code into
615 libc_feholdexcept_setround_ppc.
616 (libc_feholdexcept_ppc): Delete.
617 (libc_fesetround_ppc): Delete.
618 (libc_fetestexcept_ppc): Delete.
619 (libc_feholdsetround_ppc): Delete.
620 (__libc_femergeenv_ppc): Use __TEST_AND_ENTER/EXIT_NON_STOP.
621 (libc_feholdsetround_noex_ppc_ctx): Likewise.
622 (libc_feupdateenv_test_ppc): Use FPSCR defines.
623 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
624 __TEST_AND_ENTER_NON_STOP.
625 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
626 * sysdeps/powerpc/fpu/feholdexcpt.c (__feholdexcept): Likewise.
627 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
628 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
629 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
630 (_FPU_MASK_ALL): Delete.
631
632 2019-09-27 Joseph Myers <joseph@codesourcery.com>
633
634 * sysdeps/gnu/netinet/tcp.h (TCP_TX_DELAY): New macro.
635
636 2019-09-26 Lukasz Majewski <lukma@denx.de>
637
638 * include/time.h: Add struct __timespec64 definition
639
640 2019-09-26 Siddhesh Poyarekar <siddhesh@gotplt.org>
641
642 * scripts/vcs_to_changelog/misc_util.py (decode): Remove latin1
643 from codecs.
644
645 2019-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
646
647 * rt/Makefile (CFLAGS-clock_nanosleep.c): Move to ...
648 * time/Makefile (CFLAGS-clock_nanosleep.c): ... here.
649
650 * sysdeps/unix/sysv/linux/Makefile
651 (CFLAGS-tst-sigcontextinfo-get_pc.c): Rename to
652 CFLAGS-tst-sigcontext-get_pc.c.
653
654 2019-09-24 Alistair Francis <alistair.francis@wdc.com>
655
656 * inet/net-internal.h: Fix uninitalised clntudp_call() variable.
657
658 2019-09-24 Andreas Schwab <schwab@suse.de>
659
660 * sysdeps/unix/sysv/linux/arm/sysdep.h
661 (HAVE_CLOCK_GETTIME_VSYSCALL): Define to "__vdso_clock_gettime",
662 not "__vdso_gettimeofday".
663 (HAVE_GETTIMEOFDAY_VSYSCALL): Define to "__vdso_gettimeofday", not
664 "__vdso_clock_gettime".
665 * sysdeps/unix/sysv/linux/mips/sysdep.h
666 (HAVE_CLOCK_GETTIME_VSYSCALL): Define to "__vdso_clock_gettime",
667 not "__vdso_gettimeofday".
668 (HAVE_GETTIMEOFDAY_VSYSCALL): Define to "__vdso_gettimeofday", not
669 "__vdso_clock_gettime".
670
671 2019-09-19 Paul A. Clarke <pc@us.ibm.com>
672
673 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_and_set_rn): New.
674 (__fe_mffscrn): New.
675 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
676 Do not clear enable bits, remove obsolete code, use
677 fegetenv_and_set_rn.
678 (libc_feresetround_ppc): Remove obsolete code, use
679 fegetenv_and_set_rn.
680
681 2019-09-19 Stefan Liebler <stli@linux.ibm.com>
682
683 * support/support_ptrace.c: Remove inclusion of sys/prctl.h.
684
685 2019-09-19 Stefan Liebler <stli@linux.ibm.com>
686
687 * sysdeps/s390/hp-timing.h (_HP_TIMING_H): Undefine.
688 (_HP_TIMING_S390_H): Define.
689
690 2019-09-18 Joseph Myers <joseph@codesourcery.com>
691
692 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
693 version to 5.3.
694 (clone3): New syscall.
695 (pidfd_open): Likewise.
696
697 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
698 version to 5.3.
699
700 2019-09-18 Stefan Liebler <stli@linux.ibm.com>
701
702 * sysdeps/s390/hp-timing.h: New file.
703
704 2019-09-18 Joseph Myers <joseph@codesourcery.com>
705
706 * sysdeps/unix/sysv/linux/riscv/vfork.S: Do not include
707 <linux/sched.h>.
708 (CLONE_VM): New macro.
709 (CLONE_VFORK): Likewise.
710
711 2019-09-18 Stefan Liebler <stli@linux.ibm.com>
712
713 * elf/tst-pldd.c (do_test): Add UNSUPPORTED check.
714 Rearrange subprocesses.
715 (pldd_process): New function.
716 * support/Makefile (libsupport-routines): Add support_ptrace.
717 * support/xptrace.h: New file.
718 * support/support_ptrace.c: Likewise.
719
720 2019-09-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
721
722 * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Remove file.
723
724 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
725 (INTERNAL_VSYSCALL_CALL): Remove.
726 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
727 (INTERNAL_VSYSCALL_CALL): Likewise.
728 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
729 (INTERNAL_VSYSCALL_CALL): Likewise.
730 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_VSYSCALL_CALL):
731 New macro.
732
733 * sysdeps/unix/sysv/linux/libc-vdso.h (VDSO_IFUNC_RET): Define if not
734 defined.
735 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
736 (__get_timebase_freq): Remove use of
737 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK.
738 (get_timebase_freq_fallback): New symbol.
739 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (time): Use
740 HAVE_GETTIMEOFDAY_VSYSCALL.
741 * sysdeps/unix/sysv/linux/powerpc/time.c (gettimeofday): Use
742 HAVE_TIME_VSYSCALL.
743 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Include generic
744 implementation.
745 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
746 (INTERNAL_VSYSCALL_CALL_TYPE): Make calling convention similar to
747 powerpc64.
748 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove macro.
749 * .../sysv/linux/powerpc/powerpc64/sysdep.h
750 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Likewise.
751 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
752 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
753
754 * sysdeps/powerpc/powerpc32/backtrace.c (is_sigtramp_address,
755 is_sigtramp_address_rt): Use HAVE_SIGTRAMP_{RT}32 instead of SHARED.
756 * sysdeps/powerpc/powerpc64/backtrace.c (is_sigtramp_address):
757 Likewise.
758 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove file.
759 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Likewise.
760 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
761 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Likewise.
762 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
763 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Likewise.
764 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
765 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
766 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
767 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
768 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
769 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
770 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
771 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Likewise.
772 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
773 * sysdeps/unix/sysv/linux/aarch64/sysdep.h
774 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
775 HAVE_GETTIMEOFDAY_VSYSCALL): Define value based on kernel exported
776 name.
777 * sysdeps/unix/sysv/linux/arm/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
778 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
779 * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
780 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
781 * sysdeps/unix/sysv/linux/mips/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
782 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
783 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
784 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
785 HAVE_GETCPU_VSYSCALL, HAVE_TIME_VSYSCALL, HAVE_GET_TBFREQ,
786 HAVE_SIGTRAMP_RT64, HAVE_SIGTRAMP_32, HAVE_SIGTRAMP_RT32i,
787 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
788 * sysdeps/unix/sysv/linux/riscv/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
789 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
790 HAVE_GETCPU_VSYSCALL): Likewise.
791 * sysdeps/unix/sysv/linux/s390/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
792 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
793 HAVE_GETCPU_VSYSCALL): Likewise.
794 * sysdeps/unix/sysv/linux/sparc/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
795 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
796 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
797 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
798 HAVE_GETCPU_VSYSCALL): Likewise.
799 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME, VDSO_HASH): Define to
800 invalid names if architecture does not define them.
801 (get_vdso_mangle_symbol): New symbol.
802 * sysdeps/unix/sysv/linux/init-first.c: New file.
803 * sysdeps/unix/sysv/linux/libc-vdso.h: Likewise.
804 * sysdeps/unix/sysv/linux/powerpc/init-first.c (gettimeofday,
805 clock_gettime, clock_getres, getcpu, time): Remove declaration.
806 (__libc_vdso_platform_setup_arch): Likewise and use
807 get_vdso_mangle_symbol to setup vDSO symbols.
808 (sigtramp_rt64, sigtramp32, sigtramp_rt32, get_tbfreq): Add
809 attribute_hidden.
810 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Likewise.
811 * sysdeps/unix/sysv/linux/sysdep-vdso.h (VDSO_SYMBOL): Remove
812 definition.
813
814 * sysdeps/unix/make-syscalls.sh: Make vDSO call use get_vdso_symbol.
815 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (__gettimeofday):
816 Use get_vdso_symbol instead of _dl_vdso_vsym.
817 * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
818 * sysdeps/unix/sysv/linux/riscv/flush-icache.c
819 (__lookup_riscv_flush_icache): Likewise.
820 * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
821 Likewise.
822 * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
823 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
824 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
825 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
826 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
827 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
828 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
829 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
830 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
831 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
832 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
833 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (VDSO_NAME, VDSO_HASH):
834 Define.
835 * sysdeps/unix/sysv/linux/arm/sysdep.h (VDSO_NAME, VDSO_HASH):
836 Likewise.
837 * sysdeps/unix/sysv/linux/i386/sysdep.h (VDSO_NAME, VDSO_HASH):
838 Likewise.
839 * sysdeps/unix/sysv/linux/riscv/sysdep.h (VDSO_NAME, VDSO_HASH):
840 Likewise.
841 * sysdeps/unix/sysv/linux/sparc/sysdep.h (VDSO_NAME, VDSO_HASH):
842 Likewise.
843 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (VDSO_NAME, VDSO_HASH):
844 Likewise.
845 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
846 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Remove
847 definition.
848 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
849 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
850 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
851 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
852 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
853 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
855 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
856 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
857 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
858 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
859 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
860 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
861 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
862 * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
863 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Likewise.
864 * sysdeps/unix/sysv/linux/s390/sysdep.h: Likewise.
865 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION,
866 PREPARE_VERSION_KNOWN, VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6,
867 VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15,
868 VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29,
869 VDSO_NAME_LINUX_4_15, VDSO_HASH_LINUX_4_15): Remove defines.
870 (get_vdso_symbol): New function.
871
872 2019-09-17 Chung-Lin Tang <cltang@codesourcery.com>
873
874 * sysdeps/generic/hp-timing-common.h (HP_TIMING_PRINT): Correct
875 position of string null termination.
876
877 2019-09-14 Aurelien Jarno <aurelien@aurel32.net>
878
879 [BZ #24986]
880 * sysdeps/unix/alpha/getegid.S: Move to ...
881 * sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
882 * sysdeps/unix/alpha/geteuid.S: Move to ...
883 * sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
884 * sysdeps/unix/alpha/getppid.S: Move to ...
885 * sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
886
887 2019-09-09 Paul Eggert <eggert@cs.ucla.edu>
888
889 Fix http: URL in 'configure'
890 * configure.ac: Add URL to AC_INIT so that it generates an
891 https: URL instead of an http: URL.
892 * configure: Regenerate.
893
894 Regenerate charmap-kw.h, locfile-kw.h
895 This propagates the recent http->https URL changes.
896 Since I used gperf 3.1 to regenerate, this is also a minor
897 internal-to-localedef API change.
898 URL problem reported by Joseph Myers in:
899 https://www.sourceware.org/ml/libc-alpha/2019-09/msg00143.html
900 * locale/programs/charmap-kw.h, locale/programs/locfile-kw.h:
901 Regenerate with gperf 3.1.
902 * locale/programs/linereader.h (kw_hash_fct_t):
903 * locale/programs/repertoire.c (repertoiremap_hash):
904 2nd arg is now size_t not unsigned, for compatibility with gperf 3.1.
905
906 2019-09-05 Florian Weimer <fweimer@redhat.com>
907
908 [BZ #24962]
909 * locale/localeinfo.h (_nl_category_names): Remove union wrapper.
910 (_nl_category_names_get): New function.
911 * intl/dcigettext.c (category_to_name): Call it.
912 * locale/findlocale.c (_nl_find_locale): Likewise.
913 * intl/loadlocale.c (_nl_load_locale): Likewise.
914 * locale/newlocale.c (__newlocale): Likewise.
915 * locale/setlocale.c (_nl_category_names): Adjust definition.
916 (_nl_category_name_idxs): Likewise.
917 (new_composite_name): Call _nl_category_names_get.
918 (setlocale): Likewise.
919
920 2019-09-05 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
921
922 * math/bits/mathcalls.h (totalorder, totalordermag): Replace
923 const attribute with pure attribute.
924
925 2019-09-04 Lukasz Majewski <lukma@denx.de>
926
927 * sysdeps/unix/sysv/linux/kernel-features.h
928 (__ASSUME_TIME64_SYSCALLS): New macro.
929
930 2019-09-04 Zack Weinberg <zackw@panix.com>
931
932 [BZ #24959]
933 * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
934 * rt/clock_getres.c: Move to time/clock_getres.c.
935 * rt/clock_gettime.c: Move to time/clock_gettime.c.
936 * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
937 * rt/clock_settime.c: Move to time/clock_settime.c.
938 * rt/tst-clock.c: Move to time/tst-clock.c.
939 * rt/tst-clock2.c: Move to time/tst-clock2.c.
940 * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
941 * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
942 * rt/clock-compat.c: Delete file.
943
944 * time/clock_getcpuclockid.c
945 * time/clock_getres.c
946 * time/clock_gettime.c
947 * time/clock_nanosleep.c
948 * time/clock_settime.c
949 * sysdeps/posix/clock_getres.c
950 * sysdeps/unix/clock_gettime.c
951 * sysdeps/unix/clock_nanosleep.c
952 * sysdeps/unix/clock_settime.c
953 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
954 * sysdeps/unix/sysv/linux/clock_getres.c
955 * sysdeps/unix/sysv/linux/clock_gettime.c
956 * sysdeps/unix/sysv/linux/clock_nanosleep.c
957 * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
958 defined by this file with default symbol version GLIBC_2_17,
959 and optionally a compatibility alias at symbol version GLIBC_2_2.
960 * include/time.h: Remove internal prototypes for clock_getres,
961 clock_nanosleep, and clock_getcpuclockid.
962
963 * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
964 Remove unused function realtime_gettime.
965
966 * rt/Makefile (clock-routines, routines): Remove variable.
967 (librt-routines): Remove clock-compat.
968 (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
969 and tst-cpuclock1.
970 * time/Makefile (routines): Add clock_getres, clock_gettime,
971 clock_settime, clock_getcpuclockid, and clock_nanosleep.
972 (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
973 and tst-cpuclock1.
974
975 * rt/Versions (libc): Remove entire stanza.
976 (librt GLIBC_2.2): Remove all clock_* functions.
977 * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
978 Add clock_getres, clock_gettime, clock_settime,
979 clock_getcpuclockid, and clock_nanosleep.
980 (libc GLIBC_PRIVATE): Add __clock_gettime.
981
982 * sysdeps/mach/hurd/i386/librt.abilist
983 * sysdeps/unix/sysv/linux/alpha/librt.abilist
984 * sysdeps/unix/sysv/linux/arm/be/librt.abilist
985 * sysdeps/unix/sysv/linux/arm/le/librt.abilist
986 * sysdeps/unix/sysv/linux/hppa/librt.abilist
987 * sysdeps/unix/sysv/linux/i386/librt.abilist
988 * sysdeps/unix/sysv/linux/ia64/librt.abilist
989 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
990 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
991 * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
992 * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
993 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
994 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
996 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
997 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
998 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
999 * sysdeps/unix/sysv/linux/sh/librt.abilist
1000 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
1001 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
1002 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
1003 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
1004 Remove entries for clock_getres, clock_gettime, clock_settime,
1005 clock_getcpuclockid, and clock_nanosleep.
1006
1007 * sysdeps/mach/hurd/i386/libc.abilist
1008 * sysdeps/unix/sysv/linux/alpha/libc.abilist
1009 * sysdeps/unix/sysv/linux/arm/libc.abilist
1010 * sysdeps/unix/sysv/linux/hppa/libc.abilist
1011 * sysdeps/unix/sysv/linux/i386/libc.abilist
1012 * sysdeps/unix/sysv/linux/ia64/libc.abilist
1013 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
1014 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
1015 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1016 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1017 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1018 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1019 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1020 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1022 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
1023 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
1024 * sysdeps/unix/sysv/linux/sh/be/libc.abilist
1025 * sysdeps/unix/sysv/linux/sh/le/libc.abilist
1026 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
1027 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
1028 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
1029 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
1030 Add another set of entries for clock_getres, clock_gettime,
1031 clock_settime, clock_getcpuclockid, and clock_nanosleep at
1032 whatever version GLIBC_2.2 maps to.
1033
1034 2019-09-03 Aurelien Jarno <aurelien@aurel32.net>
1035
1036 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
1037
1038 2019-09-03 Florian Weimer <fweimer@redhat.com>
1039
1040 [BZ #24950]
1041 * locale/programs/charmap.h (struct charseq): Turn bytes into a
1042 flexible array member.
1043 * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
1044 replace.
1045
1046 2019-09-02 Florian Weimer <fweimer@redhat.com>
1047
1048 * misc/tst-mntent-autofs.c: New file.
1049 * misc/Makefile (tests): Add misc/tst-mntent-autofs.
1050
1051 2019-09-02 Ian Kent <ikent@redhat.com>
1052
1053 Use autofs "ignore" mount hint in getmntent_r/getmntent.
1054 * misc/mntent_r.c (get_mnt_entry): New function, extracted from
1055 getmntent_r.
1056 (__getmntent_r): Call it. Filter out autofs entries with an
1057 "ignore" mount option.
1058
1059 2019-08-30 Wilco Dijkstra <wdijkstr@arm.com>
1060
1061 * benchtests/bench-memcpy.c (simple_memcpy): Remove.
1062 (generic_memcpy): Include generic C memcpy.
1063 * benchtests/bench-memmove.c (simple_memmove): Remove.
1064 (generic_memmove): Include generic C memmove.
1065 * benchtests/bench-memset.c (simple_memset): Remove.
1066 (generic_memset): Include generic C memset.
1067 * benchtests/bench-memset-large.c (simple_memset): Remove.
1068 (generic_memset): Include generic C memset.
1069 * benchtests/bench-memset-walk.c (simple_memset): Remove.
1070 (generic_memset): Include generic C memset.
1071 * string/memcpy.c (MEMCPY): Add defines to enable redirection.
1072 * string/memset.c (MEMSET): Likewise.
1073 * sysdeps/x86_64/memcopy.h: Remove empty file.
1074
1075 2019-08-30 Florian Weimer <fweimer@redhat.com>
1076
1077 nptl: Move pthread_attr_getinheritsched implementation into libc.
1078 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
1079 (libpthread-routines): Remove pthread_attr_getinheritsched.
1080 * nptl/Versions (libpthread GLIBC_2.0): Remove
1081 pthread_attr_getinheritsched.
1082 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
1083 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1084 ptr_pthread_attr_getinheritsched.
1085 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1086 Remove ptr_pthread_attr_getinheritsched member.
1087 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1088 Remove pthread_attr_getinheritsched.
1089 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1090 Likewise.
1091 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
1092 Likewise.
1093 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
1094 Likewise.
1095 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1096 Likewise.
1097 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1098 Likewise.
1099 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1100 Likewise.
1101 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1102 Likewise.
1103 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1104 (GLIBC_2.4): Likewise.
1105 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1106 (GLIBC_2.0): Likewise.
1107 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
1108 (GLIBC_2.18): Likewise.
1109 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
1110 (GLIBC_2.18): Likewise.
1111 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1112 (GLIBC_2.0): Likewise.
1113 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1114 (GLIBC_2.0): Likewise.
1115 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1116 Likewise.
1117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1118 (GLIBC_2.0): Likewise.
1119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1120 (GLIBC_2.3): Likewise.
1121 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1122 (GLIBC_2.17): Likewise.
1123 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1124 (GLIBC_2.27): Likewise.
1125 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1126 (GLIBC_2.0): Likewise.
1127 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1128 (GLIBC_2.2): Likewise.
1129 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
1130 Likewise.
1131 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
1132 Likewise.
1133 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1134 (GLIBC_2.0): Likewise.
1135 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1136 (GLIBC_2.2): Likewise.
1137 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1138 (GLIBC_2.2.5): Likewise.
1139 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1140 (GLIBC_2.16): Likewise.
1141
1142 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1143
1144 * sysdeps/mach/hurd/getcwd.c
1145 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
1146 slash if we got an unknown root directory. (__getcwd): Do not fail with
1147 EGRATUITOUS if we got an unknown root directory.
1148 * hurd/hurdselect.c (SELECT_ERROR): New macro.
1149 (_hurd_select):
1150 - Add `error' field to `d' structures array.
1151 - If a poll descriptor is bogus, set EBADF, but continue with a zero
1152 timeout.
1153 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
1154 EBADF there is any bit set above _hurd_dtablesize.
1155 - Do not request io_select on bogus descriptors (SELECT_ERROR).
1156 - On io_select request error, record the error.
1157 - On io_select bogus reply, use EIO error code.
1158 - On io_select bogus or error reply, record the error.
1159 - Do not destroy reply port for bogus FDs.
1160 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
1161 EBADF case, or else POLLERR.
1162 - On error, make select simulated readiness.
1163
1164 [BZ #19903]
1165 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
1166 as __vm_allocate.
1167
1168 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
1169 unlocks SS and returns to the saved PC.
1170 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
1171 thread stack instead of the saved PC.
1172
1173 2019-08-30 Richard Braun <rbraun@sceen.net>
1174
1175 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
1176 timeout.
1177 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
1178 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
1179 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
1180 <limits.h>.
1181 (_hurd_select): Replace the call to __io_select with either
1182 __io_select_request or __io_select_timeout_request, depending on the
1183 timeout. Count the number of ready descriptors (replies for which at
1184 least one type bit is set). Implement the timeout locally when there is
1185 no file descriptor.
1186
1187 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
1188
1189 * elf/dl-addr.c (determine_info): Calculate the symbol index
1190 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
1191 * elf/dl-lookup.c (do_lookup_x): Ditto.
1192 (_dl_setup_hash): Initialize MIPS xhash translation table.
1193 * elf/elf.h (SHT_MIPS_XHASH): New define.
1194 (DT_MIPS_XHASH): New define.
1195 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
1196 define.
1197 (ELF_MACHINE_HASH_SYMIDX): Ditto.
1198 (ELF_MACHINE_XHASH_SETUP): Ditto.
1199 * sysdeps/mips/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/linkmap.h (struct link_map_machine): New member.
1204 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
1205 version.
1206 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
1207
1208 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1209
1210 * sysdeps/sh/preconfigure.ac: New file.
1211 * sysdeps/sh/preconfigure: Regenerate.
1212 * sysdeps/sh/be/sh3/Implies: New file.
1213 * sysdeps/sh/be/sh4/Implies: Likewise.
1214 * sysdeps/sh/le/sh3/Implies: Likewise.
1215 * sysdeps/sh/le/sh4/Implies: Likewise.
1216 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
1217 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
1218 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
1219 sysdeps/unix/sysv/linux/sh/le/*.abilist.
1220 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
1221
1222 * sysdeps/microblaze/preconfigure.ac: New file.
1223 * sysdeps/microblaze/preconfigure: Regenerate.
1224 * sysdeps/microblaze/be/implies: New file.
1225 * sysdeps/microblaze/le/implies: Likewise.
1226 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
1227 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
1228 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
1229 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
1230 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
1231
1232 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
1233 * sysdeps/arm/preconfigure: Regenerate.
1234 * sysdeps/arm/be/Implies: New file.
1235 * sysdeps/arm/be/armv6/Implies: Likewise.
1236 * sysdeps/arm/be/armv6t2/Implies: Likewise.
1237 * sysdeps/arm/be/armv7/Implies: Likewise.
1238 * sysdeps/arm/le/Implies: Likewise.
1239 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
1240 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
1241 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
1242 sysdeps/unix/sysv/linux/arm/le/*.abilist.
1243 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
1244
1245 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
1246
1247 Fix posix/tst-regex by using UTF-8 and own test input
1248 Problem reported by Stefan Liebler in:
1249 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
1250 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
1251 (do_test, test_expr): Adjust to the fact that this source file,
1252 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
1253 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
1254 so that it is now UTF-8.
1255
1256 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
1257
1258 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
1259 (fegetenv_status): Generate 'mffsl' unconditionally.
1260
1261 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
1262
1263 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
1264 FPSCR read.
1265 (_FPU_MASK_ALL): Delete.
1266
1267 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
1268
1269 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
1270 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
1271 if possible.
1272 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
1273 with simpler required steps, set fewer FPSCR bits if possible.
1274
1275 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
1276
1277 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
1278 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
1279 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
1280 weight access to FPSCR; remove unnecessary second FPSCR read and
1281 validate.
1282 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1283 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
1284 access to FPSCR; Use macros in fenv_libc.h in favor of local.
1285
1286 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
1287
1288 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
1289 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
1290 (fenv_exceptions_to_reg): New.
1291 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
1292 operation with call to fenv_exceptions_to_reg().
1293 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
1294
1295 2019-08-28 Florian Weimer <fweimer@redhat.com>
1296
1297 * misc/mntent.c (struct mntent_buffer): Define.
1298 (mntent_buffer): Adjust type to void *.
1299 (allocate): Adjust for allocate_once.
1300 (deallocate): New function.
1301 (getmntent): Call allocate_once.
1302
1303 2019-08-28 Florian Weimer <fweimer@redhat.com>
1304
1305 nptl: Move pthread_attr_setdetachstate implementation into libc.
1306 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
1307 (libpthread-routines): Remove pthread_attr_setdetachstate.
1308 * nptl/Versions (libpthread GLIBC_2.0): Remove
1309 pthread_attr_setdetachstate.
1310 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
1311 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1312 ptr_pthread_attr_setdetachstate.
1313 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1314 Remove ptr_pthread_attr_setdetachstate member.
1315 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1316 Remove pthread_attr_setdetachstate.
1317 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1318 Likewise.
1319 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1320 Likewise.
1321 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1322 Likewise.
1323 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1324 Likewise.
1325 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1326 Likewise.
1327 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1328 Likewise.
1329 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1330 (GLIBC_2.4): Likewise.
1331 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1332 (GLIBC_2.0): Likewise.
1333 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1334 (GLIBC_2.18): Likewise.
1335 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1336 (GLIBC_2.0): Likewise.
1337 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1338 (GLIBC_2.0): Likewise.
1339 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1340 Likewise.
1341 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1342 (GLIBC_2.0): Likewise.
1343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1344 (GLIBC_2.3): Likewise.
1345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1346 (GLIBC_2.17): Likewise.
1347 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1348 (GLIBC_2.27): Likewise.
1349 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1350 (GLIBC_2.0): Likewise.
1351 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1352 (GLIBC_2.2): Likewise.
1353 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1354 Likewise.
1355 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1356 (GLIBC_2.0): Likewise.
1357 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1358 (GLIBC_2.2): Likewise.
1359 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1360 (GLIBC_2.2.5): Likewise.
1361 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1362 (GLIBC_2.16): Likewise.
1363
1364 2019-08-28 Florian Weimer <fweimer@redhat.com>
1365
1366 [BZ #24902]
1367 * login/Makefile (tests): Add tst-pututxline-lockfail.
1368 (tst-pututxline-lockfail): Link with -lpthread.
1369 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
1370 (__libc_getutid_r): Adjust.
1371 (__libc_pututline): Likewise. Check for file_offset == -1.
1372 * login/tst-pututxline-lockfail.c: New file.
1373
1374 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
1375
1376 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
1377 * posix/tst-regex.input: New file.
1378
1379 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
1380
1381 [BZ #24916]
1382 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
1383 tst-undefined-weak.
1384 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
1385 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
1386 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
1387 * sysdeps/mips/tst-undefined-weak.c: Likewise.
1388 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
1389 Increment highest valid ABIVERSION value.
1390
1391 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1392
1393 * sysdeps/unix/sysv/linux/mips/Makefile
1394 (test-xfail-check-execstack):
1395 Move under mips-has-gnustack != yes.
1396 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
1397 Apply -Wa,-execstack if mips-force-execstack == yes.
1398 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1399 * sysdeps/unix/sysv/linux/mips/configure.ac
1400 (mips-force-execstack): New var.
1401 Set to yes for hard-float builds with minimum_kernel < 4.8.0
1402 or minimum_kernel not set at all.
1403 (mips-has-gnustack): New var.
1404 Use value of libc_cv_as_noexecstack
1405 if mips-force-execstack != yes, otherwise set to no.
1406
1407 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1408 Florian Weimer <fweimer@redhat.com>
1409
1410 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
1411 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
1412 Make a compat_symbol.
1413 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
1414 (__profil_counter_global): Likewise.
1415
1416 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
1417 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
1418 uintptr_t.
1419 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
1420 sigcontext_get_pc and return aligned cast to uintptr_t.
1421 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
1422 * sysdeps/posix/profil.c (profil_count): Change PC argument to
1423 uintptr_t.
1424 (__profil): Use SA_SIGINFO.
1425 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
1426 uintptr_t.
1427 (__sprofil): Use SA_SIGINFO.
1428 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
1429 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
1430 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1431 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
1432 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
1433 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
1434 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
1435 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
1436 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
1437 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
1438 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
1439 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
1440 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
1441 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
1442 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
1443 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
1444 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
1445 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
1446 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
1447 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
1448 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
1449 GET_PC, __sigaction, sigaction): Remove defines.
1450 (sigcontext_get_pc): New function.
1451 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
1452 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
1453 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1454 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
1455 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
1456 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
1457 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
1458 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
1459 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
1460 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
1461 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
1462 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
1463 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
1464 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
1465 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
1466 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
1467 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
1468 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
1469 Handle CTX argument as ucontext_t.
1470 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1471 Likewise.
1472 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1473 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1474 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1475 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
1476 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
1477 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1478 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1479 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1480 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
1481 tst-sigcontextinfo-get_pc.
1482 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
1483 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
1484
1485 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1486
1487 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
1488 definition.
1489
1490 2019-08-23 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
1491
1492 [BZ #24682]
1493 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
1494 * localedata/locales/ug_CN (first_weekday): Likewise.
1495 * localedata/locales/zh_CN (first_weekday): Likewise.
1496
1497 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
1498
1499 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
1500 field name in mcontext_t struct.
1501
1502 2019-08-22 Joseph Myers <joseph@codesourcery.com>
1503
1504 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
1505 unsupported with libidn2 before 2.0.5.
1506 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
1507
1508 * manual/time.texi (strftime): Document %Ob and %OB as C2X
1509 features.
1510
1511 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
1512
1513 Remove dead regex code
1514 * posix/regex_internal.c (re_node_set_insert):
1515 Remove unnecessary assignment. Reported by Tim RĂŒhsen in:
1516 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
1517
1518 Fix bad pointer / leak in regex code
1519 This was found by Coverity (CID 1484201). [BZ#24844]
1520 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
1521 pointer and/or memory leak when storage is exhausted.
1522
1523 2019-08-21 Zack Weinberg <zackw@panix.com>
1524
1525 * misc/syslog.c (__vsyslog_internal)
1526 * time/getdate.c (__getdate_r)
1527 * time/tst_wcsftime.c (main):
1528 Use return value of time, not its argument.
1529
1530 * string/strfry.c (strfry)
1531 * sysdeps/mach/sleep.c (__sleep):
1532 Remove unnecessary casts of NULL in calls to time.
1533
1534 2019-08-21 Joseph Myers <joseph@codesourcery.com>
1535
1536 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
1537 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
1538 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
1539 (__TGMATH_2_NARROW_F): Likewise.
1540 (__TGMATH_2_NARROW_D): New macro.
1541 (__TGMATH_2_NARROW_F16): Likewise.
1542 (__TGMATH_2_NARROW_F32): Likewise.
1543 (__TGMATH_2_NARROW_F64): Likewise.
1544 (__TGMATH_2_NARROW_F32X): Likewise.
1545 (__TGMATH_2_NARROW_F64X): Likewise.
1546 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
1547 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
1548 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
1549 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
1550 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
1551 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
1552 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
1553 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
1554 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
1555 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
1556 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
1557 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
1558 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
1559 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
1560 Likewise.
1561 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
1562 Likewise.
1563 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
1564 Likewise.
1565 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
1566 Likewise.
1567 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
1568 Likewise.
1569 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
1570 Likewise.
1571 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
1572 Likewise.
1573 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
1574 Likewise.
1575 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1576 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
1577 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1578 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
1579 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1580 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
1581 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1582 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
1583 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
1584 Likewise.
1585 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
1586 Likewise.
1587 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
1588 Likewise.
1589 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
1590 Likewise.
1591 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1592 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
1593 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1594 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
1595 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1596 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
1597 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1598 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
1599 * math/gen-tgmath-tests.py (Type): Add members
1600 non_standard_real_argument_types_list, long_double_type,
1601 complex_float64_type and float32x_ext_type.
1602 (Type.__init__): Set the new members.
1603 (Type.floating_type): Add new argument floatn.
1604 (Type.real_floating_type): Likewise.
1605 (Type.can_combine_types): Likewise.
1606 (Type.combine_types): Likewise.
1607 (Type.init_types): Create internal Float32x_ext type.
1608 (Tests.__init__): Define Float32x_ext in generated C code.
1609 (Tests.add_tests): Handle narrowing functions.
1610 (Tests.add_all_tests): Likewise.
1611 (Tests.tests_text): Allow variation in mant_dig for narrowing
1612 functions with compilers before GCC 8.
1613 * math/Makefile (tgmath3-narrow-types): New variable.
1614 (tgmath3-narrow-macros): Likewise.
1615 (tgmath3-macros): Add $(tgmath3-narrow-macros).
1616
1617 2019-08-20 Andreas Schwab <schwab@suse.de>
1618
1619 * sysdeps/i386/fpu/libm-test-ulps: Update.
1620
1621 2019-08-19 Carlos O'Donell <carlos@redhat.com>
1622
1623 * nscd/nscd.conf: Add warning and comment about shared option.
1624
1625 2019-08-19 Carlos O'Donell <carlos@redhat.com>
1626
1627 * nss/nsswitch.conf: Expand comments, and simplify defaults.
1628 * manual/nss.texi (NSS Basics): List all known databases.
1629 (Services in the NSS configuration): Mention automount.
1630
1631 2019-08-19 Florian Weimer <fweimer@redhat.com>
1632
1633 Do not print backtraces on fatal errors.
1634 * debug/fortify_fail.c (__libc_argv): Remove declaration.
1635 (__fortify_fail_abort): Remove definition.
1636 (__fortify_fail): Call __libc_message directly.
1637 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
1638 (__stack_chk_fail): Call __fortify_fail instead of
1639 __fortify_fail_abort.
1640 * include/stdio.h (__fortify_fail_abort): Remove declaration.
1641 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
1642 definitions.
1643 (__libc_message): Do not handle do_backtrace. Do not call
1644 BEFORE_ABORT.
1645 (__libc_fatal): Do not pass do_backtrace to __libc_message.
1646 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
1647 (before_abort): Remove definitions.
1648
1649 2019-08-16 Florian Weimer <fweimer@redhat.com>
1650
1651 nptl: Move pthread_attr_getdetachstate implementation into libc.
1652 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
1653 (libpthread-routines): Remove pthread_attr_getdetachstate.
1654 * nptl/Versions (libpthread GLIBC_2.0): Remove
1655 pthread_attr_getdetachstate.
1656 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
1657 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1658 ptr_pthread_attr_getdetachstate.
1659 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1660 Remove ptr_pthread_attr_getdetachstate member.
1661 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1662 Remove pthread_attr_getdetachstate.
1663 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1664 Likewise.
1665 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1666 Likewise.
1667 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1668 Likewise.
1669 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1670 Likewise.
1671 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1672 Likewise.
1673 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1674 Likewise.
1675 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1676 (GLIBC_2.4): Likewise.
1677 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1678 (GLIBC_2.0): Likewise.
1679 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1680 (GLIBC_2.18): Likewise.
1681 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1682 (GLIBC_2.0): Likewise.
1683 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1684 (GLIBC_2.0): Likewise.
1685 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1686 Likewise.
1687 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1688 (GLIBC_2.0): Likewise.
1689 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1690 (GLIBC_2.3): Likewise.
1691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1692 (GLIBC_2.17): Likewise.
1693 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1694 (GLIBC_2.27): Likewise.
1695 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1696 (GLIBC_2.0): Likewise.
1697 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1698 (GLIBC_2.2): Likewise.
1699 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1700 Likewise.
1701 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1702 (GLIBC_2.0): Likewise.
1703 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1704 (GLIBC_2.2): Likewise.
1705 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1706 (GLIBC_2.2.5): Likewise.
1707 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1708 (GLIBC_2.16): Likewise.
1709
1710 2019-08-16 Joseph Myers <joseph@codesourcery.com>
1711
1712 * math/libm-test-compat_totalorder.inc (do_test)
1713 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
1714 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
1715 * math/libm-test-compat_totalordermag.inc (do_test)
1716 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
1717
1718 2019-08-15 Florian Weimer <fweimer@redhat.com>
1719
1720 nptl: Move pthread_attr_init implementation into libc.
1721 * nptl/Makefile (routines): Add pthread_attr_init.
1722 (libpthread-routines): Remove pthread_attr_init.
1723 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
1724 (libpthread GLIBC_2.0): Likewise.
1725 * nptl/pthread_attr_init.c: Check for libc compat version instead
1726 of libpthread compat version.
1727 * nptl/forward.c (__pthread_attr_init_2_0)
1728 (__pthread_attr_init_2_1): Remove definitions.
1729 * nptl/nptl-init.c (pthread_functions): Remove initializers for
1730 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
1731 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1732 Remove members ptr___pthread_attr_init_2_0,
1733 ptr___pthread_attr_init_2_1.
1734 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1735 Remove pthread_attr_init.
1736 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1737 Likewise.
1738 (GLIBC_2.1): Likewise.
1739 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1740 Likewise.
1741 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1742 Likewise.
1743 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1744 Likewise.
1745 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1746 Likewise.
1747 (GLIBC_2.1): Likewise.
1748 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1749 Likewise.
1750 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1751 (GLIBC_2.4): Likewise.
1752 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1753 (GLIBC_2.0): Likewise.
1754 (GLIBC_2.1): Likewise.
1755 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1756 (GLIBC_2.18): Likewise.
1757 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1758 (GLIBC_2.0): Likewise.
1759 (GLIBC_2.1): Likewise.
1760 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1761 (GLIBC_2.0): Likewise.
1762 (GLIBC_2.1): Likewise.
1763 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1764 Likewise.
1765 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1766 (GLIBC_2.0): Likewise.
1767 (GLIBC_2.1): Likewise.
1768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1769 (GLIBC_2.3): Likewise.
1770 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1771 (GLIBC_2.17): Likewise.
1772 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1773 (GLIBC_2.27): Likewise.
1774 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1775 (GLIBC_2.0): Likewise.
1776 (GLIBC_2.1): Likewise.
1777 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1778 (GLIBC_2.2): Likewise.
1779 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1780 Likewise.
1781 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1782 (GLIBC_2.0): Likewise.
1783 (GLIBC_2.1): Likewise.
1784 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1785 (GLIBC_2.2): Likewise.
1786 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1787 (GLIBC_2.2.5): Likewise.
1788 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1789 (GLIBC_2.16): Likewise.
1790
1791 2019-08-15 Florian Weimer <fweimer@redhat.com>
1792
1793 [BZ #24900]
1794 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
1795 new object in __RTLD_OPENEXEC mode (except for the origin).
1796 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
1797 check for the error message.
1798 (do_test): Call it. Add check using relative path.
1799 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
1800 (tst-dlopen-aout-container): Link with libpthread.
1801 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
1802
1803 2019-08-15 Joseph Myers <joseph@codesourcery.com>
1804
1805 * math/bits/mathcalls.h
1806 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1807 (totalorder): Take pointer arguments.
1808 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1809 (totalordermag): Likewise.
1810 * manual/arith.texi (totalorder): Likewise.
1811 (totalorderf): Likewise.
1812 (totalorderl): Likewise.
1813 (totalorderfN): Likewise.
1814 (totalorderfNx): Likewise.
1815 (totalordermag): Likewise.
1816 (totalordermagf): Likewise.
1817 (totalordermagl): Likewise.
1818 (totalordermagfN): Likewise.
1819 (totalordermagfNx): Likewise.
1820 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
1821 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
1822 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
1823 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
1824 totalorderl, totalordermag, totalordermagf, totalordermagl,
1825 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
1826 totalordermagf64, totalordermagf32x, totalorderf64x,
1827 totalordermagf64x, totalorderf128 and totalordermagf128.
1828 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
1829 and compat_totalordermag.
1830 (libm-test-funcs-compat): New variable.
1831 (libm-tests-compat): Likewise.
1832 (tests): Do not include compat tests.
1833 (tests-internal): Add compat tests.
1834 ($(foreach t,$(libm-tests-base),
1835 $(objpfx)$(t)-compat_totalorder.o)): Depend
1836 on $(objpfx)libm-test-totalorder.c.
1837 ($(foreach t,$(libm-tests-base),
1838 $(objpfx)$(t)-compat_totalordermag.o): Depend on
1839 $(objpfx)libm-test-totalordermag.c.
1840 (tgmath3-macros): Remove totalorder and totalordermag.
1841 * math/libm-test-compat_totalorder.inc: New file.
1842 * math/libm-test-compat_totalordermag.inc: Likewise.
1843 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
1844 (RUN_TEST_fpfp_b): New macro.
1845 (RUN_TEST_LOOP_fpfp_b): Likewise.
1846 * math/libm-test-totalorder.inc (totalorder_test_data): Use
1847 TEST_fpfp_b.
1848 (totalorder_test): Condition on [!COMPAT_TEST].
1849 (do_test): Likewise.
1850 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
1851 TEST_fpfp_b.
1852 (totalordermag_test): Condition on [!COMPAT_TEST].
1853 (do_test): Likewise.
1854 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
1855 totalorder and totalordermag.
1856 * math/test-tgmath.c (NCALLS): Change to 132.
1857 (F(compile_test)): Do not call totalorder or totalordermag.
1858 (F(totalorder)): Remove.
1859 (F(totalordermag)): Likewise.
1860 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
1861 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
1862 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
1863 SJSTR_HELPER.
1864 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
1865 [!_ISOMAC] (TEST_SIZE): Update call to STR.
1866 [!_ISOMAC] (TEST_ALIGN): Likewise.
1867 [!_ISOMAC] (TEST_OFFSET): Likewise.
1868 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
1869 and <first-versions.h>.
1870 (__totalorder): Take pointer arguments. Add symbol versions and
1871 compat symbols.
1872 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1873 <shlib-compat.h> and <first-versions.h>.
1874 (__totalordermag): Take pointer arguments. Add symbol versions
1875 and compat symbols.
1876 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1877 <shlib-compat.h> and <first-versions.h>.
1878 (__totalorder): Take pointer arguments. Add symbol versions and
1879 compat symbols.
1880 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1881 <shlib-compat.h> and <first-versions.h>.
1882 (__totalordermag): Take pointer arguments. Add symbol versions
1883 and compat symbols.
1884 * sysdeps/ieee754/float128/float128_private.h
1885 (__totalorder_compatl): New macro.
1886 (__totalordermag_compatl): Likewise.
1887 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
1888 and <first-versions.h>.
1889 (__totalorderf): Take pointer arguments. Add symbol versions and
1890 compat symbols.
1891 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1892 <shlib-compat.h> and <first-versions.h>.
1893 (__totalordermagf): Take pointer arguments. Add symbol versions
1894 and compat symbols.
1895 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1896 <shlib-compat.h> and <first-versions.h>.
1897 (__totalorderl): Take pointer arguments. Add symbol versions and
1898 compat symbols.
1899 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1900 <shlib-compat.h> and <first-versions.h>.
1901 (__totalordermagl): Take pointer arguments. Add symbol versions
1902 and compat symbols.
1903 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
1904 <shlib-compat.h>.
1905 (__totalorderl): Take pointer arguments. Add symbol versions and
1906 compat symbols.
1907 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
1908 <shlib-compat.h>.
1909 (__totalordermagl): Take pointer arguments. Add symbol versions
1910 and compat symbols.
1911 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1912 <shlib-compat.h> and <first-versions.h>.
1913 (__totalorderl): Take pointer arguments. Add symbol versions and
1914 compat symbols.
1915 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1916 <shlib-compat.h> and <first-versions.h>.
1917 (__totalordermagl): Take pointer arguments. Add symbol versions
1918 and compat symbols.
1919 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1920 pointer arguments.
1921 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1922 Likewise.
1923 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1924 (do_test): Update calls to totalorderl and totalordermagl.
1925 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1926 Update calls to totalorderl and totalordermagl.
1927 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1928 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1929 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1930 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1931 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1932 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1933 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1934 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1935 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1936 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1937 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1938 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1939 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1940 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1941 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1942 Likewise.
1943 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1944 Likewise.
1945 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1946 Likewise.
1947 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1948 Likewise.
1949 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1950 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1951 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1952 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1953 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1954 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1955 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1956 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1957
1958 2019-08-15 Florian Weimer <fweimer@redhat.com>
1959
1960 [BZ #24899]
1961 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1962 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1963 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1964 Likewise.
1965 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1966 __attribute_nonstring__ to ut_id.
1967 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1968 Likewise.
1969
1970 2019-08-15 Florian Weimer <fweimer@redhat.com>
1971
1972 [BZ #24880]
1973 * login/utmp_file.c (file_locking_failed): Use struct flock64.
1974 (file_locking_unlock): Likewise.
1975
1976 2019-08-15 Florian Weimer <fweimer@redhat.com>
1977
1978 [BZ #24879]
1979 login: Disarm timer after utmp lock acquisition.
1980 * login/utmp_file.c (struct file_locking): Remove.
1981 (try_file_lock): Adjust.
1982 (file_lock_restore): Remove function.
1983 (__libc_getutent_r): .
1984 (internal_getut_r): Likewise.
1985 (__libc_getutline_r): Likewise.
1986 (__libc_pututline): Likewise.
1987 (__libc_updwtmp): Likewise.
1988
1989 2019-08-15 Florian Weimer <fweimer@redhat.com>
1990
1991 nptl: Remove pthread_self compatibility symbol from libpthread.
1992 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1993 pthread_equal.
1994 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1995 * nptl/compat-pthread_self.c: Remove file.
1996 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1997 Remove pthread_self.
1998 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1999 Likewise.
2000 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2001 Likewise.
2002 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2003 Likewise.
2004 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2005 Likewise.
2006 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2007 Likewise.
2008 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2009 (GLIBC_2.4): Likewise.
2010 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2011 (GLIBC_2.0): Likewise.
2012 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2013 (GLIBC_2.18): Likewise.
2014 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2015 (GLIBC_2.0): Likewise.
2016 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2017 (GLIBC_2.0): Likewise.
2018 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
2019 Likewise.
2020 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2021 (GLIBC_2.0): Likewise.
2022 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2023 (GLIBC_2.3): Likewise.
2024 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2025 (GLIBC_2.17): Likewise.
2026 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2027 (GLIBC_2.0): Likewise.
2028 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2029 (GLIBC_2.2): Likewise.
2030 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2031 Likewise.
2032 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2033 (GLIBC_2.0): Likewise.
2034 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2035 (GLIBC_2.2): Likewise.
2036 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2037 (GLIBC_2.2.5): Likewise.
2038 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2039 (GLIBC_2.16): Likewise.
2040
2041 2019-08-15 Florian Weimer <fweimer@redhat.com>
2042
2043 nptl: Move pthread_attr_destroy implementation into libc.
2044 * nptl/Makefile (routines): Add pthread_attr_destroy.
2045 (libpthread-routines): Remove pthread_attr_destroy.
2046 * nptl/Versions (libpthread GLIBC_2.0): Remove
2047 pthread_attr_destroy.
2048 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
2049 libc compat version instead of libpthread compat version.
2050 * nptl/forward.c (pthread_attr_destroy): Remove definition.
2051 * nptl/nptl-init.c (pthread_functions): Remove initializer for
2052 ptr_pthread_attr_destroy.
2053 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
2054 Remove ptr_pthread_attr_destroy member.
2055 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2056 Remove pthread_attr_destroy.
2057 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2058 Likewise.
2059 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2060 Likewise.
2061 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
2062 Likewise.
2063 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2064 Likewise.
2065 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2066 Likewise.
2067 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2068 Likewise.
2069 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2070 (GLIBC_2.4): Likewise.
2071 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2072 (GLIBC_2.0): Likewise.
2073 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2074 (GLIBC_2.18): Likewise.
2075 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2076 (GLIBC_2.0): Likewise.
2077 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2078 (GLIBC_2.0): Likewise.
2079 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
2080 Likewise.
2081 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2082 (GLIBC_2.0): Likewise.
2083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2084 (GLIBC_2.3): Likewise.
2085 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2086 (GLIBC_2.17): Likewise.
2087 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2088 (GLIBC_2.27): Likewise.
2089 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2090 (GLIBC_2.0): Likewise.
2091 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2092 (GLIBC_2.2): Likewise.
2093 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2094 Likewise.
2095 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2096 (GLIBC_2.0): Likewise.
2097 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2098 (GLIBC_2.2): Likewise.
2099 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2100 (GLIBC_2.2.5): Likewise.
2101 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2102 (GLIBC_2.16): Likewise.
2103
2104 2019-08-15 Andreas Schwab <schwab@suse.de>
2105
2106 * sysdeps/i386/fpu/libm-test-ulps: Update.
2107
2108 2019-08-15 Florian Weimer <fweimer@redhat.com>
2109
2110 * malloc/Makefile (tests): Only add tst-mxfast for
2111 $(have-tunables).
2112 * malloc/tst-mxfast.c: Fix copyright year.
2113 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
2114 assert for checks.
2115
2116 2019-08-15 Florian Weimer <fweimer@redhat.com>
2117
2118 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
2119 descriptor.
2120 * login/Makefile (tests): Add tst-updwtmpx.
2121 * login/tst-updwtmpx.c: New file.
2122
2123 2019-08-15 Florian Weimer <fweimer@redhat.com>
2124
2125 nptl: Move pthread_equal implementation into libc.
2126 * nptl/Makefile (routines): Add pthread_equal.
2127 * nptl/forward.c (pthread_equal): Remove definition.
2128 * nptl/nptl-init.c (pthread_functions): Remove initializer for
2129 ptr_pthread_equal.
2130 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
2131 Remove ptr_pthread_equal member.
2132 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2133 Remove pthread_equal.
2134 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2135 Likewise.
2136 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2137 Likewise.
2138 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
2139 Likewise.
2140 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2141 Likewise.
2142 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2143 Likewise.
2144 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2145 Likewise.
2146 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2147 (GLIBC_2.4): Likewise.
2148 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2149 (GLIBC_2.0): Likewise.
2150 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2151 (GLIBC_2.18): Likewise.
2152 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2153 (GLIBC_2.0): Likewise.
2154 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2155 (GLIBC_2.0): Likewise.
2156 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
2157 Likewise.
2158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2159 (GLIBC_2.0): Likewise.
2160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2161 (GLIBC_2.3): Likewise.
2162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2163 (GLIBC_2.17): Likewise.
2164 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2165 (GLIBC_2.27): Likewise.
2166 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2167 (GLIBC_2.0): Likewise.
2168 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2169 (GLIBC_2.2): Likewise.
2170 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2171 Likewise.
2172 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2173 (GLIBC_2.0): Likewise.
2174 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2175 (GLIBC_2.2): Likewise.
2176 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2177 (GLIBC_2.2.5): Likewise.
2178 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2179 (GLIBC_2.16): Likewise.
2180
2181 2019-08-14 Florian Weimer <fweimer@redhat.com>
2182
2183 * support/support_descriptors.c: Include <support/descriptors.h>.
2184
2185 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
2186
2187 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
2188 Disable DC ZVA code if this macro is defined as zero.
2189 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
2190 Change to zero to disable using DC ZVA.
2191
2192 2019-08-13 Joseph Myers <joseph@codesourcery.com>
2193
2194 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
2195 Update comment.
2196 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
2197 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
2198 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
2199 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
2200 Likewise.
2201
2202 2019-08-13 Florian Weimer <fweimer@redhat.com>
2203
2204 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
2205 Remove macros.
2206 (struct file_locking): New.
2207 (try_file_lock, file_unlock, file_lock_restore): New functions.
2208 (__libc_getutent_r): Use the new functions.
2209 (internal_getut_r): Likewise.
2210 (__libc_getutline_r): Likewise.
2211 (__libc_pututline): Likewise.
2212 (__libc_updwtmp): Likewise.
2213
2214 2019-08-13 Joseph Myers <joseph@codesourcery.com>
2215
2216 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
2217 comment.
2218 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
2219 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
2220 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
2221 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2222 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2223 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2224 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2225 Likewise.
2226 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2227 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2228 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2229 Likewise.
2230 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2231 Likewise.
2232 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2233 Likewise.
2234 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2235 Likewise.
2236 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2237 Likewise.
2238 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2239 Likewise.
2240 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2241 Likewise.
2242 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
2243 (IEC_60559_BFP_EXT)]: Likewise.
2244 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2245 Likewise.
2246 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2247 Likewise.
2248 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2249 Likewise.
2250 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2251 Likewise.
2252 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2253 Likewise.
2254 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2255 Likewise.
2256 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2257 Likewise.
2258 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2259 Likewise.
2260 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2261 Likewise, except for totalorder, totalordermag, getpayload,
2262 setpayload and setpayloadsig.
2263 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
2264 except for totalorder and totalordermag.
2265
2266 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
2267 (strdup): Likewise.
2268 (strndup): Likewise.
2269
2270 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
2271 Undefine and define to 1 if [_GNU_SOURCE].
2272 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
2273 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
2274 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
2275 (__USE_ISOC99): Likewise.
2276 (__USE_ISOC95): Likewise.
2277 * manual/creature.texi (_ISOC2X_SOURCE): Document.
2278
2279 2019-08-13 Florian Weimer <fweimer@redhat.com>
2280
2281 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
2282 are always true.
2283 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
2284 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
2285 * login/getutmpx.c (getutmpx): Likewise.
2286 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
2287 true.
2288 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
2289 _HAVE_UT_TV are always true.
2290 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
2291 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
2292 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
2293 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
2294 are always true.
2295 (internal_getut_r): _HAVE_UT_TYPE is always true.
2296 (__libc_pututline): Likewise.
2297 * login/programs/utmpdump.c (print_entry): Assume that
2298 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
2299 _HAVE_UT_TV are always true.
2300 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
2301 _HAVE_UT_ID are always true.
2302 * sysdeps/gnu/bits/utmp.h: Move to ...
2303 * bits/utmp.h: ... here, replacing the old file.
2304
2305 2019-08-12 Florian Weimer <fweimer@redhat.com>
2306
2307 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
2308 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
2309 not set.
2310 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
2311 (do_test): Open the executable using an absolute path. Print
2312 error message to standard output.
2313
2314 2019-08-09 DJ Delorie <dj@redhat.com>
2315
2316 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
2317 * manual/tunables.texi: Document it.
2318 * malloc/malloc.c (do_set_mxfast): New.
2319 (__libc_mallopt): Call it.
2320 * malloc/arena.c: Add mxfast tunable.
2321 * malloc/tst-mxfast.c: New.
2322 * malloc/Makefile: Add it.
2323
2324 2019-08-08 Niklas HambĂŒchen <mail@nh2.me>
2325 Carlos O'Donell <carlos@redhat.com>
2326
2327 [BZ #24026]
2328 * malloc/malloc.c (__malloc_info): Account for top chunk.
2329
2330 2019-08-07 Joseph Myers <joseph@codesourcery.com>
2331
2332 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
2333 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
2334
2335 2019-08-06 Joseph Myers <joseph@codesourcery.com>
2336
2337 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
2338
2339 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2340
2341 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
2342
2343 2019-08-05 Joseph Myers <joseph@codesourcery.com>
2344
2345 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
2346 New macro.
2347
2348 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2349
2350 [BZ #19767]
2351 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
2352 Remove definition.
2353 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
2354 Likewise.
2355 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
2356 Likewise.
2357 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
2358 Likewise.
2359 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
2360 (ALWAYS_USE_VSYSCALL): Likewise.
2361 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
2362 (ALWAYS_USE_VSYSCALL): Likewise.
2363 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2364 (ALWAYS_USE_VSYSCALL): Likewise.
2365 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2366 (ALWAYS_USE_VSYSCALL): Likewise.
2367 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
2368 Likewise.
2369 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2370 (ALWAYS_USE_VSYSCALL): Likewise.
2371 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2372 (ALWAYS_USE_VSYSCALL): Likewise.
2373 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
2374 Likewise.
2375 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
2376 Likewise.
2377 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
2378 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
2379 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
2380 USE_VSYSCALL): Remove defitions.
2381
2382 [BZ #19767]
2383 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
2384 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
2385 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
2386 Define.
2387
2388 [BZ #19767]
2389 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
2390 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
2391 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2392 (ALWAYS_USE_VSYSCALL): Define.
2393 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2394 (ALWAYS_USE_VSYSCALL): Likewise.
2395
2396 [BZ #19767]
2397 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
2398 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
2399 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
2400 Define.
2401
2402 * sysdeps/sh/libm-test-ulps: Update.
2403
2404 2019-08-05 Florian Weimer <fweimer@redhat.com>
2405
2406 [BZ #23518]
2407 * login/uptmp-private.h (struct ufuncs): Remove definition.
2408 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
2409 (__libc_utmp_jump_table): Remove declarations.
2410 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
2411 (__libc_getutline_r, __libc_pututline, __libc_endutent)
2412 (__libc_updwtmp): Declare.
2413 * login/getutent_r.c (__libc_utmp_unknown_functions)
2414 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
2415 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
2416 (endutent_unknown): Remove definitions.
2417 (__setutent): Call __libc_setutent.
2418 (__getutent_r): Call __libc_getutent_r.
2419 (__pututline): Call __libc_pututline.
2420 (__endutent): Call __libc_endutent.
2421 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
2422 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
2423 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
2424 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
2425 (__libc_setutent): Rename from stetutent_file. Drop static.
2426 (maybe_setutent): New function.
2427 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
2428 Check for initialization.
2429 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
2430 Check for initialization.
2431 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
2432 Check for initialization.
2433 (__libc_pututline): Rename from pututline_file. Drop static.
2434 Check for initialization.
2435 (__libc_endutent): Rename from endutent_file. Drop static. Check
2436 for initialization.
2437 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
2438 * login/utmpname.c (__utmpname): Call __libc_endutent.
2439 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
2440 __libc_getutlien_r, __libc_endutent.
2441 * manual/users.texi (Who Logged In, Manipulating the Database):
2442 Adjust.
2443
2444 2019-08-05 Alexandra HĂĄjkovĂĄ <ahajkova@redhat.com>
2445
2446 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
2447
2448 2019-08-02 Joseph Myers <joseph@codesourcery.com>
2449
2450 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
2451
2452 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
2453 kernel version number to 5.2.
2454
2455 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
2456
2457 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
2458 mnemonics and set .machine power8.
2459 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
2460 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
2461 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
2462 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
2463 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
2464 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
2465 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
2466 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
2467 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
2468 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
2469
2470 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2471
2472 * sysdeps/hppa/fpu/libm-test-ulps: Update.
2473
2474 2019-08-01 Florian Weimer <fweimer@redhat.com>
2475
2476 [BZ #24867]
2477 * malloc/malloc.c (__malloc_info): Remove unwanted leading
2478 whitespace.
2479
2480 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2481
2482 [BZ #15813]
2483 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
2484 attempt.
2485
2486 2019-08-01 Carlos O'Donell <carlos@redhat.com>
2487
2488 * version.h (RELEASE): Set to "stable".
2489 (VERSION): Set to "2.30".
2490 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
2491
2492 * manual/install.texi: Update component versions.
2493 * INSTALL: Regenerate.
2494 * NEWS: Update.
2495
2496 2019-07-31 Carlos O'Donell <carlos@redhat.com>
2497
2498 * po/be.po: Update translations.
2499 * po/bg.po: Likewise.
2500 * po/ca.po: Likewise.
2501 * po/cs.po: Likewise.
2502 * po/da.po: Likewise.
2503 * po/de.po: Likewise.
2504 * po/el.po: Likewise.
2505 * po/eo.po: Likewise.
2506 * po/es.po: Likewise.
2507 * po/fi.po: Likewise.
2508 * po/fr.po: Likewise.
2509 * po/gl.po: Likewise.
2510 * po/hr.po: Likewise.
2511 * po/hu.po: Likewise.
2512 * po/ia.po: Likewise.
2513 * po/id.po: Likewise.
2514 * po/it.po: Likewise.
2515 * po/ja.po: Likewise.
2516 * po/ko.po: Likewise.
2517 * po/lt.po: Likewise.
2518 * po/nb.po: Likewise.
2519 * po/nl.po: Likewise.
2520 * po/pl.po: Likewise.
2521 * po/pt_BR.po: Likewise.
2522 * po/ru.po: Likewise.
2523 * po/rw.po: Likewise.
2524 * po/sk.po: Likewise.
2525 * po/sl.po: Likewise.
2526 * po/sv.po: Likewise.
2527 * po/tr.po: Likewise.
2528 * po/uk.po: Likewise.
2529 * po/vi.po: Likewise.
2530 * po/zh_CN.po: Likewise.
2531 * po/zh_TW.po: Likewise.
2532
2533 2019-07-31 Florian Weimer <fweimer@redhat.com>
2534
2535 [BZ #24583]
2536 [BZ #24677]
2537 iconv, libio: Revert reference counting changes.
2538 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
2539 free the steps array.
2540 * libio/Makefile (tests): Remove tst-wfile-gconv.
2541 (tests-container): Do not add tst-wfile-ascii.
2542 (tst-wfile-gconv-ENV): Do not set.
2543 (generated): Do not add tst-wfile-gconv.mtrace,
2544 tst-wfile-gconv.check.
2545 [($run-built-tests)] (tests-special): Do not add
2546 tst-wfile-gconv-mem.out.
2547 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
2548 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
2549 instead of __wcsmbs_clone_conv.
2550 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
2551 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
2552
2553 2019-07-30 Joseph Myers <joseph@codesourcery.com>
2554
2555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2556 (__CONTEXT_FUNC_NAME): Restore setting of r31.
2557
2558 2019-07-30 Florian Weimer <fweimer@redhat.com>
2559
2560 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
2561 type to uintptr_t. Update comment.
2562 (check_stack_top): Adjust.
2563
2564 2019-07-29 Florian Weimer <fweimer@redhat.com>
2565
2566 Linux: Move declaration of getdents64 to <dirent.h>.
2567 * bits/dirent_ext.h: New file.
2568 * dirent/Makefile (headers): Add bits/dirent_ext.h.
2569 * dirent/dirent.h: Include <bits/dirent_ext.h>.
2570 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
2571 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
2572 declaration.
2573 * manual/filesys.texi (Low-level Directory Access): Update header
2574 to dirent.h.
2575
2576 2019-07-29 DJ Delorie <dj@redhat.com>
2577 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2578
2579 [BZ #24794]
2580 * Makeconfig (all-subdirs): Improved source comments.
2581 * Makefile (testroot.pristine/install.stamp): Pass
2582 subdirs='$(sorted-subdirs)' to make install.
2583
2584 2019-07-25 Florian Weimer <fweimer@redhat.com>
2585
2586 [BZ #24677]
2587 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
2588 counter before freeing array.
2589
2590 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
2591
2592 [BZ #24603]
2593 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
2594 works.
2595 * sysdeps/x86_64/configure: Regenerated.
2596 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
2597 to -mprefer-vector-width=128 if supported.
2598
2599 2019-07-24 Florian Weimer <fweimer@redhat.com>
2600
2601 * scripts/build-many-glibcs.py (Context.checkout): Default to
2602 Linux 5.2.
2603
2604 2019-07-24 Florian Weimer <fweimer@redhat.com>
2605
2606 [BZ #24532]
2607 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
2608 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
2609 (sysdep_headers): Add bits/socket-constants.h.
2610 (tests-special): Add tst-socket-consts.out.
2611 (tst-socket-consts.out): New target.
2612 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
2613 around <asm/unistd.h>.
2614 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
2615 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
2616 <asm/socket.h>.
2617 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
2618 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
2619 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
2620 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
2621 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
2622 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
2623 Likewise.
2624 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
2625
2626 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2627
2628 [BZ #24794]
2629 * Makefile (testroot.pristine/install.stamp): Pass
2630 subdirs='$(all-subdirs)' to make install.
2631
2632 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
2633 the same arguments used in all tests.
2634
2635 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
2636
2637 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
2638
2639 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
2640
2641 [BZ #2872]
2642 * locale/C-translit.h.in: Add Cyrillic transliteration.
2643
2644 2019-07-19 Florian Weimer <fweimer@redhat.com>
2645
2646 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
2647 from Linux 5.2.
2648 (fsconfig): Add system call name.
2649 (fsmount): Likewise.
2650 (fsopen): Likewise.
2651 (fspick): Likewise.
2652 (move_mount): Likewise.
2653 (open_tree): Likewise.
2654
2655 2019-07-18 Carlos O'Donell <carlos@redhat.com>
2656
2657 * po/libc.pot: Regenerate.
2658
2659 2019-07-18 Mike Crowe <mac@mcrowe.com>
2660
2661 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
2662 functions recently added to sysdeps/nptl/pthread.h:
2663 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
2664 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
2665
2666 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
2667 pthread_cond_clockwait forwarding functions. There are no internal
2668 users, so it is unnecessary to expose these functions in libc.so.
2669 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
2670 unnecessary ptr___pthread_cond_clockwait member.
2671 * nptl/nptl-init.c (pthread_functions): Remove assignment of
2672 removed member.
2673
2674 2019-07-17 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
2675
2676 [BZ #21897]
2677 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
2678 begin with an uppercase letter now.
2679 (abmon): Likewise.
2680 (mon): Update from CLDR, reword February from "Kudo" to
2681 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
2682 and August from "Liiqen" to "Leqeeni".
2683 * localedata/locales/aa_ER (mon): Update from CLDR, reword
2684 April from "Agda Baxisso" to "Agda Baxis" and August from
2685 "Leqeeni" to "Liiqen".
2686 * localedata/locales/aa_ER@saaho (mon): Likewise.
2687 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
2688 abbreviated February from "Kud" to "Nah".
2689 (mon): Update from CLDR, reword February from "Kudo" to
2690 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
2691
2692 2019-07-17 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
2693
2694 [BZ #23996]
2695 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
2696
2697 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
2698
2699 [BZ #23996]
2700 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
2701 name_mrs, name_miss, and name_ms.
2702 * localedata/locales/nl_NL (LC_NAME): Likewise.
2703
2704 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
2705
2706 [BZ #24200]
2707 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
2708 * localedata/locales/en_IE (first_weekday): Likewise.
2709
2710 2019-07-12 Mike Crowe <mac@mcrowe.com>
2711
2712 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
2713 that is only useful if futex_supports_exact_relative_timeouts ()
2714 returns false.
2715 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
2716 Likewise.
2717 * sysdeps/nptl/futex-internal.h: Remove comment about relative
2718 timeouts potentially being imprecise since it's no longer true.
2719 Remove declaration of futex_supports_exact_relative_timeouts.
2720 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
2721 of futex_supports_exact_relative_timeouts.
2722
2723 * NEWS: Mention recently-added pthread_cond_clockwait,
2724 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
2725 sem_clockwait functions.
2726
2727 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
2728 works like pthread_mutex_timedlock but takes a clockid parameter to
2729 measure the abstime parameter against.
2730 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
2731 * nptl/DESIGN-systemtap-probes.txt: Likewise.
2732 * nptl/pthread_mutex_timedlock.c
2733 (__pthread_mutex_clocklock_common): Rename from
2734 __pthread_mutex_timedlock and add clockid parameter. Pass this
2735 parameter to lll_clocklock and lll_clocklock_elision in place of
2736 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
2737 LIBC_PROBE and validate clockid parameter before calling
2738 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
2739 implementation to add LIBC_PROBE and calls
2740 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
2741 clockid.
2742 * nptl/Makefile: Add tst-mutex11.c.
2743 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
2744 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
2745 clockid parameters to pthread_mutex_clocklock.
2746 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
2747 clockid parameter to indicate which clock to be used. Call
2748 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
2749 (do_test): Call do_test_clock to separately test
2750 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
2751 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
2752 * nptl/tst-mutex9.c: Likewise.
2753 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
2754 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
2755 Likewise.
2756 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
2757 Likewise.
2758 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
2759 Likewise.
2760 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
2761 Likewise.
2762 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
2763 Likewise.
2764 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
2765 Likewise.
2766 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
2767 Likewise.
2768 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2769 (GLIBC_2.30): Likewise.
2770 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2771 (GLIBC_2.30): Likewise.
2772 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2773 (GLIBC_2.30): Likewise.
2774 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2775 (GLIBC_2.30): Likewise.
2776 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2777 (GLIBC_2.30): Likewise.
2778 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
2779 Likewise.
2780 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2781 (GLIBC_2.30): Likewise.
2782 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2783 (GLIBC_2.30): Likewise.
2784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2785 (GLIBC_2.30): Likewise.
2786 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2787 (GLIBC_2.30): Likewise.
2788 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2789 (GLIBC_2.30): Likewise.
2790 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2791 (GLIBC_2.30): Likewise.
2792 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
2793 Likewise.
2794 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2795 (GLIBC_2.30): Likewise.
2796 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2797 (GLIBC_2.30): Likewise.
2798 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2799 (GLIBC_2.30): Likewise.
2800 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2801 (GLIBC_2.30): Likewise.
2802
2803 nptl: Rename lll_timedlock to lll_clocklock and add clockid
2804 parameter to indicate the clock that the abstime parameter should
2805 be measured against in preparation for adding
2806 pthread_mutex_clocklock.
2807 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
2808 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
2809 from __lll_timedlock and add clockid parameter.
2810 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
2811 Likewise.
2812 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
2813 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
2814 rather than __gettimeofday so that clockid can be used. This means
2815 that conversion from struct timeval is no longer required.
2816 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
2817 Likewise.
2818 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
2819 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
2820 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
2821 from lll_timedlock_elision, add clockid parameter and use
2822 meaningful names for other parameters. (__pthread_mutex_timedlock):
2823 Pass CLOCK_REALTIME where necessary to lll_clocklock and
2824 lll_clocklock_elision.
2825 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2826 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
2827 clockid parameter. (__lll_clocklock_elision): Rename from
2828 __lll_timedlock_elision and add clockid parameter.
2829 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2830 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
2831 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
2832 (__lll_lock_elision): Call __lll_clocklock_elision rather than
2833 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
2834 (LLL_LOCK): Likewise.
2835 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2836 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
2837
2838 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
2839 pthread_rwlock_clockwrlock which behave like
2840 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
2841 respectively, except they always measure abstime against the
2842 supplied clockid. The functions currently support CLOCK_REALTIME
2843 and CLOCK_MONOTONIC and return EINVAL if any other clock is
2844 specified.
2845 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
2846 pthread_wrlock_clockwrlock.
2847 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
2848 pthread_rwlock_clockwrlock.c.
2849 * nptl/pthread_rwlock_clockrdlock.c: Implement
2850 pthread_rwlock_clockrdlock.
2851 * nptl/pthread_rwlock_clockwrlock.c: Implement
2852 pthread_rwlock_clockwrlock.
2853 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
2854 clockid parameter and verify that it indicates a supported clock on
2855 entry so that we fail even if it doesn't end up being used. Pass
2856 that clock on to futex_abstimed_wait when necessary.
2857 (__pthread_rwlock_wrlock_full): Likewise.
2858 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
2859 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
2860 be used because there's no timeout.
2861 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
2862 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
2863 be used because there is no timeout.
2864 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2865 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
2866 uses that clock.
2867 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2868 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
2869 uses that clock.
2870 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2871 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2872 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2873 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2874 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2875 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2876 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2877 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2878 (GLIBC_2.30): Likewise.
2879 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2880 (GLIBC_2.30): Likewise.
2881 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2882 (GLIBC_2.30): Likewise.
2883 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2884 (GLIBC_2.30): Likewise.
2885 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2886 (GLIBC_2.30): Likewise.
2887 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2888 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2889 (GLIBC_2.30): Likewise.
2890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2891 (GLIBC_2.30): Likewise.
2892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2893 (GLIBC_2.30): Likewise.
2894 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2895 (GLIBC_2.30): Likewise.
2896 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2897 (GLIBC_2.30): Likewise.
2898 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2899 (GLIBC_2.30): Likewise.
2900 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2901 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2902 (GLIBC_2.30): Likewise.
2903 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2904 (GLIBC_2.30): Likewise.
2905 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2906 (GLIBC_2.30): Likewise.
2907 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2908 (GLIBC_2.30): Likewise.
2909 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
2910 pthread_rwlock_clockwrlock timeout tests to match the existing
2911 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
2912 * nptl/tst-rwlock14.c (do_test): Likewise.
2913 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
2914 ancillary output throughout. (tf): Accept thread_args structure so
2915 that rwlock, a clockid and function name can be passed to the
2916 thread. (do_test_clock): Rename from do_test. Accept clockid
2917 parameter to specify test clock. Use the magic clockid value of
2918 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2919 pthread_rwlock_timedwrlock should be tested, otherwise pass the
2920 specified clockid to pthread_rwlock_clockrdlock and
2921 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2922 (do_test): Call do_test_clock to test each clockid in turn.
2923 * nptl/tst-rwlock7.c: Likewise.
2924 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2925 thread_args structure so that the (now int) thread number, the
2926 clockid and the function name can be passed to the thread.
2927 (do_test_clock): Renamed from do_test. Pass the necessary
2928 thread_args when creating the reader and writer threads. Use
2929 xpthread_create and xpthread_join.
2930 (do_test): Call do_test_clock to test each clockid in turn.
2931 * manual/threads.texi: Add documentation for
2932 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2933
2934 nptl: pthread_rwlock: Move timeout validation into _full functions
2935 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2936 Check validity of abstime parameter.
2937 (__pthread_rwlock_rwlock_full): Likewise.
2938 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2939 Remove check for validity of abstime parameter.
2940 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2941 Likewise.
2942
2943 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2944 like pthread_cond_timedwait except it always measures abstime
2945 against the supplied clockid.
2946 * nptl/Makefile: Add tst-cond26 and tst-cond27
2947 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2948 * sysdeps/nptl/pthread.h: Likewise
2949 * nptl/forward.c: Add __pthread_cond_clockwait
2950 * nptl/forward.c: Likewise
2951 * nptl/pthreadP.h: Likewise
2952 * sysdeps/nptl/pthread-functions.h: Likewise
2953 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2954 clockid parameter and comment describing why we don't need to check
2955 its value. Use that value when calling
2956 futex_abstimed_wait_cancelable rather than reading the clock from
2957 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2958 (__pthread_cond_timedwait): Read clock from flags and pass it to
2959 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2960 function with weak alias from pthread_cond_clockwait.
2961 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2962 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2963 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2964 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2965 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2966 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2967 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2968 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2969 (GLIBC_2.30): Likewise.
2970 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2971 (GLIBC_2.30): Likewise.
2972 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2973 (GLIBC_2.30): Likewise.
2974 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2975 (GLIBC_2.30): Likewise.
2976 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2977 (GLIBC_2.30): Likewise.
2978 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2979 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2980 (GLIBC_2.30): Likewise.
2981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2982 (GLIBC_2.30): Likewise.
2983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2984 (GLIBC_2.30): Likewise.
2985 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2986 (GLIBC_2.30): Likewise.
2987 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2988 (GLIBC_2.30): Likewise.
2989 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2990 (GLIBC_2.30): Likewise.
2991 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2992 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2993 (GLIBC_2.30): Likewise.
2994 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2995 (GLIBC_2.30): Likewise.
2996 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2997 (GLIBC_2.30): Likewise.
2998 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2999 (GLIBC_2.30): Likewise.
3000 * nptl/tst-cond11.c (run_test): Support testing
3001 pthread_cond_clockwait too by using a special magic
3002 CLOCK_USE_ATTR_CLOCK value to determine whether to call
3003 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
3004 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
3005 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
3006 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
3007 clocks to pthread_cond_clockwait.
3008 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
3009 struct timespec and pthread_cond_clockwait.
3010 * manual/threads.texi: Document pthread_cond_clockwait.
3011
3012 nptl: Add POSIX-proposed sem_clockwait which behaves just like
3013 sem_timedwait, but measures abstime against the specified clock.
3014 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
3015 clockid parameters to indicate the clock which abstime should be
3016 measured against.
3017 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
3018 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
3019 __new_sem_wait_slow.
3020 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
3021 on sem_timedwait.c.
3022 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
3023 sem_clockwait.c to match those used for sem_timedwait.c.
3024 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
3025 * nptl/Versions (GLIBC_2.30): Likewise.
3026 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
3027 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
3028 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
3029 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
3030 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
3031 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
3032 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
3033 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
3034 (GLIBC_2.30): Likewise.
3035 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
3036 (GLIBC_2.30): Likewise.
3037 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
3038 (GLIBC_2.30): Likewise.
3039 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
3040 (GLIBC_2.30): Likewise.
3041 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
3042 (GLIBC_2.30): Likewise.
3043 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
3044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
3045 (GLIBC_2.30): Likewise.
3046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
3047 (GLIBC_2.30): Likewise.
3048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
3049 (GLIBC_2.30): Likewise.
3050 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
3051 (GLIBC_2.30): Likewise.
3052 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
3053 (GLIBC_2.30): Likewise.
3054 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
3055 (GLIBC_2.30): Likewise.
3056 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
3057 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
3058 (GLIBC_2.30): Likewise.
3059 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
3060 (GLIBC_2.30): Likewise.
3061 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
3062 (GLIBC_2.30): Likewise.
3063 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
3064 (GLIBC_2.30): Likewise.
3065 * nptl/tst-sem17.c: Add new test for passing invalid clock to
3066 sem_clockwait.
3067 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
3068 tests to also test sem_clockwait.
3069 * manual/threads.texi: Document sem_clockwait.
3070
3071 nptl: Add clockid parameter to futex timed wait calls
3072 * sysdeps/nptl/lowlevellock-futex.h,
3073 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
3074 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
3075 takes a clockid rather than a special clockbit.
3076 * sysdeps/nptl/lowlevellock-futex.h: Add
3077 lll_futex_supported_clockid so that client functions can check
3078 whether their clockid parameter is valid even if they don't
3079 ultimately end up calling lll_futex_clock_wait_bitset.
3080 * sysdeps/nptl/futex-internal.h,
3081 sysdeps/unix/sysv/linux/futex-internal.h
3082 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
3083 clockid_t parameter to indicate which clock the absolute time
3084 passed should be measured against. Pass that clockid onto
3085 lll_futex_clock_wait_bitset. Add invalid clock as reason for
3086 returning -EINVAL.
3087 * sysdeps/nptl/futex-internal.h,
3088 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
3089 futex_abstimed_supported_clockid so that client functions can check
3090 whether their clockid parameter is valid even if they don't
3091 ultimately end up calling futex_abstimed_wait.
3092 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
3093 code to calculate relative timeout for
3094 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
3095 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
3096 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
3097 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
3098 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
3099 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
3100 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
3101
3102 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3103
3104 [BZ #24699]
3105 * posix/tst-mmap-offset.c: Mention BZ #24699.
3106 (do_test_bz21270): Rename to do_test_large_offset and use
3107 mmap64_maximum_offset to check for maximum expected offset value.
3108 * sysdeps/generic/mmap_info.h: New file.
3109 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
3110 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
3111 __NR_mmap2 is used.
3112
3113 2019-07-10 DJ Delorie <dj@redhat.com>
3114 Sergei Trofimovich <slyfox@inbox.ru>
3115
3116 [BZ #24696]
3117 [BZ #24695]
3118 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
3119 mappings.
3120 * nss/tst-nss-db-endgrent.c: New.
3121 * nss/tst-nss-db-endgrent.root: New.
3122 * nss/tst-nss-db-endpwent.c: New.
3123 * nss/tst-nss-db-endpwent.root: New.
3124 * nss/Makefile: Add new tests.
3125 * support/links-dso-program-c.c: Add selinux dependency.
3126 * support/links-dso-program.cc: Add selinux dependency.
3127 * support/Makefile: Build those with -lselinux if enabled.
3128
3129 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
3130
3131 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
3132 DT_AARCH64_VARIANT_PCS check.
3133 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
3134 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
3135 variant_pcs.
3136
3137 2019-07-10 Andreas Schwab <schwab@suse.de>
3138
3139 [BZ #23352]
3140 * malloc/malloc.h (__malloc_check_init): Don't declare.
3141 * include/malloc.h (__malloc_check_init): Likewise.
3142 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
3143 * manual/memory.texi (__malloc_check_init): Don't mention it.
3144
3145 2019-07-10 Mao Han <han_mao@c-sky.com>
3146
3147 * locale/Makefile: Fix tst-locale-locpath arguments passing.
3148
3149 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
3150
3151 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
3152 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
3153
3154 2019-07-08 DJ Delorie <dj@redhat.com>
3155
3156 [BZ #23501]
3157 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
3158 * io/tst-ftw-lnk.c: New test.
3159 * io/Makefile: Run it.
3160
3161 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3162
3163 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
3164 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
3165 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
3166 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
3167 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
3168 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
3169 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
3170 Adjust implementation path.
3171 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
3172 Adjust implementation path.
3173 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
3174 Adjust implementation path.
3175 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3176 (libm-sysdep_routines): Add s_log* objects.
3177 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
3178 CFLAGS-s_logb-power7.c): New fule.
3179 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
3180 to ...
3181 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
3182 ... here.
3183 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
3184 to ...
3185 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
3186 ... here.
3187 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
3188 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
3189 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
3190 to ...
3191 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
3192 ... here.
3193 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
3194 to ...
3195 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
3196 ... here.
3197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
3198 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
3199 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
3200 to ...
3201 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
3202 ... here.
3203 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
3204 to ...
3205 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
3206 ... here.
3207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
3208 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
3209 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
3210 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
3211 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
3212 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
3213
3214 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
3215 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
3216 powerpc32 integer 0 converting to -0.
3217
3218 * benchtests/Makefile (bench-math): Add logb.
3219 * benchtests/logb-inputs: New file.
3220 * benchtests/logbf-inputs: New file.
3221
3222 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
3223 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
3224 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
3225 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
3226 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
3227 Adjust include.
3228 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
3229 Likewise.
3230 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
3231 sysdep_routines): Add s_modf* objects.
3232 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
3233 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
3234 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
3235 to ...
3236 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
3237 ... here.
3238 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
3239 to ...
3240 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
3241 ... here.
3242 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
3243 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
3244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
3245 to ...
3246 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
3247 ... here.
3248 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
3249 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
3250 ... here.
3251 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
3252 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
3253
3254 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
3255 twoM500, twoM600, two60factor, pdnum): Remove.
3256 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
3257 (__ieee754_hypot): Replace static variables with inline definition,
3258 remove ununsed branches.
3259 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3260 (libm-sysdep_routines): Remove e_hypot-* objects.
3261 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
3262 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
3263 file.
3264 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
3265 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
3266 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
3267 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
3268 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
3269
3270 * benchtests/Makefile (bench-math): Add hypot.
3271 * benchtests/hypot-inputs: New file.
3272
3273 2019-07-08 Vincent Chen <vincentc@andestech.com>
3274
3275 * sysdeps/unix/sysv/linux/dl-vdso.h
3276 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
3277
3278 2019-07-04 Andreas Schwab <schwab@suse.de>
3279
3280 [BZ #24484]
3281 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
3282
3283 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3284
3285 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
3286 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
3287 * sysdeps/aarch64/sys/ifunc.h: New file.
3288 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
3289 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
3290
3291 2019-07-01 Florian Weimer <fweimer@redhat.com>
3292
3293 [BZ #20188]
3294 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
3295 Replace __vfork with __libpthread_version_placeholder for
3296 GLIBC_2.1.2.
3297 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
3298 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
3299 libpthread-compat.
3300 * nptl/pt-vfork.c: Remove file.
3301 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
3302 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
3303 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3304 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
3305 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
3306 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
3307 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
3308 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
3309 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
3310 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
3311 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
3312 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
3313 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
3314 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
3315 Remove vfork, __vfork.
3316 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
3317 Remove vfork.
3318 (GLIBC_2.1.2): Replace __vfork with
3319 __libpthread_version_placeholder.
3320 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
3321 Remove vfork, __vfork.
3322 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
3323 Likewise.
3324 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
3325 Remove vfork.
3326 (GLIBC_2.1.2): Replace __vfork with
3327 __libpthread_version_placeholder.
3328 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
3329 Remove vfork.
3330 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
3331 (GLIBC_2.4): Remove vfork, __vfork.
3332 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
3333 (GLIBC_2.0): Remove vfork.
3334 (GLIBC_2.1.2): Replace __vfork with
3335 __libpthread_version_placeholder.
3336 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
3337 (GLIBC_2.18): Remove vfork, __vfork.
3338 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
3339 (GLIBC_2.0): Remove vfork.
3340 (GLIBC_2.2): Remove __vfork.
3341 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
3342 (GLIBC_2.2): Remove vfork, __vfork.
3343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
3344 (GLIBC_2.0): Remove vfork.
3345 (GLIBC_2.1.2): Replace __vfork with
3346 __libpthread_version_placeholder.
3347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
3348 (GLIBC_2.3): Remove vfork, __vfork.
3349 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
3350 (GLIBC_2.17): Likewise.
3351 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
3352 (GLIBC_2.0): Remove vfork.
3353 (GLIBC_2.1.2): Replace __vfork with
3354 __libpthread_version_placeholder.
3355 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
3356 (GLIBC_2.2): Remove vfork, __vfork.
3357 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
3358 Likewise.
3359 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
3360 (GLIBC_2.0): Remove vfork.
3361 (GLIBC_2.1.2): Replace __vfork with
3362 __libpthread_version_placeholder.
3363 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
3364 (GLIBC_2.2): Remove vfork, __vfork.
3365 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
3366 (GLIBC_2.2.5): Likewise.
3367 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
3368 (GLIBC_2.16): Likewise.
3369 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
3370 Remove __errno_location.
3371
3372 2019-07-02 Florian Weimer <fweimer@redhat.com>
3373
3374 [BZ #24757]
3375 * malloc/Depend: Add nptl and htl, due to potential indirect
3376 libpthread dependency of memusagestat.
3377
3378 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
3379
3380 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
3381 warning.
3382
3383 2019-07-01 Florian Weimer <fweimer@redhat.com>
3384
3385 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
3386 variant for arm-linux-gnueabi.
3387
3388 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
3389
3390 [BZ #24259]
3391 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
3392 relocation.
3393 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
3394 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
3395 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
3396 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
3397 and tst-cet-legacy-mod-6c.
3398 (CFLAGS-tst-cet-legacy-5a.c): New.
3399 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
3400 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
3401 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
3402 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
3403 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
3404 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
3405 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
3406 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
3407 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
3408 ($(objpfx)tst-cet-legacy-5a): Likewise.
3409 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
3410 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
3411 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
3412 ($(objpfx)tst-cet-legacy-5b): Likewise.
3413 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
3414 (tst-cet-legacy-5b-ENV): Likewise.
3415 ($(objpfx)tst-cet-legacy-6a): Likewise.
3416 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
3417 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
3418 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
3419 ($(objpfx)tst-cet-legacy-6b): Likewise.
3420 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
3421 (tst-cet-legacy-6b-ENV): Likewise.
3422 * sysdeps/x86/tst-cet-legacy-5.c: New file.
3423 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
3424 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
3425 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
3426 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
3427 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
3428 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
3429 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
3430 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
3431 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
3432 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
3433 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
3434 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
3435 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
3436
3437 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
3438
3439 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
3440 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
3441 (__fegetround_ISA300) New.
3442 (__fegetround_ISA2) New.
3443 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
3444 (_FPU_MFFS): Move implementation...
3445 (_FPU_GETCW): Here.
3446 (_FPU_MFFSL): Move implementation....
3447 (_FPU_GET_RC_ISA300): Here. New.
3448 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
3449 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
3450 (fegetenv_status): New.
3451 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
3452 instead of fegetenv_register().
3453 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
3454
3455 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
3456
3457 * benchtests/bench-math-inlines.c: Increase iterations.
3458 * benchtests/bench-memcmp.c: Likewise.
3459 * benchtests/bench-rawmemchr.c: Likewise.
3460 * benchtests/bench-strcmp.c: Likewise.
3461 * benchtests/bench-strcpy_chk.c: Likewise.
3462 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
3463 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
3464 (INNER_LOOP_ITERS_SMALL): Likewise.
3465 * benchtests/bench-strncat.c: Increase iterations.
3466 * benchtests/bench-strncmp.c: Increase iterations.
3467 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
3468 * benchtests/bench-strrchr.c: Increase iterations.
3469 * benchtests/bench-strstr.c: Keep iterations unchanged.
3470 * benchtests/bench-strtod.c: Increase iterations.
3471
3472 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
3473
3474 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
3475 with INNER_LOOP_ITERS_LARGE.
3476 * benchtests/bench-memchr.c: Likewise.
3477 * benchtests/bench-rawmemchr.c: Likewise.
3478 * benchtests/bench-strcat.c: Likewise.
3479 * benchtests/bench-strchr.c: Likewise.
3480 * benchtests/bench-string.h: Likewise.
3481 * benchtests/bench-strlen.c: Likewise.
3482 * benchtests/bench-strncpy.c: Likewise.
3483 * benchtests/bench-strnlen.c: Likewise.
3484
3485 2019-06-28 Florian Weimer <fweimer@redhat.com>
3486
3487 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
3488 Use mmap instead of malloc. malloc with M_PERTURB writes to the
3489 entire allocated memory range.
3490
3491 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
3492
3493 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
3494 (prepare_version_base): New helper inline function.
3495 (prepare_version): New macro replacing PREPARE_VERSION.
3496 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
3497
3498 2019-06-28 Florian Weimer <fweimer@redhat.com>
3499
3500 [BZ #24741]
3501 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
3502 mismatch in a versioned symbol reference.
3503 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
3504 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
3505 tst-sonamemove-dlopen.
3506 (module-names): Add tst-sonamemove-linkmod1,
3507 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
3508 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
3509 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
3510 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
3511 (tst-sonamemove-runmod1.so): Link against
3512 tst-sonamemove-runmod2.so.
3513 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
3514 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
3515 tst-sonamemove-runmod2.so.
3516 (tst-sonamemove-dlopen): Link with -ldl.
3517 (tst-sonamemove-dlopen.out): Likewise.
3518 * elf/tst-sonamemove-link.c: New file.
3519 * elf/tst-sonamemove-dlopen.c: Likewise.
3520 * elf/tst-sonamemove-linkmod1.c: Likewise.
3521 * elf/tst-sonamemove-linkmod1.map: Likewise.
3522 * elf/tst-sonamemove-runmod1.c: Likewise.
3523 * elf/tst-sonamemove-runmod1.map: Likewise.
3524 * elf/tst-sonamemove-runmod2.c: Likewise.
3525 * elf/tst-sonamemove-runmod2.map: Likewise.
3526
3527 2019-06-28 Florian Weimer <fweimer@redhat.com>
3528
3529 * support/xdlfcn.h (xdlvsym): Declare function.
3530 * support/xdlfcn.c (xdlvsym): Define funciton.
3531
3532 2019-06-28 Florian Weimer <fweimer@redhat.com>
3533
3534 [BZ #24744]
3535 io: Remove the copy_file_range emulation.
3536 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
3537 not define and call copy_file_range_compat.
3538 * io/Makefile (tests-static, tests-internal): Do not add
3539 tst-copy_file_range-compat.
3540 * io/copy_file_range-compat.c: Remove file.
3541 * io/copy_file_range.c (copy_file_range): Define as stub.
3542 * io/tst-copy_file_range-compat.c: Remove file.
3543 * io/tst-copy_file_range.c (xdevfile): Remove variable.
3544 (typical_sizes): Update comment. Remove 16K sizes.
3545 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
3546 Remove variables.
3547 (find_maximum_offset, pipe_as_source, pipe_as_destination)
3548 (delayed_write_failure_beginning, delayed_write_failure_end)
3549 (cross_device_failure, enospc_failure_1, enospc_failure)
3550 (oappend_failure): Remove functions.
3551 (tests): Adjust test case list.
3552 (do_test): Remove file system search code. Check for ENOSYS from
3553 copy_file_range. Do not free xdevfile.
3554 * manual/llio.texi (Copying File Data): Document ENOSYS error from
3555 copy_file_range. Do not document the EXDEV error, which future
3556 kernels may not report. Update the wording to reflect that
3557 further errors are possible.
3558 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3559 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
3560 not undefine.
3561 * sysdeps/unix/sysv/linux/arm/kernel-features.h
3562 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
3563 Likewise.
3564 * sysdeps/unix/sysv/linux/kernel-features.h
3565 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
3566 Remove definition.
3567 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3568 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
3569 not undefine.
3570 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3571 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
3572 Likewise.
3573
3574 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3575
3576 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
3577 used as a mask for the mode argument of __vfprintf_internal.
3578 * stdio-common/printf-parse.h (printf_arg): New union member:
3579 pa_float128.
3580 * stdio-common/vfprintf-internal.c
3581 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
3582 (PARSE_FLOAT_VA_ARG): Likewise.
3583 (SETUP_FLOAT128_INFO): Likewise.
3584 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
3585 SETUP_FLOAT128_INFO.
3586 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
3587 floating-point value to the new union member, pa_float128.
3588 (printf_positional): Zero-initialize args_value[cnt] with memset.
3589
3590 2019-06-27 Florian Weimer <fweimer@redhat.com>
3591
3592 [BZ #24740]
3593 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
3594 buffer size if necessary.
3595 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3596 Likewise.
3597 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
3598 New function.
3599 (large_buffer_checks): Likewise.
3600 (do_test): Call large_buffer_checks.
3601
3602 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
3603
3604 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
3605 * sysdeps/x86/dl-lookupcfg.h: Here.
3606 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
3607
3608 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3609
3610 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3611 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
3612 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
3613 file.
3614 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
3615 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
3616 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
3617 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
3618 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
3619
3620 * sysdeps/powerpc/powerpc32/fpu/Makefile
3621 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
3622 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
3623 and fctidz optimization.
3624 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
3625 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
3626 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3627 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
3628 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
3629 CFLAGS-s_lround-power5+.c): New rule.
3630 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
3631 New file.
3632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
3633 Likewise.
3634 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
3635 Likewise.
3636 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
3637 Likewise.
3638 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
3639 Likewise.
3640 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
3641 Remove file.
3642 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
3643 Likewise.
3644 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
3645 Likewise.
3646 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
3647 Likewise.
3648 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
3649 Likewise.
3650 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
3651 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
3652 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
3653 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3654 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
3655 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
3656 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3657
3658 2019-06-26 Vincent Chen <vincentc@andestech.com>
3659
3660 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
3661 specific system calls, fp_udfiex_crtl and udftrap.
3662
3663 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
3664
3665 * nptl/tst-eintr1.c (tf1): Add return statement.
3666 (do_test): Remove unused th variable.
3667
3668 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
3669
3670 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
3671 Return error if get_character fails.
3672
3673 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
3674
3675 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3676
3677 2019-06-24 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
3678
3679 [BZ #24652]
3680 * localedata/locales/szl_PL (day): Use the correct Unicode
3681 sequences instead of non-ASCII characters.
3682
3683 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
3684
3685 [BZ #24652]
3686 * localedata/locales/szl_PL (abday): Spelling corrections.
3687 (day): Likewise.
3688 (abmon): Likewise.
3689 (mon): Rename to...
3690 (alt_mon): This, then apply spelling corrections.
3691 (mon): New entry, month names in the genitive case.
3692
3693 2019-06-21 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
3694
3695 [BZ #23831]
3696 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
3697 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
3698 (thousands_sep): Likewise.
3699 (grouping): Set to 3;3.
3700
3701 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
3702
3703 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
3704 PREPARE_VERSION_KNOWN.
3705 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
3706 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
3707 define.
3708 (VDSO_HASH_LINUX_2_6_39): Likewise.
3709 (VDSO_NAME_LINUX_4_9): Likewise.
3710 (VDSO_HASH_LINUX_4_9): Likewise.
3711 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
3712 * sysdeps/unix/sysv/linux/powerpc/init-first.c
3713 (_libc_vdso_platform_setup): Likewise.
3714 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
3715 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
3716 Likewise.
3717 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
3718 Likewise.
3719
3720 2019-06-20 Mike Crowe <mac@mcrowe.com>
3721
3722 * nptl/eintr.c: Use libsupport.
3723 * nptl/tst-eintr1.c: Likewise.
3724 * nptl/tst-eintr2.c: Likewise.
3725 * nptl/tst-eintr3.c: Likewise.
3726 * nptl/tst-eintr4.c: Likewise.
3727 * nptl/tst-eintr5.c: Likewise.
3728 * nptl/tst-mutex-errorcheck.c: Likewise.
3729 * nptl/tst-mutex5.c: Likewise.
3730
3731 * support/test-driver.h: Add verbose_printf macro.
3732
3733 * support/xtime.h: Add xclock_now() helper function.
3734
3735 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
3736 Florian Weimer <fweimer@redhat.com>
3737
3738 [BZ #24228]
3739 * libio/genops.c (_IO_unbuffer_all)
3740 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
3741 buffers and access _IO_FILE_complete members of legacy libio streams.
3742 * libio/tst-bz24228.c: New file.
3743 * libio/tst-bz24228.map: Likewise.
3744 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
3745 [build-shared] (generated): Add tst-bz24228.mtrace and
3746 tst-bz24228.check.
3747 [run-built-tests && build-shared] (tests-special): Add
3748 $(objpfx)tst-bz24228-mem.out.
3749 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
3750 ($(objpfx)tst-bz24228-mem.out): New rule.
3751
3752 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
3753
3754 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
3755 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
3756 (__FPU_MFFSL): Likewise.
3757 (_FPU_SETCW): Likewise.
3758
3759 2019-06-19 Stan Shebs <stanshebs@google.com>
3760 Raoni Fassina Firmino <raoni@linux.ibm.com>
3761
3762 [BZ #24640]
3763 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
3764 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
3765 static-linking version.
3766 * sysdeps/unix/sysv/linux/powerpc/Makefile
3767 (tests-static): Add test-gettimebasefreq-static.
3768 (tests): Likewise.
3769 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
3770 New file.
3771
3772 2019-06-19 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
3773
3774 [BZ #24614]
3775 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
3776 between the currency symbol and the minus sign).
3777 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3778
3779 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
3780
3781 [BZ #24556]
3782 * string/test-strcasestr.c (check_result): Add NULL check.
3783 * nss/tst-field.c (check_rewrite): Likewise.
3784 * benchtests/bench-strstr.c (do_one_test): Likewise.
3785 * string/test-strstr.c (check_result): Likewise.
3786 * argp/argp-test.c (popt): Increase size of buf to 12.
3787 * benchtests/bench-malloc-simple.c (bench):
3788 Do not initialize tests array out of bounds.
3789
3790 2019-06-19 Florian Weimer <fweimer@redhat.com>
3791
3792 [BZ #24166]
3793 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
3794 dls_serpath field.
3795
3796 2019-06-18 Florian Weimer <fweimer@redhat.com>
3797
3798 [BZ #24323]
3799 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
3800 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
3801 fail when called from dlopen.
3802 * elf/Makefile [have-fpie && build-shared] (tests): Add
3803 tst-dlopen-pie.
3804 (tst-dlopen-pie): Link with -ldl.
3805 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
3806 * elf/tst-dlopen-pie.c (do_test): New file.
3807
3808 2019-06-17 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
3809
3810 [BZ #24614]
3811 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
3812 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
3813 between the currency symbol and the minus sign).
3814 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3815 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
3816
3817 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3818
3819 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
3820 sysdep-rtld-routines): Remove rules.
3821 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
3822 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
3823 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
3824 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
3825 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
3826 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
3827 vDSO path for SHARED.
3828 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
3829 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
3830 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
3831 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
3832 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
3833 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
3834
3835 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3836 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
3837 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
3838 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
3839 CFLAGS-s_llround-power5+.c): New rule.
3840 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
3841 New file.
3842 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
3843 Likewise.
3844 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
3845 Likewise.
3846 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
3847 Likewise.
3848 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
3849 Likewise.
3850 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
3851 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
3852 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
3853 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
3854 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
3855 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
3856 * sysdeps/powerpc/powerpc64/fpu/Makefile
3857 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
3858 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3859 (libm-sysdep_routines): Remove s_llround-* objects.
3860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
3861 file.
3862 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
3863 Likewise.
3864 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
3865 Likewise.
3866 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
3867 Likewise.
3868 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
3869 Likewise.
3870 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3871 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3872 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3873 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3874 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
3875 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
3876 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
3877 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
3878 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3879 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
3880 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3881 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
3882 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3883 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
3884
3885 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
3886 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
3887 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
3888 * sysdeps/powerpc/powerpc32/fpu/Makefile
3889 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
3890 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
3891 optimization.
3892 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3893 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
3894 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
3895 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3896 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
3897 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
3898 CFLAGS-s_lrint-ppc32.c): New rule.
3899 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
3900 Remove file.
3901 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
3902 Likewise.
3903 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
3904 Likewise.
3905 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
3906 Likewise.
3907 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
3908 Likewise.
3909 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3910 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3911 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3912 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3913 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
3914 New file.
3915 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
3916 Likewise.
3917 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
3918 Likewise.
3919 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3920 Likewise.
3921 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3922 Likewise.
3923
3924 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3925 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3926 s_llrint-ppc64.
3927 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3928 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3929 file.
3930 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3931 Likewise.
3932 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3933 Likewise.
3934 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3935 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3937 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3939 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3940 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3941 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3942 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3943 (libm-sysdep_routines): Remove s_llrint-* objects.
3944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3945 file.
3946 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3947 Likewise.
3948 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3949 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3950 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3951 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3952 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3953 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3954 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3955 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3956 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3957 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3958
3959 2019-06-14 Florian Weimer <fweimer@redhat.com>
3960
3961 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3962 argument to __glibc_has_include to inhibit macro expansion.
3963
3964 2019-06-14 Florian Weimer <fweimer@redhat.com>
3965
3966 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3967 function-like macro, so that __has_include can inhibit expansion
3968 of its argument.
3969
3970 2019-06-13 Joseph Myers <joseph@codesourcery.com>
3971
3972 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3973 New macro.
3974
3975 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3976 Allow memset in libc.so.
3977
3978 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3979
3980 * sysdeps/aarch64/dl-dtprocnum.h: New file.
3981 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3982 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3983 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3984 symbols at load time.
3985 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3986
3987 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3988
3989 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3990 (DT_AARCH64_VARIANT_PCS): Define.
3991
3992 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3993
3994 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3995 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
3996 objects.
3997 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
3998 Remove file.
3999 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
4000 Likewise.
4001 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
4002 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
4003 Likewise.
4004 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
4005 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
4006 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
4007 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
4008 Remove s_finite* objects.
4009 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
4010 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
4011 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
4012 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
4013 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
4014 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
4015 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4016 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
4017 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
4018 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
4019
4020 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
4021 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
4022
4023 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4024 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
4025 objects.
4026 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
4027 Remove file.
4028 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
4029 Likewise.
4030 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
4031 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
4032 Likewise.
4033 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
4034 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
4035 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
4036 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
4037 Remove s_isinf* and s_isinf* objects.
4038 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
4039 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
4040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
4041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
4042 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
4043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
4044 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
4045 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
4046 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
4047 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
4048
4049 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
4050 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
4051
4052 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
4053 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
4054 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
4055 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4056 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
4057 s_isnanf-* objects.
4058 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
4059 Remove file
4060 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
4061 Likewise.
4062 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
4063 Likewise.
4064 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
4065 Likewise.
4066 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
4067 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
4068 Likewise.
4069 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
4070 Likewise.
4071 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
4072 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
4073 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
4074 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
4075 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
4076 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
4077 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
4078 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
4079 Remove s_isnan-* and s_isnanf-* objects.
4080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
4081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
4082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
4083 Likewise.
4084 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
4085 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
4086 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
4087 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
4088 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
4089 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
4090 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
4091 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
4092 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
4093 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
4094 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
4095 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
4096 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
4097
4098 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
4099 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
4100
4101 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
4102 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
4103 CFLAGS-bench-isfinite.c): New rule.
4104 * benchtests/isnan-input: New file.
4105 * benchtests/isinf-input: New file.
4106 * benchtests/isfinite-input: New file.
4107
4108 * sysdeps/powerpc/fpu/s_copysign.c: New file.
4109 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
4110 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
4111 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
4112 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4113 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
4114 s_copysign-ppc32.
4115 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
4116 Remove file.
4117 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
4118 Likewise.
4119 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
4120 Likewise.
4121 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
4122 Likewise.
4123 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
4124 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
4125 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
4126 Remove s_copysign-power6 s_copysign-ppc64.
4127 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
4128 Remove file.
4129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
4130 Likewise.
4131 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
4132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
4133 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
4134 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
4135 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4136 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
4137
4138 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
4139 round_to_integer_float, round_mode): Add RINT handling.
4140 (reset_fenv_mode): New symbol.
4141 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
4142 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
4143 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
4144 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
4145 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
4146 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
4147
4148 2019-06-12 Florian Weimer <fweimer@redhat.com>
4149
4150 [BZ #24632]
4151 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
4152 * libio/freopen.c (freopen): Use it.
4153
4154 2019-06-12 Florian Weimer <fweimer@redhat.com>
4155
4156 Linux: Deprecate sysctl.
4157 * include/sysctl.h (__sysctl): Remove declaration.
4158 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
4159 check.
4160 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
4161 (sysctl): Add deprecation attribute.
4162 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
4163 directly, to avoid the deprecation warning. Do not include
4164 <string.h>.
4165 (__sysctl): Remove hidden alias.
4166
4167 2019-06-12 Florian Weimer <fweimer@redhat.com>
4168
4169 Linux: Use kernel headers for statx definitions if available.
4170 * include/bits/statx-generic.h: New file.
4171 * include/bits/types/struct_statx.h: Likewise.
4172 * include/bits/types/struct_statx_timestamp.h: Likewise.
4173 * io/Makefile (headers): Add bits/statx-generic.h.
4174 * io/bits/statx-generic.h: New file. Partly copied from
4175 io/bits/statx.h.
4176 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
4177 define original_statx.
4178 * io/bits/types/struct_statx.h: Likewise.
4179 * io/bits/types/struct_statx_timestamp.h: Likewise.
4180 (statx_generic): Use original_statx.
4181 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
4182 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
4183
4184 2019-06-12 Florian Weimer <fweimer@redhat.com>
4185
4186 * misc/sys/cdefs.h (__glibc_has_include): Define.
4187
4188 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
4189
4190 * string/memmem.c (__memmem): Rewrite to improve performance.
4191
4192 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
4193
4194 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
4195 warning.
4196 (two_way_long_needle): Block inlining.
4197 * string/strstr.c (strstr2): Add new function.
4198 (strstr3): Likewise.
4199 (STRSTR): Completely rewrite strstr to improve performance.
4200
4201 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
4202
4203 * benchtests/bench-strstr.c (test_hard_needle): New function.
4204
4205 2019-06-10 Joseph Myers <joseph@codesourcery.com>
4206
4207 * malloc/tst-calloc.c: Include <libc-diag.h>.
4208 (null_test): Ignore -Wunused-result around calls to calloc.
4209 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
4210 (do_test): Ignore -Wunused-result around call to malloc.
4211
4212 2019-06-07 Florian Weimer <fweimer@redhat.com>
4213
4214 Linux: Add getdents64 system call.
4215 * include/dirnent.h (getdents): Add comment and change buffer
4216 argument type to void *.
4217 (getdents64): Likewise. Add hidden prototype.
4218 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
4219 getdents64.
4220 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
4221 Add tst-getdents64.
4222 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
4223 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
4224 argument type to void *.
4225 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
4226 Add hidden definition and getdents64 alias.
4227 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
4228 Likewise.
4229 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
4230 * manual/filesys.texi (Accessing Directories): Add Low-level
4231 Directory Access node reference.
4232 (Opening a Directory): Cross-reference it.
4233 (Low-level Directory Access): New node.
4234 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
4235 getdents64.
4236 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4237 Likewise.
4238 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4239 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
4240 Likewise.
4241 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
4242 Likewise.
4243 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
4244 Likewise.
4245 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
4246 Likewise.
4247 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4248 Likewise.
4249 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4250 Likewise.
4251 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4252 Likewise.
4253 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4254 (GLIBC_2.30): Likewise.
4255 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4256 (GLIBC_2.30): Likewise.
4257 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4258 (GLIBC_2.30): Likewise.
4259 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4260 (GLIBC_2.30): Likewise.
4261 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4262 Likewise.
4263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4264 (GLIBC_2.30): Likewise.
4265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4266 (GLIBC_2.30): Likewise.
4267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4268 (GLIBC_2.30): Likewise.
4269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4270 (GLIBC_2.30): Likewise.
4271 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4272 Likewise.
4273 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4274 Likewise.
4275 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4276 Likewise.
4277 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4278 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4279 Likewise.
4280 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4281 Likewise.
4282 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4283 Likewise.
4284 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4285 Likewise.
4286
4287 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
4288
4289 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
4290 (__FPU_MFFS): New.
4291 (__FPU_MFFSL): New.
4292 (_FPU_GET_RC): New.
4293 (_FPU_GETCW): Use __FPU_MFFS().
4294 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
4295
4296 2019-06-06 Florian Weimer <fweimer@redhat.com>
4297
4298 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
4299 internal GCC preprocessor identifier __has_include__.
4300
4301 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
4302
4303 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
4304 with call to equivalent function.
4305
4306 2019-06-04 Florian Weimer <fweimer@redhat.com>
4307
4308 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
4309 (do_release_shlib): Adjust for __twalk_r.
4310 (__gconv_release_shlib): Call __twalk_r.
4311
4312 2019-06-04 Andreas Schwab <schwab@suse.de>
4313
4314 [BZ #18830]
4315 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
4316 no irreversible characters occurred.
4317 * iconv/gconv_simple.c (internal_ucs4_loop)
4318 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
4319 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
4320 (ucs4_internal_loop_single, internal_ucs4le_loop)
4321 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
4322 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
4323 (ucs4le_internal_loop_single): Add const to outend.
4324 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
4325 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
4326 * iconv/Makefile (tests): Add tst-iconv7.
4327 * iconv/tst-iconv7.c: New file.
4328
4329 2019-06-03 Joseph Myers <joseph@codesourcery.com>
4330
4331 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
4332
4333 2019-06-01 Florian Weimer <fweimer@redhat.com>
4334
4335 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
4336 * sysdeps/unix/sysv/linux/arm/Makefile
4337 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
4338 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
4339 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
4340 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
4341 compatibility symbols.
4342
4343 2019-05-31 Florian Weimer <fweimer@redhat.com>
4344
4345 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
4346 system calls for the arm architecture: breakpoint, get_tls,
4347 set_tls, usr26, usr32.
4348
4349 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
4350
4351 * sysdeps/powerpc/Makefile
4352 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
4353 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
4354 Declare '.machine power7' to get support for ldbrx.
4355 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
4356 directive based on the directory of the file.
4357 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
4358 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
4359 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
4360 '.machine' directive.
4361 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
4362 (VADDUQM_V7_V8): Remove.
4363 (__STRCASECMP): Replace macros with actual instructions.
4364 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
4365 '.machine' directive.
4366 (VCLZD_V8_v7): Remove.
4367 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
4368
4369 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4370
4371 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
4372 Remove file.
4373 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
4374
4375 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4376
4377 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4378 NEARBYINT handling.
4379 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
4380 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
4381 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
4382 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
4383 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
4384 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
4385
4386 2019-05-28 mansayk <6688000@gmail.com>
4387
4388 [BZ #24370]
4389 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
4390
4391 2019-05-28 mansayk <6688000@gmail.com>
4392
4393 [BZ #24369]
4394 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
4395 (abmon): Likewise, but remove the trailing dots.
4396
4397 2019-05-28 Joseph Myers <joseph@codesourcery.com>
4398
4399 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
4400
4401 2019-05-27 Florian Weimer <fweimer@redhat.com>
4402
4403 * nptl/nptl-init.c: Add comment.
4404
4405 2019-05-24 Florian Weimer <fweimer@redhat.com>
4406
4407 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
4408 struct in_addr/struct in6_addr alignment.
4409
4410 2019-05-23 Joseph Myers <joseph@codesourcery.com>
4411
4412 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
4413 (F_SEAL_FUTURE_WRITE): New macro.
4414
4415 2019-05-23 Alexandra HĂĄjkovĂĄ <ahajkova@redhat.com>
4416
4417 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
4418 * elf/tst-ldconfig-bad-aux-cache.c: New file.
4419 * elf/tst-ldconfig_aux-cache.root: New directory.
4420 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
4421 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
4422 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
4423
4424 2019-05-22 Zack Weinberg <zackw@panix.com>
4425
4426 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
4427 host type.
4428 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
4429 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
4430
4431 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
4432 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
4433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
4434 Delete.
4435
4436 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
4437 Issue an #error if used with a compiler in SPE-float mode.
4438 * sysdeps/powerpc/powerpc32/__longjmp_common.S
4439 * sysdeps/powerpc/powerpc32/setjmp_common.S
4440 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4441 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
4442 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
4443 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
4444 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4445 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4446 Remove code to preserve SPE register state.
4447
4448 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
4449 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
4450 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
4451 Remove __SPE__ ifndefs.
4452
4453 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
4454
4455 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
4456 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
4457 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
4458 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
4459 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
4460 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
4461 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
4462 (INNER_LOOP_ITERS_MEDIUM): New define.
4463 (INNER_LOOP_ITERS_SMALL): New define.
4464 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
4465 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
4466 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
4467 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
4468 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
4469
4470 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4471
4472 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
4473 New define.
4474 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
4475 (SEMTIMEDOP_IPC_ARGS): Likewise.
4476
4477 2019-05-21 Florian Weimer <fweimer@redhat.com>
4478
4479 [BZ #24584]
4480 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
4481 before updating __counter field and release it afterwards. Add
4482 overflow check.
4483 * iconv/gconv.h (struct __gconv_step): Mention synchronization
4484 requirement for __counter member.
4485
4486 2019-05-21 Florian Weimer <fweimer@redhat.com>
4487
4488 [BZ #24583]
4489 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
4490 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
4491 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
4492 instead of __gconv_release_step.
4493 * libio/Makefile (tests): Add tst-wfile-gconv.
4494 (tests-container): Add tst-wfile-ascii.
4495 (tst-wfile-gconv-ENV): Enable mtrace.
4496 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
4497 (tests-special): Add tst-wfile-gconv-mem.out.
4498 (tst-wfile-gconv.out): Depend on locales.
4499 (tst-wfile-gconv-mem.out): Add mtrace rule.
4500 * libio/tst-wfile-ascii.c: New file.
4501 * libio/tst-wfile-gconv.c: Likewise.
4502
4503 2019-05-20 Florian Weimer <fweimer@redhat.com>
4504
4505 [BZ #24588]
4506 libio: Remove codecvt vtable.
4507 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
4508 __libio_codecvt.
4509 * libio/iofgetpos.c (_IO_new_fgetpos): Call
4510 __libio_codecvt_encoding.
4511 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
4512 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
4513 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
4514 * libio/iofwide.c (__libio_codecvt): Remove variable.
4515 (_IO_fwide): Do not copy __libio_codecvt.
4516 (__libio_codecvt_out): Rename from do_out and export.
4517 (do_unshift): Remove function.
4518 (__libio_codecvt_in): Rename from do_in and export.
4519 (__libio_codecvt_encoding): Rename from do_encoding and export.
4520 (do_always_noconv): Remove function.
4521 (__libio_codecvt_length): Rename from do_length and export.
4522 (do_max_length): Remove function.
4523 * libio/libio.h (enum __codecvt_result): Remove definition; moved
4524 to libioP.h.
4525 (struct _IO_codecvt): Remove fields __codecvt_destr,
4526 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
4527 __codecvt_do_encoding, __codecvt_do_always_noconv,
4528 __codecvt_do_length, __codecvt_do_max_length.
4529 * libio/libioP.h (enum __codecvt_result): Define; moved from
4530 libio.h.
4531 (__libio_codecvt_out, __libio_codecvt_in)
4532 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
4533 functions.
4534 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
4535 (_IO_wfile_underflow): Call __libio_codecvt_in.
4536 (_IO_wfile_underflow): Likewise.
4537 (_IO_wfile_underflow_mmap): Likewise.
4538 (_IO_wfile_sync): Call __libio_codecvt_encoding,
4539 __libio_codecvt_length.
4540 (adjust_wide_data): Call __libio_codecvt_encoding,
4541 __libio_codecvt_in.
4542 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
4543 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
4544 __libio_codecvt_length.
4545
4546 2019-05-20 Florian Weimer <fweimer@redhat.com>
4547
4548 * support/support.h (support_sbindir_prefix): Declare.
4549 (support_install_rootsbindir): Update comment.
4550 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
4551 * support/support_paths.c (support_sbindir_prefix): Define.
4552
4553 2019-05-20 Mike Crowe <mac@mcrowe.com>
4554
4555 * support/timespec.c: Add backslash to correct newline in failure
4556 message.
4557
4558 * support/timespec.h: Correct confusing comment.
4559
4560 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4561
4562 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
4563 define.
4564 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
4565 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
4566 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
4567 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
4568
4569 [BZ #24570]
4570 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
4571 usage.
4572
4573 2019-05-20 Joseph Myers <joseph@codesourcery.com>
4574
4575 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
4576 (NT_ARM_PACG_KEYS): Likewise.
4577
4578 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
4579
4580 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
4581 (tcache_put): Remove redundant assert.
4582 (tcache_get): Remove redundant asserts.
4583 (__libc_malloc): Check tcache count is not zero.
4584 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
4585
4586 2019-05-17 Florian Weimer <fweimer@redhat.com>
4587
4588 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
4589
4590 2019-05-16 Joseph Myers <joseph@codesourcery.com>
4591
4592 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4593 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
4594 0x050100].
4595 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
4596 Likewise.
4597 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4598 (__ASSUME_STATX): Likewise.
4599
4600 2019-05-16 Florian Weimer <fweimer@redhat.com>
4601
4602 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
4603 flags argument.
4604 (LINE_PARSER): Do not map IPv4 addresses.
4605 (internal_nis_gethostent_r): Remove flags argument. Adjust call
4606 to parse_line.
4607 (_nss_nis_gethostent_r): Always pass AF_INET to
4608 internal_nis_gethostent_r.
4609 (internal_gethostbyname2_r): Remove flags argument. Adjust call
4610 to parse_line.
4611 (_nss_nis_gethostbyname2_r): Adjust call to
4612 internal_nis_gethostent_r.
4613 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
4614 call to internal_nis_gethostent_r.
4615 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
4616 from parse_line.
4617 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
4618 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4619 Remove flags argument. Do not map IPv4 addresses.
4620 (internal_nisplus_gethostent_r): Adjust call to
4621 _nss_nisplus_parse_hostent.
4622 (internal_gethostbyname2_r): Remove flags argument. Adjust call
4623 to _nss_nisplus_parse_hostent.
4624 (_nss_nisplus_gethostbyname2_r): Adjust call to
4625 internal_gethostbyname2_r.
4626 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
4627 Adjust call to internal_gethostbyname2_r.
4628 (_nss_nisplus_gethostbyaddr_r): Adjust call to
4629 _nss_nisplus_parse_hostent.
4630 (_nss_nisplus_gethostbyname4_r): Adjust call to
4631 internal_gethostbyname2_r.
4632
4633 2019-05-16 Florian Weimer <fweimer@redhat.com>
4634
4635 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
4636 Remove flags.
4637 (LINE_PARSER): Remove address mapping.
4638 (EXTRA_ARGS_VALUE): Remove flags argument.
4639 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
4640 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
4641 gethostbyname3_multi.
4642 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
4643 _nss_files_gethostbyname3_r.
4644 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
4645
4646 2019-05-16 Florian Weimer <fweimer@redhat.com>
4647
4648 * support/support_test_compare_blob.c (report_blob): Report
4649 incorrect NULL blobs.
4650
4651 2019-05-15 Mark Wielaard <mark@klomp.org>
4652
4653 [BZ# 24476]
4654 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
4655 __libc_once_get (once) and static_buf == NULL.
4656 (__dlerror): Check we have a valid key, set result to static_buf
4657 otherwise.
4658
4659 2019-05-15 Andreas Schwab <schwab@suse.de>
4660
4661 [BZ #20568]
4662 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
4663 __codecvt_do_length.
4664 * libio/Makefile (tests): Add tst-wfile-sync.
4665 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
4666 * libio/tst-wfile-sync.c: New file.
4667 * libio/tst-wfile-sync.input: New file.
4668
4669 2019-05-15 Florian Weimer <fweimer@redhat.com>
4670
4671 nss: Turn __nss_database_lookup into a compatibility symbol.
4672 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
4673 __nss_database_lookup.
4674 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
4675 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
4676 __nss_database_lookup.
4677 (__nss_next): Move to 

4678 * nss/compat-lookup.c (nss_next): 
 here. Change it to fail
4679 unconditionally.
4680 (__nss_database_lookup): New function.
4681 * nss/Versions (GLIBC_2.0): Update comment.
4682 (GLIBC_PRIVATE): Export __nss_database_lookup2.
4683 * grp/initgroups.c (internal_getgrouplist): Call
4684 __nss_database_lookup2 instead of __nss_database_lookup.
4685 * nscd/aicache.c (addhstaiX): Likewise.
4686 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4687 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
4688 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
4689 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
4690 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
4691 Likewise.
4692 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
4693 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
4694 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4695
4696 2019-05-15 Alexandra HĂĄjkovĂĄ <ahajkova@redhat.com>
4697
4698 * support/support.h (support_install_rootsbindir): New variable.
4699 * support/support_paths.c: Likewise.
4700 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
4701
4702 2019-05-15 Florian Weimer <fweimer@redhat.com>
4703
4704 * iconv/gconv.h (__gconv_transliterate): Move declaration 

4705 * iconv/gconv_int.h (__gconv_transliterate): 
 here.
4706 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
4707 * iconv/skeleton.c: Likewise.
4708
4709 2019-05-14 Florian Weimer <fweimer@redhat.com>
4710
4711 Linux: Add the tgkill function.
4712 * bits/signal_ext.h: New file.
4713 * manual/signal.texi (Signaling Another Process): Document tgkill.
4714 * signal/Makefile (headers): Add bits/signal_ext.h.
4715 * signal/signal.h: Include <bits/signal_ext.h>.
4716 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
4717 (tst-tgkill): Link with libpthread.
4718 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
4719 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
4720 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
4721 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
4722 tgkill.
4723 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4724 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4725 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4726 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4727 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4728 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4729 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4730 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4731 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4732 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4733 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4734 Likewise.
4735 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4736 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4737 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4739 Likewise.
4740 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4741 Likewise.
4742 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
4743 Likewise.
4744 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
4745 Likewise.
4746 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4747 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4748 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4749 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4750 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4751 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4752 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4753 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4754
4755 2019-05-14 Carlos O'Donell <carlos@redhat.com>
4756
4757 * manual/search.texi (Tree Search Function): Adjust twalk_r
4758 documentation.
4759
4760 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4761
4762 [BZ #24544]
4763 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
4764 pre-defined value.
4765
4766 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
4767 * support/support.h (support_bindir_prefix): New variable.
4768 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
4769
4770 * config.make.in (bindir): New variable.
4771
4772 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
4773 (lll_trylock): Call __lll_trylock.
4774 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
4775 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
4776 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
4777 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4778 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
4779 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
4780 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4781 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4782 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
4783 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
4784 lowlevellock-futex.h.
4785
4786 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4787 initialization for LLL_LOCK_INITIALIZER different than 0.
4788 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
4789 Assume LLL_LOCK_INITIALIZER being 0.
4790 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
4791 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
4792 Likewise.
4793 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
4794 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
4795
4796 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
4797 Optimize futex call and add systemtap probe.
4798
4799 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
4800 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
4801 __libc_disable_asynccancel, __librt_enable_asynccancel,
4802 __libc_disable_asynccancel, __librt_enable_asynccancel,
4803 __librt_disable_asynccancel): Move to ...
4804 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
4805 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
4806 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
4807 * sysdeps/generic/single-thread.h: New file.
4808 * sysdeps/unix/sysdep.h: Include single-thread.h.
4809 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
4810 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4811
4812 2019-05-08 Mike FABIAN <mfabian@redhat.com>
4813
4814 [BZ #24535]
4815 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
4816 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4817 Unicode 12.1.0.
4818 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4819 * localedata/unicode-gen/PropList.txt: Likewise.
4820 * localedata/unicode-gen/UnicodeData.txt: Likewise.
4821 * localedata/charmaps/UTF-8: Regenerate.
4822 * localedata/locales/i18n_ctype: Likewise.
4823 * localedata/locales/tr_TR: Likewise.
4824 * localedata/locales/translit_circle: Likewise.
4825 * localedata/locales/translit_cjk_compat: Likewise.
4826 * localedata/locales/translit_combining: Likewise.
4827 * localedata/locales/translit_compat: Likewise.
4828 * localedata/locales/translit_font: Likewise.
4829 * localedata/locales/translit_fraction: Likewise.
4830
4831 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
4832
4833 [BZ #24531]
4834 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
4835 (do_set_tcache_count): Only update if count is small enough.
4836 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
4837
4838 2019-05-10 Florian Weimer <fweimer@redhat.com>
4839
4840 * nptl/sem_close.c (struct walk_closure): Define.
4841 (walker): Adjust for __twalk_r.
4842 (sem_close): Call __twalk_r.
4843
4844 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4845
4846 * support/timespec.c (test_timespec_before_impl,
4847 test_timespec_equal_or_after_impl): print timespec member as intmax_t
4848 insted of long int.
4849
4850 2019-05-09 Mike Crowe <mac@mcrowe.com>
4851
4852 * nptl/tst-abstime.c: Use libsupport.
4853
4854 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
4855 small bug where only tv.tv_usec was checked which could cause an
4856 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
4857 than a second.
4858
4859 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
4860 libsupport.
4861
4862 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
4863 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
4864
4865 * nptl/tst-cond11.c: Use libsupport.
4866
4867 * support/timespec.h: New file. Provide timespec helper functions
4868 along with macros in the style of those in check.h.
4869 * support/timespec.c: New file. Implement check functions declared
4870 in support/timespec.h.
4871 * support/timespec-add.c: New file from gnulib containing
4872 timespec_add implementation that handles overflow.
4873 * support/timespec-sub.c: New file from gnulib containing
4874 timespec_sub implementation that handles overflow.
4875 * support/README: Mention timespec.h.
4876
4877 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
4878
4879 [BZ #24537]
4880 * nptl/Makefile: Move tst-eintr1 to xtests.
4881
4882 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4883
4884 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
4885 TRUNC handling.
4886 (round_mode): Add definition for TRUNC.
4887 * sysdeps/powerpc/fpu/s_trunc.c: New file.
4888 * sysdeps/powerpc/fpu/s_truncf.c: New file.
4889 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
4890 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4891 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
4892 Likewise.
4893 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
4894 Likewise.
4895 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
4896 Likewise.
4897 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
4898 Likewise.
4899 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
4900 file.
4901 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
4902 Likewise.
4903 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
4904 Likewise.
4905 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
4906 Likewise.
4907 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
4908 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
4909 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4910 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
4911 s_truncf-power5+, and s_truncf-ppc64.
4912 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
4913 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
4914 file.
4915 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
4916 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
4917 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
4918 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4919 file.
4920 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4921 Likewise.
4922 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4923 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4924 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4925 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4926 s_truncf-power5+, and s_truncf-ppc64.
4927 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4928 file.
4929 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4930 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4931 Likewise.
4932 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4933 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4934 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4935 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4936 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4937
4938 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4939 ROUND handling.
4940 (round_mode): Add definition for ROUND.
4941 (round_to_integer_float): Likewise.
4942 * sysdeps/powerpc/fpu/s_round.c: New file.
4943 * sysdeps/powerpc/fpu/s_roundf.c: New file.
4944 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4945 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4946 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4947 Likewise.
4948 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4949 Likewise.
4950 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4951 Likewise.
4952 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4953 Likewise.
4954 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4955 file.
4956 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4957 Likewise.
4958 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4959 Likewise.
4960 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4961 Likewise.
4962 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4963 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4964 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4965 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4966 s_roundf-power5+, and s_roundf-ppc64.
4967 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4968 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4969 file.
4970 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4971 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4972 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4973 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4974 file.
4975 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4976 Likewise.
4977 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4978 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4979 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4980 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4981 s_roundf-power5+, and s_roundf-ppc64.
4982 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4983 file.
4984 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4985 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4986 Likewise.
4987 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4988 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4989 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4990 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4991 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4992
4993 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4994 Add FLOOR option.
4995 (round_mode): Add definition for FLOOR.
4996 * sysdeps/powerpc/fpu/s_floor.c: New file.
4997 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
4998 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
4999 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
5000 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
5001 Remove file.
5002 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
5003 Likewise
5004 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
5005 Likewise.
5006 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
5007 Likewise.
5008 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
5009 New file.
5010 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
5011 Likewise.
5012 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
5013 Likewise.
5014 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
5015 Likewise.
5016 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
5017 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
5018 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
5019 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
5020 s_floorf-power5+, and s_floorf-ppc64.
5021 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
5022 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
5023 file.
5024 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
5025 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
5026 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
5027 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
5028 file.
5029 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
5030 Likewise.
5031 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
5032 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
5033 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
5034 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
5035 s_floorf-power5+, and s_floorf-ppc64.
5036 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
5037 file.
5038 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
5039 file.
5040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
5041 Likewise.
5042 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
5043 Likewise.
5044 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
5045 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
5046 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
5047 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
5048
5049 2019-05-08 Mike Crowe <mac@mcrowe.com>
5050
5051 * support/xclock_gettime.c (xclock_gettime): New file. Provide
5052 clock_gettime wrapper for use in tests that fails the test rather
5053 than returning failure.
5054
5055 * support/xtime.h: New file to declare xclock_gettime.
5056
5057 * support/Makefile: Add xclock_gettime.c.
5058
5059 * support/README: Mention xtime.h.
5060
5061 2019-05-08 Florian Weimer <fweimer@redhat.com>
5062
5063 malloc/tst-mallocfork2: Use process-shared barriers.
5064 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
5065 (signal_count, sigusr1_sender_pid): Remove.
5066 (iterations): Define constant.
5067 (shared): New variable.
5068 (sigusr1_received): Update comment.
5069 (sigusr1_handler): Do not send SIGSTOP to the sender process.
5070 (signal_sender): Optional use barriers to avoid sending signals
5071 during irrelevant times.
5072 (do_it): Initialize variable shared. Use xfork for error
5073 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
5074 the iteration count, independent of signal delivery. Check for
5075 deadlocks in fork. Introduce barriers for reducing signal
5076 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
5077 replaced by the barriers. Count signals during fork/free/malloc
5078 and report them.
5079 * malloc/Makefile (tst-mallocfork): Link with libpthread.
5080
5081 2019-05-07 Joseph Myers <joseph@codesourcery.com>
5082
5083 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5084 version to 5.1.
5085 (clock_adjtime64) New syscall.
5086 (clock_getres_time64) Likewise.
5087 (clock_gettime64) Likewise.
5088 (clock_nanosleep_time64) Likewise.
5089 (clock_settime64) Likewise.
5090 (futex_time64) Likewise.
5091 (io_pgetevents_time64) Likewise.
5092 (io_uring_enter) Likewise.
5093 (io_uring_register) Likewise.
5094 (io_uring_setup) Likewise.
5095 (mq_timedreceive_time64) Likewise.
5096 (mq_timedsend_time64) Likewise.
5097 (pidfd_send_signal) Likewise.
5098 (ppoll_time64) Likewise.
5099 (pselect6_time64) Likewise.
5100 (recvmmsg_time64) Likewise.
5101 (rt_sigtimedwait_time64) Likewise.
5102 (sched_rr_get_interval_time64) Likewise.
5103 (semtimedop_time64) Likewise.
5104 (timer_gettime64) Likewise.
5105 (timer_settime64) Likewise.
5106 (timerfd_gettime64) Likewise.
5107 (timerfd_settime64) Likewise.
5108 (utimensat_time64) Likewise.
5109
5110 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
5111 version to 9 branch.
5112
5113 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5114
5115 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
5116 __memmove_thunderx2 to the list of implementations
5117 * sysdeps/aarch64/multiarch/memmove.c: Likewise
5118 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
5119 (__memmove_thunderx2): Rewritten using SIMD ld/st
5120 (__memcpy_thunderx2): Fixed handling overlapping cases.
5121 Used ldp/stp instead of ldr/str if possible. Made loops
5122 tails branchless.
5123
5124 2019-05-03 Florian Weimer <fweimer@redhat.com>
5125
5126 * misc/tst-tsearch.c (walk_tree): Add more error checking.
5127
5128 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5129
5130 [BZ #24506]
5131 * elf/tst-pldd.c (in_str_list): New function.
5132 (do_test): Add default names for ld and libc as one option.
5133
5134 2019-05-02 Florian Weimer <fweimer@redhat.com>
5135
5136 misc: Add twalk_r function.
5137 * include/search.h (__twalk_r): Declare.
5138 * manual/examples/twalk.c: New file.
5139 * manual/search.texi (Tree Search Function): Document twalk_r.
5140 * misc/Versions (2.30): Export twalk_r.
5141 (GLIBC_PRIVATE): Export __twalk_r.
5142 * misc/search.h [__USE_GNU] (twalk_r): Declare.
5143 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
5144 (twalk_r): Add weak alias.
5145 * misc/tst-tsearch.c (struct walk_trace_element): Define.
5146 (walk_trace): New variable.
5147 (struct twalk_with_twalk_r_closure): Define.
5148 (twalk_with_twalk_r_action): New function.
5149 (twalk_with_twalk_r): Likewise.
5150 (walk_action): Call walk_trace_add.
5151 (walk_tree_with): Rename from walk_tree. Add walk argument.
5152 (walk_tree): New function.
5153 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
5154 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
5155 Likewise.
5156 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
5157 Likewise.
5158 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
5159 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
5160 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
5161 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
5162 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
5163 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
5164 Likewise.
5165 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
5166 Likewise.
5167 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
5168 Likewise.
5169 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5170 (GLIBC_2.30): Likewise.
5171 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5172 (GLIBC_2.30): Likewise.
5173 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5174 (GLIBC_2.30): Likewise.
5175 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5176 (GLIBC_2.30): Likewise.
5177 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
5178 Likewise.
5179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5180 (GLIBC_2.30): Likewise.
5181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5182 (GLIBC_2.30): Likewise.
5183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
5184 (GLIBC_2.30): Likewise.
5185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
5186 (GLIBC_2.30): Likewise.
5187 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
5188 Likewise.
5189 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
5190 Likewise.
5191 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
5192 Likewise.
5193 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
5194 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
5195 Likewise.
5196 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
5197 Likewise.
5198 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
5199 Likewise.
5200 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
5201 Likewise.
5202
5203 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
5204
5205 Make mktime etc. compatible with __time64_t
5206 Keep these functions compatible with Gnulib while adding
5207 __time64_t support. The basic idea is to move private API
5208 declarations from include/time.h to time/mktime-internal.h, since
5209 the former file cannot easily be shared with Gnulib whereas the
5210 latter can.
5211 Also, do some other minor cleanup while in the neighborhood.
5212 * include/time.h: Include stdbool.h, time/mktime-internal.h.
5213 (__mktime_internal): Move this prototype to time/mktime-internal.h,
5214 since Gnulib needs it.
5215 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
5216 Move these macros to time/mktime-internal.h, since Gnulib needs them.
5217 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
5218 (in_time_t_range): New static function.
5219 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
5220 so that glibc users are not tempted to use __time64_t.
5221 * time/mktime-internal.h: Rewrite so that it does both glibc
5222 and Gnulib work. Include time.h if not _LIBC.
5223 (mktime_offset_t) [!_LIBC]: Define for gnulib.
5224 (__time64_t): New type or macro, moved here from
5225 posix/bits/types.h.
5226 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
5227 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
5228 from include/time.h.
5229 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
5230 New macros, taken from GNulib.
5231 (__mktime_internal): New prototype, moved here from include/time.h.
5232 * time/mktime.c (mktime_min, mktime_max, convert_time)
5233 (ranged_convert, __mktime_internal, __mktime64):
5234 * time/timegm.c (__timegm64):
5235 Use __time64_t, not time_t.
5236 * time/mktime.c: Stop worrying about whether time_t is floating-point.
5237 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
5238 Rename from mktime.
5239 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
5240 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
5241 for libc_hidden_def.
5242 Include errno.h.
5243 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
5244 Rename from timegm.
5245 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
5246
5247 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
5248
5249 [BZ #19444]
5250 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
5251 from `-Wmaybe-uninitialized'.
5252 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
5253
5254 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5255
5256 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
5257 function.
5258 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
5259 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
5260 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
5261 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
5262 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5263 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
5264 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
5265 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
5266 Remove file.
5267 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
5268 Likewise.
5269 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
5270 Likewise.
5271 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
5272 Likewise.
5273 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
5274 New file.
5275 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
5276 Likewise.
5277 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
5278 Likewise.
5279 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
5280 Likewise.
5281 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
5282 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
5283 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
5284 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
5285 Likewise.
5286 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
5287 Likewise.
5288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
5289 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
5290 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
5291 file.
5292 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
5293 Likewise.
5294 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
5295 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
5296 * here.
5297 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
5298 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
5299 s_ceilf-power5+, and s_ceilf-ppc64.
5300 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
5301 file.
5302 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
5303 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
5304 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
5305 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
5306 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
5307 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
5308 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
5309
5310 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
5311 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
5312 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
5313
5314 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
5315
5316 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
5317 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
5318 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
5319 (sem_getvalue): Likewise.
5320
5321 2019-04-26 Florian Weimer <fweimer@redhat.com>
5322
5323 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
5324 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
5325
5326 2019-04-26 Florian Weimer <fweimer@redhat.com>
5327
5328 Makeconfig: Move -Wl,-rpath-link options before library references.
5329 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
5330 (link-libc): Remove $(link-libc-rpath-link).
5331
5332 2019-04-25 Florian Weimer <fweimer@redhat.com>
5333
5334 * Makeconfig (+link-pie-before-libc): Remove $(CC).
5335 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
5336 (+link-static-before-libc): Remove $(CC).
5337 (+link-static, +link-static-tests): Add $(CC).
5338 (+link-before-libc): Remove $(CC).
5339 (+link, +link-pie, +link-pie-printers): Add $(CC).
5340
5341 2019-04-26 Florian Weimer <fweimer@redhat.com>
5342
5343 * Makeconfig (+link-pie-before-libc): Remove $(CC).
5344 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
5345 (+link-static-before-libc): Remove $(CC).
5346 (+link-static, +link-static-tests): Add $(CC).
5347 (+link-before-libc): Remove $(CC).
5348 (+link, +link-pie, +link-pie-printers): Add $(CC).
5349
5350 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
5351
5352 [BZ#24484]
5353 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
5354
5355 2019-04-25 Florian Weimer <fweimer@redhat.com>
5356
5357 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
5358 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
5359 (bench-link-targets): New variable.
5360 ($(binaries-bench) 
): Use it. Set LDFLAGS accordingly.
5361
5362 2019-04-25 Florian Weimer <fweimer@redhat.com>
5363
5364 Also enable BIND_NOW for programs if --enable-bind-now.
5365 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
5366 (+link-pie): Use $(link-extra-flags).
5367 (+link-static): Likewise.
5368 [! $(build-pie-default)] (+link): Likewise.
5369 * manual/install.texi (Configuring and compiling): Update
5370 --enable-bind-now description.
5371 * INSTALL: Regenerated.
5372
5373 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
5374
5375 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
5376 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
5377
5378 2019-04-24 Mike Frysinger <vapier@gentoo.org>
5379
5380 [BZ #18465]
5381 * malloc/Makefile (others): Add memusagestat.
5382 ($(objpfx)memusagestat): Delete rule.
5383 (LDLIBS-memusagestat): New variable.
5384
5385 2019-04-24 Florian Weimer <fweimer@redhat.com>
5386
5387 * locale/Makefile (tests-special): Guard setting by
5388 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
5389 to run while cross-compiling.
5390
5391 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5392
5393 [BZ #18035]
5394 * elf/Makefile (tests-container): Add tst-pldd.
5395 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
5396 (E(find_maps)): Avoid use alloca, use default read file operations
5397 instead of explicit LFS names, and fix infinite loop.
5398 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
5399 (get_process_info): Use _Static_assert instead of assert, use default
5400 directory operations instead of explicit LFS names, and free some
5401 leadek pointers.
5402 * elf/tst-pldd.c: New file.
5403
5404 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
5405
5406 * malloc/arena.c (do_set_mallopt_check): Removed.
5407
5408 2019-04-23 Florian Weimer <fweimer@redhat.com>
5409
5410 locale: Add LOCPATH diagnostics to the locale program.
5411 * locale/programs/locale.c (setlocale_failed): New variable.
5412 (try_setlocale): New function.
5413 (quote_string): Likewise.
5414 (setlocale_diagnostics): Likewise.
5415 (main): Call try_setlocale instead of setlocale. Call
5416 setlocale_diagnostics.
5417 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
5418 (tst-locale-locpath.out): New target.
5419 * locale/tst-locale-locpath.sh: New file.
5420
5421 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5422
5423 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
5424 to 2.30 notes.
5425
5426 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5427
5428 [BZ #23741]
5429 * malloc/hooks.c (malloc_check, realloc_check): Use
5430 __builtin_add_overflow on overflow check and adapt to
5431 checked_request2size change.
5432 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
5433 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
5434 allocation size to PTRDIFF_MAX.
5435 (REQUEST_OUT_OF_RANGE): Remove macro.
5436 (checked_request2size): Change to inline function and limit maximum
5437 requested size to PTRDIFF_MAX.
5438 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
5439 maximum allocation size to PTRDIFF_MAX.
5440 (_mid_memalign): Use _int_memalign call for overflow check.
5441 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
5442 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
5443 limit maximum requested size to PTRDIFF_MAX.
5444 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
5445 valloc, pvalloc): Add __attribute_alloc_size__.
5446 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
5447 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
5448 larger than PTRDIFF_MAX.
5449 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
5450 around tests of malloc with negative sizes.
5451 * malloc/tst-posix_memalign.c (do_test): Likewise.
5452 * malloc/tst-pvalloc.c (do_test): Likewise.
5453 * malloc/tst-valloc.c (do_test): Likewise.
5454 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
5455 with resulting size allocation larger than PTRDIFF_MAX with
5456 reallocarray_nowarn.
5457 (reallocarray_nowarn): New function.
5458 * NEWS: Mention the malloc function semantic change.
5459
5460 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5461
5462 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
5463 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
5464
5465 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
5466 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
5467 * sysdeps/powerpc/fpu/s_fma.c: New file.
5468 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
5469
5470 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
5471 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
5472
5473 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
5474 the magic flag store.
5475 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
5476 Likewise.
5477 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
5478 Likewise.
5479 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
5480 Remove rt_sigreturn call.
5481
5482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
5483 Remove rt_sigreturn call.
5484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
5485 Likewise.
5486 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
5487 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
5488
5489 * support/Makefile (libsupport-routines): Add support_subprocess,
5490 xposix_spawn, xposix_spawn_file_actions_addclose, and
5491 xposix_spawn_file_actions_adddup2.
5492 (tst-support_capture_subprocess-ARGS): New rule.
5493 * support/capture_subprocess.h (support_capture_subprogram): New
5494 prototype.
5495 * support/support_capture_subprocess.c (support_capture_subprocess):
5496 Refactor to use support_subprocess and support_capture_poll.
5497 (support_capture_subprogram): New function.
5498 * support/tst-support_capture_subprocess.c (write_mode_to_str,
5499 str_to_write_mode, test_common, parse_int, handle_restart,
5500 do_subprocess, do_subprogram, do_multiple_tests): New functions.
5501 (do_test): Add support_capture_subprogram tests.
5502 * support/subprocess.h: New file.
5503 * support/support_subprocess.c: Likewise.
5504 * support/xposix_spawn.c: Likewise.
5505 * support/xposix_spawn_file_actions_addclose.c: Likewise.
5506 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
5507 * support/xspawn.h: Likewise.
5508
5509 2019-04-17 Mike Gerow <gerow@google.com>
5510
5511 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
5512 groups limit.
5513
5514 2019-04-11 Florian Weimer <fweimer@redhat.com>
5515
5516 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
5517 domain with empty string.
5518 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
5519
5520 2019-04-11 Florian Weimer <fweimer@redhat.com>
5521
5522 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
5523 comment.
5524 (alloc_buffer_next): Change return type to non-const. Update
5525 comment.
5526
5527 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
5528
5529 * manual/time.texi (Formatting Calendar Time): Add missing percent
5530 sign to conversion specifier.
5531
5532 2019-04-09 Carlos O'Donell <carlos@redhat.com>
5533 Kwok Cheung Yeung <kcy@codesourcery.com>
5534
5535 [BZ #16573]
5536 * malloc/mtrace.c: Define prototypes for all hooks.
5537 (set_default_hooks): New function.
5538 (set_trace_hooks): Likewise.
5539 (save_default_hooks): Likewise.
5540 (tr_freehook): Use new s*_hooks functions.
5541 (tr_mallochook): Likewise.
5542 (tr_reallochook): Likewise.
5543 (tr_memalignhook): Likewise.
5544 (mtrace): Likewise.
5545 (muntrace): Likewise.
5546
5547 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
5548
5549 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
5550 (generic_stpcpy): New function.
5551 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
5552 (generic_stpncpy): New function.
5553 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
5554 (generic_strcat): New function.
5555 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
5556 (generic_strcpy): New function.
5557 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
5558 (STUPID_STRNCAT): Remove function.
5559 (generic_strncat): New function.
5560 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
5561 (STUPID_STRNCPY): Remove function.
5562 (generic_strncpy): New function.
5563 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
5564 (generic_strnlen): New function.
5565 (memchr_strnlen): New function.
5566 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
5567 (memchr_strlen): Likewise.
5568
5569 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
5570
5571 * benchtests/bench-strstr.c (input): Add realistic input text.
5572 (stupid_strstr): Remove function.
5573 (basic_strstr): Add function.
5574 (twoway_strstr): Add function.
5575 (do_one_test): Add result checking.
5576 (do_test): Use new input text. Remove accidental early matches.
5577 (test_main): Improve range of tests, reduce unaligned cases.
5578
5579 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
5580
5581 * benchtests/bench-memmem.c (simple_memmem): Remove function.
5582 (basic_memmem): Add function.
5583 (twoway_memmem): Add function.
5584
5585 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
5586
5587 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
5588 * benchtests/bench-malloc-thread.c: Likewise.
5589 * benchtests/bench-skeleton.c: Likewise.
5590 * benchtests/bench-strtod.c: Likewise.
5591 * benchtests/bench-timing.h: Likewise.
5592
5593 2019-04-08 Florian Weimer <fweimer@redhat.com>
5594
5595 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
5596 definitions.
5597 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
5598 RES_INSECURE2 security checks.
5599 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
5600 RES_INSECURE2 handling.
5601
5602 2019-04-08 Florian Weimer <fweimer@redhat.com>
5603
5604 resolv: Remove support for RES_USE_INET6 and the inet6 option.
5605 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
5606 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
5607 GETHOSTBYNAME.
5608 * resolv/Makefile (tests): Remove tst-res_use_inet6.
5609 (tests-internal): Update justification for tst-resolv-res_init,
5610 tst-resolv-res_init-thread.
5611 (tst-res_use_inet6): Remove target.
5612 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
5613 * resolv/res_debug.c (p_option): Remove "inet6" support.
5614 * resolv/res_init.c (res_setoptions): Likewise.
5615 * resolv/res_use_inet6.h: Remove file.
5616 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
5617 definition.
5618 (res_use_inet6): Always return false.
5619 * resolv/resolv.h (RES_USE_INET6): Remove definition.
5620 * resolv/resolv_context.h: Adjust file comment.
5621 (struct resolv_context): Update comment on __next field.
5622 (__resolv_context_put): Update comment.
5623 * resolv/tst-res_use_inet6.c: Remove file.
5624 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
5625 "inet6" support.
5626 (test_cases): Adjust test case.
5627 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
5628 (thread_byname2_af_inet6): Use old byname_inet6 code.
5629 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
5630 (gai): Remove do_inet6 argument.
5631 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
5632 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
5633 (thread_gai_unspec_inet6): Remove functions.
5634 (do_test): Adjust thread_funcs.
5635 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
5636 RES_USE_INET6 flag.
5637 (gaih_inet): Do not disable RES_USE_INET6 flag.
5638
5639 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5640
5641 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
5642 and remove redundant code.
5643
5644 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5645
5646 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
5647 New rule.
5648 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
5649 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
5650 Likewise.
5651 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
5652 Likewise.
5653 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
5654 Likewise.
5655 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
5656 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
5657 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
5658 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
5659 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
5660 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
5661 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5662 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
5663 wcsrchr-power7.
5664 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
5665 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5666 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5667 Remove wcsrchr optimizations.
5668 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5669
5670 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
5671 the loop unroll.
5672
5673 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
5674 New rule.
5675 * sysdeps/powerpc/power6/wcschr.c: Remove file.
5676 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
5677 Likewise.
5678 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
5679 Likewise.
5680 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
5681 Likewise.
5682 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
5683 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
5684 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
5685 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
5686 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
5687 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
5688 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5689 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
5690 wcschr-power7.
5691 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
5692 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5693 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5694 Remove wcschr optimizations.
5695 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5696
5697 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
5698 the loop unroll.
5699
5700 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
5701 New rule.
5702 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
5703 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
5704 Likewise.
5705 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
5706 Likewise.
5707 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
5708 Likewise.
5709 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
5710 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
5711 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
5712 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
5713 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
5714 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
5715 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5716 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
5717 wcscpy-power7.
5718 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
5719 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5720 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5721 Remove wcscpy optimizations.
5722 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5723
5724 * include/loop_unroll.h: New file.
5725 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
5726 besides generic implementation.
5727
5728 2019-04-03 DJ Delorie <dj@redhat.com>
5729
5730 * time/tst-strftime3.c (tm_to_printed): Disable warning about
5731 snprintf truncating output.
5732
5733 2019-04-02 DJ Delorie <dj@redhat.com>
5734
5735 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
5736 warning.
5737
5738 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5739
5740 [BZ #22964]
5741 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
5742 era.
5743 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
5744 (mkreftable): Add rules for the new Japanese era and the new dates.
5745
5746 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5747 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
5748
5749 * time/tst-strftime2.c (date_t): Explicitly define the type.
5750 (dates): Use natural month and year numbers to express a date.
5751 (is_before): New function to compare dates.
5752 (mkreftable): Minor improvements to simplify maintenance.
5753 (do_test): Reflect the changes in dates array.
5754
5755 [BZ #24293]
5756 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
5757 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
5758 * time/tst-strftime2.c (locales): Likewise.
5759 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
5760 2010-04-01, and 2011-04-01.
5761 (mkreftable): Add rules for the new locales and the new dates.
5762
5763 2019-04-01 Carlos O'Donell <carlos@redhat.com>
5764
5765 * localedata/locales/ja_JP: Add comments to era entries.
5766
5767 2019-04-01 DJ Delorie <dj@redhat.com>
5768
5769 [BZ #24394]
5770 * time/strptime_l.c (%Ey): Fix fencepost error.
5771 * time/tst-strftime3.c: New.
5772 * time/Makefile (tests): Add tst-strftime3.
5773
5774 2019-04-01 UroĆĄ Bizjak <ubizjak@gmail.com>
5775
5776 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
5777 conditional branch to DIVBYZERO. Fix unwind info.
5778 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
5779 excb after conditional branch to $powerof2. Add missing unop
5780 instructions and .align directives and reorder instructions to
5781 match __divqu.
5782
5783 2019-04-01 Richard Henderson <rth@twiddle.net>
5784
5785 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
5786 Do not redefine.
5787 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
5788 Do not redefine.
5789
5790 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
5791
5792 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
5793 $libc_cv_riscv_float_abi in `test' invocation.
5794 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
5795
5796 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
5797
5798 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
5799 asm with builtin.
5800 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
5801 Likewise.
5802 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5803 (_GET_SI_FPSCR): Likewise.
5804 (_SET_SI_FPSCR): Likewise.
5805
5806 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5807
5808 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
5809 clang 2.8.
5810 (signbit): Use builtin for clang 3.3.
5811 (isinf): Use builtin for clang 3.7.
5812
5813 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5814
5815 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
5816
5817 2019-03-25 Andreas K. HĂŒttel <dilfridge@gentoo.org>
5818
5819 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
5820 quote in printf.
5821
5822 2019-03-25 Mike Crowe <mac@mcrowe.com>
5823
5824 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
5825 pthread_rwlock_timedrdlock with calls to
5826 pthread_rwlock_timedwrlock to ensure that the latter is tested
5827 too. Use new function name in diagnostic messages too.
5828
5829 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
5830 (do_test) Use libsupport test macros rather than hand-coded
5831 conditionals and error messages. Ensure that sem_init returns zero
5832 rather than not -1. Use <support/test-driver.c> rather than
5833 test-skeleton.c.
5834
5835 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
5836 test macros rather than hand-coded conditionals and error messages.
5837 Use <support/test-driver.c> rather than test-skeleton.c.
5838
5839 2019-03-25 Joseph Myers <joseph@codesourcery.com>
5840
5841 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
5842
5843 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
5844 (NT_MIPS_MSA): Likewise.
5845
5846 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5847
5848 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
5849 * benchtests/README: Update description.
5850 * benchtests/bench-timing.h: Default to hp-timing.
5851 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
5852 HP_TIMING_PRINT): Remove.
5853 (HP_TIMING_NOW): Add generic implementation.
5854 (hp_timing_t): Change to uint64_t.
5855
5856 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
5857 HP_TIMING_INLINE.
5858 * nptl/descr.h: Likewise.
5859 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
5860 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
5861 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
5862 Abstract hp-timing usage with RTLD_* macros.
5863 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
5864 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
5865 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
5866 HP_TIMING_NONAVAIL): Likewise.
5867 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5868 Likewise.
5869 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
5870 HP_SMALL_TIMING_AVAIL): Likewise.
5871 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
5872 HP_SMALL_TIMING_AVAIL): Likewise.
5873 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
5874 HP_SMALL_TIMING_AVAIL): Likewise.
5875 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
5876 HP_SMALL_TIMING_AVAIL): Likewise.
5877 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5878 Likewise.
5879 * sysdeps/generic/hp-timing-common.h: Update comment with
5880 HP_TIMING_AVAIL removal.
5881
5882 * include/random-bits.h: New file.
5883 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
5884 (__res_context_mkquery): Remove usage hp-timing usage and replace with
5885 random_bits.
5886 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
5887 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
5888 Likewise.
5889
5890 * include/libc-internal.h (__get_clockfreq): Remove prototype.
5891 * rt/Makefile (clock-routines): Remove get_clockfreq.
5892 * rt/get_clockfreq.c: Remove file.
5893 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5894 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
5895 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
5896 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
5897 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
5898
5899 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
5900 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
5901 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
5902 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
5903 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
5904
5905 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
5906 pthread_clock_settime.
5907 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
5908 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
5909 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
5910 * elf/rtld.c (_dl_start_final): Likewise.
5911 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
5912 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
5913 Remove.
5914 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
5915 (_dl_cpuclock_offset): Remove.
5916 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
5917 cpuclock_offset_ununsed.
5918 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5919 cpuclock_offset set.
5920 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5921 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5922 * nptl/pthread_clock_gettime.c: Remove file.
5923 * nptl/pthread_clock_settime.c: Likewise.
5924 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5925 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5926 and CLOCK_PROCESS_CPUTIME_ID support.
5927 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5928 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5929 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5930 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5931 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5932 Likewise.
5933 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5934
5935 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5936
5937 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5938 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5939 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5940 New defines.
5941 * sysdeps/s390/memmem-arch13.S: New file.
5942 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5943 if it is only used as fallback.
5944 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5945 * sysdeps/s390/multiarch/ifunc-impl-list.c
5946 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5947
5948 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5949
5950 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5951 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5952 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5953 New defines.
5954 * sysdeps/s390/multiarch/ifunc-impl-list.c
5955 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5956 * sysdeps/s390/strstr-arch13.S: New file.
5957 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5958 if it is only used as fallback.
5959 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5960
5961 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5962
5963 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5964 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5965 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5966 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5967 ifunc selector.
5968 * sysdeps/s390/multiarch/ifunc-impl-list.c
5969 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5970 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5971 S390_IS_ARCH13_MIE3): New defines.
5972
5973 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5974
5975 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5976 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5977 * sysdeps/s390/configure.ac: Add checks for arch13 support.
5978 * sysdeps/s390/configure: Regenerated.
5979
5980 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5981
5982 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5983 Add vxe2, vxp, dflt, sort flags.
5984 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5985 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5986 capabilities.
5987 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5988 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5989 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5990 HWCAP_S390_DFLT): Define.
5991
5992 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5993
5994 [BZ #24372]
5995 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5996 of compiler warning.
5997 * locale/programs/ld-collate.c (collate_output): Likewise.
5998
5999 2019-03-21 DJ Delorie <dj@redhat.com>
6000
6001 [BZ #24372]
6002 * iconv/iconvconfig.c (write_output): Replace floating point math
6003 with integer math to avoid imprecise results.
6004 * locale/programs/ld-collate.c (collate_output): Likewise.
6005
6006 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
6007
6008 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
6009 Add HWCAP_S390_VX and HWCAP_S390_VXE.
6010
6011 2019-03-20 mansayk <6688000@gmail.com>
6012
6013 [BZ #24296]
6014 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
6015 (abday): Likewise, but remove the trailing dots.
6016
6017 2019-03-19 Joseph Myers <joseph@codesourcery.com>
6018
6019 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
6020 macro.
6021 (HWCAP_PACA): Likewise.
6022 (HWCAP_PACG): Likewise.
6023 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
6024 Increase to 32.
6025 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
6026
6027 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
6028
6029 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
6030 should be handled.
6031
6032 2019-03-15 Joseph Myers <joseph@codesourcery.com>
6033
6034 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6035 version to 5.0.
6036 (old_getpagesize): New syscall.
6037
6038 2019-03-15 Felix Yan <felixonmars@archlinux.org>
6039
6040 [BZ #24293]
6041 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
6042 * localedata/locales/cmn_TW (era): Likewise.
6043 * localedata/locales/hak_TW (era): Likewise.
6044 * localedata/locales/lzh_TW (era): Likewise.
6045 * localedata/locales/nan_TW (era): Likewise.
6046
6047 2019-03-14 Adam Maris <amaris@redhat.com>
6048
6049 * malloc/malloc.c (_int_malloc): Check for large bin list
6050 corruption when inserting unsorted chunk.
6051
6052 2019-03-14 Florian Weimer <fweimer@redhat.com>
6053
6054 Remove obsolete, never-implemented XSI STREAMS declarations.
6055 * manual/terminal.texi (Allocation): Remove portability note and
6056 adjust example.
6057 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
6058 _SC_STREAMS.
6059 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
6060 * sysdeps/unix/inet/Subdirs (streams): Remove.
6061 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
6062 (conformtest-headers-UNIX98): Likewise.
6063 (conformtest-headers-XOPEN2K): Likewise.
6064 (conformtest-headers-POSIX2008): Likewise.
6065 * posix/compat-streams.c: New file.
6066 * posix/Makefile (routines): Add it.
6067 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
6068 getpmsg, isastream, putmsg, putpmsg.
6069 (GLIBC_2.30): New section.
6070 * bits/stropts.h: Remove file.
6071 * bits/xtitypes.h: Likewise.
6072 * conform/data/stropts.h-data: Likewise.
6073 * include/stropts.h: Likewise.
6074 * include/sys/stropts.h: Likewise.
6075 * include/xtitypes.h: Likewise.
6076 * streams/Makefile: Likewise.
6077 * streams/fattach.c: Likewise.
6078 * streams/fdetach.c: Likewise.
6079 * streams/getmsg.c: Likewise.
6080 * streams/getpmsg.c: Likewise.
6081 * streams/isastream.c: Likewise.
6082 * streams/putmsg.c: Likewise.
6083 * streams/putpmsg.c: Likewise.
6084 * streams/stropts.h: Likewise.
6085 * streams/sys/stropts.h: Likewise.
6086 * sysdeps/ia64/bits/xtitypes.h: Likewise.
6087 * sysdeps/s390/bits/xtitypes.h: Likewise.
6088 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
6089 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
6090 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
6091 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
6092 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
6093 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
6094 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
6095 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
6096 * sysdeps/x86/bits/xtitypes.h: Likewise.
6097
6098 2019-03-14 Florian Weimer <fweimer@redhat.com>
6099
6100 * nss/tst-nss-files-alias-truncated.c (do_test): Load
6101 libnss_files.
6102 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
6103 but not with libnss_files.
6104 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
6105
6106 2019-03-14 Zack Weinberg <zackw@panix.com>
6107
6108 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
6109 Specify encoding="utf-8" when opening headers to check.
6110
6111 2019-03-13 Joseph Myers <joseph@codesourcery.com>
6112
6113 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6114 version to 5.0.
6115 (Context.checkout_tar): Handle variable major version for Linux
6116 kernel.
6117
6118 2019-03-13 Florian Weimer <fweimer@redhat.com>
6119
6120 [BZ #24047]
6121 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
6122
6123 2019-03-13 Zack Weinberg <zackw@panix.com>
6124
6125 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
6126 Move to stdlib.
6127 * include/inttypes.h: Adjust to match.
6128 * include/stdint.h: New wrapper.
6129
6130 2019-03-13 Zack Weinberg <zackw@panix.com>
6131
6132 * scripts/check-obsolete-constructs.py: New test script.
6133 * scripts/check-installed-headers.sh: Remove tests for
6134 obsolete typedefs, superseded by check-obsolete-constructs.py.
6135 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
6136 as a special test. Update commentary.
6137 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
6138 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
6139 Update commentary.
6140 * posix/sys/types.h (__u_intN_t): Remove.
6141 (u_int8_t): Typedef using __uint8_t.
6142 (u_int16_t): Typedef using __uint16_t.
6143 (u_int32_t): Typedef using __uint32_t.
6144 (u_int64_t): Typedef using __uint64_t.
6145
6146 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
6147
6148 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
6149 call _dl_procinfo.
6150 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
6151 Ignore types other than AT_HWCAP.
6152 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
6153 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
6154 Likewise.
6155 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
6156 in the case of falling back to generic output mechanism.
6157 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
6158 Likewise.
6159
6160 2019-03-12 Florian Weimer <fweimer@redhat.com>
6161
6162 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
6163
6164 2019-03-12 Florian Weimer <fweimer@redhat.com>
6165
6166 [BZ #24047]
6167 resolv: Enable full ICMP errors for UDP DNS sockets
6168 * resolv/res_enable_icmp.c: New file.
6169 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
6170 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
6171 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
6172 socket.
6173
6174 2019-03-11 Mao Han <han_mao@c-sky.com>
6175
6176 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
6177 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
6178
6179 2019-03-11 Mao Han <han_mao@c-sky.com>
6180
6181 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
6182 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
6183 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
6184
6185 2019-03-11 Mao Han <han_mao@c-sky.com>
6186
6187 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
6188 directly.
6189 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
6190 definition.
6191
6192 2019-03-11 Mao Han <han_mao@c-sky.com>
6193
6194 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
6195 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
6196 in mcontext_t
6197
6198 2019-03-08 Mike FABIAN <mfabian@redhat.com>
6199
6200 [BZ #24307]
6201 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
6202 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
6203 Unicode 12.0.0.
6204 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
6205 * localedata/unicode-gen/PropList.txt: Likewise.
6206 * localedata/unicode-gen/UnicodeData.txt: Likewise.
6207 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
6208 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
6209 * localedata/charmaps/UTF-8: Regenerate.
6210 * localedata/locales/i18n_ctype: Likewise.
6211 * localedata/locales/tr_TR: Likewise.
6212 * localedata/locales/translit_circle: Likewise.
6213 * localedata/locales/translit_cjk_compat: Likewise.
6214 * localedata/locales/translit_combining: Likewise.
6215 * localedata/locales/translit_compat: Likewise.
6216 * localedata/locales/translit_font: Likewise.
6217 * localedata/locales/translit_fraction: Likewise.
6218
6219 2019-03-07 Joseph Myers <joseph@codesourcery.com>
6220
6221 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
6222 than after operators.
6223 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
6224 (setitimer_locked): Likewise.
6225 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
6226 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
6227 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
6228 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
6229 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
6230 (PPC_CPU_SUPPORTED): Likewise.
6231 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
6232 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
6233 (stat_overflow): Likewise.
6234 (statfs_overflow): Likewise.
6235 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
6236 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
6237 (eq_ttyname_r): Likewise.
6238 (run_chroot_tests): Likewise.
6239
6240 2019-03-07 Florian Weimer <fweimer@redhat.com>
6241
6242 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
6243 header check.
6244
6245 2019-03-07 Martin Liska <mliska@suse.cz>
6246
6247 * math/Makefile: Change location where math-vector-fortran.h is
6248 installed.
6249 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
6250 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
6251 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
6252 * scripts/check-installed-headers.sh: Skip Fortran header files.
6253 * scripts/check-wrapper-headers.py: Likewise.
6254
6255 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6256
6257 * nptl/nptl-init.c (__have_futex_clock_realtime,
6258 __have_futex_clock_realtime): Remove definition.
6259 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
6260 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
6261 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
6262 __ASSUME_FUTEX_CLOCK_REALTIME support.
6263 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
6264 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6265 * sysdeps/unix/sysv/linux/kernel-features.h
6266 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
6267 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
6268 Adjust comment.
6269
6270 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6271
6272 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
6273 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
6274 __GI___wcscpy and wcscpy.
6275
6276 2019-03-04 Florian Weimer <fweimer@redhat.com>
6277
6278 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
6279 declaration.
6280 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
6281 defined.
6282
6283 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
6284
6285 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
6286 * sysdeps/s390/s390-32/sysdep.h: Likewise.
6287
6288 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
6289
6290 [BZ #24162]
6291 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
6292 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
6293
6294 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6295
6296 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
6297 tests.
6298 (do_test): Likewise.
6299 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
6300 (do_test_call_varg): Likewise.
6301 (do_test_call_rarg): Likewise.
6302 * sysdeps/ieee754/ldbl-opt/Makefile
6303 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
6304 tst-nldbl-error.
6305 ($(objpfx)tst-nldbl-warn.c): New rule.
6306 ($(objpfx)tst-nldbl-error.c): Likewise.
6307 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
6308 New variables.
6309
6310 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6311
6312 [BZ #23984]
6313 * include/bits/error-ldbl.h: New file.
6314 * include/error.h: Include stdarg.h. Declare internal functions
6315 __error_internal and __error_at_line_internal.
6316 * misc/Makefile (headers): Add bits/error-ldbl.h.
6317 * misc/bits/error-ldbl.h: New file.
6318 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
6319 avoid the inclusion of bits/error.h.
6320 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
6321 and __nldbl_error_at_line.
6322 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
6323 (__nldbl_error, __ndlbl_error_at_line): New functions.
6324 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
6325 Redirect error and error_at_line.
6326 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
6327 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6328 Likewise.
6329 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6330 Likewise.
6331 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6332 Likewise.
6333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6334 Likewise.
6335 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6336 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6337 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6338
6339 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6340
6341 [BZ #23984]
6342 * include/bits/err-ldbl.h: New file.
6343 * include/err.h: Add prototypes for the internal functions:
6344 __vwarnx_internal and __vwarn_internal.
6345 * misc/Makefile (headers): Add bits/err-ldbl.h.
6346 * misc/bits/err-ldbl.h: New file.
6347 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
6348 defined, i.e.: when -mlong-double-64 is in use.
6349 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
6350 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
6351 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
6352 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
6353 (VA_CALL): New macro.
6354 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
6355 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
6356 functions.
6357 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
6358 declare prototypes for the new functions.
6359 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
6360 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6361 Likewise.
6362 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6363 Likewise.
6364 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6365 Likewise.
6366 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6367 Likewise.
6368 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6369 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6370 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6371
6372 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6373
6374 * sysdeps/ieee754/ldbl-opt/Makefile
6375 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
6376 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
6377 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
6378
6379 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6380
6381 [BZ #23983]
6382 * argp/Makefile (headers): Add bits/argp-ldbl.h.
6383 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
6384 * argp/bits/argp-ldbl.h: New file.
6385 * include/argp.h: Include stdarg.h. Add prototypes for internal
6386 functions: __argp_error_internal and __argp_failure_internal.
6387 * include/bits/argp-ldbl.h: New file.
6388 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
6389 __nldbl_argp_error and __nldbl_argp_failure.
6390 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
6391 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
6392 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
6393 Redirect argp_error and argp_failure calls.
6394 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
6395 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6396 Likewise.
6397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6398 Likewise.
6399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6400 Likewise.
6401 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6402 Likewise.
6403 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6404 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6405 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6406
6407 2019-03-01 Florian Weimer <fweimer@redhat.com>
6408
6409 [BZ #20419]
6410 * elf/tst-big-note-lib.S: Create a syntactically valid note.
6411 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
6412 code, to avoid creating an ABI tag note.
6413 (modules-names-nobuild): Add tst-big-note-lib.
6414
6415 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
6416
6417 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
6418 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
6419
6420 2019-03-01 Florian Weimer <fweimer@redhat.com>
6421
6422 [BZ #20271]
6423 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6424 (__netlink_assert_response): Add additional missing newlines.
6425
6426 2019-02-28 Joseph Myers <joseph@codesourcery.com>
6427
6428 * sysdeps/powerpc/powerpc32/dl-machine.c
6429 (__elf_machine_fixup_plt): Use space before '('.
6430 (__process_machine_rela): Likewise.
6431 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
6432 Likewise.
6433 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
6434 Likewise.
6435 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
6436 Likewise.
6437 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
6438 (pattern): Likewise.
6439 (delta): Likewise.
6440 (check_result): Likewise.
6441 (check_excepts): Likewise.
6442 (check_op): Likewise.
6443 (fail_xr): Likewise.
6444 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
6445 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
6446 (SCNHSZ): Likewise.
6447 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
6448 Likewise.
6449 (ARGS): Likewise.
6450 (__makecontext): Likewise.
6451 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
6452 Likewise.
6453
6454 2019-02-28 Florian Weimer <fweimer@redhat.com>
6455
6456 [BZ #23937]
6457 elf: Add test with a local IFUNC resolver.
6458 * elf/ifuncmain9.c: New file.
6459 * elf/ifuncmain9pic.c: Likewise.
6460 * elf/ifuncmain9picstatic.c: Likewise.
6461 * elf/ifuncmain9pie.c: Likewise.
6462 * elf/ifuncmain9static.c: Likewise.
6463 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
6464 ifuncmain9static, ifuncmain9picstatic.
6465 * elf/Makefile [multi-arch && build-shared] (tests-internal):
6466 Add ifuncmain9, ifuncmain9pic.
6467 * elf/Makefile [multi-arch && build-shared && have-fpie]
6468 (ifunc-pie-tests): Add ifuncmain9pie.
6469 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
6470 (CFLAGS-ifuncmain9picstatic.c): Likewise.
6471 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
6472
6473 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
6474
6475 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
6476 * configure: Regenerated.
6477 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
6478
6479 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6480
6481 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
6482 symbol as __wcspcy instead of wcscpy.
6483
6484 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
6485
6486 * include/stdio.h (__renameat2): New hidden prototype.
6487 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
6488 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
6489 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
6490 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
6491
6492 2019-02-27 Joseph Myers <joseph@codesourcery.com>
6493
6494 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
6495 if statement.
6496
6497 * benchtests/bench-strcpy.c (do_test): Use space before '('.
6498 * benchtests/bench-string.h (cmdline_process_function): Likewise.
6499 * benchtests/bench-strlen.c (do_test): Likewise.
6500 (test_main): Likewise.
6501 * catgets/gencat.c (read_old): Likewise.
6502 * elf/cache.c (load_aux_cache): Likewise.
6503 * iconvdata/bug-iconv8.c (do_test): Likewise.
6504 * math/test-tgmath-ret.c (do_test): Likewise.
6505 * nis/nis_call.c (rec_dirsearch): Likewise.
6506 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6507 * nptl/tst-audit-threads.c (do_test): Likewise.
6508 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
6509 * nss/nss_test1.c (init): Likewise.
6510 * nss/test-netdb.c (test_hosts): Likewise.
6511 * posix/execvpe.c (maybe_script_execute): Likewise.
6512 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
6513 * stdio-common/tst-printf.c (do_test): Likewise.
6514 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
6515 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
6516 * stdlib/qsort.c (STACK_SIZE): Likewise.
6517 * stdlib/test-canon.c (do_test): Likewise.
6518 * stdlib/tst-swapcontext1.c (do_test): Likewise.
6519 * string/memcmp.c (OPSIZ): Likewise.
6520 * string/test-strcpy.c (do_test): Likewise.
6521 (do_random_tests): Likewise.
6522 * string/test-strlen.c (do_test): Likewise.
6523 (test_main): Likewise.
6524 * string/test-strrchr.c (do_test): Likewise.
6525 (do_random_tests): Likewise.
6526 * string/tester.c (test_memrchr): Likewise.
6527 (test_memchr): Likewise.
6528 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
6529 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
6530 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
6531 (read_encoded_value_with_base): Likewise.
6532 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
6533 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
6534 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
6535 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6536 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
6537 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
6538 Likewise.
6539 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
6540 Likewise.
6541 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
6542 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
6543 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
6544 Likewise.
6545 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
6546 Likewise.
6547 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
6548 Likewise.
6549 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6550 Likewise.
6551 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
6552 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
6553 (FP_XSTATE_MAGIC2_SIZE): Likewise.
6554 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
6555 * time/test_time.c (main): Likewise.
6556
6557 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6558
6559 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
6560
6561 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
6562 wmemcpy.
6563
6564 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
6565 wmemcpy.
6566
6567 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
6568
6569 * include/wchar.h (__wcscpy): New prototype.
6570 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
6571 (__wcscpy): Route internal symbol to generic implementation.
6572 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
6573 Add internal __wcscpy alias.
6574 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
6575 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
6576 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
6577 * wcsmbs/wcscpy.c (wcscpy): Add
6578 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
6579 use generic implementation.
6580 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
6581
6582 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
6583 wmemset.
6584
6585 * sysdeps/m68k/wcpcpy.c: Remove file.
6586 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
6587
6588 2019-02-26 Joseph Myers <joseph@codesourcery.com>
6589
6590 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
6591 than after operators.
6592 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
6593 * sysdeps/mach/hurd/getcwd.c
6594 (__hurd_canonicalize_directory_name_internal): Likewise.
6595 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
6596 (pthread_mutex_consistent): Likewise.
6597 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
6598 Likewise.
6599 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
6600 (__pthread_mutex_transfer_np): Likewise.
6601 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
6602 (__pthread_mutex_unlock): Likewise.
6603 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
6604 (mtx_owned_p): Likewise.
6605 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
6606 (pthread_mutexattr_getrobust): Likewise.
6607 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
6608 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6609 Likewise.
6610 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6611 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
6612 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
6613 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
6614 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6615 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
6616 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
6617 Likewise.
6618 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
6619 Likewise.
6620 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
6621 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
6622 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
6623 (____longjmp_chk): Likewise.
6624 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
6625 Likewise.
6626 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
6627 (INTERNAL_SYSCALL): Likewise.
6628 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6629 (INTERNAL_SYSCALL): Likewise.
6630 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6631 (__get_clockfreq_via_cpuinfo): Likewise.
6632
6633 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
6634 comments.
6635 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
6636 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
6637 (WORD_COPY_BWD): Likewise.
6638 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6639 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6640 Likewise.
6641 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
6642 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
6643 comment.
6644 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
6645
6646 2019-02-25 Joseph Myers <joseph@codesourcery.com>
6647
6648 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
6649 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
6650 rather than after operators.
6651 * elf/cache.c (print_cache): Likewise.
6652 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
6653 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
6654 * hurd/hurdinit.c (_hurd_setproc): Likewise.
6655 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
6656 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
6657 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
6658 (reauth_proc): Likewise.
6659 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
6660 (__file_name_split_at): Likewise.
6661 (__directory_name_split_at): Likewise.
6662 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6663 * hurd/port2fd.c (_hurd_port2fd): Likewise.
6664 * iconv/gconv_dl.c (do_print): Likewise.
6665 * inet/netinet/in.h (struct sockaddr_in): Likewise.
6666 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
6667 * locale/setlocale.c (new_composite_name): Likewise.
6668 * malloc/memusagestat.c (main): Likewise.
6669 * misc/fstab.c (fstab_convert): Likewise.
6670 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
6671 Likewise.
6672 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
6673 (getgrent_next_file): Likewise.
6674 (internal_getgrnam_r): Likewise.
6675 (internal_getgrgid_r): Likewise.
6676 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
6677 Likewise.
6678 (internal_getgrent_r): Likewise.
6679 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
6680 (getpwent_next_nss): Likewise.
6681 (getpwent_next_file): Likewise.
6682 (internal_getpwnam_r): Likewise.
6683 (internal_getpwuid_r): Likewise.
6684 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
6685 Likewise.
6686 (getspent_next_nss): Likewise.
6687 (internal_getspnam_r): Likewise.
6688 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
6689 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
6690 * string/strchr.c (STRCHR): Likewise.
6691 * string/strchrnul.c (STRCHRNUL): Likewise.
6692 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
6693 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6694 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
6695 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
6696 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
6697 Likewise.
6698 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
6699 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6700 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6701 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
6702 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
6703 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
6704 (open_file): Likewise.
6705 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
6706 (pthread_mutexattr_setprotocol): Likewise.
6707 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6708 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6709 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6710 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6711 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
6712 Likewise.
6713 (elf_machine_rela): Likewise.
6714 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6715 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6716 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
6717 * sysdeps/posix/rename.c (rename): Likewise.
6718 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
6719 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
6720 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
6721 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
6722 * sysdeps/unix/grantpt.c (grantpt): Likewise.
6723 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
6724 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
6725 Likewise.
6726 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
6727 Likewise.
6728 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
6729 * time/tzfile.c (__tzfile_compute): Likewise.
6730
6731 2019-02-22 Joseph Myers <joseph@codesourcery.com>
6732
6733 * benchtests/bench-memmem.c (simple_memmem): Break lines before
6734 rather than after operators.
6735 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
6736 * crypt/md5.c (md5_finish_ctx): Likewise.
6737 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
6738 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
6739 * elf/cache.c (load_aux_cache): Likewise.
6740 * elf/dl-load.c (open_verify): Likewise.
6741 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
6742 * elf/readelflib.c (process_elf_file): Likewise.
6743 * elf/rtld.c (dl_main): Likewise.
6744 * elf/sprof.c (generate_call_graph): Likewise.
6745 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
6746 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
6747 * hurd/dtable.c (reauth_dtable): Likewise.
6748 * hurd/getdport.c (__getdport): Likewise.
6749 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
6750 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
6751 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
6752 Likewise.
6753 * hurd/hurdioctl.c (fioctl): Likewise.
6754 * hurd/hurdselect.c (_hurd_select): Likewise.
6755 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
6756 (STOPSIGS): Likewise.
6757 * hurd/hurdstartup.c (_hurd_startup): Likewise.
6758 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
6759 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6760 * hurd/msgportdemux.c (msgport_server): Likewise.
6761 * hurd/setauth.c (_hurd_setauth): Likewise.
6762 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
6763 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
6764 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
6765 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
6766 * login/tst-utmp.c (do_check): Likewise.
6767 (simulate_login): Likewise.
6768 * mach/lowlevellock.h (lll_lock): Likewise.
6769 (lll_trylock): Likewise.
6770 * math/test-fenv.c (ALL_EXC): Likewise.
6771 * math/test-fenvinline.c (ALL_EXC): Likewise.
6772 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
6773 * nis/nis_call.c (__do_niscall3): Likewise.
6774 * nis/nis_callback.c (cb_prog_1): Likewise.
6775 * nis/nis_defaults.c (searchaccess): Likewise.
6776 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6777 * nis/nis_ismember.c (internal_ismember): Likewise.
6778 * nis/nis_local_names.c (nis_local_principal): Likewise.
6779 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
6780 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
6781 Likewise.
6782 * nis/ypclnt.c (yp_match): Likewise.
6783 (yp_first): Likewise.
6784 (yp_next): Likewise.
6785 (yp_master): Likewise.
6786 (yp_order): Likewise.
6787 * nscd/hstcache.c (cache_addhst): Likewise.
6788 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6789 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
6790 (internal_getpwuid_r): Likewise.
6791 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
6792 * posix/glob.h (__GLOB_FLAGS): Likewise.
6793 * posix/regcomp.c (peek_token): Likewise.
6794 (peek_token_bracket): Likewise.
6795 (parse_expression): Likewise.
6796 * posix/regexec.c (sift_states_iter_mb): Likewise.
6797 (check_node_accept_bytes): Likewise.
6798 * posix/tst-spawn3.c (do_test): Likewise.
6799 * posix/wordexp-test.c (testit): Likewise.
6800 * posix/wordexp.c (parse_tilde): Likewise.
6801 (exec_comm): Likewise.
6802 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
6803 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
6804 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
6805 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
6806 * stdio-common/tst-fileno.c (do_test): Likewise.
6807 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
6808 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
6809 * stdlib/strtod_l.c (round_and_return): Likewise.
6810 (____STRTOF_INTERNAL): Likewise.
6811 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
6812 * string/strcspn.c (STRCSPN): Likewise.
6813 * string/test-memmem.c (simple_memmem): Likewise.
6814 * termios/tcsetattr.c (tcsetattr): Likewise.
6815 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
6816 * time/asctime.c (asctime_internal): Likewise.
6817 * time/strptime_l.c (__strptime_internal): Likewise.
6818 * time/sys/time.h (timercmp): Likewise.
6819 * time/tzfile.c (__tzfile_compute): Likewise.
6820
6821 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
6822
6823 [BZ #21915]
6824 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
6825
6826 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6827
6828 * argp/argp-help.c (__argp_error_internal): New function,
6829 renamed from __argp_error, but that takes a 'mode_flags'
6830 parameter to control the format of long double parameters.
6831 (__argp_error): Converted into a call __argp_error_internal.
6832 (__argp_failure_internal): New function, renamed from
6833 __argp_failure, but that takes a 'mode_flags' parameter.
6834 (__argp_failure): Converted into a call __argp_failure_internal.
6835 * misc/err.c (__vwarnx_internal): New function, renamed from
6836 vwarnx, but that takes a 'mode_flags' parameter.
6837 (vwarnx): Converted into a call to __vwarnx_internal.
6838 (__vwarn_internal): New function, renamed from vwarn, but that
6839 takes a 'mode_flags' parameter.
6840 (vwarn): Converted into a call to __vwarn_internal.
6841 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
6842 call to __vfxprintf with 'mode_flags'.
6843 (__error_internal): New function, renamed from error, but that
6844 takes a 'mode_flags' parameter.
6845 (error): Converted into a call to __error_internal.
6846 (__error_at_line_internal): New function, renamed from
6847 error_at_line, but that takes a 'mode_flags' parameter.
6848 (error_at_line): Converted into a call to
6849 __error_at_line_internal.
6850 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
6851 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
6852 Likewise.
6853
6854 2019-02-20 Martin Liska <mliska@suse.cz>
6855
6856 * math/Makefile: Install math-vector-fortran.h.
6857 * bits/math-vector-fortran.h: New file.
6858 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
6859
6860 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6861
6862 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
6863 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
6864
6865 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
6866
6867 * nptl/pthread_mutex_trylock.c: Fix comment.
6868
6869 2019-02-19 Carlos O'Donell <carlos@redhat.com>
6870
6871 * nptl/pthread_tryjoin.c: Fix comment.
6872
6873 2019-02-18 Joseph Myers <joseph@codesourcery.com>
6874
6875 [BZ #24231]
6876 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
6877 after R_SPARC_H34 case.
6878
6879 2019-02-18 Florian Weimer <fweimer@redhat.com>
6880
6881 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
6882 (getanswer): Do not call Dprintf.
6883 (res_gethostbyname2_context): Likewise.
6884 (res_gethostbyaddr_context): Likewise.
6885
6886 2019-02-18 Florian Weimer <fweimer@redhat.com>
6887
6888 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
6889 declaration.
6890 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6891 Remove definitions.
6892 * libio/stdfiles.c: Update comment.
6893 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
6894 set _IO_stdin, _IO_stdout, _IO_stderr.
6895 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
6896 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
6897 inline function.
6898 (_IO_deallocate_file): New inline function.
6899 * libio/iolibio.h (_IO_vprintf): Remove definition.
6900 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
6901 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6902 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
6903 _IO_legacy_file.
6904 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
6905 __builtin_expect. Use _IO_legacy_file.
6906
6907 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
6908
6909 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
6910 Initialize ctid with a known value and remove update of ctid
6911 after clone.
6912 (wait_tid): Adjust arguments and call futex_wait with ctid_val
6913 as assumed current value of ctid_ptr.
6914
6915 2019-02-16 Florian Weimer <fweimer@redhat.com>
6916
6917 Check that non-sysdeps headers have wrapper headers.
6918 * scripts/check-wrapper-headers.py: New file.
6919 * Makefile (tests-special): Add check-wrapper-headers.out.
6920 (check-wrapper-headers.out): New target.
6921 * Rules (tests-special): Add check-wrapper-headers.out.
6922 (check-wrapper-headers.out): New target.
6923
6924 2019-02-16 Florian Weimer <fweimer@redhat.com>
6925
6926 Add missing header wrappers under include/.
6927 * include/ar.h: New file.
6928 * include/bits/mqueue2.h: Likewise.
6929 * include/bits/stdio.h: Likewise.
6930 * include/bits/stdio2.h: Likewise.
6931 * include/fstab.h: Likewise.
6932 * include/fts.h: Likewise.
6933 * include/lastlog.h: Likewise.
6934 * include/netinet/icmp6.h: Likewise.
6935 * include/netinet/igmp.h: Likewise.
6936 * include/netinet/ip6.h: Likewise.
6937 * include/re_comp.h: Likewise.
6938 * include/regexp.h: Likewise.
6939 * include/rpcsvc/bootparam.h: Likewise.
6940 * include/rpcsvc/yp_prot.h: Likewise.
6941 * include/sys/random.h: Likewise.
6942 * include/sys/stropts.h: Likewise.
6943 * include/sys/ttychars.h: Likewise.
6944 * include/sys/vfs.h: Likewise.
6945 * include/wait.h: Likewise.
6946
6947 2019-02-16 Florian Weimer <fweimer@redhat.com>
6948
6949 * nptl_db/proc_service.h: Move to ...
6950 * sysdeps/nptl/proc_service.h: ... here.
6951 * nptl_db/thread_db.h: Move to ...
6952 * sysdeps/nptl/thread_db.h: ... here.
6953 * nptl/descr.h: Include <thread_db.h>.
6954
6955 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6956
6957 * io/Makefile (tests): Add tst-lockf.
6958 * io/lockf.c (lockf): Use __fcntl and only define for
6959 !__OFF_T_MATCHES_OFF64_T.
6960 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6961 __OFF_T_MATCHES_OFF64_T case.
6962 * io/tst-lockf.c: New file.
6963 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6964 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6965 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6966 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6967 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6968 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6969 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6970 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6971 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6972
6973 2019-02-15 Florian Weimer <fweimer@redhat.com>
6974
6975 [BZ #24211]
6976 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6977 pd->result after the thread descriptor has been freed.
6978
6979 2019-02-15 Joseph Myers <joseph@codesourcery.com>
6980
6981 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6982 from function return type.
6983
6984 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6985
6986 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6987
6988 * scripts/test_printers_common.py: Set TERM to a known harmless
6989 value.
6990
6991 2019-02-14 Joseph Myers <joseph@codesourcery.com>
6992
6993 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6994 (xdr_u_int): Likewise.
6995 (xdr_enum): Likewise.
6996 (xdr_bytes): Reword fall-through comment.
6997 (xdr_string): Likewise.
6998
6999 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7000
7001 [BZ #2421]
7002 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
7003 (tests): Add tst-join8 tst-join9.
7004 * nptl/lll_timedwait_tid.c: Remove file.
7005 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
7006 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
7007 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
7008 * nptl/pthread_join_common.c (timedwait_tid): New function.
7009 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
7010 is set.
7011 * nptl/tst-join5.c (thread_join): New function.
7012 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
7013 check.
7014 * nptl/tst-join8.c: New file.
7015 * nptl/tst-join9.c: Likewise.
7016 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
7017 lll_futex_timed_wait_cancel): Add generic macros.
7018 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
7019 Remove definitions.
7020 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
7021 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
7022 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
7023 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
7024 Remove function.
7025 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
7026 Likewise.
7027 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
7028 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7029 (lll_futex_timed_wait_cancel): New macro.
7030
7031 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
7032
7033 * benchtests/Makefile: Add malloc-simple benchmark.
7034 * benchtests/bench-malloc-simple.c: New benchmark.
7035
7036 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
7037
7038 * benchtests/bench-memmove.c (do_one_test): Remove unused
7039 ORIG_SRC.
7040 (do_test): Adjust.
7041 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
7042 ORIG_SRC.
7043 (do_test): Adjust.
7044
7045 2019-01-13 Jim Wilson <jimw@sifive.com>
7046
7047 [BZ #24040]
7048 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
7049 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
7050 (func): New.
7051 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
7052 call func directly.
7053 * nptl/Makefile (tests): Add tst-unwind-thread.
7054 (CFLAGS-tst-unwind-thread.c): Define.
7055 * nptl/tst-unwind-thread.c: New file.
7056 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
7057 as undefined.
7058
7059 2019-02-13 Joseph Myers <joseph@codesourcery.com>
7060
7061 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
7062 comment wording.
7063 * nis/nis_call.c (__do_niscall3): Likewise.
7064
7065 * catgets/gencat.c (normalize_line): Use braces around empty
7066 'else' body.
7067 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
7068 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
7069 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
7070 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
7071 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
7072 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
7073 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
7074 definition.
7075
7076 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
7077 execlp returns.
7078
7079 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
7080
7081 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
7082 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
7083 * benchtests/bench-strchr.c (stupid_strchr): Remove.
7084 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
7085 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
7086 * benchtests/bench-strlen.c (builtin_strlen): Remove.
7087 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
7088 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
7089 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
7090 * benchtests/bench-strspn.c (stupid_strspn): Remove.
7091 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
7092 * benchtests/bench-bcopy.c: Delete file.
7093 * benchtests/bench-bzero.c: Likewise.
7094 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
7095 (simple_memccpy): Remove.
7096 (generic_memccpy): Add function.
7097 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
7098 * benchtests/bench-memmove.c (simple_bcopy): Remove.
7099 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
7100 (generic_mempcpy): Add new function.
7101 * benchtests/bench-memset.c (simple_bzero): Remove.
7102 (builtin_bzero): Remove.
7103 (builtin_memset): Remove.
7104 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
7105 (generic_rawmemchr): Add new function.
7106
7107 2019-02-12 Florian Weimer <fweimer@redhat.com>
7108
7109 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
7110
7111 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7112
7113 [BZ #24122]
7114 * elf/Makefile (tests): Add tst-audit13.
7115 (modules-names): Add tst-audit13mod1.
7116 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7117 rule.
7118 * elf/tst-audit13.c: New file.
7119 * elf/tst-audit13mod1.c: Likewise.
7120
7121 2019-02-12 Florian Weimer <fweimer@redhat.com>
7122
7123 [BZ #24122]
7124 * elf/rtld.c (unload_audit_module): New function.
7125 (report_audit_module_load_error): Likewise.
7126 (load_audit_module): Likewise. Extracted from dl_main. Call
7127 _dl_close if the laversion symbol cannot be found. Use early
7128 returns for error handling. Add malloc error check. Check for a
7129 zero return value from la_version. Remove spurious comment about
7130 static TLS initialization. Remove useless casts.
7131 (notify_audit_modules_of_loaded_object): New function. Extracted
7132 from dl_main.
7133 (load_audit_module): Likewise.
7134 (dl_main): Call load_audit_modules.
7135
7136 2019-02-12 Joseph Myers <joseph@codesourcery.com>
7137
7138 * elf/dl-exception.c (_dl_exception_create_format): Add
7139 fall-through comments.
7140 * elf/ldconfig.c (parse_conf_include): Likewise.
7141 * elf/rtld.c (print_statistics): Likewise.
7142 * locale/programs/charmap.c (parse_charmap): Likewise.
7143 * misc/mntent_r.c (__getmntent_r): Likewise.
7144 * posix/wordexp.c (parse_arith): Likewise.
7145 (parse_backtick): Likewise.
7146 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
7147 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
7148 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7149
7150 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
7151
7152 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
7153 Use float instead of double.
7154
7155 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7156
7157 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
7158
7159 2019-02-08 Joseph Myers <joseph@codesourcery.com>
7160
7161 * sysdeps/powerpc/bits/mathinline.h: Remove.
7162
7163 2019-02-08 Florian Weimer <fweimer@redhat.com>
7164
7165 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
7166 * math/bits/math-finite.h: Move to ...
7167 * bits/math-finite.h: ... here.
7168
7169 2019-02-08 Florian Weimer <fweimer@redhat.com>
7170
7171 * sysdeps/generic/bits/unistd_ext.h: Move to ...
7172 * bits/unistd_ext.h: here.
7173
7174 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
7175
7176 [BZ #21915]
7177 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
7178 * nss/tst-nss-files-hosts-long.c: New file.
7179 * nss/tst-nss-files-hosts-long.root: New directory.
7180 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
7181 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
7182
7183 2019-02-08 Florian Weimer <fweimer@redhat.com>
7184
7185 * include/bits/unistd_ext.h: Remove file.
7186 * posix/bits/unistd_ext.h: Move to ...
7187 * sysdeps/generic/bits/unistd_ext.h: ... here.
7188
7189 2019-02-08 Florian Weimer <fweimer@redhat.com>
7190
7191 * include/bits/unistd_ext.h: New file.
7192
7193 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
7194
7195 * time/tst-strftime2.c: Use array_length macros instead of magic
7196 numbers.
7197
7198 2019-02-08 Florian Weimer <fweimer@redhat.com>
7199
7200 [BZ #24161]
7201 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
7202 argument.
7203 * nptl/register-atfork.c (__run_fork_handlers): Only perform
7204 locking if the new do_locking argument is true.
7205 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
7206 __run_fork_handlers.
7207
7208 2019-02-08 Florian Weimer <fweimer@redhat.com>
7209
7210 [BZ #6399]
7211 Linux: Add gettid system call wrapper.
7212 * posix/Makefile (headers): Add bits/unistd_ext.h.
7213 * posix/bits/unistd_ext.h: New file.
7214 * posix/unistd.h: Include it.
7215 * manual/process.texi (Process Identification): Document gettid.
7216 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
7217 tst-gettid, tst-gettid-kill.
7218 (tst-gettid): Link with $(shared-thread-library).
7219 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
7220 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
7221 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
7222 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
7223 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
7224 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
7225 Add gettid.
7226 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
7227 Likewise.
7228 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
7229 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
7230 Likewise.
7231 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
7232 Likewise.
7233 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
7234 Likewise.
7235 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
7236 Likewise.
7237 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
7238 Likewise.
7239 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
7240 Likewise.
7241 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
7242 Likewise.
7243 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7244 (GLIBC_2.30): Likewise.
7245 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7246 (GLIBC_2.30): Likewise.
7247 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7248 (GLIBC_2.30): Likewise.
7249 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7250 (GLIBC_2.30): Likewise.
7251 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
7252 Likewise.
7253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7254 (GLIBC_2.30): Likewise.
7255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7256 (GLIBC_2.30): Likewise.
7257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
7258 (GLIBC_2.30): Likewise.
7259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
7260 (GLIBC_2.30): Likewise.
7261 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
7262 Likewise.
7263 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
7264 Likewise.
7265 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
7266 Likewise.
7267 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
7268 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
7269 Likewise.
7270 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
7271 Likewise.
7272 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
7273 Likewise.
7274 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
7275 Likewise.
7276 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
7277
7278 2019-02-08 Florian Weimer <fweimer@redhat.com>
7279
7280 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
7281 compatibility symbols.
7282
7283 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
7284
7285 [BZ #24180]
7286 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
7287 Add compiler barriers and comments.
7288
7289 2019-02-07 Florian Weimer <fweimer@redhat.com>
7290
7291 * include/array_length.h (array_length): Do not use a statement
7292 expression and _Static_assert, so that array_length can be used at
7293 file scope and as a constant expression.
7294
7295 2019-02-07 Florian Weimer <fweimer@redhat.com>
7296
7297 * support/xdlfcn.h (xdlmopen): Declare.
7298 * support/xdlmopen.c: New file.
7299 * support/Makefile (libsupport-routines): Add xdlmopen.
7300
7301 2019-02-06 Joseph Myers <joseph@codesourcery.com>
7302
7303 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
7304 before return type, without separate inline.
7305 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
7306 * elf/dl-tunables.h (tunable_is_name): Likewise.
7307 * malloc/malloc.c (do_set_trim_threshold): Likewise.
7308 (do_set_top_pad): Likewise.
7309 (do_set_mmap_threshold): Likewise.
7310 (do_set_mmaps_max): Likewise.
7311 (do_set_mallopt_check): Likewise.
7312 (do_set_perturb_byte): Likewise.
7313 (do_set_arena_test): Likewise.
7314 (do_set_arena_max): Likewise.
7315 (do_set_tcache_max): Likewise.
7316 (do_set_tcache_count): Likewise.
7317 (do_set_tcache_unsorted_limit): Likewise.
7318 * nis/nis_subr.c (count_dots): Likewise.
7319 * nptl/allocatestack.c (advise_stack_range): Likewise.
7320 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
7321 (do_sin): Likewise.
7322 (reduce_sincos): Likewise.
7323 (do_sincos): Likewise.
7324 * sysdeps/unix/sysv/linux/x86/elision-conf.c
7325 (do_set_elision_enable): Likewise.
7326 (TUNABLE_CALLBACK_FNDECL): Likewise.
7327
7328 2019-02-06 Florian Weimer <fweimer@redhat.com>
7329
7330 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
7331 (xdlsym): Use dlerror to detect a NULL symbol.
7332
7333 2019-02-06 Florian Weimer <fweimer@redhat.com>
7334
7335 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
7336 <stap-probe.h>.
7337 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
7338
7339 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
7340
7341 * libio/tst-bz24153.c (wide): Use wide char format specifier.
7342
7343 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
7344
7345 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
7346 __wmemcmp and weak alias to wmemcmp.
7347
7348 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
7349
7350 [BZ #23403]
7351 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
7352 TLS_TCB_AT_TP tls variant.
7353 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
7354 Add alignment checks.
7355 * support/Makefile (libsupport-routines): Add xposix_memalign and
7356 xpthread_setstack.
7357 * support/support.h: Add xposix_memalign.
7358 * support/xthread.h: Add xpthread_attr_setstack.
7359 * support/xposix_memalign.c: New File.
7360 * support/xpthread_attr_setstack.c: Likewise.
7361
7362 2019-02-05 Florian Weimer <fweimer@redhat.com>
7363
7364 [BZ #24164]
7365 arm: Use "nr" constraint for Systemtap probes, to avoid the
7366 compiler using memory operands for constants, due to the "o"
7367 alternative in the default "nor" constraint.
7368 * include/stap-probe.h [USE_STAP_PROBE]: Include
7369 <stap-probe-machine.h>
7370 * sysdeps/generic/stap-probe-machine.h: New file.
7371 * sysdeps/arm/stap-probe-machine.h: Likewise.
7372
7373 2019-02-04 Joseph Myers <joseph@codesourcery.com>
7374
7375 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
7376 with 0, not tcache->entries[tc_idx].
7377
7378 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
7379 once.
7380
7381 2019-02-04 Andreas Schwab <schwab@suse.de>
7382
7383 [BZ #16976]
7384 [BZ #17396]
7385 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
7386 looking up collating elements match against (wide) character
7387 sequence instead of name. Correct alignment adjustment.
7388 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
7389 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
7390 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
7391 (LOCALES): Add cs_CZ.ISO-8859-2.
7392 * posix/tst-fnmatch4.c: New file.
7393 * posix/tst-fnmatch5.c: New file.
7394 * include/wchar.h (__wmemcmp): Declare.
7395 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
7396 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
7397 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
7398 * sysdeps/s390/wmemcmp.c: Likewise.
7399
7400 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
7401
7402 [BZ #24155]
7403 CVE-2019-7309
7404 * NEWS: Updated for CVE-2019-7309.
7405 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
7406 upper 32 bits of RDX register for x32. Use unsigned Jcc
7407 instructions, instead of signed.
7408 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
7409 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
7410
7411 2019-02-04 Florian Weimer <fweimer@redhat.com>
7412
7413 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
7414 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
7415 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
7416 Likewise.
7417 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
7418 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
7419 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
7420 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
7421 Likewise.
7422 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
7423 Likewise.
7424 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
7425 Likewise.
7426 (posix_spawn_file_actions_addopen): Likewise.
7427 (posix_spawn_file_actions_addclose): Likewise.
7428 (posix_spawn_file_actions_adddup2): Likewise.
7429 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
7430 qualifiers.
7431 (posix_spawn_file_actions_addfchdir_np): Likewise.
7432
7433 2019-02-04 David Newall <glibc@davidnewall.com>
7434
7435 elf: Implement --preload option for the dynamic linker.
7436 * elf/rtld.c (preloadarg): New variable.
7437 (handle_preload_list): Pass through “where” argument to
7438 do_preload.
7439 (dl_main): Handle "--preload" and add second call to
7440 handle_preload_list.
7441 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
7442 (tst-rtld-preload-OBJS): Set variable.
7443 (tst-rtld-preload.out): New target.
7444 * elf/tst-rtld-preload.sh: New file.
7445
7446 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
7447
7448 * Makefile (testrun.sh): Exit in case of incorrect argument.
7449
7450 2019-02-04 Florian Weimer <fweimer@redhat.com>
7451
7452 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
7453 alignment gaps.
7454
7455 2019-02-03 Florian Weimer <fweimer@redhat.com>
7456
7457 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
7458 implicit overflow checks.
7459
7460 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
7461
7462 * stdlib/isomac.c: Include <unistd.h>.
7463
7464 2019-02-03 Florian Weimer <fweimer@redhat.com>
7465
7466 * include/time.h (__tzfile_default): Use int, not long int, for
7467 the GMT offsets.
7468 * time/tzfile.c (struct ttinfo): Change type of the offset member
7469 to int.
7470 (__tzfile_read): Remove useless cast.
7471 (__tzfile_default): Adjust prototype.
7472 * time/tzset.c (tz_rule): Change type of the offset member to int.
7473 (parse_offset): Change the type of the sign variable to int.
7474
7475 2019-02-03 Florian Weimer <fweimer@redhat.com>
7476
7477 [BZ #24153]
7478 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
7479 * libio/getchar.c (getchar): Likewise.
7480 * libio/getchar_u.c (getchar_unlocked): Likewise.
7481 * libio/getwchar.c (getwchar): Likewise.
7482 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7483 * libio/iogets.c (_IO_gets): Likewise.
7484 * libio/vscanf.c (_IO_vscanf): Likewise.
7485 * libio/vwscanf.c (__vwscanf): Likewise.
7486 * libio/tst-bz24153.c: New file.
7487 * libio/Makefile (tests): Add it.
7488
7489 2019-02-02 Florian Weimer <fweimer@redhat.com>
7490
7491 [BZ #14829]
7492 * manual/resource.texi (Basic Scheduling Functions): Add
7493 portability note. Change process to task throughout the section.
7494 Remove incorrect comment about sched_yield as it affects
7495 tasks/threads, not entire processes.
7496 * sysdeps/unix/sysv/linux/bits/posix_opt.h
7497 (_POSIX_PRIORITY_SCHEDULING): Update comment.
7498
7499 2019-02-01 Joseph Myers <joseph@codesourcery.com>
7500
7501 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
7502 * configure: Regenerated.
7503 * manual/install.texi (Tools for Compilation): Update minimum GCC
7504 version.
7505 * INSTALL: Regenerated.
7506
7507 2019-02-01 Florian Weimer <fweimer@redhat.com>
7508
7509 * support/support_test_compare_string.c
7510 (support_test_compare_string): Use "string" in error message.
7511 * support/tst-test_compare_string.c (do_test): Adjust.
7512
7513 2019-02-01 Florian Weimer <fweimer@redhat.com>
7514
7515 * support/support_format_address_family.c
7516 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
7517
7518 2019-02-01 Florian Weimer <fweimer@redhat.com>
7519
7520 * manual/socket.texi (Internet Address Formats): Clarify the byte
7521 order of struct sockaddr_in, struct sockaddr_in6. Document
7522 sin6_flowinfo and sin6_scope_id.
7523
7524 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
7525
7526 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
7527 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
7528 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
7529 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
7530 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
7531 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
7532
7533 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
7534
7535 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
7536 [!MEMCHR](MEMCHR): Set to __memchr.
7537 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
7538 Add memchr_generic and memchr_nosimd.
7539 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7540 (__libc_ifunc_impl_list): Add memchr ifuncs.
7541 * sysdeps/aarch64/multiarch/memchr.c: New file.
7542 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
7543 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
7544
7545 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
7546
7547 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
7548 Add memset_emag.
7549 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7550 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
7551 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
7552 Add IS_EMAG check for ifunc dispatch.
7553 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
7554 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
7555
7556 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
7557
7558 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
7559 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7560 Add emag.
7561 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
7562 New macro.
7563
7564 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
7565
7566 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
7567
7568 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
7569
7570 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
7571 syscall-template file.
7572
7573 2019-01-31 Carlos O'Donell <carlos@redhat.com>
7574 Torvald Riegel <triegel@redhat.com>
7575 Rik Prohaska <prohaska7@gmail.com>
7576
7577 [BZ# 23844]
7578 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
7579 tst-rwlock-trywrlock-stall.
7580 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
7581 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
7582 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
7583 Set __wrphase_fute to 1 only if we started the write phase.
7584 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
7585 * nptl/tst-rwlock-trywrlock-stall.c: New file.
7586 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
7587 * support/xpthread_rwlock_destroy.c: New file.
7588 * support/xthread.h: Declare xpthread_rwlock_destroy.
7589
7590 2019-02-01 Joseph Myers <joseph@codesourcery.com>
7591
7592 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
7593 version to 4.0.2.
7594
7595 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7596
7597 [BZ #24051]
7598 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
7599 * libio/fileops.c (_IO_new_file_underflow): Likewise
7600 * libio/wfileops.c (_IO_wfile_underflow): Likewise
7601 * libio/putchar.c (putchar): Likewise.
7602 * libio/putchar_u.c (putchar_unlocked): Likewise.
7603 * libio/putwchar.c (putchar): Likewise.
7604 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
7605 * libio/tst-bz24051.c: New test.
7606 * libio/Makefile (tests): Add tst-bz24051
7607
7608 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
7609
7610 CVE-2019-9169
7611 regex: fix read overrun [BZ #24114]
7612 Problem found by AddressSanitizer, reported by Hongxu Chen in:
7613 https://debbugs.gnu.org/34140
7614 * posix/regexec.c (proceed_next_node):
7615 Do not read past end of input buffer.
7616
7617 2019-01-31 Florian Weimer <fweimer@redhat.com>
7618
7619 [BZ #24059]
7620 * nss/nss_files/files-alias.c (get_next_alias): Handle
7621 continuation line without newline at the end.
7622 * nss/tst-nss-files-alias-truncated.c: New file.
7623 * nss/Makefile [$(build-shared)] (tests): Add
7624 tst-nss-files-alias-truncated.
7625 (tst-nss-files-alias-truncated): Link with libnss_files.so.
7626 * support/namespace.h (struct support_chroot_configuration): Add
7627 aliases member.
7628 (struct support_chroot): Add path_aliases member.
7629 * support/support_chroot.c (support_chroot_create): Handle
7630 aliases.
7631 (support_chroot_free): Free path_aliases.
7632
7633 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
7634
7635 * version.h (RELEASE): Set to "development".
7636 (VERSION): Set to "2.29.9000".
7637 * NEWS: Add section for 2.30.
7638
7639 * version.h (RELEASE): Set to "stable".
7640 (VERSION): Set to "2.29".
7641 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
7642
7643 * NEWS: Add the list of bugs fixed in 2.29.
7644 * manual/contrib.texi: Update contributors list with some more
7645 names.
7646 * manual/install.texi: Update latest versions of packages
7647 tested.
7648 * INSTALL: Regenerated.
7649
7650 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
7651
7652 * po/be.po: Update translations.
7653 * po/bg.po: Likewise.
7654 * po/ca.po: Likewise.
7655 * po/cs.po: Likewise.
7656 * po/da.po: Likewise.
7657 * po/de.po: Likewise.
7658 * po/el.po: Likewise.
7659 * po/eo.po: Likewise.
7660 * po/es.po: Likewise.
7661 * po/fi.po: Likewise.
7662 * po/fr.po: Likewise.
7663 * po/gl.po: Likewise.
7664 * po/hr.po: Likewise.
7665 * po/hu.po: Likewise.
7666 * po/ia.po: Likewise.
7667 * po/id.po: Likewise.
7668 * po/it.po: Likewise.
7669 * po/ja.po: Likewise.
7670 * po/ko.po: Likewise.
7671 * po/lt.po: Likewise.
7672 * po/nb.po: Likewise.
7673 * po/nl.po: Likewise.
7674 * po/pl.po: Likewise.
7675 * po/pt_BR.po: Likewise.
7676 * po/ru.po: Likewise.
7677 * po/rw.po: Likewise.
7678 * po/sk.po: Likewise.
7679 * po/sl.po: Likewise.
7680 * po/sv.po: Likewise.
7681 * po/tr.po: Likewise.
7682 * po/uk.po: Likewise.
7683 * po/vi.po: Likewise.
7684 * po/zh_CN.po: Likewise.
7685 * po/zh_TW.po: Likewise.
7686
7687 2019-01-24 UroĆĄ Bizjak <ubizjak@gmail.com>
7688
7689 [BZ #24130]
7690 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
7691 of $f3 register on $y_is_neg path.
7692
7693 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
7694
7695 [BZ #24110]
7696 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
7697 sigaltstack.ss_flags.
7698
7699 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
7700
7701 [BZ #23758]
7702 * manual/time.texi (strftime): Document "%Ey".
7703 * time/strftime_l.c (__strftime_internal): Set the default width
7704 padding with zero of "%Ey" to 2.
7705
7706 [BZ #24096]
7707 * manual/time.texi (strftime): Document "%EC" and "%EY".
7708 * time/Makefile (tests): Add tst-strftime2.
7709 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
7710 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
7711 override padding for "%Ey".
7712 If an optional flag ('_' or '-') is specified to "%EY", interpret the
7713 "%Ey" in the subformat as if decorated with that flag.
7714 * time/tst-strftime2.c: New file.
7715
7716 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7717
7718 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
7719 are not defined.
7720
7721 [BZ #24122]
7722 * elf/Makefile (tests): Add tst-audit13.
7723 (modules-names): Add tst-audit13mod1.
7724 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7725 rule.
7726 * elf/rtld.c (dl_main): Handle invalid audit module version.
7727 * elf/tst-audit13.c: New file.
7728 * elf/tst-audit13mod1.c: Likewise.
7729
7730 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7731
7732 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
7733 returned by __hurd_at_flags.
7734 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
7735 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
7736 directly instead of __hurd_file_name_lookup.
7737
7738 2019-01-21 Joseph Myers <joseph@codesourcery.com>
7739
7740 * scripts/build-many-glibcs.py (Context.checkout): Default
7741 binutils version to 2.32 branch.
7742
7743 2019-01-21 Florian Weimer <fweimer@redhat.com>
7744
7745 [BZ #20018]
7746 CVE-2016-10739
7747 resolv: Reject trailing characters in host names
7748 * include/arpa/inet.h (__inet_aton_exact): Declare.
7749 (inet_aton): Remove hidden prototype. No longer used internally.
7750 * nscd/gai.c (__inet_aton): Do not define.
7751 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
7752 * nss/digits_dots.c (__inet_aton): Likewise.
7753 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
7754 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
7755 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
7756 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
7757 (tst-resolv-trailing): Likewise.
7758 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
7759 libc.
7760 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
7761 Make static. Add endp parameter.
7762 (__inet_aton_exact): New function.
7763 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
7764 (__inet_addr): Call inet_aton_end.
7765 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
7766 not just IPv6. Call __inet_aton_exact.
7767 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
7768 (tests): Make const. Add additional test cases with trailing
7769 characters.
7770 (do_test): Use array_length.
7771 * resolv/tst-inet_aton_exact.c: New file.
7772 * resolv/tst-resolv-trailing.c: Likewise.
7773 * resolv/tst-resolv-nondecimal.c: Likewise.
7774 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
7775
7776 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7777
7778 [BZ# 24097]
7779 CVE-2019-6488
7780 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
7781 Clear the upper 32 bits of RSI register.
7782 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
7783 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
7784 and tst-size_t-wcsnlen.
7785 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
7786 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
7787
7788 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7789
7790 [BZ# 24097]
7791 CVE-2019-6488
7792 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
7793 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
7794 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
7795 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
7796 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
7797
7798 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7799
7800 [BZ# 24097]
7801 CVE-2019-6488
7802 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
7803 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7804 * sysdeps/x86_64/strcmp.S: Likewise.
7805 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
7806 tst-size_t-strncmp and tst-size_t-wcsncmp.
7807 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
7808 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
7809 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
7810
7811 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7812
7813 [BZ# 24097]
7814 CVE-2019-6488
7815 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
7816 RDX_LP for length. Clear the upper 32 bits of RDX register.
7817 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
7818 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
7819 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
7820 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
7821
7822 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7823
7824 [BZ# 24097]
7825 CVE-2019-6488
7826 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
7827 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
7828 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
7829 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
7830
7831 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7832
7833 [BZ# 24097]
7834 CVE-2019-6488
7835 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
7836 length. Clear the upper 32 bits of RDX register.
7837 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7838 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7839 Likewise.
7840 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7841 Likewise.
7842 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
7843 tst-size_t-wmemchr.
7844 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
7845
7846 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7847
7848 [BZ# 24097]
7849 CVE-2019-6488
7850 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
7851 length. Clear the upper 32 bits of RDX register.
7852 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
7853 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
7854 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
7855 tst-size_t-wmemcmp.
7856 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
7857 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
7858
7859 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7860
7861 [BZ# 24097]
7862 CVE-2019-6488
7863 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
7864 upper 32 bits of RDX register.
7865 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
7866 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
7867 tst-size_t-wmemchr.
7868 * sysdeps/x86_64/x32/test-size_t.h: New file.
7869 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
7870 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
7871
7872 2019-01-18 Florian Weimer <fweimer@redhat.com>
7873
7874 [BZ #24112]
7875 resolv: Do not send queries for non-host-names in nss_dns.
7876 * resolv/nss_dns/dns-host.c (check_name): New function.
7877 (_nss_dns_gethostbyname2_r): Use it.
7878 (_nss_dns_gethostbyname_r): Likewise.
7879 (_nss_dns_gethostbyname4_r): Likewise.
7880
7881 2019-01-21 Florian Weimer <fweimer@redhat.com>
7882
7883 * resolv/inet_addr.c: Reformat to GNU style.
7884 (__inet_addr, __inet_aton): Update comment.
7885
7886 2019-01-18 Florian Weimer <fweimer@redhat.com>
7887
7888 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
7889 ("malloc: Use current (C11-style) atomics for fastbin access").
7890 This commit introduces a substantial performance regression on
7891 POWER and Aarch64.
7892 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
7893 (REMOVE_FB): Define.
7894 (_int_malloc): Use it and reindent.
7895 (_int_free): Use CAS loop with
7896 catomic_compare_and_exchange_val_rel.
7897 (malloc_consolidate): Use atomic_exchange_acq.
7898
7899
7900 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
7901
7902 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
7903 -Wl,-z,now.
7904 (LDFLAGS-tst-minsigstksz-2): Likewise.
7905 (LDFLAGS-tst-minsigstksz-3): Likewise.
7906 (LDFLAGS-tst-minsigstksz-3a): Likewise.
7907 (LDFLAGS-tst-minsigstksz-4): Likewise.
7908
7909 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
7910
7911 * manual/time.texi (strftime): Fix the wording to "alternative" rather
7912 than "alternate".
7913
7914 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
7915
7916 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
7917
7918 2019-01-16 Zack Weinberg <zackw@panix.com>
7919
7920 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7921 (xget_sigstack_location): New test support functions.
7922 * support/xsigstack.c: New file, implementing them.
7923 * support/tst-xsigstack.c: New test for them.
7924 * support/Makefile: Update.
7925
7926 * signal/tst-minsigstksz-1.c
7927 * signal/tst-minsigstksz-2.c
7928 * signal/tst-minsigstksz-3.c
7929 * signal/tst-minsigstksz-3a.c
7930 * signal/tst-minsigstksz-4.c: New tests.
7931 * signal/Makefile: Run them.
7932
7933 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7934
7935 * po/libc.pot: Regenerate.
7936
7937 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7938
7939 * math/libm-test-fma.inc (fma_test_data): Set
7940 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7941
7942 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7943
7944 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7945 (do_test): Changed __vector __int128_t to __vector unsigned int.
7946
7947 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7948
7949 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7950 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7951 stpcpy-avx2 and stpncpy-avx2.
7952 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7953 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7954 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7955 and __stpncpy_avx2.
7956 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7957 ifunc-strcpy.h}: rename header for a more generic name.
7958 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7959 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7960 AVX unaligned load is fast and vzeroupper is preferred.
7961 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7962 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7963 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7964 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7965 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7966 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7967
7968 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
7969
7970 * argp/argp-help.c: Fix typo in comment.
7971 * misc/sys/cdefs.h: Likewise.
7972 * posix/regexec.c (sift_states_iter_mb): Likewise.
7973 * socket/sockatmark.c: Likewise.
7974 * socket/sys/socket.h: Likewise.
7975 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7976 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7977 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7978 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7979 * sysdeps/unix/sockatmark.c: Likewise.
7980 * time/strptime_l.c: Likewise.
7981
7982 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7983
7984 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7985 missing space after the cast of "_NL_CURRENT".
7986
7987 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7988
7989 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7990 ifdef to fix read of VSCR.
7991 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7992 tst-ucontext-ppc64-vscr.c to test list.
7993 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7994
7995 2019-01-10 Andreas K. HĂŒttel <dilfridge@gentoo.org>
7996
7997 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
7998 fall-through.
7999
8000 2019-01-09 Jim Wilson <jimw@sifive.com>
8001
8002 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8003
8004 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
8005
8006 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
8007 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
8008 __memcpy_falkor for ares.
8009 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
8010 Add new define.
8011 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
8012 Add ares cpu.
8013
8014 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
8015
8016 [BZ #24066]
8017 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
8018 4_FP_W_TYPEs are used for IEEE quad precision.
8019 * soft-fp/extendhftf2.c: Likewise.
8020 * soft-fp/extendsftf2.c: Likewise.
8021 * soft-fp/extendxftf2.c: Likewise.
8022 * soft-fp/trunctfdf2.c: Likewise.
8023 * soft-fp/trunctfhf2.c: Likewise.
8024 * soft-fp/trunctfsf2.c: Likewise.
8025 * soft-fp/trunctfxf2.c: Likewise.
8026 * sysdeps/alpha/ots_cvttx.c: Likewise.
8027 * sysdeps/alpha/ots_cvtxt.c: Likewise.
8028 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
8029 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
8030 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
8031 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
8032 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
8033 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
8034 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
8035 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
8036 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
8037 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
8038 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
8039 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
8040 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
8041 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
8042 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
8043 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
8044
8045 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
8046
8047 [BZ #24024]
8048 * Makeconfig: Build libm with -fno-math-errno but build the remaining
8049 code with -fmath-errno.
8050 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
8051 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
8052 * string/test-strerror-errno.c: New file.
8053
8054 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
8055
8056 [BZ #24046]
8057 * localedata/locales/en_US (date_fmt): Add, set to
8058 "%a %d %b %Y %r %Z".
8059
8060 2019-01-07 Florian Weimer <fweimer@redhat.com>
8061
8062 [BZ #24063]
8063 * manual/arith.texi (Math Error Reporting): Use @code{errno}
8064 instead of @var{errno}.
8065 (Parsing of Integers): Likewise.
8066 (Parsing of Floats): Likewise.
8067 * manual/filesys.texi (Working with Directory Trees): Likewise.
8068 (Temporary Files): Likewise.
8069 * manual/job.texi (Terminal Access Functions): Likewise.
8070 * manual/llio.texi (Synchronizing I/O): Likewise.
8071 * manual/math.texi (SVID Random): Likewise.
8072 * manual/message.texi (The catgets Functions): Likewise.
8073 (Translation with gettext): Likewise.
8074 (Locating gettext catalog): Likewise.
8075 (Charset conversion in gettext): Likewise.
8076 * manual/nss.texi (NSS Module Function Internals): Likewise.
8077 * manual/search.texi (Hash Search Function): Likewise.
8078 * manual/setjmp.texi (System V contexts): Likewise.
8079 * manual/time.texi (Sleeping): Likewise.
8080 * manual/users.texi (Lookup User): Likewise.
8081 (Lookup Group): Likewise.
8082
8083 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8084
8085 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
8086 fix typo.
8087
8088 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
8089
8090 [BZ #19444]
8091 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
8092 __builtin_unreachable for default case in switch.
8093 (__ieee754_yn): Likewise.
8094 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8095 (__ieee754_ynl): Likewise.
8096 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8097 (__ieee754_ynl): Likewise.
8098 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8099 (__ieee754_ynl): Likewise.
8100
8101 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
8102
8103 * manual/maint.texi: Use @{ and @}.
8104
8105 2019-01-04 Florian Weimer <fweimer@redhat.com>
8106
8107 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
8108 function.
8109 (do_in_chroot_1): Call it.
8110 (run_chroot_tests):
8111 Improve error reporting in case it is not possible to create a
8112 collision for the PTY name required by the test.
8113
8114 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8115
8116 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
8117 lll_wait_tid with timeout.
8118 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
8119 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
8120 futex_reltimed_wait_cancelable for cancelabla mode.
8121 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
8122 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
8123 macros.
8124 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
8125 * sysdeps/posix/waitid.c (__sigwait): Likewise.
8126 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
8127 SYSCALL_CANCEL_NCS): New macro.
8128 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
8129 (lll_timedwait_tid): Remove macro.
8130 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
8131 Likewise.
8132 (lll_timedwait_tid): Likewise.
8133 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
8134 Likewise.
8135 (lll_timedwait_tid): Likewise.
8136 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
8137 Likewise.
8138 (lll_timedwait_tid): Likewise.
8139 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
8140 Use INTERNAL_SYSCALL_CANCEL.
8141 * sysdeps/unix/sysv/linux/futex-internal.h
8142 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
8143 instead of __pthread_{enable,disable}_asynccancel.
8144 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
8145 (lll_futex_wait_cancel): New macro.
8146
8147 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
8148 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
8149
8150 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
8151 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
8152
8153 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
8154 in backtrace analysis.
8155 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
8156 side-effects.
8157 (tf_send): Likewise.
8158
8159 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
8160 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
8161 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
8162 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
8163 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
8164 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
8165 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
8166 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
8167 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
8168 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
8169 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
8170 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
8171 Likewise.
8172 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
8173 tst-cancel-wrappers.sh.
8174 (generated): Remove tst-cancel-wrappers.out.
8175 (tst-cancel-wrappers.out): Remove rule.
8176 * nptl/tst-cancel-wrappers.sh: Remove file.
8177
8178 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8179
8180 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
8181 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
8182 Update.
8183
8184 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8185
8186 [BZ #23640]
8187 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
8188 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
8189 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
8190 close-on-exec reset for adddup2 file action.
8191 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8192
8193 2019-01-03 Zack Weinberg <zackw@panix.com>
8194
8195 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
8196 parameter. Only use deprecated scanf when __USE_GNU is defined
8197 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
8198 than 201103L, whichever is relevant for the language being compiled.
8199
8200 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
8201 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
8202 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
8203 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
8204 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
8205
8206 * libio/iovsscanf.c
8207 * libio/fwscanf.c
8208 * libio/iovswscanf.c
8209 * libio/swscanf.c
8210 * libio/vscanf.c
8211 * libio/vwscanf.c
8212 * libio/wscanf.c
8213 * stdio-common/fscanf.c
8214 * stdio-common/scanf.c
8215 * stdio-common/vfscanf.c
8216 * stdio-common/vfwscanf.c
8217 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8218 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
8219 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
8220 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
8221 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
8222 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
8223 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
8224 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
8225 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
8226 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
8227 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
8228 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
8229 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
8230 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
8231 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
8232
8233 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
8234 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
8235 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
8236 not sscanf.
8237 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
8238 with a preprocessor macro.
8239
8240 * stdio-common/bug21.c, stdio-common/scanf14.c:
8241 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
8242 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
8243 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
8244 to xscanf, xfscanf, xsscanf.
8245
8246 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
8247 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
8248 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
8249 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
8250 xfscanf, xsscanf.
8251 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
8252 override feature selection macros or provide definitions of u_char etc.
8253 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
8254 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
8255 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
8256 with -std=gnu89.
8257
8258 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8259
8260 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8261 bits/termios-misc.h.
8262 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
8263 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8264 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8265 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8266 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
8267 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
8268
8269 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
8270 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
8271 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
8272 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
8273 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
8274 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
8275 termios-misc.h.
8276 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
8277 (sysdep_headers): Add termios-misc.h.
8278
8279 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
8280 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8281 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8282
8283 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8284 termios-tcflow.h.
8285 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
8286 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
8287 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
8288 TCSAFLUSH): Move to termios-tcflow.h.
8289 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8290 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8291 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8292 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8293
8294 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8295 termios-c_lflag.h.
8296 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
8297 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
8298 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
8299 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
8300 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
8301 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
8302 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
8303 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
8304 Likewise.
8305 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8306 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8307 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8308 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8309
8310 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8311 termios-c_cflag.h.
8312 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
8313 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
8314 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
8315 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
8316 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
8317 termios-c_cflag.h.
8318 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8319 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8320 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8321 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8322
8323 [BZ #23783]
8324 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8325 termios-baud.h.
8326 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
8327 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
8328 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
8329 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
8330 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
8331 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
8332 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
8333 __MAX_BAUD): Move to termios-baud.h.
8334 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
8335 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
8336 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8337 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8338 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8339
8340 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
8341 termios-c_oflag.h.
8342 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
8343 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
8344 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
8345 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
8346 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
8347 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
8348 termios-c_oflag.h.
8349 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
8350 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
8351 FFR1): Likewise.
8352 [USE_MISC] (XTABS): Likewise.
8353 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8354 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8355 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8356 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
8357
8358 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
8359 termios-c_iflag.h.
8360 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
8361 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
8362 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
8363 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
8364 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
8365 IUTF8): Move to termios-c_iflag.h.
8366 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8367 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8368 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8369 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8370
8371 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
8372 termios-cc.h.
8373 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
8374 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
8375 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
8376 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
8377 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
8378 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
8379 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
8380 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
8381 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8382 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8383 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8384 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8385
8386 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
8387 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
8388 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
8389 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
8390 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8391 termios-struct.h.
8392 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
8393 termios-struct.h.
8394 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
8395 Likewise.
8396 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
8397 Likewise.
8398 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
8399 Likewise.
8400 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
8401 Likewise.
8402 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
8403 _HAVE_C_OSPEED): Define.
8404 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
8405 _HAVE_C_OSPEED): Likewise.
8406 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
8407 _HAVE_C_OSPEED): Likewise.
8408 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
8409 (cfsetospeed): Check for define value instead of existence.
8410 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
8411 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
8412 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
8413 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
8414 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
8415
8416 [BZ #17783]
8417 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
8418 Define.
8419 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
8420 (TIOCSER_TEMT): Likewise.
8421 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
8422 (TEOCSER_TEMT): Likewise.
8423
8424 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
8425
8426 [BZ #24011]
8427 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
8428
8429 2019-01-02 Joseph Myers <joseph@codesourcery.com>
8430
8431 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8432
8433 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8434
8435 * sysdeps/htl/pt-barrierattr-setpshared.c
8436 (pthread_barrierattr_setpshared): Add stub warning.
8437 * sysdeps/htl/pt-condattr-setpshared.c
8438 (pthread_condattr_setpshared): Likewise.
8439 * sysdeps/htl/pt-mutexattr-setpshared.c
8440 (pthread_mutexattr_setpshared): Likewise.
8441 * sysdeps/htl/pt-rwlockattr-setpshared.c
8442 (pthread_rwlockattr_setpshared): Likewise.
8443 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
8444 (pthread_mutexattr_setpshared): Likewise.
8445
8446 2019-01-02 Joseph Myers <joseph@codesourcery.com>
8447
8448 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
8449 constants to match with Linux 4.20.
8450
8451 * sysdeps/mips/mips32/libm-test-ulps: Update.
8452 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
8453
8454 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
8455
8456 [BZ #24034]
8457 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
8458 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
8459 than __typeof (...) for the a_ptr variable.
8460
8461 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8462
8463 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
8464 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
8465 * libio/Makefile (tests): Add tst-sprintf-ub and
8466 tst-sprintf-chk-ub.
8467 (CFLAGS-tst-sprintf-ub.c): New variable.
8468 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
8469 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
8470 destination buffer and check for overflows in fortified mode.
8471 * libio/libioP.h (PRINTF_CHK): New macro.
8472 * libio/tst-sprintf-chk-ub.c: New file.
8473 * libio/tst-sprintf-ub.c: Likewise.
8474
8475 2019-01-02 Florian Weimer <fweimer@redhat.com>
8476
8477 [BZ #24018]
8478 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
8479 failure.
8480
8481 2019-01-02 Florian Weimer <fweimer@redhat.com>
8482
8483 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
8484
8485 2019-01-01 Joseph Myers <joseph@codesourcery.com>
8486
8487 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
8488 macro.
8489
8490 * sysdeps/unix/sysv/linux/netpacket/packet.h
8491 (PACKET_IGNORE_OUTGOING): New macro.
8492
8493 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
8494 macro.
8495
8496 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8497 version to 4.20.
8498 (riscv_flush_icache): New syscall.
8499
8500 * manual/texinfo.tex: Update to version 2018-12-28.17 with
8501 trailing whitespace removed.
8502 * scripts/config.guess: Update to version 2019-01-01.
8503 * scripts/config.sub: Update to version 2019-01-01.
8504 * scripts/move-if-change: Update from gnulib.
8505
8506 * NEWS: Update copyright dates.
8507 * catgets/gencat.c (print_version): Likewise.
8508 * csu/version.c (banner): Likewise.
8509 * debug/catchsegv.sh: Likewise.
8510 * debug/pcprofiledump.c (print_version): Likewise.
8511 * debug/xtrace.sh (do_version): Likewise.
8512 * elf/ldconfig.c (print_version): Likewise.
8513 * elf/ldd.bash.in: Likewise.
8514 * elf/pldd.c (print_version): Likewise.
8515 * elf/sotruss.sh: Likewise.
8516 * elf/sprof.c (print_version): Likewise.
8517 * iconv/iconv_prog.c (print_version): Likewise.
8518 * iconv/iconvconfig.c (print_version): Likewise.
8519 * locale/programs/locale.c (print_version): Likewise.
8520 * locale/programs/localedef.c (print_version): Likewise.
8521 * login/programs/pt_chown.c (print_version): Likewise.
8522 * malloc/memusage.sh (do_version): Likewise.
8523 * malloc/memusagestat.c (print_version): Likewise.
8524 * malloc/mtrace.pl: Likewise.
8525 * manual/libc.texinfo: Likewise.
8526 * nptl/version.c (banner): Likewise.
8527 * nscd/nscd.c (print_version): Likewise.
8528 * nss/getent.c (print_version): Likewise.
8529 * nss/makedb.c (print_version): Likewise.
8530 * posix/getconf.c (main): Likewise.
8531 * scripts/test-installation.pl: Likewise.
8532 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
8533
8534 * All files with FSF copyright notices: Update copyright dates
8535 using scripts/update-copyrights.
8536 * locale/programs/charmap-kw.h: Regenerated.
8537 * locale/programs/locfile-kw.h: Likewise.
8538
8539 2018-12-31 Joseph Myers <joseph@codesourcery.com>
8540
8541 * timezone/zdump.c: Update from tzcode 2018i.
8542 * timezone/zic.c: Likewise.
8543
8544 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
8545
8546 regex: improve Gnulib port to AIX
8547 From the glibc point of view, this removes duplicate macro
8548 definitions and is obviously safe.
8549 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
8550 * posix/regex_internal.h:
8551 (__attribute__, __attribute_warn_unused_result__):
8552 Remove; already defined elsewhere.
8553
8554 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
8555
8556 [BZ #24027]
8557 * malloc/malloc.c (_int_realloc): Always call memcpy for the
8558 copying operation. (ncopies had the wrong type, resulting in an
8559 integer wraparound and too few elements being copied.)
8560
8561 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
8562
8563 [BZ #24022]
8564 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
8565 <asm/syscalls.h> exists with __has_include__ before including it.
8566
8567 2018-12-31 Joseph Myers <joseph@codesourcery.com>
8568
8569 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8570 version to 4.20.
8571
8572 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
8573
8574 * hurd/lookup-retry: Include <unistd.h>.
8575 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
8576 Release it on return. Handle "pid" magical lookup retry.
8577
8578 2018-12-28 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
8579
8580 [BZ #10496]
8581 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
8582 (t_fmt_ampm): Likewise.
8583 * localedata/locales/aa_ER (t_fmt): Likewise.
8584 (t_fmt_ampm): Likewise.
8585 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
8586 (t_fmt_ampm): Likewise.
8587 * localedata/locales/aa_ET (t_fmt): Likewise.
8588 (t_fmt_ampm): Likewise.
8589 * localedata/locales/am_ET (t_fmt): Likewise.
8590 (t_fmt_ampm): Likewise.
8591 * localedata/locales/byn_ER (t_fmt): Likewise.
8592 (t_fmt_ampm): Likewise.
8593 * localedata/locales/om_ET (t_fmt): Likewise.
8594 (t_fmt_ampm): Likewise.
8595 * localedata/locales/sid_ET (t_fmt): Likewise.
8596 (t_fmt_ampm): Likewise.
8597 * localedata/locales/so_DJ (t_fmt): Likewise.
8598 (t_fmt_ampm): Likewise.
8599 * localedata/locales/so_ET (t_fmt): Likewise.
8600 (t_fmt_ampm): Likewise.
8601 * localedata/locales/so_SO (t_fmt): Likewise.
8602 (t_fmt_ampm): Likewise.
8603 * localedata/locales/ti_ER (t_fmt): Likewise.
8604 (t_fmt_ampm): Likewise.
8605 * localedata/locales/ti_ET (t_fmt): Likewise.
8606 (t_fmt_ampm): Likewise.
8607 * localedata/locales/tig_ER (t_fmt): Likewise.
8608 (t_fmt_ampm): Likewise.
8609 * localedata/locales/wal_ET (t_fmt): Likewise.
8610 (t_fmt_ampm): Likewise.
8611
8612 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
8613 * localedata/locales/ar_IN (t_fmt): Likewise.
8614 * localedata/locales/bhb_IN (t_fmt): Likewise.
8615 * localedata/locales/bho_IN (t_fmt): Likewise.
8616 * localedata/locales/bi_VU (t_fmt): Likewise.
8617 * localedata/locales/bn_BD (t_fmt): Likewise.
8618 * localedata/locales/bn_IN (t_fmt): Likewise.
8619 * localedata/locales/brx_IN (t_fmt): Likewise.
8620 * localedata/locales/doi_IN (t_fmt): Likewise.
8621 * localedata/locales/en_HK (t_fmt): Likewise.
8622 (t_fmt_ampm): Likewise.
8623 * localedata/locales/en_IN (t_fmt): Likewise.
8624 * localedata/locales/en_PH (t_fmt): Likewise.
8625 * localedata/locales/gu_IN (t_fmt): Likewise.
8626 * localedata/locales/hi_IN (t_fmt): Likewise.
8627 * localedata/locales/hif_FJ (t_fmt): Likewise.
8628 * localedata/locales/hne_IN (t_fmt): Likewise.
8629 * localedata/locales/kn_IN (t_fmt): Likewise.
8630 * localedata/locales/kok_IN (t_fmt): Likewise.
8631 * localedata/locales/ks_IN (t_fmt): Likewise.
8632 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
8633 * localedata/locales/mag_IN (t_fmt): Likewise.
8634 * localedata/locales/mai_IN (t_fmt): Likewise.
8635 * localedata/locales/mjw_IN (t_fmt): Likewise.
8636 * localedata/locales/ml_IN (t_fmt): Likewise.
8637 * localedata/locales/mni_IN (t_fmt): Likewise.
8638 * localedata/locales/mr_IN (t_fmt): Likewise.
8639 * localedata/locales/ms_MY (t_fmt): Likewise.
8640 * localedata/locales/pa_IN (t_fmt): Likewise.
8641 * localedata/locales/raj_IN (t_fmt): Likewise.
8642 * localedata/locales/sa_IN (t_fmt): Likewise.
8643 * localedata/locales/sat_IN (t_fmt): Likewise.
8644 * localedata/locales/sd_IN (t_fmt): Likewise.
8645 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
8646 * localedata/locales/tcy_IN (t_fmt): Likewise.
8647 * localedata/locales/the_NP (t_fmt): Likewise.
8648 * localedata/locales/to_TO (t_fmt): Likewise.
8649 * localedata/locales/ur_IN (t_fmt): Likewise.
8650
8651 * localedata/locales/hif_FJ (d_t_fmt): Set to
8652 "%A %d %b %Y %I:%M:%S %p".
8653 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
8654
8655 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
8656 * localedata/locales/ar_BH (t_fmt): Likewise.
8657 * localedata/locales/ar_DZ (t_fmt): Likewise.
8658 * localedata/locales/ar_EG (t_fmt): Likewise.
8659 * localedata/locales/ar_IQ (t_fmt): Likewise.
8660 * localedata/locales/ar_JO (t_fmt): Likewise.
8661 * localedata/locales/ar_KW (t_fmt): Likewise.
8662 * localedata/locales/ar_LB (t_fmt): Likewise.
8663 * localedata/locales/ar_LY (t_fmt): Likewise.
8664 * localedata/locales/ar_OM (t_fmt): Likewise.
8665 * localedata/locales/ar_QA (t_fmt): Likewise.
8666 * localedata/locales/ar_SD (t_fmt): Likewise.
8667 * localedata/locales/ar_SS (t_fmt): Likewise.
8668 * localedata/locales/ar_SY (t_fmt): Likewise.
8669 * localedata/locales/ar_TN (t_fmt): Likewise.
8670 * localedata/locales/ar_YE (t_fmt): Likewise.
8671
8672 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
8673 (t_fmt_ampm): Likewise.
8674 * localedata/locales/gez_ET (t_fmt): Likewise.
8675 (t_fmt_ampm): Likewise.
8676
8677 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
8678 (t_fmt_ampm): Likewise.
8679 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
8680
8681 * localedata/locales/zh_HK (t_fmt):
8682 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
8683
8684 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
8685 because this locale does not use the 12-hour clock.
8686 (t_fmt): Set to "%Z %H:%M:%S".
8687 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
8688
8689 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
8690 because this locale does not use the 12-hour clock.
8691 (t_fmt): Set to "%H:%M:%S %Z".
8692 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
8693
8694 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
8695 because this locale does not use the 12-hour clock.
8696 (t_fmt): Set to "%T".
8697 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
8698 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
8699
8700 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
8701 because this locale does not use the 12-hour clock.
8702 (t_fmt): Set to "%H:%M:%S %Z".
8703 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
8704
8705 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
8706 because this locale does not use the 12-hour clock.
8707 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
8708 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
8709
8710 2018-12-28 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
8711
8712 [BZ #10496]
8713 [BZ #23724]
8714 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
8715 (t_fmt_ampm): Likewise.
8716 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
8717 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
8718 (d_fmt): Set to "%-d.%-m.%y".
8719
8720 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8721
8722 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
8723 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
8724 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
8725 Likewise.
8726 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
8727 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
8728 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
8729 function.
8730 * support/blob_repeat.c (check_mul_overflow_size_t,
8731 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
8732
8733 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
8734
8735 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
8736
8737 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
8738
8739 regex: simplify Gnulib port
8740 This simplifies the code, by removing stuff intended for porting
8741 to Gnulib but no longer needed there.
8742 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
8743 uses of libc_hidden_def, weak_alias.
8744 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
8745 _Restrict_ except for public-facing headers.
8746 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
8747 Remove; already defined elsewhere.
8748 * posix/regex.c, posix/regex_internal.h:
8749 Use __GNUC_PREREQ instead of rolling our own.
8750 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
8751
8752 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
8753
8754 * benchtests/bench-strlen.c (generic_strlen): New function.
8755 (memchr_strlen): New function.
8756
8757 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8758
8759 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
8760 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
8761 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
8762
8763 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8764
8765 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8766
8767 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8768
8769 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
8770 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
8771 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
8772 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
8773 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
8774 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
8775 <sysdeps/ieee754/flt-32/s_sincosf.c>.
8776
8777 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8778
8779 [BZ #24023]
8780 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
8781 PLT reference in libc.so.
8782 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
8783 _Q_lltoq and _Q_qtod PLT references in libc.so.
8784
8785 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
8786
8787 * benchtests/bench-memchr.c: Cleanup defines.
8788 * benchtests/bench-memcmp.c: Likewise.
8789 * benchtests/bench-memset.c: Likewise.
8790 * benchtests/bench-memset-large.c: Likewise.
8791 * benchtests/bench-memset-walk.c: Likewise.
8792 * benchtests/bench-stpcpy.c: Likewise.
8793 * benchtests/bench-stpncpy.c: Likewise.
8794 * benchtests/bench-strcat.c: Likewise.
8795 * benchtests/bench-strchr.c: Likewise.
8796 * benchtests/bench-strcmp.c: Likewise.
8797 * benchtests/bench-strcpy.c: Likewise.
8798 * benchtests/bench-strcspn.c: Likewise.
8799 * benchtests/bench-string.h: Likewise.
8800 * benchtests/bench-strlen.c: Likewise.
8801 * benchtests/bench-strncat.c: Likewise.
8802 * benchtests/bench-strncmp.c: Likewise.
8803 * benchtests/bench-strncpy.c: Likewise.
8804 * benchtests/bench-strnlen.c: Likewise.
8805 * benchtests/bench-strpbrk.c: Likewise.
8806 * benchtests/bench-strrchr.c: Likewise.
8807 * benchtests/bench-strspn.c: Likewise.
8808
8809 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8810
8811 * stdlib/longlong.h: Update from GCC.
8812
8813 [BZ #23993]
8814 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
8815 * configure: Regenerated.
8816 * manual/install.texi (Tools for Compilation): Update minimum GCC
8817 version.
8818 * INSTALL: Regenerated.
8819
8820 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
8821
8822 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
8823
8824 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
8825
8826 * malloc/malloc.c (mremap_chunk): Additional checks.
8827
8828 2018-12-21 Mao Han <han_mao@c-sky.com>
8829
8830 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
8831 * scripts/build-many-glibcs.py: Add C-SKY targets.
8832 * sysdeps/csky/Implies: New file.
8833 * sysdeps/csky/Makefile: Likewise.
8834 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
8835 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
8836 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
8837 * sysdeps/csky/abiv2/memcmp.S: Likewise.
8838 * sysdeps/csky/abiv2/memcpy.S: Likewise.
8839 * sysdeps/csky/abiv2/memmove.S: Likewise.
8840 * sysdeps/csky/abiv2/memset.S: Likewise.
8841 * sysdeps/csky/abiv2/setjmp.S: Likewise.
8842 * sysdeps/csky/abiv2/start.S: Likewise.
8843 * sysdeps/csky/abiv2/strcmp.S: Likewise.
8844 * sysdeps/csky/abiv2/strcpy.S: Likewise.
8845 * sysdeps/csky/abiv2/strlen.S: Likewise.
8846 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
8847 * sysdeps/csky/abort-instr.h: Likewise.
8848 * sysdeps/csky/atomic-machine.h: Likewise.
8849 * sysdeps/csky/bits/endian.h: Likewise.
8850 * sysdeps/csky/bits/fenv.h: Likewise.
8851 * sysdeps/csky/bits/link.h: Likewise.
8852 * sysdeps/csky/bits/setjmp.h: Likewise.
8853 * sysdeps/csky/bsd-_setjmp.S: Likewise.
8854 * sysdeps/csky/bsd-setjmp.S: Likewise.
8855 * sysdeps/csky/configure: Likewise.
8856 * sysdeps/csky/configure.ac: Likewise.
8857 * sysdeps/csky/dl-machine.h: Likewise.
8858 * sysdeps/csky/dl-procinfo.c: Likewise.
8859 * sysdeps/csky/dl-procinfo.h: Likewise.
8860 * sysdeps/csky/dl-sysdep.h: Likewise.
8861 * sysdeps/csky/dl-tls.h: Likewise.
8862 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
8863 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
8864 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
8865 * sysdeps/csky/fpu/fegetenv.c: Likewise.
8866 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
8867 * sysdeps/csky/fpu/fegetmode.c: Likewise.
8868 * sysdeps/csky/fpu/fegetround.c: Likewise.
8869 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
8870 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
8871 * sysdeps/csky/fpu/fenv_private.h: Likewise.
8872 * sysdeps/csky/fpu/fesetenv.c: Likewise.
8873 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
8874 * sysdeps/csky/fpu/fesetmode.c: Likewise.
8875 * sysdeps/csky/fpu/fesetround.c: Likewise.
8876 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
8877 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
8878 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
8879 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
8880 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
8881 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
8882 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
8883 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
8884 * sysdeps/csky/fpu_control.h: Likewise.
8885 * sysdeps/csky/gccframe.h: Likewise.
8886 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
8887 * sysdeps/csky/ldsodefs.h: Likewise.
8888 * sysdeps/csky/libc-tls.c: Likewise.
8889 * sysdeps/csky/linkmap.h: Likewise.
8890 * sysdeps/csky/machine-gmon.h: Likewise.
8891 * sysdeps/csky/memusage.h: Likewise.
8892 * sysdeps/csky/nofpu/Implies: Likewise.
8893 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
8894 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
8895 * sysdeps/csky/nptl/Makefile: Likewise.
8896 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
8897 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
8898 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
8899 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
8900 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
8901 * sysdeps/csky/nptl/tls.h: Likewise.
8902 * sysdeps/csky/preconfigure: Likewise.
8903 * sysdeps/csky/sfp-machine.h: Likewise.
8904 * sysdeps/csky/sotruss-lib.c: Likewise.
8905 * sysdeps/csky/stackinfo.h: Likewise.
8906 * sysdeps/csky/sysdep.h: Likewise.
8907 * sysdeps/csky/tininess.h: Likewise.
8908 * sysdeps/csky/tst-audit.h: Likewise.
8909 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
8910 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
8911 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
8912 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
8913 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
8914 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
8915 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
8916 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
8917 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
8918 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8919 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8920 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8921 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8922 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8923 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8924 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8925 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8926 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8927 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8928 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8929 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8930 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8931 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8932 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8933 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8934 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8935 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8936 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8937 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8938 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8939 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8940 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8941 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8942 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8943 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8944 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8945 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8946 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8947 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8948 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8949 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8950 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8951 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8952 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8953
8954 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8955
8956 * include/time.h (__difftime64): Add.
8957 * time/difftime.c (subtract): convert to 64-bit time.
8958 * time/difftime.c (__difftime64): Add.
8959 * time/difftime.c (__difftime): Wrap around __difftime64.
8960
8961 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
8962
8963 * manual/examples/add.c: Remove redundant "if not".
8964 * manual/examples/argp-ex1.c: Likewise.
8965 * manual/examples/argp-ex2.c: Likewise.
8966 * manual/examples/argp-ex3.c: Likewise.
8967 * manual/examples/argp-ex4.c: Likewise.
8968 * manual/examples/atexit.c: Likewise.
8969 * manual/examples/db.c: Likewise.
8970 * manual/examples/dir.c: Likewise.
8971 * manual/examples/dir2.c: Likewise.
8972 * manual/examples/execinfo.c: Likewise.
8973 * manual/examples/filecli.c: Likewise.
8974 * manual/examples/filesrv.c: Likewise.
8975 * manual/examples/fmtmsgexpl.c: Likewise.
8976 * manual/examples/genpass.c: Likewise.
8977 * manual/examples/inetcli.c: Likewise.
8978 * manual/examples/inetsrv.c: Likewise.
8979 * manual/examples/isockad.c: Likewise.
8980 * manual/examples/longopt.c: Likewise.
8981 * manual/examples/memopen.c: Likewise.
8982 * manual/examples/memstrm.c: Likewise.
8983 * manual/examples/mkdirent.c: Likewise.
8984 * manual/examples/mkfsock.c: Likewise.
8985 * manual/examples/mkisock.c: Likewise.
8986 * manual/examples/mygetpass.c: Likewise.
8987 * manual/examples/pipe.c: Likewise.
8988 * manual/examples/popen.c: Likewise.
8989 * manual/examples/rprintf.c: Likewise.
8990 * manual/examples/search.c: Likewise.
8991 * manual/examples/select.c: Likewise.
8992 * manual/examples/setjmp.c: Likewise.
8993 * manual/examples/sigh1.c: Likewise.
8994 * manual/examples/sigusr.c: Likewise.
8995 * manual/examples/stpcpy.c: Likewise.
8996 * manual/examples/strdupa.c: Likewise.
8997 * manual/examples/strftim.c: Likewise.
8998 * manual/examples/subopt.c: Likewise.
8999 * manual/examples/swapcontext.c: Likewise.
9000 * manual/examples/termios.c: Likewise.
9001 * manual/examples/testopt.c: Likewise.
9002 * manual/examples/testpass.c: Likewise.
9003 * manual/examples/timeval_subtract.c: Likewise.
9004
9005 2018-12-19 Joseph Myers <joseph@codesourcery.com>
9006
9007 * sysdeps/x86/fpu/math_private.h: New file.
9008 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
9009
9010 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
9011 definition.
9012 (cosh): Likewise.
9013 (tanh): Likewise.
9014
9015 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9016
9017 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
9018 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
9019 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
9020 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
9021 fields.
9022 (_dl_show_auxv): Give a special treatment to
9023 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
9024 and AT_L3_CACHEGEOMETRY.
9025 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
9026 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
9027 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
9028 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
9029
9030 2018-12-19 Andreas Schwab <schwab@suse.de>
9031
9032 * nscd/connections.c (check_use): Don't abort on invalid len.
9033
9034 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9035
9036 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
9037 values in the 64bit value cases.
9038
9039 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
9040
9041 * include/time.h
9042 (__ctime64_r): Add.
9043 * time/ctime_r.c
9044 (__ctime64_r): Add.
9045 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
9046
9047 * include/time.h
9048 (__ctime64): Add.
9049 * time/gmtime.c
9050 (__ctime64): Add.
9051 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
9052
9053 * include/time.h
9054 (__gmtime64_r): Add.
9055 * time/gmtime.c
9056 (__gmtime64_r): Add.
9057 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
9058
9059 * include/time.h
9060 (__gmtime64): Add.
9061 * time/gmtime.c
9062 (__gmtime64): Add.
9063 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
9064
9065 * include/time.h
9066 (__localtime64_r): Add.
9067 * time/localtime.c
9068 (__localtime64_r): Add.
9069 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
9070
9071 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9072
9073 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
9074 kernel_sigction definition.
9075
9076 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
9077
9078 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
9079
9080 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
9081 __syscall_rt_sigaction.
9082 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
9083 (kernel_sigaction): Use Linux generic defintion.
9084 (STUB): Define.
9085 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
9086 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
9087 (__syscall_rt_sigaction): Remove implementation.
9088 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
9089 hidden.
9090 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
9091 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
9092 INTERNAL_SYSCALL): Remove definitions.
9093 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
9094 action and signal set size.
9095 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
9096 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
9097
9098 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9099 James Clarke <jrtc27@jrtc27.com>
9100
9101 [BZ #23967]
9102 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
9103 Define if SA_RESTORER is defined.
9104 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
9105 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
9106 already defined.
9107 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
9108 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
9109 definitions.
9110 (HAS_SA_RESTORER): Define.
9111 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
9112 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
9113 (HAS_SA_RESTORER): Define.
9114 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
9115 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
9116 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
9117 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
9118 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9119
9120 2018-12-18 Joseph Myers <joseph@codesourcery.com>
9121
9122 * sysdeps/unix/sysv/linux/kernel-features.h
9123 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
9124 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9125 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
9126 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9127 (__ASSUME_ST_INO_64_BIT): Likewise.
9128 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
9129 <kernel-features.h>.
9130 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
9131 Remove conditional code.
9132 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
9133 <kernel-features.h>.
9134 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
9135 Remove conditional code.
9136 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
9137 <kernel-features.h>.
9138 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
9139 Remove conditional code.
9140 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
9141 <kernel-features.h>.
9142 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
9143 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
9144
9145 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9146
9147 * sysdeps/s390/multiarch/ifunc-resolve.h
9148 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
9149 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
9150 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
9151 Delete macro definition.
9152 (s390_libc_ifunc_init): Rename to
9153 s390_libc_ifunc_expr_stfle_init.
9154 * sysdeps/s390/bzero: Use
9155 s390_libc_ifunc_expr_stfle_init instead of
9156 s390_libc_ifunc_init.
9157 * sysdeps/s390/memcmp.c: Likewise.
9158 * sysdeps/s390/memcpy.c: Likewise.
9159 * sysdeps/s390/mempcpy.c: Likewise.
9160 * sysdeps/s390/memset.c: Likewise.
9161
9162 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9163
9164 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
9165 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
9166
9167 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9168
9169 * sysdeps/s390/multiarch/Makefile
9170 (sysdep_routines): Remove wmemcmp variants.
9171 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
9172 * sysdeps/s390/multiarch/ifunc-impl-list.c
9173 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
9174 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
9175 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
9176 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
9177 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
9178 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
9179 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
9180 * sysdeps/s390/ifunc-wmemcmp.h: New file.
9181
9182 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9183
9184 * sysdeps/s390/multiarch/Makefile
9185 (sysdep_routines): Remove wmemset variants.
9186 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
9187 * sysdeps/s390/multiarch/ifunc-impl-list.c
9188 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
9189 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
9190 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
9191 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
9192 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
9193 * sysdeps/s390/multiarch/wmemset.c: Move to ...
9194 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
9195 * sysdeps/s390/ifunc-wmemset.h: New file.
9196
9197 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9198
9199 * sysdeps/s390/multiarch/Makefile
9200 (sysdep_routines): Remove wmemchr variants.
9201 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
9202 * sysdeps/s390/multiarch/ifunc-impl-list.c
9203 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
9204 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
9205 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
9206 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
9207 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
9208 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
9209 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
9210 * sysdeps/s390/ifunc-wmemchr.h: New file.
9211
9212 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9213
9214 * sysdeps/s390/multiarch/Makefile
9215 (sysdep_routines): Remove wcscspn variants.
9216 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
9217 * sysdeps/s390/multiarch/ifunc-impl-list.c
9218 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
9219 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
9220 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
9221 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
9222 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
9223 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
9224 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
9225 * sysdeps/s390/ifunc-wcscspn.h: New file.
9226
9227 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9228
9229 * sysdeps/s390/multiarch/Makefile
9230 (sysdep_routines): Remove wcspbrk variants.
9231 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
9232 * sysdeps/s390/multiarch/ifunc-impl-list.c
9233 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
9234 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
9235 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
9236 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
9237 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
9238 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
9239 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
9240 * sysdeps/s390/ifunc-wcspbrk.h: New file.
9241
9242 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9243
9244 * sysdeps/s390/multiarch/Makefile
9245 (sysdep_routines): Remove wcsspn variants.
9246 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
9247 * sysdeps/s390/multiarch/ifunc-impl-list.c
9248 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
9249 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
9250 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
9251 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
9252 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
9253 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
9254 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
9255 * sysdeps/s390/ifunc-wcsspn.h: New file.
9256
9257 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9258
9259 * sysdeps/s390/multiarch/Makefile
9260 (sysdep_routines): Remove wcsrchr variants.
9261 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
9262 * sysdeps/s390/multiarch/ifunc-impl-list.c
9263 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
9264 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
9265 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
9266 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
9267 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
9268 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
9269 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
9270 * sysdeps/s390/ifunc-wcsrchr.h: New file.
9271
9272 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9273
9274 * sysdeps/s390/multiarch/Makefile
9275 (sysdep_routines): Remove wcschrnul variants.
9276 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
9277 * sysdeps/s390/multiarch/ifunc-impl-list.c
9278 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
9279 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
9280 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
9281 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
9282 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
9283 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
9284 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
9285 * sysdeps/s390/ifunc-wcschrnul.h: New file.
9286
9287 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9288
9289 * sysdeps/s390/multiarch/Makefile
9290 (sysdep_routines): Remove wcschr variants.
9291 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
9292 * sysdeps/s390/multiarch/ifunc-impl-list.c
9293 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
9294 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
9295 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
9296 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
9297 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
9298 * sysdeps/s390/multiarch/wcschr.c: Move to ...
9299 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
9300 * sysdeps/s390/ifunc-wcschr.h: New file.
9301
9302 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9303
9304 * sysdeps/s390/multiarch/Makefile
9305 (sysdep_routines): Remove wcsncmp variants.
9306 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
9307 * sysdeps/s390/multiarch/ifunc-impl-list.c
9308 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
9309 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
9310 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
9311 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
9312 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
9313 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
9314 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
9315 * sysdeps/s390/ifunc-wcsncmp.h: New file.
9316
9317 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9318
9319 * sysdeps/s390/multiarch/Makefile
9320 (sysdep_routines): Remove wcscmp variants.
9321 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
9322 * sysdeps/s390/multiarch/ifunc-impl-list.c
9323 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
9324 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
9325 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
9326 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
9327 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
9328 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
9329 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
9330 * sysdeps/s390/ifunc-wcscmp.h: New file.
9331
9332 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9333
9334 * sysdeps/s390/multiarch/Makefile
9335 (sysdep_routines): Remove wcsncat variants.
9336 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
9337 * sysdeps/s390/multiarch/ifunc-impl-list.c
9338 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
9339 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
9340 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
9341 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
9342 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
9343 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
9344 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
9345 * sysdeps/s390/ifunc-wcsncat.h: New file.
9346
9347 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9348
9349 * sysdeps/s390/multiarch/Makefile
9350 (sysdep_routines): Remove wcscat variants.
9351 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
9352 * sysdeps/s390/multiarch/ifunc-impl-list.c
9353 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
9354 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
9355 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
9356 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
9357 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
9358 * sysdeps/s390/multiarch/wcscat.c: Move to ...
9359 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
9360 * sysdeps/s390/ifunc-wcscat.h: New file.
9361
9362 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9363
9364 * sysdeps/s390/multiarch/Makefile
9365 (sysdep_routines): Remove wcpncpy variants.
9366 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
9367 * sysdeps/s390/multiarch/ifunc-impl-list.c
9368 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
9369 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
9370 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
9371 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
9372 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
9373 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
9374 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
9375 * sysdeps/s390/ifunc-wcpncpy.h: New file.
9376
9377 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9378
9379 * sysdeps/s390/multiarch/Makefile
9380 (sysdep_routines): Remove wcsncpy variants.
9381 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
9382 * sysdeps/s390/multiarch/ifunc-impl-list.c
9383 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
9384 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
9385 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
9386 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
9387 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
9388 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
9389 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
9390 * sysdeps/s390/ifunc-wcsncpy.h: New file.
9391
9392 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9393
9394 * sysdeps/s390/multiarch/Makefile
9395 (sysdep_routines): Remove wcpcpy variants.
9396 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
9397 * sysdeps/s390/multiarch/ifunc-impl-list.c
9398 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
9399 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
9400 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
9401 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
9402 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
9403 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
9404 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
9405 * sysdeps/s390/ifunc-wcpcpy.h: New file.
9406
9407 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9408
9409 * sysdeps/s390/multiarch/Makefile
9410 (sysdep_routines): Remove wcscpy variants.
9411 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
9412 * sysdeps/s390/multiarch/ifunc-impl-list.c
9413 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
9414 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
9415 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
9416 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
9417 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
9418 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
9419 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
9420 * sysdeps/s390/ifunc-wcscpy.h: New file.
9421
9422 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9423
9424 * sysdeps/s390/multiarch/Makefile
9425 (sysdep_routines): Remove wcsnlen variants.
9426 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
9427 * sysdeps/s390/multiarch/ifunc-impl-list.c
9428 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
9429 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
9430 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
9431 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
9432 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
9433 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
9434 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
9435 * sysdeps/s390/ifunc-wcsnlen.h: New file.
9436
9437 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9438
9439 * sysdeps/s390/multiarch/Makefile
9440 (sysdep_routines): Remove wcslen variants.
9441 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
9442 * sysdeps/s390/multiarch/ifunc-impl-list.c
9443 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
9444 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
9445 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
9446 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
9447 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
9448 * sysdeps/s390/multiarch/wcslen.c: Move to ...
9449 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
9450 * sysdeps/s390/ifunc-wcslen.h: New file.
9451
9452 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9453
9454 * sysdeps/s390/multiarch/Makefile
9455 (sysdep_routines): Remove memrchr variants.
9456 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
9457 * sysdeps/s390/multiarch/ifunc-impl-list.c
9458 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
9459 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
9460 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
9461 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
9462 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
9463 * sysdeps/s390/multiarch/memrchr.c: Move to ...
9464 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
9465 * sysdeps/s390/ifunc-memrchr.h: New file.
9466
9467 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9468
9469 * sysdeps/s390/multiarch/Makefile
9470 (sysdep_routines): Remove memccpy variants.
9471 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
9472 * sysdeps/s390/multiarch/ifunc-impl-list.c
9473 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
9474 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
9475 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
9476 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
9477 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
9478 * sysdeps/s390/multiarch/memccpy.c: Move to ...
9479 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
9480 * sysdeps/s390/ifunc-memccpy.h: New file.
9481
9482 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9483
9484 * sysdeps/s390/multiarch/Makefile
9485 (sysdep_routines): Remove rawmemchr variants.
9486 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
9487 * sysdeps/s390/multiarch/ifunc-impl-list.c
9488 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
9489 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
9490 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
9491 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
9492 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
9493 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
9494 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
9495 * sysdeps/s390/ifunc-rawmemchr.h: New file.
9496
9497 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9498
9499 * sysdeps/s390/multiarch/Makefile
9500 (sysdep_routines): Remove memchr variants.
9501 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
9502 * sysdeps/s390/multiarch/ifunc-impl-list.c
9503 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
9504 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
9505 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
9506 * sysdeps/s390/multiarch/memchr.c: Move to ...
9507 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
9508 * sysdeps/s390/ifunc-memchr.h: New file.
9509 * sysdeps/s390/s390-64/memchr.S: Move to ...
9510 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
9511 for 31/64bit and ifunc handling.
9512 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
9513 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
9514 * sysdeps/s390/s390-32/memchr.S: Likewise.
9515
9516 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9517
9518 * sysdeps/s390/multiarch/Makefile
9519 (sysdep_routines): Remove strcspn variants.
9520 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
9521 * sysdeps/s390/multiarch/ifunc-impl-list.c
9522 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
9523 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
9524 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
9525 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
9526 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
9527 * sysdeps/s390/multiarch/strcspn.c: Move to ...
9528 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
9529 * sysdeps/s390/ifunc-strcspn.h: New file.
9530
9531 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9532
9533 * sysdeps/s390/multiarch/Makefile
9534 (sysdep_routines): Remove strpbrk variants.
9535 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
9536 * sysdeps/s390/multiarch/ifunc-impl-list.c
9537 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
9538 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
9539 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
9540 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
9541 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
9542 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
9543 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
9544 * sysdeps/s390/ifunc-strpbrk.h: New file.
9545
9546 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9547
9548 * sysdeps/s390/multiarch/Makefile
9549 (sysdep_routines): Remove strspn variants.
9550 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
9551 * sysdeps/s390/multiarch/ifunc-impl-list.c
9552 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
9553 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
9554 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
9555 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
9556 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
9557 * sysdeps/s390/multiarch/strspn.c: Move to ...
9558 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
9559 * sysdeps/s390/ifunc-strspn.h: New file.
9560
9561 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9562
9563 * sysdeps/s390/multiarch/Makefile
9564 (sysdep_routines): Remove strrchr variants.
9565 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
9566 * sysdeps/s390/multiarch/ifunc-impl-list.c
9567 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
9568 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
9569 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
9570 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
9571 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
9572 * sysdeps/s390/multiarch/strrchr.c: Move to ...
9573 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
9574 * sysdeps/s390/ifunc-strrchr.h: New file.
9575
9576 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9577
9578 * sysdeps/s390/multiarch/Makefile
9579 (sysdep_routines): Remove strchrnul variants.
9580 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
9581 * sysdeps/s390/multiarch/ifunc-impl-list.c
9582 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
9583 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
9584 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
9585 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
9586 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
9587 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
9588 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
9589 * sysdeps/s390/ifunc-strchrnul.h: New file.
9590
9591 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9592
9593 * sysdeps/s390/multiarch/Makefile
9594 (sysdep_routines): Remove strchr variants.
9595 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
9596 * sysdeps/s390/multiarch/ifunc-impl-list.c
9597 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
9598 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
9599 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
9600 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
9601 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
9602 * sysdeps/s390/multiarch/strchr.c: Move to ...
9603 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
9604 * sysdeps/s390/ifunc-strchr.h: New file.
9605
9606 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9607
9608 * sysdeps/s390/multiarch/Makefile
9609 (sysdep_routines): Remove strncmp variants.
9610 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
9611 * sysdeps/s390/multiarch/ifunc-impl-list.c
9612 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
9613 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
9614 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
9615 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
9616 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
9617 * sysdeps/s390/multiarch/strncmp.c: Move to ...
9618 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
9619 * sysdeps/s390/ifunc-strncmp.h: New file.
9620
9621 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9622
9623 * sysdeps/s390/multiarch/Makefile
9624 (sysdep_routines): Remove strcmp variants.
9625 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
9626 * sysdeps/s390/multiarch/ifunc-impl-list.c
9627 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
9628 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
9629 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
9630 * sysdeps/s390/multiarch/strcmp.c: Move to ...
9631 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
9632 * sysdeps/s390/ifunc-strcmp.h: New file.
9633 * sysdeps/s390/s390-64/strcmp.S: Move to ...
9634 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
9635 for 31/64bit and ifunc handling.
9636 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
9637 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
9638 * sysdeps/s390/s390-32/strcmp.S: Likewise.
9639
9640 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9641
9642 * sysdeps/s390/multiarch/Makefile
9643 (sysdep_routines): Remove strncat variants.
9644 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
9645 * sysdeps/s390/multiarch/ifunc-impl-list.c
9646 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
9647 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
9648 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
9649 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
9650 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
9651 * sysdeps/s390/multiarch/strncat.c: Move to ...
9652 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
9653 * sysdeps/s390/ifunc-strncat.h: New file.
9654
9655 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9656
9657 * sysdeps/s390/multiarch/Makefile
9658 (sysdep_routines): Remove strcat variants.
9659 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
9660 * sysdeps/s390/multiarch/ifunc-impl-list.c
9661 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
9662 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
9663 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
9664 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
9665 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
9666 * sysdeps/s390/multiarch/strcat.c: Move to ...
9667 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
9668 * sysdeps/s390/ifunc-strcat.h: New file.
9669
9670 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9671
9672 * sysdeps/s390/multiarch/Makefile
9673 (sysdep_routines): Remove stpncpy variants.
9674 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
9675 * sysdeps/s390/multiarch/ifunc-impl-list.c
9676 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
9677 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
9678 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
9679 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
9680 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
9681 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
9682 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
9683 * sysdeps/s390/ifunc-stpncpy.h: New file.
9684
9685 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9686
9687 * sysdeps/s390/multiarch/Makefile
9688 (sysdep_routines): Remove strncpy variants.
9689 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
9690 * sysdeps/s390/multiarch/ifunc-impl-list.c
9691 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
9692 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
9693 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
9694 * sysdeps/s390/multiarch/strncpy.c: Move to ...
9695 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
9696 * sysdeps/s390/ifunc-strncpy.h: New file.
9697 * sysdeps/s390/s390-64/strncpy.S: Move to ...
9698 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
9699 and adjust ifunc handling.
9700 * sysdeps/s390/s390-32/strncpy.S: Move to ...
9701 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
9702 and adjust ifunc handling.
9703 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
9704 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
9705
9706 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9707
9708 * sysdeps/s390/multiarch/Makefile
9709 (sysdep_routines): Remove stpcpy variants.
9710 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
9711 * sysdeps/s390/multiarch/ifunc-impl-list.c
9712 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
9713 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
9714 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
9715 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
9716 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
9717 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
9718 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
9719 * sysdeps/s390/ifunc-stpcpy.h: New file.
9720
9721 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9722
9723 * sysdeps/s390/multiarch/Makefile
9724 (sysdep_routines): Remove strcpy variants.
9725 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
9726 * sysdeps/s390/multiarch/ifunc-impl-list.c
9727 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
9728 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
9729 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
9730 * sysdeps/s390/multiarch/strcpy.c: Move to ...
9731 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
9732 * sysdeps/s390/ifunc-strcpy.h: New file.
9733 * sysdeps/s390/s390-64/strcpy.S: Move to ...
9734 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
9735 for 31/64bit and ifunc handling.
9736 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
9737 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
9738 * sysdeps/s390/s390-32/strcpy.S: Likewise.
9739
9740 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9741
9742 * sysdeps/s390/multiarch/Makefile
9743 (sysdep_routines): Remove strnlen variants.
9744 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
9745 * sysdeps/s390/multiarch/ifunc-impl-list.c
9746 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
9747 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
9748 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
9749 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
9750 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
9751 * sysdeps/s390/multiarch/strnlen.c: Move to ...
9752 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
9753 * sysdeps/s390/ifunc-strnlen.h: New file.
9754
9755 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9756
9757 * sysdeps/s390/multiarch/Makefile
9758 (sysdep_routines): Remove strlen variants.
9759 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
9760 * sysdeps/s390/multiarch/ifunc-impl-list.c
9761 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
9762 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
9763 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
9764 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
9765 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
9766 * sysdeps/s390/multiarch/strlen.c: Move to ...
9767 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
9768 * sysdeps/s390/ifunc-strlen.h: New file.
9769
9770 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9771
9772 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
9773 * sysdeps/s390/multiarch/ifunc-impl-list.c
9774 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
9775 * sysdeps/s390/ifunc-memmem.h: New file.
9776 * sysdeps/s390/memmem.c: Likewise.
9777 * sysdeps/s390/memmem-c.c: Likewise.
9778 * sysdeps/s390/memmem-vx.c: Likewise.
9779
9780 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9781
9782 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
9783 * sysdeps/s390/multiarch/ifunc-impl-list.c
9784 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
9785 * sysdeps/s390/ifunc-strstr.h: New file.
9786 * sysdeps/s390/strstr.c: Likewise.
9787 * sysdeps/s390/strstr-c.c: Likewise.
9788 * sysdeps/s390/strstr-vx.c: Likewise.
9789
9790 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9791
9792 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
9793 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
9794 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
9795 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
9796 New defines.
9797 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
9798 * sysdeps/s390/memmove-c.c: New file.
9799 * sysdeps/s390/memmove.c: Likewise.
9800 * sysdeps/s390/multiarch/ifunc-impl-list.c
9801 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
9802
9803 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9804
9805 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
9806 * sysdeps/s390/configure.ac: Add check for z13 support.
9807 * sysdeps/s390/configure: Regenerated.
9808
9809 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9810
9811 * sysdeps/s390/memcopy.h: New file.
9812
9813 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9814
9815 * sysdeps/s390/s390-32/bcopy.S: Remove.
9816 * sysdeps/s390/s390-64/bcopy.S: Likewise.
9817
9818 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9819
9820 * sysdeps/s390/ifunc-memcpy.h: New File.
9821 * sysdeps/s390/memcpy.S: Move to ...
9822 * sysdeps/s390/memcpy-z900.S ... here.
9823 Move implementations from memcpy-s390x.s to here.
9824 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
9825 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9826 Remove memcpy/mempcpy variants.
9827 * sysdeps/s390/Makefile (sysdep_routines):
9828 Add memcpy/mempcpy variants.
9829 * sysdeps/s390/multiarch/ifunc-impl-list.c
9830 (__libc_ifunc_impl_list): Adjust ifunc variants for
9831 memcpy and mempcpy.
9832 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
9833 to ...
9834 * sysdeps/s390/memcpy.c: ... here.
9835 Adjust ifunc variants for memcpy.
9836 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
9837 * sysdeps/s390/mempcpy.c: ... here.
9838 Adjust ifunc variants for mempcpy.
9839 * sysdeps/s390/mempcpy.S: Delete file.
9840
9841 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9842
9843 * sysdeps/s390/s390-64/memcpy.S: Move to ...
9844 * sysdeps/s390/memcpy.S: ... here.
9845 Adjust to be usable for 31/64bit.
9846 * sysdeps/s390/s390-32/memcpy.S: Delete File.
9847 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
9848 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
9849 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9850 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
9851 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
9852 Adjust to be usable for 31/64bit.
9853 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
9854 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
9855 * sysdeps/s390/multiarch/memcpy.c: ... here.
9856 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
9857
9858 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9859
9860 * sysdeps/s390/ifunc-memcmp.h: New File.
9861 * sysdeps/s390/memcmp.S: Move to ...
9862 * sysdeps/s390/memcmp-z900.S ... here.
9863 Move implementations from memcmp-s390x.s to here.
9864 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
9865 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9866 Remove memcmp variants.
9867 * sysdeps/s390/Makefile (sysdep_routines):
9868 Add memcmp variants.
9869 * sysdeps/s390/multiarch/ifunc-impl-list.c
9870 (__libc_ifunc_impl_list): Adjust ifunc variants for
9871 memcmp.
9872 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
9873 to ...
9874 * sysdeps/s390/memcmp.c: ... here.
9875 Adjust ifunc variants for memcmp.
9876
9877 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9878
9879 * sysdeps/s390/s390-64/memcmp.S: Move to ...
9880 * sysdeps/s390/memcmp.S: ... here.
9881 Adjust to be usable for 31/64bit.
9882 * sysdeps/s390/s390-32/memcmp.S: Delete File.
9883 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
9884 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9885 Remove memcmp.
9886 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9887 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
9888 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
9889 Adjust to be usable for 31/64bit.
9890 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
9891 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
9892 * sysdeps/s390/multiarch/memcmp.c: ... here.
9893 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
9894
9895 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9896
9897 * sysdeps/s390/s390-32/bzero.S: Delete file.
9898 * sysdeps/s390/s390-64/bzero.S: Likewise.
9899 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
9900 * sysdeps/s390/bzero.c: New file.
9901 * sysdeps/s390/memset-z900.S: Add bzero entry points.
9902 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
9903 * sysdeps/s390/multiarch/ifunc-impl-list.c
9904 (__libc_ifunc_impl_list): Add bzero ifunc variants.
9905
9906 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9907
9908 * sysdeps/s390/ifunc-memset.h: New File.
9909 * sysdeps/s390/memset.S: Move to ...
9910 * sysdeps/s390/memset-z900.S ... here.
9911 Move implementations from memset-s390x.s to here.
9912 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
9913 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9914 Remove memset variants.
9915 * sysdeps/s390/Makefile (sysdep_routines):
9916 Add memset variants.
9917 * sysdeps/s390/multiarch/ifunc-impl-list.c
9918 (__libc_ifunc_impl_list): Adjust ifunc variants for
9919 memset.
9920 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9921 to ...
9922 * sysdeps/s390/memset.c: ... here.
9923 Adjust ifunc variants for memset.
9924
9925 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9926
9927 * sysdeps/s390/s390-64/memset.S: Move to ...
9928 * sysdeps/s390/memset.S: ... here.
9929 Adjust to be usable for 31/64bit.
9930 * sysdeps/s390/s390-32/memset.S: Delete File.
9931 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9932 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9933 Remove memset.
9934 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9935 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9936 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9937 Adjust to be usable for 31/64bit.
9938 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9939 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9940 * sysdeps/s390/multiarch/memset.c: ... here.
9941 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9942
9943 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9944
9945 * sysdeps/s390/multiarch/ifunc-resolve.h
9946 (s390_libc_ifunc_init, s390_libc_ifunc,
9947 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9948
9949 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9950
9951 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9952 * sysdeps/s390/configure.ac: Add check for z10 support.
9953 * sysdeps/s390/configure: Regenerated.
9954
9955 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
9956
9957 * sysdeps/i386/atomic-machine.h: Merged with ...
9958 * sysdeps/x86_64/atomic-machine.h: To ...
9959 * sysdeps/x86/atomic-machine.h: This. New file.
9960
9961 2018-12-18 Florian Weimer <fweimer@redhat.com>
9962
9963 Rewrite locale/gen-translit.pl in Python.
9964 * locale/Makefile (generated): Add C-translit.h.
9965 (before-compile): Add $(objpfx)C-translit.h.
9966 (C-translit.h): Move to $(objpfx). Create target directory.
9967 Build using Python script.
9968 * locale/gen-translit.py: New file.
9969 * locale/gen-translit.pl: Remove file.
9970 * locale/C-translit.h.in: Change comment character to '#' for
9971 easier parsing without a C preprocessor.
9972 * locale/C-translit.h: Remove generated file.
9973 * manual/install.texi (Tools for Compilation): Do not mention
9974 C-translit.h.
9975 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9976 Remove locale/C-translit.h.
9977 * scripts/update-copyrights: Likewise.
9978 * INSTALL: Regenerate.
9979
9980 2018-12-18 Florian Weimer <fweimer@redhat.com>
9981
9982 [BZ #23995]
9983 * localedata/locales/bi_VU: Remove executable bit from file.
9984
9985 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
9986
9987 * include/time.h
9988 (__localtime64): Add.
9989 * manual/maint.texi: Document Y2038 symbol handling.
9990 * time/localtime.c
9991 (__localtime64): Add.
9992 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
9993
9994 2018-12-17 Joseph Myers <joseph@codesourcery.com>
9995
9996 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
9997 Do not clobber r12.
9998
9999 * scripts/glibcextract.py (compare_macro_consts): Take parameters
10000 to allow extra macros from first or second sources.
10001 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
10002 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10003 (tests-special): Add $(objpfx)tst-mman-consts.out.
10004 ($(objpfx)tst-mman-consts.out): New makefile target.
10005
10006 2018-12-17 Mao Han <han_mao@c-sky.com>
10007
10008 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
10009 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
10010 without stat64 system call support.
10011 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
10012 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
10013 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
10014 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
10015 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
10016 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
10017 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
10018 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
10019 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
10020 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
10021 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
10022
10023 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
10024
10025 regex: fix storage-exhaustion error
10026 [BZ #18040]
10027 * posix/regexec.c (get_subexp):
10028 Do not continue if storage is exhausted.
10029
10030 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
10031
10032 regex: fix heap-use-after-free error
10033 [BZ #18040]
10034 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
10035 https://debbugs.gnu.org/32592
10036 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
10037 call extend_buffers which reallocates the re_string_t internal buffer.
10038 Local variable 'buf' was not updated in such case, resulting in
10039 use-after-free.
10040 * posix/regexec.c (get_subexp): Update 'buf' after call to
10041 get_subexp_sub.
10042
10043 2018-12-15 Florian Weimer <fweimer@redhat.com>
10044
10045 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
10046 (minimum_stride_size): Use it.
10047 (support_blob_repeat_allocate): Likewise.
10048
10049 2018-12-14 Joseph Myers <joseph@codesourcery.com>
10050
10051 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
10052 definition.
10053 (acosh): Likewise.
10054 (atanh): Likewise.
10055
10056 2018-12-14 Florian Weimer <fweimer@redhat.com>
10057
10058 * manual/process.texi (Process Creation Concepts): Remove
10059 documentation of process (ID) lifetime. List more process
10060 creation functions. Reference Process Identification section.
10061 (Process Identification): Add information about process ID
10062 lifetime. Describe Linux thread/task IDs.
10063 * manual/signal.texi (Signaling Another Process): Mention that the
10064 signal is always sent to the process.
10065
10066 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10067
10068 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
10069 and tst-ldbl-efgcvt.
10070 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
10071 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
10072 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
10073 (fcvt_tests, output_error, output_r_error, do_test): Use the
10074 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
10075 select the type of floating-point variables and arguments; to
10076 produce extra tests for double and conversion specifiers for
10077 printf; and to set the names of called functions.
10078 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
10079 in tst-efgcvt-template.c.
10080 * misc/tst-ldbl-efgcvt.c: Likewise.
10081
10082 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
10083
10084 * nss/Makefile (tst-nss-test3.out): New rule.
10085
10086 2018-12-13 Joseph Myers <joseph@codesourcery.com>
10087
10088 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
10089 clobber sp.
10090
10091 2018-12-13 fanjinke <fanjinke@hygon.cn>
10092
10093 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
10094 "HygonGenuine".
10095
10096 2018-12-13 Andreas Schwab <schwab@suse.de>
10097
10098 [BZ #23861]
10099 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
10100 (__pthread_rwlock_rdlock_full): Update expected value for
10101 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
10102 * nptl/tst-rwlock-pwn.c: New file.
10103 * nptl/Makefile (tests): Add tst-rwlock-pwn.
10104
10105 2018-12-12 Joseph Myers <joseph@codesourcery.com>
10106
10107 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
10108 definition.
10109
10110 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10111
10112 * benchtests/scripts/compare_bench.py (do_compare): write to
10113 stderr in casestat is not present.
10114 * benchtests/scripts/compare_bench.py (plot_graphs): write to
10115 stderr in case timings field is not present. Also string showing
10116 the output filename goes into the stderr.
10117
10118 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10119
10120 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
10121 and ZeroDivisorError exceptions.
10122 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
10123 argument to loop through user provided statistics.
10124 * benchtests/scripts/compare_bench.py (main): Include the --stats
10125 argument.
10126
10127 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10128
10129 * benchtests/scripts/compare_bench.py (compare_runs): Continue
10130 instead of return.
10131
10132 2018-12-12 Florian Weimer <fweimer@redhat.com>
10133
10134 * sysdeps/posix/timespec_get.c: Add missing “any later version”
10135 clause to copyright header.
10136
10137 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10138
10139 [BZ #23614]
10140 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
10141 registers saved in the stack frame.
10142 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
10143 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
10144
10145 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10146
10147 * include/bits/monetary-ldbl.h: New file.
10148 * include/bits/printf-ldbl.h: Likewise.
10149 * include/bits/stdio-ldbl.h: Likewise.
10150 * include/bits/stdlib-ldbl.h: Likewise.
10151 * include/bits/syslog-ldbl.h: Likewise.
10152 * include/bits/wchar-ldbl.h: Likewise.
10153
10154 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10155
10156 * libio/libio.h: Remove redirection for _IO_vfprintf.
10157
10158 2018-12-11 Andreas Schwab <schwab@suse.de>
10159
10160 * Makerules: Remove all references to abilist-pattern.
10161 (update-all-abi): Simplify find expression.
10162
10163 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
10164
10165 [BZ #23961]
10166 * math/auto-libm-test-in: Add new test case.
10167 * math/auto-libm-test-out-pow: Regenerated.
10168 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
10169
10170 2018-12-10 DJ Delorie <dj@redhat.com>
10171
10172 [BZ #23948]
10173 * support/test-container.c: Move postclean step to before we
10174 change namespaces.
10175
10176 2018-12-10 Joseph Myers <joseph@codesourcery.com>
10177
10178 * scripts/gen-as-const.py (main): Handle --python option.
10179 * scripts/gen-py-const.awk: Remove.
10180 * Makerules (py-const-script): Use gen-as-const.py.
10181 ($(py-const)): Likewise.
10182 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
10183 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
10184 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
10185 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
10186 ~PTHREAD_MUTEX_NO_ELISION_NP.
10187 * manual/README.pretty-printers: Update reference to
10188 gen-py-const.awk.
10189
10190 * scripts/glibcextract.py: New file.
10191 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
10192 or tempfile. Import glibcexctract.
10193 (compute_c_consts): Remove. Moved to glibcextract.py.
10194 (gen_test): Update reference to compute_c_consts.
10195 (main): Likewise.
10196 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
10197 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
10198 * sysdeps/unix/sysv/linux/Makefile
10199 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
10200 Redirect stderr as well as stdout.
10201
10202 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
10203
10204 [BZ #19767]
10205 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
10206 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
10207 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
10208 ALWAYS_USE_VSYSCALL.
10209 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
10210 ALWAYS_USE_VSYSCALL.
10211 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
10212 ALWAYS_USE_VSYSCALL.
10213
10214 2018-12-10 Florian Weimer <fweimer@redhat.com>
10215
10216 [BZ #23972]
10217 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
10218 offset instead of count for clarity. Fix typo in comment.
10219 (__old_getdents64): Keep track of previous offset. Use it to call
10220 handle_overflow.
10221 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
10222 that d_off is never zero.
10223
10224 2018-12-10 Andreas Schwab <schwab@suse.de>
10225
10226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
10227 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
10228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
10229 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
10230 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
10231
10232 2018-12-10 Joseph Myers <joseph@codesourcery.com>
10233
10234 * timezone/private.h: Update from tzcode 2018g.
10235 * timezone/tzfile.h: Likewise.
10236 * timezone/tzselect.ksh: Likewise.
10237 * timezone/zdump.c: Likewise.
10238 * timezone/zic.c: Likewise.
10239
10240 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
10241
10242 [BZ #23490]
10243 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
10244 (do_test): Adjust buffer size and fix format.
10245
10246 2018-12-07 DJ Delorie <dj@redhat.com>
10247
10248 [BZ #23907]
10249 * malloc/tst-tcfree3.c: New.
10250 * malloc/Makefile: Add it.
10251
10252 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
10253
10254 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
10255
10256 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10257
10258 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
10259 used as a mask for the mode argument of __vfscanf_internal and
10260 __vfwscanf_internal.
10261 * stdio-common/vfscanf-internal.c
10262 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
10263 (__strtof128_internal): Define to __wcstof128_internal.
10264 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
10265 __strtof128_internal or __wcstof128_internal when the format of
10266 long double is the same as _Float128.
10267
10268 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
10269
10270 * include/unistd.h (__confstr): Add prototype and hidden prototype.
10271 * posix/confstr.c (confstr): Rename to __confstr.
10272 (__confstr): Add hidden def.
10273 (confstr): Add weak alias for __confstr.
10274 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
10275 confstr.
10276
10277 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
10278
10279 * NEWS: Mention getcpu.
10280 * include/sched.h (__getcpu): New libc_hidden_proto.
10281 * manual/resource.texi: Document getcpu.
10282 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
10283 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
10284 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
10285 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10286 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10287 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10288 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10289 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10290 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10291 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10292 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10293 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10294 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
10295 Likewise.
10296 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10297 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10298 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10300 Likewise.
10301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10302 Likewise.
10303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10304 Likewise.
10305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
10306 Likewise.
10307 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10308 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10309 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10310 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10311 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10312 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10313 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10314 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10315 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
10316 * sysdeps/unix/sysv/linux/getcpu.c: New file.
10317 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
10318 Also check getcpu.
10319
10320 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
10321
10322 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
10323 functions.
10324 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
10325
10326 2018-12-07 Florian Weimer <fweimer@redhat.com>
10327
10328 [BZ #17405]
10329 * posix/Makefile (routines): Add spawn_faction_addfchdir.
10330 * posix/Versions (GLIBC_2.29): Export
10331 posix_spawn_file_actions_addfchdir_np.
10332 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
10333 * posix/spawn_faction_destroy.c
10334 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
10335 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
10336 and the field action.fchdir_action.
10337 * posix/tst-spawn-chdir.c (add_chdir): New function.
10338 (do_test): Add do_fchdir loop. Call add_chdir.
10339 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
10340 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
10341 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
10342 posix_spawn_file_actions_addfchdir_np.
10343 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
10344 Likewise.
10345 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
10346 Likewise.
10347 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
10348 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
10349 Likewise.
10350 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
10351 Likewise.
10352 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
10353 Likewise.
10354 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
10355 Likewise.
10356 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
10357 Likewise.
10358 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
10359 Likewise.
10360 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
10361 (GLIBC_2.29): Likewise.
10362 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
10363 (GLIBC_2.29): Likewise.
10364 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
10365 (GLIBC_2.29): Likewise.
10366 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
10367 (GLIBC_2.29): Likewise.
10368 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
10369 Likewise.
10370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
10371 (GLIBC_2.29): Likewise.
10372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
10373 (GLIBC_2.29): Likewise.
10374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
10375 (GLIBC_2.29): Likewise.
10376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
10377 (GLIBC_2.29): Likewise.
10378 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
10379 Likewise.
10380 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
10381 Likewise.
10382 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
10383 Likewise.
10384 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
10385 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
10386 Likewise.
10387 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
10388 Likewise.
10389 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
10390 Likewise.
10391 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
10392 Likewise.
10393
10394 2018-12-06 Joseph Myers <joseph@codesourcery.com>
10395
10396 * manual/texinfo.tex: Update to version 2018-09-21.20 with
10397 trailing whitespace removed.
10398 * scripts/config.guess: Update to version 2018-11-28.
10399 * scripts/config.sub: Update to version 2018-11-28.
10400 * scripts/install-sh: Update to version 2018-03-11.20.
10401 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
10402 * scripts/move-if-change: Update to version 2018-03-07 03:47.
10403
10404 2018-12-07 Florian Weimer <fweimer@redhat.com>
10405
10406 [BZ #23927]
10407 CVE-2018-19591
10408 * inet/tst-if_index-long.c: New file.
10409 * inet/Makefile (tests): Add tst-if_index-long.
10410
10411 2018-12-07 Florian Weimer <fweimer@redhat.com>
10412
10413 * support/check.h (support_record_failure_is_failed): Declare.
10414 * support/descriptors.h: New file.
10415 * support/support_descriptors.c: Likewise.
10416 * support/tst-support_descriptors.c: Likewise.
10417 * support/support_record_failure.c
10418 (support_record_failure_is_failed): New function.
10419 * support/Makefile (libsupport-routines): Add support_descriptors.
10420 (tests): Add tst-support_descriptors.
10421
10422 2018-12-05 Zack Weinberg <zackw@panix.com>
10423 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10424
10425 * stdio-common/vfprintf-internal.c
10426 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
10427 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
10428 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
10429 and __no_long_double.
10430 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
10431 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
10432 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
10433 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
10434 and __nldbl_*syslog* functions.
10435 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
10436 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
10437 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
10438 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
10439 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
10440 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
10441 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
10442 (__nldbl_vwprintf, __nldbl_wprintf):
10443 Directly call the appropriate __v*printf_internal routine, passing
10444 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
10445 variable names.
10446 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
10447 (__nldbl___printf_chk, __nldbl___snprintf_chk)
10448 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
10449 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
10450 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
10451 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
10452 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
10453 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
10454 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
10455 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
10456 Likewise, and also pass PRINTF_FORTIFY when appropriate.
10457 (__nldbl_syslog, __nldbl_vsyslog):
10458 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
10459 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
10460 appropriate.
10461 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
10462 appropriate.
10463
10464 2018-12-05 Zack Weinberg <zackw@panix.com>
10465 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10466
10467 [BZ #11319]
10468 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
10469 Moved here from debug/vsprintf_chk.c.
10470 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
10471 and completion logic for the strfile to match exactly what
10472 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
10473 _IO_str_init_static_internal instead of maxlen-1.
10474 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
10475 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
10476 __vsprintf_internal.
10477
10478 * debug/vsprintf_chk.c (__vsprintf_chk)
10479 * debug/sprintf_chk.c (__sprintf_chk):
10480 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
10481 'flags' argument is positive, and slen as maxlen. No need to lock
10482 the FILE and/or construct a temporary FILE. Minimize and normalize
10483 header inclusions and variable names. Do not libc_hidden_def anything.
10484
10485 * debug/asprintf_chk.c (__asprintf_chk)
10486 * debug/dprintf_chk.c (__dprintf_chk)
10487 * debug/fprintf_chk.c (__fprintf_chk)
10488 * debug/fwprintf_chk.c (__fwprintf_chk)
10489 * debug/printf_chk.c (__printf_chk)
10490 * debug/snprintf_chk.c (__snprintf_chk)
10491 * debug/swprintf_chk.c (__swprintf_chk)
10492 * debug/vasprintf_chk.c (__vasprintf_chk)
10493 * debug/vdprintf_chk.c (__vdprintf_chk)
10494 * debug/vfprintf_chk.c (__vfprintf_chk)
10495 * debug/vfwprintf_chk.c (__vfwprintf_chk)
10496 * debug/vprintf_chk.c (__vprintf_chk)
10497 * debug/vsnprintf_chk.c (__vsnprintf_chk)
10498 * debug/vswprintf_chk.c (__vswprintf_chk)
10499 * debug/vwprintf_chk.c (__vwprintf_chk)
10500 * debug/wprintf_chk.c (__wprintf_chk):
10501 Directly call the corresponding vxxprintf_internal function, passing
10502 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
10503 the FILE and/or construct a temporary FILE. Minimize and normalize
10504 header inclusions and variable names. Do not libc_hidden_def anything.
10505
10506 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
10507 __obstack_vprintf_internal.
10508 (__obstack_vprintf_chk): Convert into a wrapper that calls
10509 __obstack_vprintf_internal (these two functions already had the
10510 same code) and move to new file...
10511 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
10512 file.
10513 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
10514 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
10515 * debug/Makefile (routines): Add vobprintf_chk.
10516
10517 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10518 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
10519 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
10520 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
10521 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
10522 (__nldbl___obstack_vfprintf_chk):
10523 Directly call the corresponding vxxprintf_internal function,
10524 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
10525 duplicate comparison of slen with 0 or maxlen from the corresponding
10526 non-__nldbl function.
10527
10528 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
10529 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
10530 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
10531 Remove libc_hidden_proto.
10532
10533 * stdio-common/vfprintf-internal.c
10534 (__vfprintf_internal, __vfwprintf_internal):
10535 Do not check _IO_FLAGS2_FORTIFY.
10536 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
10537 * libio/libioP.h: Update prototype of __vsprintf_internal and add
10538 a comment explaining why it has the maxlen argument.
10539 (_IO_acquire_lock_clear_flags2_fct): Remove.
10540 (_IO_acquire_lock_clear_flags2): Remove.
10541 (_IO_release_lock): Remove conditional statement which will
10542 now never execute.
10543 (_IO_acquire_lock): Remove variable which is now unused.
10544 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
10545 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
10546
10547 * stdio-common/Makefile (tests): Add tst-bz11319 and
10548 tst-bz11319-fortify2.
10549 (CFLAGS-tst-bz11319-fortify2.c): New macro.
10550 * stdio-common/tst-bz11319-fortify2.c: New file.
10551 * stdio-common/tst-bz11319.c: Likewise.
10552
10553 2018-12-05 Zack Weinberg <zackw@panix.com>
10554 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10555
10556 * misc/syslog.c: Include libioP.h, not iolibio.h.
10557 (__vsyslog_internal): New function with the former body of
10558 __vsyslog_chk; takes mode_flags argument same as
10559 __v*printf_internal. Call __vfprintf_internal directly.
10560
10561 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
10562 Remove libc_hidden_def.
10563 (__syslog, __syslog_chk): Use __vsyslog_internal.
10564 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
10565
10566 * include/sys/syslog.h: Add multiple inclusion guard.
10567 Add prototype for __vsyslog_internal.
10568 Remove declaration and libc_hidden_proto for __vsyslog_chk.
10569
10570 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
10571 Use __vsyslog_internal.
10572
10573 2018-12-05 Zack Weinberg <zackw@panix.com>
10574 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10575
10576 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
10577 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
10578 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
10579 New functions.
10580 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
10581 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
10582
10583 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
10584 Include wctype.h here if COMPILE_WPRINTF is defined.
10585 Define __vfprintf_internal or __vfwprintf_internal, depending
10586 on COMPILE_WPRINTF.
10587 Temporarily, on entry to this function, update mode_flags
10588 according to the environmental settings corresponding to
10589 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
10590 Throughout, check mode_flags instead of __ldbl_is_dbl and
10591 _IO_FLAGS2_FORTIFY on the destination FILE.
10592 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
10593 Include vfprintf-internal.c. Don't include wctype.h.
10594 * stdio-common/vfprintf.c: New file. Just define __vfprintf
10595 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
10596 and vfprintf.
10597 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
10598 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
10599 and vfwprintf.
10600 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
10601
10602 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
10603 and add mode_flags argument; use __vfprintf_internal.
10604 (__vdprintf): New function. Alias vdprintf to this.
10605 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
10606 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
10607 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
10608 (__obstack_printf): Use __obstack_printf_internal.
10609 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
10610 public aliases __vsnprintf and vsnprintf.
10611 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
10612 called internally.
10613 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
10614 public aliases _IO_vsprintf and vsprintf.
10615 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
10616 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
10617 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
10618 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
10619 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
10620
10621 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
10622 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
10623 * stdio-common/fprintf.c, stdio-common/fxprintf.c
10624 * stdio-common/printf.c: Use __vfprintf_internal.
10625
10626 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
10627 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
10628 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
10629
10630 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
10631 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
10632 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
10633 __vfwprintf_internal.
10634
10635 * libio/libio.h: Remove libc_hidden_proto and declaration for
10636 _IO_vfprintf.
10637 Remove declaration of _IO_vfwprintf.
10638 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
10639 _IO_vsprintf.
10640 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
10641 _IO_obstack_printf.
10642 * include/stdio.h: Add prototype for __vasprintf.
10643 (__vsnprintf): Remove declaration, because there are no more
10644 internal calls.
10645 * include/wchar.h (__vfwprintf, __vswprintf): Remove
10646 declaration, because there are no more internal calls.
10647
10648 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
10649 __vsnprintf_internal, instead of _IO_vsnprintf.
10650 * argp/argp-help.c (__argp_error, __argp_failure): Use
10651 __vasprintf_internal, instead of _IO_vasprintf.
10652 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
10653 redefine, because there are no more internal calls.
10654
10655 2018-12-05 Zack Weinberg <zackw@panix.com>
10656 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10657
10658 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
10659 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
10660 Include libio/strfile.h instead of libioP.h.
10661 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
10662 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
10663 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
10664 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
10665 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
10666 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
10667 necessary. Do not set __no_long_double. Normalize variable names.
10668 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
10669 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
10670 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
10671 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
10672 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
10673 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
10674 Call __vfscanf_internal / __vfwscanf_internal directly, passing
10675 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
10676 Do not set __no_long_double. Normalize variable names.
10677
10678 2018-12-05 Zack Weinberg <zackw@panix.com>
10679 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10680
10681 * stdio-common/isoc99_scanf.c
10682 * stdio-common/isoc99_fscanf.c
10683 * stdio-common/isoc99_sscanf.c
10684 * stdio-common/isoc99_vscanf.c
10685 * stdio-common/isoc99_vfscanf.c
10686 * stdio-common/isoc99_vsscanf.c
10687 * wcsmbs/isoc99_wscanf.c
10688 * wcsmbs/isoc99_fwscanf.c
10689 * wcsmbs/isoc99_swscanf.c
10690 * wcsmbs/isoc99_vwscanf.c
10691 * wcsmbs/isoc99_vfwscanf.c
10692 * wcsmbs/isoc99_vswscanf.c:
10693 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
10694 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
10695 No need to lock and unlock the FILE passed to that function.
10696
10697 * stdio-common/vfscanf-internal.c
10698 (__vfscanf_internal, __vfwscanf_internal):
10699 Don't look at _IO_FLAGS2_SCANF_STD.
10700 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
10701 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
10702 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
10703
10704 2018-12-05 Zack Weinberg <zackw@panix.com>
10705 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10706
10707 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
10708 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
10709 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
10710 * libio/strfile.h: Add multiple inclusion guard.
10711 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
10712
10713 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
10714 consistency with the other version of this file.
10715 (ldbl_compat_symbol): New macro.
10716 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
10717 New macro.
10718
10719 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
10720 Define __vfscanf_internal or __vfwscanf_internal, depending on
10721 COMPILE_WSCANF; don't define any other public symbols.
10722 Remove errval and code to set errp.
10723 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
10724 as the mode_flags argument.
10725 (encode_error, conv_error, input_error): Don't set errval.
10726 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
10727 Include vfscanf-internal.c.
10728 * stdio-common/vfscanf.c: New file defining the public entry
10729 point vfscanf, which calls __vfscanf_internal.
10730 * stdio-common/vfwscanf.c: New file defining the public entry
10731 point vfwscanf, which calls __vfwscanf_internal.
10732
10733 * stdio-common/iovfscanf.c: New file.
10734 * stdio-common/iovfwscanf.c: Likewise.
10735
10736 * stdio-common/Makefile (routines): Add vfscanf-internal,
10737 vfwscanf-internal, iovfscanf, iovfwscanf.
10738 * stdio-common/Versions: Mention GLIBC_2.29, so that
10739 it can be used in SHLIB_COMPAT expressions.
10740 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
10741 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
10742 Call __vfscanf_internal, instead of _IO_vfscanf.
10743 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
10744 _IO_vfscanf.
10745 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
10746 _IO_vfwscanf.
10747
10748 * libio/iovsscanf.c: Clean up includes, when possible. Use
10749 _IO_strfile_read or _IO_strfile_readw, when needed. Call
10750 __vfscanf_internal or __vfwscanf_internal directly.
10751 * libio/iovswscanf.c: Likewise.
10752 * libio/swscanf.c: Likewise.
10753 * libio/vscanf.c: Likewise.
10754 * libio/vwscanf.c: Likewise.
10755 * libio/wscanf.c: Likewise.
10756 * stdio-common/isoc99_fscanf.c: Likewise.
10757 * stdio-common/isoc99_scanf.c: Likewise.
10758 * stdio-common/isoc99_sscanf.c: Likewise.
10759 * stdio-common/isoc99_vfscanf.c: Likewise.
10760 * stdio-common/isoc99_vscanf.c: Likewise.
10761 * stdio-common/isoc99_vsscanf.c: Likewise.
10762 * stdio-common/scanf.c: Likewise.
10763 * stdio-common/sscanf.c: Likewise.
10764 * wcsmbs/isoc99_fwscanf.c: Likewise.
10765 * wcsmbs/isoc99_swscanf.c: Likewise.
10766 * wcsmbs/isoc99_vfwscanf.c: Likewise.
10767 * wcsmbs/isoc99_vswscanf.c: Likewise.
10768 * wcsmbs/isoc99_vwscanf.c: Likewise.
10769 * wcsmbs/isoc99_wscanf.c: Likewise.
10770
10771 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
10772
10773 * include/time.h
10774 (__tz_compute): Replace time_t with __time64_t.
10775 (__tz_convert): Replace time_t* with __time64_t.
10776 (__offtime): Replace time_t* with __time64_t.
10777 * time/gmtime.c
10778 (__gmtime_r): Adjust call to __tz_convert.
10779 (gmtime): Likewise.
10780 * time/localtime.c
10781 (__localtime_r): Likewise.
10782 (localtime): Likewise.
10783 * time/offtime.c: Replace time_t with __time64_t.
10784 * time/tzset.c: Likewise.
10785
10786 2018-12-04 Joseph Myers <joseph@codesourcery.com>
10787
10788 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
10789 dynamic linker unless [$(run-built-tests) = yes].
10790
10791 2018-12-03 DJ Delorie <dj@delorie.com>
10792
10793 * support/test-container.c (check_for_unshare_hints): New.
10794 (main): Call it if unshare fails. Add support for "su" scriptlet
10795 command.
10796
10797 2018-12-03 Joseph Myers <joseph@codesourcery.com>
10798
10799 * scripts/gen-as-const.py (compute_c_consts): Take an argument
10800 'START' to indicate that start text should be output.
10801 (gen_test): Likewise.
10802 (main): Generate 'START' for first symbol or '--' line, or at end
10803 of input if not previously generated.
10804
10805 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
10806
10807 [BZ #19767]
10808 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
10809 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
10810 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
10811 ALWAYS_USE_VSYSCALL.
10812
10813 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10814
10815 [BZ #23913]
10816 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
10817 new_argv by one.
10818
10819 2018-12-03 Carlos O'Donell <carlos@redhat.com>
10820
10821 [BZ #23923]
10822 * locale/programs/localedef.c: Declare boolean hard_links default true.
10823 (options): Add --no-hard-links option.
10824 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
10825 * locale/programs/localedef.h: Declare prototype for hard_links.
10826 * locale/programs/locfile.c (write_locale_data): Don't use hard
10827 links if hard_links is false.
10828
10829 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
10830
10831 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
10832 cpu_features_basic.
10833 (__cache_sysconf): Likewise.
10834 (init_cacheinfo): Likewise.
10835 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
10836 populate COMMON_CPUID_INDEX_80000007 and
10837 COMMON_CPUID_INDEX_80000008.
10838 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
10839 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
10840 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
10841 (init_cpu_features): Use _Static_assert on
10842 index_arch_Fast_Unaligned_Load.
10843 __get_cpuid_registers and __get_arch_feature. Updated for
10844 cpu_features_basic. Set stepping in cpu_features.
10845 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
10846 (FEATURE_INDEX_2): New.
10847 (FEATURE_INDEX_MAX): Changed to enum.
10848 (COMMON_CPUID_INDEX_D_ECX_1): New.
10849 (COMMON_CPUID_INDEX_80000007): Likewise.
10850 (COMMON_CPUID_INDEX_80000008): Likewise.
10851 (cpuid_registers): Likewise.
10852 (cpu_features_basic): Likewise.
10853 (CPU_FEATURE_USABLE): Likewise.
10854 (bit_arch_XXX_Usable): Likewise.
10855 (cpu_features): Use cpuid_registers and cpu_features_basic.
10856 (bit_arch_XXX): Reweritten.
10857 (bit_cpu_XXX): Likewise.
10858 (index_cpu_XXX): Likewise.
10859 (reg_XXX): Likewise.
10860 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
10861 <support/check.h>.
10862 (CHECK_CPU_FEATURE): New.
10863 (CHECK_CPU_FEATURE_USABLE): Likewise.
10864 (cpu_kinds): Likewise.
10865 (do_test): Print vendor, family, model and stepping. Check
10866 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
10867 (TEST_FUNCTION): Removed.
10868 Include <support/test-driver.c> instead of
10869 "../../test-skeleton.c".
10870 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
10871 Check POPCNT instead of POPCOUNT.
10872 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
10873
10874 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10875
10876 * scripts/gen-as-const.py (main): Avoid emitting empty line when
10877 there is no element in `consts'.
10878
10879 2018-12-01 Florian Weimer <fweimer@redhat.com>
10880
10881 * support/support_capture_subprocess.c
10882 (support_capture_subprocess): Check that pipe descriptors have
10883 expected values. Close original pipe descriptors in subprocess.
10884
10885 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10886
10887 [BZ #23032]
10888 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
10889 attr with __pthread_default_barrierattr.
10890 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
10891 attr with __pthread_default_condattr.
10892 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
10893 attr with __pthread_default_mutexattr.
10894 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
10895 attr with __pthread_default_rwlockattr.
10896
10897 2018-12-01 Kemi Wang <kemi.wang@intel.com>
10898
10899 * manual/tunables.texi (POSIX Thread Tunables): New node.
10900 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
10901 * nptl/nptl-init.c: Include pthread_mutex_conf.h
10902 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
10903 __pthread_tunables_init.
10904 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
10905 (max_adaptive_count): Define.
10906 * nptl/pthread_mutex_conf.c: New file.
10907 * nptl/pthread_mutex_conf.h: New file.
10908 * sysdeps/generic/adaptive_spin_count.h: New file.
10909 * sysdeps/nptl/dl-tunables.list: New file.
10910 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
10911 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
10912 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
10913 Likewise.
10914
10915 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
10916
10917 [BZ #20544]
10918 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10919 * stdlib/on_exit.c (__on_exit): Likewise.
10920 * stdlib/Makefile (tests): Add tst-bz20544.
10921 * stdlib/tst-bz20544.c: New test.
10922
10923 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
10924
10925 [BZ #19767]
10926 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10927 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10928 New.
10929
10930 2018-11-30 Florian Weimer <fweimer@redhat.com>
10931
10932 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10933 Extend error logging.
10934 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10935 symbol.
10936
10937 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10938
10939 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10940 __sigismember instead of sigismember.
10941 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10942 cancel_handler): New definitions.
10943 (do_system): Use posix_spawn instead of fork and execl and remove
10944 reentracy code.
10945 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10946 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10947 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10948 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10949 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10950 * sysdeps/unix/sysv/linux/system.c: Likewise.
10951
10952 [BZ #22834]
10953 [BZ #17490]
10954 * NEWS: Add new semantic for atfork with popen and system.
10955 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10956 fork and execl.
10957
10958 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10959
10960 [BZ #23690]
10961 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10962 modification order when accessing reloc_result->addr.
10963 * include/link.h (reloc_result): Add field init.
10964 * nptl/Makefile (tests): Add tst-audit-threads.
10965 (modules-names): Add tst-audit-threads-mod1 and
10966 tst-audit-threads-mod2.
10967 Add rules to build tst-audit-threads.
10968 * nptl/tst-audit-threads-mod1.c: New file.
10969 * nptl/tst-audit-threads-mod2.c: Likewise.
10970 * nptl/tst-audit-threads.c: Likewise.
10971 * nptl/tst-audit-threads.h: Likewise.
10972
10973 2018-11-30 Joseph Myers <joseph@codesourcery.com>
10974
10975 * scripts/gen-as-const.py: New file.
10976 * scripts/gen-as-const.awk: Remove.
10977 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10978 gen-as-const.py.
10979 ($(objpfx)test-as-const-%.c): Likewise.
10980
10981 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10982
10983 * elf/dl-exception.c: Include <_itoa.h>.
10984
10985 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10986
10987 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10988 returned by __f_setlk.
10989
10990 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10991 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10992
10993 * elf/Makefile (tests-internal): Add tst-create_format1.
10994 * elf/dl-exception.c (_dl_exception_create_format): Support
10995 %x, %lx and %zx.
10996 * elf/tst-create_format1.c: New file.
10997
10998 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
10999
11000 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
11001 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
11002 gnulib.)
11003 * argp/argp-help.c (__argp_failure): Likewise.
11004
11005 2018-11-29 Mao Han <han_mao@c-sky.com>
11006
11007 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
11008 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
11009 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
11010 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
11011 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
11012 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
11013 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
11014 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
11015 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
11016 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
11017 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
11018 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
11019 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
11020 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
11021 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
11022 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
11023 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
11024 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
11025 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
11026 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
11027 (R_CKCORE_TLS_TPOFF32): New defines.
11028
11029 2018-11-29 Florian Weimer <fweimer@redhat.com>
11030
11031 * posix/Makefile (before-compile): Remove testcases.h and
11032 ptestcases.h.
11033 (generated): Add testcases.h and ptestcases.h.
11034 (testcases.h, ptestcases.h): Move to $(objpfx).
11035 (runtests.o): Add dependency on testcases.h.
11036 (runptests.o): Add dependency on ptestcases.h.
11037 * posix/testcases.h, posix/ptestcases.h: Remove files.
11038 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
11039 not touch posix/testcases.h and posix/ptestcases.h.
11040
11041 2018-11-28 Florian Weimer <fweimer@redhat.com>
11042
11043 support: Add signal support to support_capture_subprocess_check.
11044 * support/capture_subprocess.h (support_capture_subprocess_check):
11045 Adjust comment and rename parameter.
11046 * support/support_capture_subprocess_check.c
11047 (print_actual_status): New function.
11048 (support_capture_subprocess_check): Support negative
11049 status_or_signal. Call print_actual_status.
11050 * support/tst-support_capture_subprocess.c (do_test): Call
11051 support_capture_subprocess_check.
11052 * libio/tst-vtables-common.c (termination_status)
11053 (init_termination_status): Remove.
11054 (check_for_termination): Adjust support_capture_subprocess_check
11055 call.
11056 (do_test): Remove call to init_termination_status.
11057
11058 2018-11-28 Joseph Myers <joseph@codesourcery.com>
11059
11060 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
11061 source directory instead of a copy.
11062 (CommandList.create_copy_dir): Remove.
11063
11064 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
11065
11066 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11067
11068 2018-11-28 Florian Weimer <fweimer@redhat.com>
11069
11070 * support/support.h (support_quote_string): Do not use str
11071 parameter name.
11072
11073 2018-11-27 Joseph Myers <joseph@codesourcery.com>
11074
11075 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
11076 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
11077
11078 2018-11-27 Florian Weimer <fweimer@redhat.com>
11079
11080 * support/support.h (support_quote_string): Declare.
11081 * support/support_quote_string.c: New file.
11082 * support/tst-support_quote_string.c: Likewise.
11083 * support/Makefile (libsupport-routines): Add
11084 support_quote_string.
11085 (tests): Add tst-support_quote_string.
11086
11087 2018-11-27 Florian Weimer <fweimer@redhat.com>
11088
11089 [BZ #23927]
11090 CVE-2018-19591
11091 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
11092 descriptor leak in case of ENODEV error.
11093
11094 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
11095
11096 [BZ #19767]
11097 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
11098 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
11099 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
11100
11101 2018-11-26 Carlos O'Donell <carlos@redhat.com>
11102
11103 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
11104 Error for unknown lines.
11105
11106 2018-11-26 Joseph Myers <joseph@codesourcery.com>
11107
11108 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
11109 Touch additional files.
11110
11111 2018-11-26 Florian Weimer <fweimer@redhat.com>
11112
11113 [BZ #23907]
11114 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
11115 double-frees.
11116
11117 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
11118
11119 [BZ #19767]
11120 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
11121 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
11122 SHARED. Include sysdep.h.
11123 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
11124 ALWAYS_USE_VSYSCALL.
11125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
11126 ALWAYS_USE_VSYSCALL.
11127
11128 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
11129
11130 [BZ #19767]
11131 * nptl/Makefile (tests-static): Add tst-cond11-static.
11132 (tests): Likewise.
11133 * nptl/tst-cond11-static.c: New File.
11134 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
11135 tst-affinity-static.
11136 (tests): Likewise.
11137 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
11138 instead of SHARED.
11139 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
11140 (USE_VSYSCALL): Likewise.
11141 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
11142 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
11143 instead of SHARED.
11144 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
11145 SHARED.
11146 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
11147 New.
11148
11149 2018-11-23 Joseph Myers <joseph@codesourcery.com>
11150
11151 [BZ #23915]
11152 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11153 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
11154 Undefine.
11155
11156 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
11157
11158 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
11159 (tst-cet-legacy-1a-ARGS): New.
11160 ($(objpfx)tst-cet-legacy-1a): New target.
11161 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
11162
11163 2018-11-22 Joseph Myers <joseph@codesourcery.com>
11164
11165 * conform/conformtest.py (CompileSubTest.__init__): Set
11166 self.run_early to False.
11167 (ExecuteSubTest.__init__): Likewise.
11168 (HeaderTests.run): Try running all non-optional, non-XFAILed
11169 compilation tests in a single execution of the compiler.
11170
11171 * conform/conformtest.py (CompileSubTest): New class.
11172 (ExecuteSubTest): Likewise.
11173 (ElementTest.run): Rename to gen_subtests. Append tests to
11174 self.subtests instead of running them.
11175 (ConstantTest.run): Likewise.
11176 (SymbolTest.run): Likewise.
11177 (TypeTest.run): Likewise.
11178 (TagTest.run): Likewise.
11179 (FunctionTest.run): Likewise.
11180 (VariableTest.run): Likewise.
11181 (MacroFunctionTest.run): Likewise.
11182 (MacroStrTest.run): Likewise.
11183 (HeaderTests.handle_test_line): Generate subtests for tests.
11184 (HeaderTests.run): Run subtests for tests.
11185
11186 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
11187
11188 * math/Versions (GLIBC_2.29): Add pow.
11189 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
11190 symbol.
11191 * math/w_pow.c: New file.
11192 * sysdeps/i386/fpu/w_pow.c: New file.
11193 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
11194 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
11195 and add necessary aliases.
11196 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
11197 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
11198 * sysdeps/mach/hurd/i386/libm.abilist: Update.
11199 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11200 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
11201 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
11202 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
11203 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11204 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
11205 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
11206 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
11207 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
11208 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
11209 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
11210 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
11211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
11212 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
11213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
11214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
11215 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
11216 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
11217 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
11218 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
11219 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
11220 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
11221 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
11222 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
11223 __pow.
11224 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
11225 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
11226 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
11227
11228 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
11229
11230 * math/Versions (GLIBC_2.29): Add log2.
11231 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
11232 symbol.
11233 * math/w_log2.c: New file.
11234 * sysdeps/i386/fpu/w_log2.c: New file.
11235 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
11236 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
11237 and add necessary aliases.
11238 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
11239 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
11240 * sysdeps/mach/hurd/i386/libm.abilist: Update.
11241 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11242 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
11243 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
11244 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
11245 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11246 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
11247 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
11248 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
11249 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
11250 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
11251 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
11252 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
11253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
11254 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
11255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
11256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
11257 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
11258 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
11259 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
11260 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
11261 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
11262 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
11263 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
11264
11265 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
11266
11267 * math/Versions (GLIBC_2.29): Add log.
11268 * math/w_log_compat.c (__log_compat): Change to versioned compat
11269 symbol.
11270 * math/w_log.c: New file.
11271 * sysdeps/i386/fpu/w_log.c: New file.
11272 * sysdeps/ia64/fpu/e_log.S: Update.
11273 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
11274 and add necessary aliases.
11275 * sysdeps/ieee754/dbl-64/w_log.c: New file.
11276 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
11277 * sysdeps/mach/hurd/i386/libm.abilist: Update.
11278 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11279 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
11280 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
11281 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
11282 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11283 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
11284 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
11285 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
11286 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
11287 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
11288 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
11289 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
11290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
11291 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
11292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
11293 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
11294 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
11295 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
11296 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
11297 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
11298 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
11299 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
11300 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
11301 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
11302 __log.
11303 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
11304 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
11305 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
11306 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
11307
11308 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
11309
11310 * math/Versions (GLIBC_2.29): Add exp and exp2.
11311 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
11312 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
11313 * math/w_exp_compat.c (__exp_compat): Likewise.
11314 * math/w_exp.c: New file.
11315 * math/w_exp2.c: New file.
11316 * sysdeps/i386/fpu/w_exp.c: New file.
11317 * sysdeps/i386/fpu/w_exp2.c: New file.
11318 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
11319 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
11320 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
11321 and add necessary aliases.
11322 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
11323 and add necessary aliases.
11324 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
11325 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
11326 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
11327 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
11328 * sysdeps/mach/hurd/i386/libm.abilist: Update.
11329 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11330 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
11331 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
11332 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
11333 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11334 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
11335 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
11336 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
11337 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
11338 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
11339 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
11340 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
11341 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
11342 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
11343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
11344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
11345 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
11346 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
11347 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
11348 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
11349 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
11350 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
11351 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
11352 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
11353 (__ieee754_exp): Rename to __exp.
11354 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
11355 (__ieee754_exp): Rename to __exp.
11356 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
11357 (__ieee754_exp): Rename to __exp.
11358 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
11359 __exp.
11360 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
11361
11362 2018-11-20 DJ Delorie <dj@redhat.com>
11363
11364 * malloc/malloc.c (tcache_entry): Add key field.
11365 (tcache_put): Set it.
11366 (tcache_get): Likewise.
11367 (_int_free): Check for double free in tcache.
11368 * malloc/tst-tcfree1.c: New.
11369 * malloc/tst-tcfree2.c: New.
11370 * malloc/Makefile: Run the new tests.
11371 * manual/probes.texi: Document memory_tcache_double_free probe.
11372
11373 * dlfcn/dlerror.c (check_free): Prevent double frees.
11374
11375 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
11376
11377 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
11378
11379 2018-11-20 Joseph Myers <joseph@codesourcery.com>
11380
11381 * conform/conformtest.py (ElementTest.run): Use unique identifiers
11382 in tests. Use names for format arguments.
11383 (ConstantTest.run): Likewise.
11384 (SymbolTest.run): Likewise.
11385 (TypeTest.run): Likewise.
11386 (TagTest.run): Likewise.
11387 (FunctionTest.run): Likewise.
11388 (VariableTest.run): Likewise.
11389 (MacroFunctionTest.run): Likewise.
11390 (MacroStrTest.run): Likewise.
11391 (HeaderTests.__init__): Set self.num_tests.
11392 (HeaderTests.handle_test_line): Set test.num. Increment
11393 self.num_tests.
11394
11395 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
11396
11397 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
11398 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
11399 SEEK_SET.
11400
11401 2018-11-19 Mao Han <han_mao@c-sky.com>
11402
11403 * scripts/config.guess: Update to version 2018-08-29.
11404 * scripts/config.sub: Update to version 2018-08-29.
11405
11406 2018-11-19 Florian Weimer <fweimer@redhat.com>
11407
11408 support: Print timestamps in timeout handler.
11409 * support/support_test_main.c (print_timestamp): New function.
11410 (signal_handler): Use it to print the termination time and the
11411 time of the last write to standard output.
11412
11413 2018-11-16 Zack Weinberg <zackw@panix.com>
11414 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11415
11416 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
11417 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
11418 argument.
11419 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
11420 and add flags argument. Check flags instead of __ldbl_is_dbl when
11421 deciding whether to set is_long_double.
11422 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
11423 passing zero for flags argument.
11424 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
11425
11426 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
11427 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
11428 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
11429 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
11430 variable names. Remove libc_hidden_def/libc_hidden_proto from
11431 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
11432 longer called from within the library.
11433 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
11434 for __nldbl___vstrfmon_l, declare it explicitly.
11435
11436 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
11437
11438 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
11439
11440 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
11441 macros
11442 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
11443 F_SETLK64, F_SETLKW64, respectively.
11444 * sysdeps/mach/hurd/f_setlk.c: New file.
11445 * sysdeps/mach/hurd/f_setlk.h: New file.
11446 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
11447 f_setlk.
11448 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
11449 (__libc_fcntl): Move non-flock operations to...
11450 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
11451 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
11452
11453 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
11454
11455 mktime: DEBUG_MKTIME cleanup
11456 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
11457 And it’s no longer needed now that glibc and Gnulib both have
11458 their own testing mechanisms for mktime.
11459 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
11460
11461 mktime: fix non-EOVERFLOW errno handling
11462 [BZ#23789]
11463 mktime was not properly reporting failures when the underlying
11464 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
11465 them like EOVERFLOW failures, and set errno to EOVERFLOW.
11466 The problem could happen on non-glibc platforms, with Gnulib.
11467 * time/mktime.c (guess_time_tm): Remove, replacing with ...
11468 (tm_diff): ... this simpler function, which does not change errno.
11469 All callers changed to deal with errno themselves.
11470 (ranged_convert, __mktime_internal): Return failure immediately if
11471 the underlying function reports any failure other than EOVERFLOW.
11472 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
11473 gap code fails.
11474
11475 mktime: fix bug with Y2038 DST transition
11476 [BZ#23789]
11477 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
11478 mishandle a DST transition that jumps over the Y2038 boundary.
11479 No such DST transitions are known so this is only a theoretical
11480 bug, but we might as well do things right.
11481
11482 mktime: make more room for overflow
11483 [BZ#23789]
11484 * time/mktime.c (long_int): Now 4⚯ int, not just 3⚯.
11485 This is so that we can add tm_diff results to a previous guess,
11486 which will be useful in a later patch.
11487
11488 mktime: simplify offset guess
11489 [BZ#23789]
11490 * time/mktime.c (__mktime_internal): Omit excess precision.
11491
11492 mktime: new test for mktime failure
11493 [BZ#23789]
11494 Based on a test suggested by Albert Aribaud in:
11495 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
11496 * time/Makefile (tests): Add bug-mktime4.
11497 * time/bug-mktime4.c: New file.
11498
11499 mktime: fix EOVERFLOW bug
11500 [BZ#23789]
11501 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
11502 Include libc-config.h, not config.h, for __set_errno.
11503 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
11504
11505 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11506
11507 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
11508 __attribute_copy__ to copy attributes from name. Drop static qualifier
11509 to avoid warnings about leaf attribute not having effect on static
11510 functions.
11511
11512 2018-11-13 Florian Weimer <fweimer@redhat.com>
11513
11514 * malloc/malloc.c (fastbin_push_entry): New function.
11515 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
11516 (REMOVE_FB): Remove macro.
11517 (_int_malloc): Use fastbin_pop_entry and reindent.
11518 (_int_free): Use fastbin_push_entry.
11519 (malloc_consolidate): Use atomic_exchange_acquire.
11520
11521 2018-11-13 Joseph Myers <joseph@codesourcery.com>
11522
11523 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
11524 alias attribute, not with strong_alias.
11525
11526 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
11527 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
11528 with additional parameter thread.
11529 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
11530 in terms of __hidden_ver2.
11531 (hidden_tls_def): New macro.
11532 (libc_hidden_tls_def): Likewise.
11533 (rtld_hidden_tls_def): Likewise.
11534 (libm_hidden_tls_def): Likewise.
11535 (libmvec_hidden_tls_def): Likewise.
11536 (libresolv_hidden_tls_def): Likewise.
11537 (librt_hidden_tls_def): Likewise.
11538 (libdl_hidden_tls_def): Likewise.
11539 (libnss_files_hidden_tls_def): Likewise.
11540 (libnsl_hidden_tls_def): Likewise.
11541 (libnss_nisplus_hidden_tls_def): Likewise.
11542 (libutil_hidden_tls_def): Likewise.
11543 (libutil_hidden_tls_def): Likweise.
11544 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
11545 libc_hidden_tls_def.
11546 (__sim_disabled_exceptions_thread): Likewise.
11547 (__sim_round_mode_thread): Likewise.
11548
11549 * sysdeps/sparc/sparc-ifunc.h [SHARED]
11550 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
11551 copy attributes from name.
11552
11553 2018-11-12 Joseph Myers <joseph@codesourcery.com>
11554
11555 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
11556 Use __attribute_copy__ to copy attributes from name.
11557
11558 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
11559 with __hidden_ver1 call.
11560 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
11561 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
11562 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
11563 (__cosf): Do not declare here.
11564 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
11565 (__sincosf): Do not declare here.
11566 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
11567 (__sinf): Do not declare here.
11568
11569 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
11570 (__BIG_ENDIAN): Likewise.
11571 (__BYTE_ORDER): Likewise.
11572 (strong_alias): Likewise.
11573 (_strong_alias): Likewise.
11574
11575 2018-11-12 Florian Weimer <fweimer@redhat.com>
11576
11577 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
11578 function. Move after the definition of in_smallbin_range. Do not
11579 use __builtin_expect for paths that lead to a noreturn function.
11580 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
11581 because it is unclear whether this is in fact an unlikely
11582 condition.
11583 (_int_malloc, _int_free): Adjust.
11584 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
11585 variables.
11586 * malloc/arena.c (heap_trim): Likewise.
11587
11588 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
11589
11590 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
11591 it, free it if needed.
11592 (reauthenticate): Test and use ccwdir.
11593 (child_init_port): In non-resetids case, test and use ccwdir.
11594 (child_chdir): New nested function to set ccwdir.
11595 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
11596 * hurd/hurd/port.h (_hurd_port_move): New function.
11597 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
11598 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
11599 * hurd/Versions (_hurd_port_move): Export function.
11600 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
11601 symbol.
11602 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
11603 of dtablesize for allocating dtable_cloexec.
11604
11605 2018-11-09 Martin Sebor <msebor@redhat.com>
11606
11607 * include/libc-symbols.h (__attribute_copy__): Define macro unless
11608 it's already defined.
11609 (_strong_alias): Use __attribute_copy__.
11610 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
11611 * misc/sys/cdefs.h (__attribute_copy__): New macro.
11612 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
11613 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
11614 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
11615 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
11616 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
11617 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
11618 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
11619 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
11620 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
11621 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
11622 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
11623 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
11624 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
11625 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
11626 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
11627 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
11628 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
11629
11630 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11631
11632 * misc/tst-efgcvt.c: Include support/check.h and
11633 support/test-driver.c. Do not include test-skeleton.c.
11634 (error_count): Remove.
11635 (output_error): Replace increments to error_count with calls to
11636 support_record_failure.
11637 (output_r_error): Likewise.
11638 (special): Likewise.
11639 (do_test): Unconditionally return zero.
11640 (TEST_FUNCTION): Remove.
11641
11642 2018-11-09 Joseph Myers <joseph@codesourcery.com>
11643
11644 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
11645 not $(@D)/scratch.
11646 ($(linknamespace-header-tests)): Likewise.
11647
11648 * conform/conformtest.py: New file.
11649 * conform/conformtest.pl: Remove.
11650 * conform/GlibcConform.pm: Likewise.
11651 * conform/glibcconform.py (KEYWORDS_C90): New constant.
11652 (KEYWORDS_C99): Likewise.
11653 (KEYWORDS): Likewise.
11654 * conform/Makefile ($(conformtest-header-tests)): Use
11655 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
11656 option. Use --header instead of --headers.
11657 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
11658 function entries.
11659 * conform/data/spawn.h-data: Likewise.
11660 * conform/data/fcntl.h-data (openat): Add space after function
11661 name.
11662 * conform/data/wchar.h-data (wcscasecmp): Likewise.
11663 (wcscasecmp_l): Likewise.
11664 * conform/data/termios.h-data (c_cc): Add space after element
11665 name.
11666
11667 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11668
11669 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
11670 instead of manually comparing and reporting mismatching strings.
11671 * misc/tst-ldbl-error.c (do_one_test): Likewise.
11672 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
11673
11674 2018-11-08 Joseph Myers <joseph@codesourcery.com>
11675
11676 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
11677 __ASSUME_SOCKETCALL.
11678 * sysdeps/unix/sysv/linux/i386/kernel-features.h
11679 (__ASSUME_SOCKETCALL): Remove.
11680 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11681 (__ASSUME_SOCKETCALL): Likewise.
11682 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11683 (__ASSUME_SOCKETCALL): Likewise.
11684 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11685 (__ASSUME_SOCKETCALL): Likewise.
11686 * sysdeps/unix/sysv/linux/s390/kernel-features.h
11687 (__ASSUME_SOCKETCALL): Likewise.
11688 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11689 (__ASSUME_SOCKETCALL): Likewise.
11690 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11691 (__ASSUME_SOCKETCALL): Likewise.
11692
11693 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
11694
11695 [BZ #23509]
11696 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
11697 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
11698 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
11699 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
11700 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
11701 lc_unknown.
11702
11703 2018-11-08 Alexandra HĂĄjkovĂĄ <ahajkova@redhat.com>
11704
11705 [BZ #17630]
11706 * resolv/tst-resolv-network.c: Add test for getnetbyname.
11707
11708 2018-11-07 Joseph Myers <joseph@codesourcery.com>
11709
11710 [BZ #23867]
11711 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11712 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11713 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11714 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11715
11716 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11717
11718 * support/support_test_compare_string.c
11719 (support_test_compare_string): Fix printf format.
11720
11721 2018-11-07 Florian Weimer <fweimer@redhat.com>
11722
11723 Implement TEST_COMPARE_STRING.
11724 * support/check.h (TEST_COMPARE_STRING): Define.
11725 (support_test_compare_string): Declare.
11726 * support/Makefile (libsupport-routines): Add
11727 support_test_compare_string.
11728 (tests): Add tst-test_compare_string.
11729 * support/support_test_compare_string.c: New file.
11730 * support/tst-test_compare_string.c: Likewise.
11731
11732 2018-11-07 Andreas Schwab <schwab@suse.de>
11733
11734 [BZ #23864]
11735 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
11736 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
11737 Undef.
11738
11739 2018-11-06 Joseph Myers <joseph@codesourcery.com>
11740
11741 [BZ #23862]
11742 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11743 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
11744 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
11745 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
11746 Likewise.
11747
11748 2018-11-06 Florian Weimer <fweimer@redhat.com>
11749
11750 [BZ #17405]
11751 * posix/Makefile (routines): Add spawn_faction_addchdir.
11752 (tests): Add tst-spawn-chdir.
11753 * posix/Versions (GLIBC_2.29): Add
11754 posix_spawn_file_actions_addchdir_np.
11755 * posix/spawn_faction_addchdir.c: New file.
11756 * posix/spawn_faction_destroy.c
11757 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
11758 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
11759 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
11760 chdir_action.
11761 * posix/tst-spawn-chdir.c: New file.
11762 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
11763 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11764 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
11765 posix_spawn_file_actions_addchdir_np.
11766 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
11767 Likewise.
11768 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
11769 Likewise.
11770 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
11771 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
11772 Likewise.
11773 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
11774 Likewise.
11775 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
11776 Likewise.
11777 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
11778 Likewise.
11779 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
11780 Likewise.
11781 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
11782 Likewise.
11783 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
11784 (GLIBC_2.29): Likewise.
11785 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
11786 (GLIBC_2.29): Likewise.
11787 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
11788 (GLIBC_2.29): Likewise.
11789 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
11790 (GLIBC_2.29): Likewise.
11791 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
11792 Likewise.
11793 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
11794 (GLIBC_2.29): Likewise.
11795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
11796 (GLIBC_2.29): Likewise.
11797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
11798 (GLIBC_2.29): Likewise.
11799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
11800 (GLIBC_2.29): Likewise.
11801 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
11802 Likewise.
11803 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
11804 Likewise.
11805 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
11806 Likewise.
11807 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
11808 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
11809 Likewise.
11810 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
11811 Likewise.
11812 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
11813 Likewise.
11814 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
11815 Likewise.
11816
11817 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11818
11819 * misc/Makefile (tests): Add tst-ldbl-error.
11820 * misc/tst-ldbl-error.c: New file.
11821
11822 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11823
11824 * misc/Makefile (tests): Add tst-ldbl-warn.
11825 * misc/tst-ldbl-warn.c: New file.
11826
11827 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11828
11829 * argp/Makefile (tests): Add tst-ldbl-argp.
11830 * argp/tst-ldbl-argp.c: New file.
11831
11832 2018-11-05 Arjun Shankar <arjun@redhat.com>
11833
11834 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
11835 __gconv_path_elem and call __gconv_get_path unconditionally.
11836
11837 2018-11-05 Andreas Schwab <schwab@suse.de>
11838
11839 [BZ #22927]
11840 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
11841 creating the first helper thread failed.
11842
11843 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11844
11845 * sysdeps/mach/hurd/msync.c: New file.
11846
11847 2018-11-02 Florian Weimer <fweimer@redhat.com>
11848
11849 * support/shell-container.c (copy_func): Call
11850 support_copy_file_range instead of copy_file_range to support
11851 cross-device copies.
11852
11853 2018-11-02 Florian Weimer <fweimer@redhat.com>
11854
11855 * support/test-container.c: Include <libc-pointer-arith.h> for
11856 ALIGN_UP.
11857
11858 2018-11-01 Zong Li <zong@andestech.com>
11859
11860 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
11861 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
11862 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
11863 (__FP_FRAC_SET_8): Add implementation for RV32 use.
11864
11865 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
11866 variable to avoid overlap arguments.
11867
11868 2018-11-01 Joseph Myers <joseph@codesourcery.com>
11869
11870 * posix/bug-regex22.c (main): Use puts with distinct error
11871 messages for unexpected success of re_compile_pattern, not printf
11872 with NULL argument to %s.
11873
11874 * stdio-common/bug22.c: Include <libc-diag.h>.
11875 (do_test): Disable -Wformat-overflow= warnings around fprintf
11876 calls outputting more than INT_MAX characters.
11877 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
11878 around printf call with NULL %s argument.
11879
11880 [BZ #23848]
11881 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
11882 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
11883 Undefine.
11884 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11885 (__ASSUME_RECVMSG_SYSCALL): Likewise.
11886 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11887 (__ASSUME_SENDTO_SYSCALL): Likewise.
11888 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11889 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
11890 [!__arch64__].
11891 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11892 (__ASSUME_CONNECT_SYSCALL): Likewise.
11893 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11894 (__ASSUME_RECVFROM_SYSCALL): Likewise.
11895 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
11896 Define.
11897 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
11898 Likewise.
11899 [__LINUX_KERNEL_VERSION >= 0x040400]
11900 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
11901 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
11902 Remove.
11903 (listen): Likewise.
11904 (setsockopt): Likewise.
11905
11906 2018-11-01 Fredrik Noring <noring@nocrew.org>
11907
11908 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
11909 with the ISA override.
11910
11911 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
11912
11913 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
11914 #endif.
11915
11916 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11917
11918 * manual/errno.texi (EIEIO): Document how translators should
11919 translate the error message.
11920 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
11921 printing trailing whitespaces refused by git.
11922 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11923 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11924 * hurd/Makefile (user-interfaces): Add pci.
11925
11926 2018-10-30 Joseph Myers <joseph@codesourcery.com>
11927
11928 * conform/linknamespace.py: New file.
11929 * conform/linknamespace.pl: Remove file.
11930 * conform/Makefile ($(linknamespace-header-tests)): Use
11931 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
11932 option.
11933
11934 2018-10-30 Florian Weimer <fweimer@redhat.com>
11935
11936 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11937 memory leaks.
11938
11939 2018-10-30 Florian Weimer <fweimer@redhat.com>
11940
11941 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11942
11943 2018-10-30 Florian Weimer <fweimer@redhat.com>
11944
11945 * stdlib/tst-strtod-overflow.c (do_test): Switch to
11946 support_blob_repeat.
11947
11948 2018-10-30 Florian Weimer <fweimer@redhat.com>
11949
11950 Avoid spurious test failures in stdlib/test-bz22786.
11951 * support/Makefile (libsupport-routines): Add blob_repeat.
11952 (tests): Add tst-support_blob_repeat.
11953 * support/blob_repeat.h: New file.
11954 * support/blob_repeat.c: Likewise.
11955 * support/tst-support_blob_repeat.c: Likewise.
11956 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11957 support_blob_repeat_allocate.
11958
11959 2018-10-30 Andreas Schwab <schwab@suse.de>
11960
11961 [BZ #23125]
11962 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11963 Don't use tail call.
11964 * elf/tst-unwind-main.c: New file.
11965 * elf/Makefile (tests): Add tst-unwind-main.
11966 (CFLAGS-tst-unwind-main.c): Define.
11967
11968 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
11969
11970 [BZ #23791]
11971 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11972 n_cs_precedes to 0.
11973 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11974
11975 2018-10-29 Joseph Myers <joseph@codesourcery.com>
11976
11977 * conform/glibcconform.py: Do not import shutil.
11978 (list_exported_functions): Use tempfile.TemporaryDirectory instead
11979 of mkdtemp.
11980
11981 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
11982 critic_missing for versions before 3.4.
11983 * configure: Regenerated.
11984 * manual/install.texi (Tools for Compilation): Document
11985 requirement for Python to build glibc.
11986 * INSTALL: Regenerated.
11987 * Rules [PYTHON]: Make code unconditional.
11988 * benchtests/Makefile [PYTHON]: Likewise.
11989 * conform/Makefile [PYTHON]: Likewise.
11990 * manual/Makefile [PYTHON]: Likewise.
11991 * math/Makefile [PYTHON]: Likewise.
11992
11993 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11994
11995 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
11996 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
11997 answer to interrupt_operation, return EIEIO instead of EINTR.
11998 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
11999 _hurd_intr_rpc_msg_about_to global point to start of controlled
12000 assembly snippet. Make it check canceled flag.
12001 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
12002 the _hurd_intr_rpc_msg_about_to point.
12003 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
12004 issue, remove cancel flag check.
12005
12006 2018-10-26 Joseph Myers <joseph@codesourcery.com>
12007
12008 * scripts/build-many-glibcs.py: Remove compatibility for missing
12009 os.cpu_count and re.fullmatch.
12010
12011 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
12012
12013 [BZ #23822]
12014 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
12015 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
12016 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
12017
12018 2018-10-25 Joseph Myers <joseph@codesourcery.com>
12019
12020 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
12021 macro.
12022
12023 2018-10-25 Florian Weimer <fweimer@redhat.com>
12024
12025 [BZ #23562]
12026 [BZ #23821]
12027 XFAIL siginfo_t si_band conform test on sparc64.
12028 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
12029 (__SI_BAND_TYPE): Only override long int default type on sparc64.
12030 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
12031 (conformtest-xfail-conds): Add sparc64-linux.
12032 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
12033 sparc64.
12034 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
12035
12036 2018-10-25 Joseph Myers <joseph@codesourcery.com>
12037
12038 * elf/elf.h (NT_MIPS_DSP): New macro.
12039 (NT_MIPS_FP_MODE): Likewise.
12040
12041 2018-10-25 Zong Li <zong@andestech.com>
12042
12043 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
12044 name by adding the file extension (.so).
12045
12046 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
12047
12048 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12049 (test-xfail-ISO11/threads.h/linknamespace,
12050 test-xfail-ISO11/threads.h/conform): Add.
12051
12052 2018-10-24 Joseph Myers <joseph@codesourcery.com>
12053
12054 * math/gen-libm-test.py: Import os.
12055 (ALL_FLOATS_MANUAL): New constant.
12056 (ALL_FLOATS_SUFFIX): Likewise.
12057 (Ulps.all_functions): New function.
12058 (real_all_ulps): Likewise.
12059 (generate_err_table_sub): Likewise.
12060 (generate_err_table): Likewise.
12061 (main): Handle -s and -m options.
12062 * manual/libm-err-tab.pl: Remove.
12063 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
12064 instead of libm-err-tab.pl.
12065 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
12066 != no].
12067 * manual/install.texi (Tools for Compilation): Document
12068 requirement for Python to build manual.
12069 * INSTALL: Regenerated.
12070
12071 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
12072
12073 * bits/time64.h: New file.
12074 * include/time.h: Replace internal_time_t with __time64_t.
12075 * posix/bits/types (__time64_t): Add.
12076 * stdlib/Makefile: Add bits/time64.h to includes.
12077 * time/tzfile.c: Replace internal_time_t with __time64_t.
12078
12079 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12080
12081 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
12082 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
12083 __posix_spawn_file_actions_init, __posix_spawnattr_init,
12084 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
12085 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
12086 prototype.
12087 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
12088 * posix/spawn_faction_addclose.c
12089 (__posix_spawn_file_actions_addclose): Add hidden definition.
12090 * posix/spawn_faction_adddup2.c
12091 (__posix_spawn_file_actions_adddup2): Likewise.
12092 * posix/spawn_faction_destroy.c
12093 (__posix_spawn_file_actions_destroy): Likewise.
12094 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
12095 Likewise.
12096 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
12097 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
12098 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
12099 Likewise.
12100 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
12101 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
12102 Likewise.
12103
12104 2018-10-24 Andreas Schwab <schwab@suse.de>
12105
12106 [BZ #18093]
12107 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
12108 format cache.
12109 * elf/cache.c (print_cache): Likewise.
12110
12111 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
12112
12113 * bits/timesize.h: New file.
12114 * stdlib/Makefile (headers): Add bits/timesize.h.
12115 * sysdeps/unix/sysv/linux/bits/msq-pad.h
12116 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
12117 * sysdeps/unix/sysv/linux/bits/sem-pad.h
12118 (__SEM_PAD_AFTER_TIME): Likewise.
12119 * sysdeps/unix/sysv/linux/bits/shm-pad.h
12120 (__SHM_PAD_AFTER_TIME): Likewise.
12121 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
12122 (__MSQ_PAD_BEFORE_TIME): Likewise.
12123 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
12124 (__SEM_PAD_BEFORE_TIME): Likewise.
12125 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
12126 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
12127 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
12128 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
12129 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
12130 (__MSQ_PAD_BEFORE_TIME): Likewise.
12131 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
12132 (__SEM_PAD_BEFORE_TIME): Likewise.
12133 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
12134 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
12135 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
12136 (__MSQ_PAD_BEFORE_TIME): Likewise.
12137 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
12138 (__SEM_PAD_BEFORE_TIME): Likewise.
12139 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
12140 (__SHM_PAD_BEFORE_TIME): Likewise.
12141 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
12142 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
12143 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
12144
12145 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
12146
12147 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
12148 USE_RDTSCP is defined.
12149 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
12150 USE_RDTSCP is defined.
12151
12152 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12153
12154 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
12155 defined.
12156
12157 [BZ #23709]
12158 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
12159 independently of other flags.
12160
12161 2018-10-23 Florian Weimer <fweimer@redhat.com>
12162
12163 * time/tst-mktime2.c (N_STRINGS): Remove.
12164 (set_timezone): New function.
12165 (spring_forward_gap): Call it. Use FAIL_EXIT1.
12166 (mktime_test1): Report localtime failure and check errno value.
12167 Use TEST_COMPARE.
12168 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
12169 (do_test): Remove alarm call. Use set_timezone and array_length.
12170
12171 2018-10-23 Andreas Schwab <schwab@suse.de>
12172
12173 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
12174 (__start_context): Use END instead of PSEUDO_END.
12175
12176 2018-10-22 Joseph Myers <joseph@codesourcery.com>
12177
12178 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12179 version to 4.19.
12180
12181 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12182 version to 4.19.
12183
12184 [BZ #23793]
12185 * wcsmbs/c32rtomb.c: New file.
12186 * wcsmbs/mbrtoc32.c: Likewise.
12187 * wcsmbs/tst-c32-state.c: Likewise.
12188 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
12189 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
12190 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
12191 (tests): Add tst-c32-state.
12192 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
12193 $(gen-locales).
12194
12195 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
12196
12197 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
12198 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
12199
12200 2018-10-19 Joseph Myers <joseph@codesourcery.com>
12201
12202 [BZ #23794]
12203 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
12204 pair and return 0 in that case, and use saved character to
12205 interpret following character.
12206 * wcsmbs/tst-c16-surrogate.c: New file.
12207 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
12208 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
12209 Depend on $(gen-locales)
12210
12211 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
12212
12213 [BZ #23562]
12214 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
12215 (struct siginfo_t): Use correct type for si_band.
12216
12217 2018-10-19 Florian Weimer <fweimer@redhat.com>
12218
12219 [BZ #23689]
12220 * resource/bits/types/struct_rusage.h (struct rusage): Update
12221 comment on struct. Remove extraneous field comment.
12222
12223 2018-10-18 David S. Miller <davem@davemloft.net>
12224
12225 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
12226 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
12227 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
12228 sysdep_routines in subdir elf.
12229 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
12230 version for __vdso_clock_gettime.
12231 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
12232 Define.
12233 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
12234 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
12235
12236 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
12237
12238 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
12239
12240 * sysdeps/i386/init-arch.h: Removed.
12241 * sysdeps/i386/i586/init-arch.h: Likewise.
12242 * sysdeps/i386/i686/init-arch.h: Likewise.
12243 * sysdeps/i386/i686/hp-timing.h: Likewise.
12244 * sysdeps/x86_64/hp-timing.h: Likewise.
12245 * sysdeps/i386/isa.h: New file.
12246 * sysdeps/i386/i586/isa.h: Likewise.
12247 * sysdeps/i386/i686/isa.h: Likewise.
12248 * sysdeps/x86_64/isa.h: Likewise.
12249 * sysdeps/x86/hp-timing.h: New file.
12250 * sysdeps/x86/init-arch.h: Include <isa.h>.
12251
12252 2018-10-17 Joseph Myers <joseph@codesourcery.com>
12253
12254 * math/libm-test-pow.inc (pow_test_data): Do not allow
12255 divide-by-zero exception for pow(+/- 0, -Inf).
12256
12257 2018-10-17 Zack Weinberg <zackw@panix.com>
12258
12259 * manual/job.texi (Job Control is Optional): Remove node, as
12260 job control has not been optional in quite some time.
12261 (Job Control): Mention briefly that systems older than
12262 POSIX.1-2001 might not support job control.
12263 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
12264 defined on systems conforming to POSIX.1-2001.
12265
12266 2018-10-17 Arjun Shankar <arjun@redhat.com>
12267
12268 [BZ #22062]
12269 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
12270 indentation.
12271 * (__gconv_read_conf): Mark function static.
12272 * (once): New static variable.
12273 * (__gconv_load_conf): New function.
12274 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
12275 * iconv/gconv_db.c (once): Remove static variable.
12276 * (__gconv_compare_alias): Use __gconv_load_conf instead of
12277 __gconv_read_conf.
12278 * (__gconv_find_transform): Likewise.
12279 * iconv/tst-iconv-mt.c: New test.
12280 * iconv/Makefile: Add tst-iconv_mt.
12281
12282 2018-10-17 Joseph Myers <joseph@codesourcery.com>
12283
12284 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12285 bits/shm-pad.h.
12286 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
12287 (shmatt_t): Define as __syscall_ulong_t.
12288 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
12289 and [__SHM_PAD_AFTER_TIME].
12290 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
12291 Define shm_segsz and associated padding based on
12292 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
12293 Use __syscall_ulong_t instead of unsigned long int.
12294 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
12295 unsigned long int.
12296 [__USE_MISC] (struct shm_info): Likewise.
12297 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
12298 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
12299 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
12300 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
12301 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
12302 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
12303 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
12304 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
12305 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
12306 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
12307 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
12308
12309 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12310 bits/shmlba.h.
12311 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
12312 (SHMLBA): Remove macro.
12313 (__getpagesize): Remove function declaration.
12314 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
12315 <bits/shmlba.h>.
12316 (SHMLBA): Remove macro.
12317 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
12318 <bits/shmlba.h>.
12319 (SHMLBA): Remove macro.
12320 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
12321 <bits/shmlba.h>.
12322 (SHMLBA): Remove macro.
12323 (__getpagesize): Remove function declaration.
12324 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
12325 <bits/shmlba.h>.
12326 (SHMLBA): Remove macro.
12327 (__getshmlba): Remove function declaration.
12328 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
12329 (SHMLBA): Remove macro.
12330 (__getpagesize): Remove function declaration.
12331 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
12332 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
12333 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
12334 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
12335 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
12336 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
12337 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
12338 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
12339 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
12340 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
12341
12342 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
12343
12344 [BZ #23275]
12345 * nptl/tst-mutex10.c: New File.
12346 * nptl/Makefile (tests): Add tst-mutex10.
12347 (tst-mutex10-ENV): New variable.
12348 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
12349 Ensure that elision path is used if elision is available.
12350 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
12351 Likewise.
12352 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
12353 Likewise.
12354 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
12355 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
12356 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
12357 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
12358 Likewise.
12359 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
12360 (__pthread_mutex_cond_lock_adjust): Likewise.
12361 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
12362 Likewise.
12363 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
12364 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
12365 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
12366 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
12367 Add comments.
12368 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
12369 Use atomic_load_relaxed and atomic_store_relaxed.
12370 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
12371 Use atomic_store_relaxed.
12372
12373 2018-10-17 Andreas Schwab <schwab@suse.de>
12374
12375 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
12376 * crypt/badsalttest.c (TIMEOUT): Likewise.
12377 * crypt/sha256c-test.c (TIMEOUT): Likewise.
12378 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
12379 * io/test-lfs.c (TIMEOUT): Likewise.
12380 * libio/tst-atime.c (TIMEOUT): Likewise.
12381 * localedata/tst-leaks.c (TIMEOUT): Likewise.
12382 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
12383 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
12384 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
12385 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
12386 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
12387 * nptl/tst-cond11.c (TIMEOUT): Likewise.
12388 * nptl/tst-cond14.c (TIMEOUT): Likewise.
12389 * nptl/tst-cond15.c (TIMEOUT): Likewise.
12390 * nptl/tst-cond24.c (TIMEOUT): Likewise.
12391 * nptl/tst-cond25.c (TIMEOUT): Likewise.
12392 * nptl/tst-kill2.c (TIMEOUT): Likewise.
12393 * nptl/tst-kill3.c (TIMEOUT): Likewise.
12394 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
12395 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
12396 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
12397 * nptl/tst-once2.c (TIMEOUT): Likewise.
12398 * nptl/tst-once3.c (TIMEOUT): Likewise.
12399 * nptl/tst-once4.c (TIMEOUT): Likewise.
12400 * nptl/tst-robust8.c (TIMEOUT): Likewise.
12401 * nptl/tst-robust9.c (TIMEOUT): Likewise.
12402 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
12403 * nptl/tst-sem14.c (TIMEOUT): Likewise.
12404 * nptl/tst-sem6.c (TIMEOUT): Likewise.
12405 * nptl/tst-signal3.c (TIMEOUT): Likewise.
12406 * nptl/tst-spin4.c (TIMEOUT): Likewise.
12407 * nptl/tst-tls3.c (TIMEOUT): Likewise.
12408 * nptl/tst-tls4.c (TIMEOUT): Likewise.
12409 * posix/tst-chmod.c (TIMEOUT): Likewise.
12410 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
12411 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
12412 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
12413 * posix/tst-regex2.c (TIMEOUT): Likewise.
12414 * posix/tst-waitid.c (TIMEOUT): Likewise.
12415 * rt/tst-aio.c (TIMEOUT): Likewise.
12416 * rt/tst-aio10.c (TIMEOUT): Likewise.
12417 * rt/tst-aio4.c (TIMEOUT): Likewise.
12418 * rt/tst-aio5.c (TIMEOUT): Likewise.
12419 * rt/tst-aio6.c (TIMEOUT): Likewise.
12420 * rt/tst-aio64.c (TIMEOUT): Likewise.
12421 * rt/tst-aio7.c (TIMEOUT): Likewise.
12422 * rt/tst-aio9.c (TIMEOUT): Likewise.
12423 * rt/tst-clock.c (TIMEOUT): Likewise.
12424 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
12425 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
12426 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
12427 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
12428 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
12429 * rt/tst-timer4.c (TIMEOUT): Likewise.
12430 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
12431 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
12432 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
12433 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
12434 * time/tst-ftime.c (TIMEOUT): Likewise.
12435 * timezone/tst-tzset.c (TIMEOUT): Likewise.
12436
12437 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
12438
12439 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
12440 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
12441 for thunderX2.
12442
12443 2018-10-15 Joseph Myers <joseph@codesourcery.com>
12444
12445 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12446 bits/sem-pad.h.
12447 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
12448 instead of <bits/wordsize.h>.
12449 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
12450 and [__SEM_PAD_AFTER_TIME].
12451 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
12452 __syscall_ulong_t instead of unsigned long int.
12453 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
12454 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
12455 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
12456 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
12457 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
12458 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
12459 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
12460 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
12461 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
12462 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
12463 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
12464
12465 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
12466
12467 regex: simplify by using intprops.h
12468 [BZ#23744]
12469 * posix/regex_internal.h [_LIBC]: Include intprops.h.
12470 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
12471 intprops.h defines them.
12472
12473 regex: __builtin_expect → __glibc_unlikely
12474 [BZ#23744]
12475 This refactoring was prompted by a problem when the regex code is
12476 used as part of Gnulib and when the builder’s compiler does not grok
12477 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
12478 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
12479 Although this refactoring does not fix the problem directly,
12480 we might as well have Gawk use the now-preferred glibc style for when
12481 __builtin_expect is unavailable.
12482 * posix/regex_internal.h (BE): Remove.
12483 All uses replaced by __glibc_unlikely or __glibc_likely.
12484
12485 2018-10-11 Joseph Myers <joseph@codesourcery.com>
12486
12487 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12488 bits/msq-pad.h.
12489 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
12490 instead of <bits/wordsize.h>.
12491 (msgqnum_t): Define as __syscall_ulong_t.
12492 (msglen_t): Likewise.
12493 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
12494 and [__MSQ_PAD_AFTER_TIME].
12495 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
12496 __syscall_ulong_t instead of unsigned long int.
12497 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
12498 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
12499 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
12500 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
12501 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
12502 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
12503 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
12504 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
12505 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
12506 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
12507 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
12508
12509 2018-10-10 Joseph Myers <joseph@codesourcery.com>
12510
12511 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
12512 (struct shmid_ds): Condition padding after time fields on
12513 [__WORDSIZE == 32].
12514 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
12515 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
12516 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
12517
12518 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
12519 (struct semid_ds): Condition padding after time fields on
12520 [__WORDSIZE == 32].
12521 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
12522 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
12523 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
12524 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
12525
12526 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
12527 (struct msqid_ds): Condition padding after time fields on
12528 [__WORDSIZE == 32].
12529 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
12530 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
12531 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
12532 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
12533
12534 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
12535
12536 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
12537
12538 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
12539
12540 * libio/tst-readline.c (TIMEOUT): Define.
12541
12542 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
12543
12544 mktime fix for Gnulib + coreutils
12545 [BZ#23745]
12546 This fix affects only Gnulib. Problem discovered when
12547 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
12548 * time/mktime.c:
12549 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
12550 Do not define since it is not used. Defining an unused static
12551 function prompts a warning from GCC when Coreutils is configured
12552 with --enable-gcc-warnings.
12553
12554 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12555
12556 * benchtests/scripts/compare_bench.py (main): set float type on
12557 threshold argument.
12558
12559 2018-10-08 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
12560
12561 [BZ #23740]
12562 * localedata/locales/kl_GL (mon): Update, the relative case.
12563 (alt_mon): Add, fill with month names in the nominative case.
12564 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
12565 (d_fmt): Set to "%b %d %Y".
12566
12567 2018-10-04 Joseph Myers <joseph@codesourcery.com>
12568
12569 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
12570 <bits/mman-linux.h>.
12571 (PROT_READ): Don't define here.
12572 (PROT_WRITE): Likewise.
12573 (PROT_EXEC): Likewise.
12574 (PROT_NONE): Likewise.
12575 (PROT_GROWSDOWN): Likewise.
12576 (PROT_GROWSUP): Likewise.
12577 (MAP_SHARED): Likewise.
12578 (MAP_PRIVATE): Likewise.
12579 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
12580 [__USE_MISC] (MAP_FILE): Likewise.
12581 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
12582 [__USE_MISC] (MAP_ANON): Likewise.
12583 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
12584 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
12585 (MCL_CURRENT): Likewise.
12586 (MCL_FUTURE): Likewise.
12587 (MCL_ONFAULT): Likewise.
12588 [__USE_MISC] (MADV_NORMAL): Likewise.
12589 [__USE_MISC] (MADV_RANDOM): Likewise.
12590 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
12591 [__USE_MISC] (MADV_WILLNEED): Likewise.
12592 [__USE_MISC] (MADV_DONTNEED): Likewise.
12593 [__USE_MISC] (MADV_FREE): Likewise.
12594 [__USE_MISC] (MADV_REMOVE): Likewise.
12595 [__USE_MISC] (MADV_DONTFORK): Likewise.
12596 [__USE_MISC] (MADV_DOFORK): Likewise.
12597 [__USE_MISC] (MADV_HWPOISON): Likewise.
12598 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
12599 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
12600 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
12601 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
12602 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
12603 (__MAP_ANONYMOUS): New macro.
12604 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
12605 <bits/mman-linux.h> inclusion.
12606 (MAP_FIXED): Likewise.
12607 (MS_SYNC): Likewise.
12608 (MS_ASYNC): Likewise.
12609 (MS_INVALIDATE): Likewise.
12610 [__USE_MISC] (MADV_MERGEABLE): Likewise.
12611 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
12612 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
12613 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
12614 [__USE_MISC] (MADV_DONTDUMP): Likewise.
12615 [__USE_MISC] (MADV_DODUMP): Likewise.
12616 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
12617 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
12618
12619 [BZ #23735]
12620 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
12621 Define.
12622 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
12623 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
12624 Add test-nldbl-redirect.
12625 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
12626 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
12627 $(objpfx)libnldbl_nonshared.a.
12628
12629 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
12630
12631 * support/support.h (support_objdir_elf_ldso): New variable.
12632 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
12633 * support/Makefile (CFLAGS-support_paths.c): Add definition
12634 for OBJDIR_ELF_LDSO_PATH.
12635 * support/test-container.c (main): Search for the ld.so
12636 which is also used by the testsuite.
12637
12638 2018-10-02 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
12639
12640 [BZ #20209]
12641 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
12642 should be "sap" rather than "sab".
12643 (day): Fix spelling of Sunday, should be "sapaat" rather than
12644 "sabaat".
12645
12646 2018-10-02 Joseph Myers <joseph@codesourcery.com>
12647
12648 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12649
12650 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
12651
12652 [BZ #19444]
12653 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
12654 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
12655 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
12656
12657 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12658
12659 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
12660
12661 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
12662
12663 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
12664 Add -mrtm.
12665 (CFLAGS-elision-unlock.c): Likewise.
12666 (CFLAGS-elision-timed.c): Likewise.
12667 (CFLAGS-elision-trylock.c): Likewise.
12668 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
12669
12670 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12671
12672 [BZ #21037]
12673 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
12674 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
12675 new fd_to_filename interface.
12676 * libio/freopen64.c (freopen64): Likewise.
12677 * libio/tst-memstream.h: New file.
12678 * libio/tst-memstream4.c: Likewise.
12679 * libio/tst-wmemstream4.c: Likewise.
12680 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
12681 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
12682 and remove internal dynamic allocation.
12683
12684 2018-10-01 Joseph Myers <joseph@codesourcery.com>
12685
12686 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
12687 (MREMAP_MAYMOVE): Do not define here.
12688 [__USE_GNU] (MREMAP_FIXED): Likewise.
12689 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
12690 (MREMAP_MAYMOVE): Define here instead.
12691 [__USE_GNU] (MREMAP_FIXED): Likewise.
12692 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
12693 (MREMAP_MAYMOVE): Remove.
12694 [__USE_GNU] (MREMAP_FIXED): Likewise.
12695
12696 2018-09-28 Joseph Myers <joseph@codesourcery.com>
12697
12698 * math/fromfp.h: Do not include <math_private.h>.
12699 * math/s_cacosh_template.c: Likewise.
12700 * math/s_casin_template.c: Likewise.
12701 * math/s_casinh_template.c: Likewise.
12702 * math/s_ccos_template.c: Likewise.
12703 * math/s_cproj_template.c: Likewise.
12704 * math/s_fdim_template.c: Likewise.
12705 * math/s_fmaxmag_template.c: Likewise.
12706 * math/s_fminmag_template.c: Likewise.
12707 * math/s_iseqsig_template.c: Likewise.
12708 * math/s_ldexp_template.c: Likewise.
12709 * math/s_nextdown_template.c: Likewise.
12710 * math/w_log1p_template.c: Likewise.
12711 * math/w_scalbln_template.c: Likewise.
12712 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12713 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12714 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12715 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12716 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12717 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12718 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12719 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12720 * sysdeps/i386/fpu/s_atanl.c: Likewise.
12721 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12722 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12723 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12724 * sysdeps/i386/fpu/s_logbl.c: Likewise.
12725 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12726 * sysdeps/i386/fpu/s_significandl.c: Likewise.
12727 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
12728 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
12729 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12730 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12731 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12732 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12733 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12734 * sysdeps/ieee754/k_standardf.c: Likewise.
12735 * sysdeps/ieee754/k_standardl.c: Likewise.
12736 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12737 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
12738 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
12739 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
12740 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
12741 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
12742 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12743 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12744 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12745 * sysdeps/ieee754/s_signgam.c: Likewise.
12746 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
12747 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
12748 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
12749 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12750 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12751 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12752 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12753 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12754 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12755 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12756 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12757 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12758 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12759 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12760 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12761 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12762 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12763 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12764 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12765 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12766 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12767 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12768 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12769 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12770 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12771 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12772 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12773 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12774 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12775 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12776 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12777 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12778 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12779 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12780 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12781 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12782 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
12783 <math_private.h>.
12784 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12785
12786 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
12787
12788 [BZ #23716]
12789 * sysdeps/i386/dl-cet.c: Removed.
12790 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
12791 prototype.
12792 (_dl_runtime_profile_shstk): Likewise.
12793 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
12794 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
12795
12796 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12797
12798 [BZ #23579]
12799 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
12800 do_test_with_invalid_iov): New tests.
12801 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
12802 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
12803 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
12804 errno is ENOSYS.
12805 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12806 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12807 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
12808
12809 2018-09-27 Joseph Myers <joseph@codesourcery.com>
12810
12811 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12812 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
12813 (MATH_REDIRECT_BINARY_ARGS): New macro.
12814 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12815 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
12816 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
12817 header inclusion.
12818 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
12819 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12820 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
12821 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12822 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12823 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12824 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12825 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12826 Likewise.
12827 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12828 Likewise.
12829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
12830 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
12831 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12832 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12833 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
12834 Likewise.
12835 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
12836 Likewise.
12837 * sysdeps/generic/math_private_calls.h
12838 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
12839 Do not declare and define as an inline function.
12840 * math/divtc3.c (__divtc3): Use copysign functions instead of
12841 __copysign variants.
12842 * math/multc3.c (__multc3): Likewise.
12843 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
12844 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
12845 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
12846 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12847 Likewise.
12848 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
12849 (__ieee754_yn): Likewise.
12850 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
12851 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
12852 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
12853 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12854 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
12855 (__sin): Likewise.
12856 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12857 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12858 Likewise.
12859 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12860 Likewise.
12861 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12862 Likewise.
12863 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
12864 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12865 Likewise.
12866 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
12867 (__ieee754_ynf): Likewise.
12868 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
12869 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12870 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12871 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12872 Likewise.
12873 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
12874 (__ieee754_ynl): Likewise.
12875 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12876 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12877 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12878 Likewise.
12879 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12880 (__ieee754_ynl): Likewise.
12881 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
12882 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12883 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12884 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12885 Likewise.
12886 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
12887 (__ieee754_ynl)
12888 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
12889 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12890 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
12891 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12892 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12893
12894 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12895 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
12896 using MATH_REDIRECT.
12897 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
12898 header inclusion.
12899 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
12900 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12901 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12902 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
12903 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12904 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12905 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12906 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
12907 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
12908 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
12909 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
12910 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12911 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12912 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12913 (round): Redirect to __round.
12914 (__roundl): Call round instead of __round.
12915 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
12916 Remove macro.
12917 [_ARCH_PWR5X] (__roundf): Likewise.
12918 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12919 functions instead of __round variants.
12920 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12921 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12922 Likewise.
12923 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12924 Likewise.
12925 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12926 Likewise.
12927 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12928 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12929 __lroundl.
12930 (__ieee754_expl): Call roundl instead of __roundl.
12931
12932 2018-09-27 Andreas Schwab <schwab@suse.de>
12933
12934 [BZ #23717]
12935 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12936 (do_test): Make st1 static.
12937
12938 2018-09-26 Andreas Schwab <schwab@suse.de>
12939
12940 [BZ #23707]
12941 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12942 * elf/Makefile (tests): Add tst-unwind-ctor.
12943 (modules-names): Add tst-unwind-ctor-lib.
12944 ($(objpfx)tst-unwind-ctor): Depend on
12945 $(objpfx)tst-unwind-ctor-lib.so.
12946
12947 2018-09-26 Joseph Myers <joseph@codesourcery.com>
12948
12949 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12950 file. Most contents moved from ....
12951 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
12952 and include <bits/mman-map-flags-generic.h>.
12953 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12954 (sysdep_headers): Add bits/mman-map-flags-generic.h.
12955 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12956 <bits/mman-map-flags-generic.h>.
12957 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12958 macros defined in <bits/mman-map-flags-generic.h>.
12959 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12960 <bits/mman-map-flags-generic.h>.
12961 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12962 defined in <bits/mman-map-flags-generic.h>.
12963
12964 2018-09-26 Andreas Schwab <schwab@suse.de>
12965
12966 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12967 output.
12968
12969 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
12970 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12971 Fangrui Song <maskray@google.com>
12972
12973 [BZ #20480]
12974 * config.make.in (have-textrel_ifunc): New define.
12975 * configure.ac: Add check if linker supports textrel relocation with
12976 ifunc.
12977 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12978 tst-ifunc-textrel.
12979 (CFLAGS-tst-ifunc-textrel.c): New rule.
12980 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12981 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12982 * elf/tst-ifunc-textrel.c: New file.
12983
12984 2018-09-25 Joseph Myers <joseph@codesourcery.com>
12985
12986 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12987 <bits/procfs-prregset.h>.
12988 (prgregset_t): Define using __prgregset_t.
12989 (prfpregset_t): Define using __prfpregset_t.
12990 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12991 (sysdep_headers): Add bits/procfs-prregset.h.
12992 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12993 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12994 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12995 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
12996
12997 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12998 <bits/procfs-id.h> and <bits/procfs-extra.h>.
12999 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
13000 pr_uid and pr_gid.
13001 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13002 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
13003 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
13004 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
13005 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
13006 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
13007 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
13008 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
13009 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
13010 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
13011 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
13012 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
13013 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
13014 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
13015 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
13016 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
13017 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
13018 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
13019 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
13020 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
13021 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
13022 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
13023 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
13024 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
13025
13026 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
13027 AArch64 version. Include <bits/procfs.h>.
13028 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13029 (sysdep_headers): Add bits/procfs.h.
13030 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
13031 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
13032 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
13033 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
13034 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
13035 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
13036 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
13037 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
13038 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
13039 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
13040 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
13041 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
13042 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
13043 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
13044 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
13045 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
13046 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
13047
13048 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13049
13050 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
13051 Use libsupport.
13052
13053 2018-09-25 Arjun Shankar <arjun@redhat.com>
13054
13055 * iconv/gconv_int.h (__gconv_path_elem): Remove.
13056 (__gconv_max_path_elem_len): Likewise.
13057 (__gconv_nmodules): Likewise.
13058 (__gconv_get_path): Likewise.
13059 (path_elem): Move to ...
13060 * iconv/gconv_conf.c: ... here.
13061 (__gconv_get_path): Mark function static.
13062 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
13063 * iconv/gconv_open.c: ... here.
13064
13065 2018-09-24 Andreas Schwab <schwab@suse.de>
13066
13067 * scripts/haveversions.awk: New file.
13068 * Makerules ($(common-objpfx)Versions.def)
13069 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
13070 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
13071 Move rules ...
13072 * Makeconfig ($(common-objpfx)Versions.def)
13073 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
13074 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
13075 ... here.
13076 ($(common-objpfx)Versions.mk): New rule. Include it.
13077 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
13078 Emit error if build-obsolete-nsl = yes.
13079 * manual/install.texi (Configuring and compiling): Describe
13080 --enable-obsolete-nsl as unavaiable after version 2.28.
13081 * INSTALL: Regenerate.
13082
13083 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13084
13085 * NEWS: Add note about new TLE support on powerpc64le.
13086 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
13087 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
13088 __ununsed1.
13089 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
13090 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
13091 * sysdeps/powerpc/powerpc32/sysdep.h,
13092 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
13093 ABORT_TRANSACTION): Remove macros.
13094 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
13095 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
13096 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
13097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
13098 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
13099 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
13100 usage.
13101 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
13102
13103 2018-09-21 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
13104
13105 [BZ #10425]
13106 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
13107 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
13108 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
13109 which is the same as in it_IT.
13110 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
13111 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
13112
13113 2018-09-20 Joseph Myers <joseph@codesourcery.com>
13114
13115 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13116 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
13117 using MATH_REDIRECT.
13118 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
13119 header inclusion.
13120 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
13121 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
13122 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
13123 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
13124 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
13125 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
13126 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
13127 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
13128 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
13129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
13130 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13131 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13132 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
13133 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
13134 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
13135 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
13136 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
13137 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13138 (ceil): Redirect to __ceil.
13139 (floor): Redirect to __floor.
13140 (trunc): Redirect to __trunc.
13141 (__truncl): Call trunc instead of __trunc.
13142 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
13143 Remove macro.
13144 [_ARCH_PWR5X] (__truncf): Likewise.
13145 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
13146 trunc functions instead of __trunc variants.
13147 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
13148 Likewise.
13149 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
13150 Likewise.
13151 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13152 Likewise.
13153 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
13154 Likewise.
13155
13156 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
13157 [__i586__ || __pentium__].
13158 [__i486__]: Handle explicitly.
13159 (HAS_CPUID): Define to 1 if above macros are undefined.
13160 (HAS_I586): Likewise.
13161 (HAS_I686): Likewise.
13162
13163 2018-09-20 Florian Weimer <fweimer@redhat.com>
13164
13165 * misc/tst-gethostid.c: New file.
13166 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
13167 (tst-gethostid): Link with -ldl.
13168
13169 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
13170
13171 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
13172 value from gethostbyname_r.
13173
13174 2018-09-19 Carlos O'Donell <carlos@redhat.com>
13175
13176 * stdlib/tst-setcontext9.c (f1): Rename to...
13177 (f1a): ... this.
13178 (f1b): New function implementing lower half of f1 in alternate stack.
13179
13180 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
13181
13182 Fix mktime localtime offset confusion
13183 [BZ #23603]
13184 * include/time.h (__mktime_internal): The localtime offset is now
13185 of type long int instead of time_t. This is the longstanding type
13186 in glibc, and it is more than enough to represent difference
13187 between localtime and gmtime even if it is 32 bits and time_t is
13188 64. Changing it now will let us avoid an unnecessary change when
13189 time_t is widened to 64 bits on 32-bit platforms.
13190 * time/mktime-internal.h (mktime_offset_t): Now long int.
13191
13192 Merge mktime, timegm from upstream Gnulib
13193 [BZ #23603][BZ #16346]
13194 This fixes some obscure problems with integer overflow.
13195 Although it looks scary, it is almost all a byte-for-byte copy
13196 from Gnulib, and the Gnulib code has been tested reasonably well.
13197 * include/intprops.h: New file, copied from Gnulib.
13198 * include/verify.h, time/mktime-internal.h:
13199 New tiny files, simplified from Gnulib.
13200 * time/mktime.c: Copy from Gnulib. This has the following changes:
13201 Do not include config.h if DEBUG_MKTIME is nonzero.
13202 Include stdbool.h, intprops.h, verify.h.
13203 Include string.h only if needed.
13204 Include stdlib.h on MS-Windows.
13205 Include mktime-internal.h.
13206 (DEBUG_MKTIME): Default to 0, and simplify later uses.
13207 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
13208 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
13209 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
13210 simplify later conditionals; default the others to zero. Use
13211 these conditionals to express only the code needed on the current
13212 platform. In uses of these conditionals, explicitly spell out how
13213 _LIBC affects things, so it’s easier to review from a glibc
13214 viewpoint.
13215 (WRAPV): Remove; no longer needed now that we have
13216 systematic overflow checking.
13217 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
13218 compartmentalize tzset issues. Move system-dependent tzsettish
13219 code here from mktime.
13220 (verify): Remove; now done by verify.h. All uses changed.
13221 (long_int): Use a more-conservative definition, to avoid
13222 integer overflow.
13223 (SHR): Remove, replacing with ...
13224 (shr): New function, which means we needn’t worry about side
13225 effects in args, and conversion analysis is simpler.
13226 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
13227 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
13228 (time_t_avg, time_t_add_ok): Remove.
13229 (mktime_min, mktime_max): New constants.
13230 (leapyear, isdst_differ): Use bool for booleans.
13231 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
13232 Use long_int, not time_t, for mktime differences.
13233 (long_int_avg): New function, replacing time_t_avg.
13234 INT_ADD_WRAPV replaces time_t_add_ok.
13235 (guess_time_tm): 6th arg is now long_int, not time_t const *.
13236 All uses changed.
13237 (convert_time): New function.
13238 (ranged_convert): Use it.
13239 (__mktime_internal): Last arg now points to mktime_offset_t, not
13240 time_t. All uses changed. This is a no-op on glibc, where
13241 mktime_offset_t is always time_t. Use int, not time_t, for UTC
13242 offset guess. Directly check for integer overflow instead of
13243 using a heuristic that works only 99.9...% of the time.
13244 Access *OFFSET only once, to avoid an unlikely race if the
13245 compiler delays a load and if this cascades into a signed integer
13246 overflow.
13247 (mktime): Move tzsettish code to my_tzset, and move
13248 localtime_offset to within mktime so that it doesn’t
13249 need a separate ifdef.
13250 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
13251 instead of localtime.
13252 * time/timegm.c: Copy from Gnulib. This has the following changes:
13253 Include mktime-internal.h.
13254 [!_LIBC]: Include config.h and time.h. Do not include
13255 timegm.h or time_r.h. Make __mktime_internal a macro,
13256 and include mktime-internal.h to get its declaration.
13257 (timegm): Temporary is now mktime_offset_t, not time_t.
13258 This affects only Gnulib.
13259
13260 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
13261
13262 [BZ #23637]
13263 * string/test-strstr.c (pr23637): New function.
13264 (test_main): Add tests with longer needles.
13265 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
13266 * string/strstr.c (AVAILABLE): Likewise.
13267
13268 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
13269
13270 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
13271
13272 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
13273
13274 * NEWS: Mention pow improvements.
13275 * math/Makefile (type-double-routines): Add e_pow_log_data.
13276 * sysdeps/generic/math_private.h (__exp1): Remove.
13277 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
13278 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
13279 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
13280 contraction.
13281 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
13282 (exp_inline): Remove.
13283 (__ieee754_exp): Only single double input is handled.
13284 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
13285 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
13286 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
13287 (__pow_log_data): Define.
13288 * sysdeps/ieee754/dbl-64/upow.h: Remove.
13289 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
13290 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
13291 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
13292 contraction.
13293 (CFLAGS-e_pow-fma4.c): Likewise.
13294
13295 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
13296
13297 Simplify tzfile fstat failure code
13298 [BZ #21716]
13299 * time/tzfile.c (__tzfile_read): Simplify slightly.
13300
13301 Fix tzfile low-memory assertion failure
13302 [BZ #21716]
13303 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
13304 when registering time zone abbreviations.
13305
13306 2018-09-18 Joseph Myers <joseph@codesourcery.com>
13307
13308 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
13309 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
13310 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
13311 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
13312 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
13313 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
13314 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
13315 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13316 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13317
13318 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
13319 __ceil.
13320 (__ceill): Call ceil instead of __ceil.
13321 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
13322 __floor.
13323 (__floorl): Call floor instead of __floor.
13324
13325 2018-09-17 Joseph Myers <joseph@codesourcery.com>
13326
13327 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13328 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
13329 using MATH_REDIRECT.
13330 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
13331 header inclusion.
13332 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
13333 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13334 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13335 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
13336 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13337 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13338 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13339 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
13340 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
13341 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
13342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
13343 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
13344 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13345 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13346 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
13347 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
13348 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
13349 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
13350 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
13351 Remove macro.
13352 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
13353 functions instead of __ceil variants.
13354 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13355 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
13356 Likewise.
13357 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
13358 Likewise.
13359 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
13360 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
13361 Likewise.
13362 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
13363 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
13364
13365 [BZ #21286]
13366 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
13367 constant.
13368 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
13369 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
13370 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
13371 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
13372 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
13373 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
13374 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
13375 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
13376 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
13377 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
13378 (ILL_BADIADDR): Remove constant.
13379 (TRAP_BRANCH): Likewise.
13380 (TRAP_HWBKPT): Likewise.
13381
13382 2018-09-14 Joseph Myers <joseph@codesourcery.com>
13383
13384 [BZ #23656]
13385 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
13386 Remove [_MIPS_SIM = _ABIN32] conditional case.
13387 (struct elf_prpsinfo): Likewise.
13388
13389 [BZ #23649]
13390 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
13391 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
13392 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
13393 Likewise.
13394 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
13395 elf_prpsinfo): Likewise.
13396 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
13397 elf_prpsinfo): Likewise.
13398 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
13399 Likewise.
13400
13401 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13402 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
13403 using MATH_REDIRECT.
13404 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
13405 header inclusion.
13406 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
13407 * sysdeps/alpha/fpu/s_rint.c: Likewise.
13408 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
13409 * sysdeps/i386/fpu/s_rintl.c: Likewise.
13410 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13411 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13412 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
13413 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13414 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13415 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13416 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
13417 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
13418 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
13419 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
13420 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
13421 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13422 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13423 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
13424 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
13425 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
13426 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
13427 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
13428 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
13429 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
13430 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
13431 * sysdeps/x86_64/fpu/math_private.h: Remove file.
13432 * math/e_scalb.c (invalid_fn): Use rint functions instead of
13433 __rint variants.
13434 * math/e_scalbf.c (invalid_fn): Likewise.
13435 * math/e_scalbl.c (invalid_fn): Likewise.
13436 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
13437 Likewise.
13438 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
13439 Likewise.
13440 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
13441 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
13442 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
13443 Likewise.
13444 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13445 Likewise.
13446 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
13447 Likewise.
13448 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
13449 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
13450
13451 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13452 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
13453 New macro.
13454 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13455 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
13456 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13457 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
13458 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13459 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
13460 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13461 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
13462 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13463 && !NO_MATH_REDIRECT] (floor): Likewise.
13464 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
13465 header inclusion.
13466 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
13467 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13468 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13469 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
13470 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13471 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13472 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13473 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
13474 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
13475 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
13476 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
13477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
13478 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13479 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13480 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
13481 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
13482 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
13483 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
13484 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
13485 Remove macro.
13486 [_ARCH_PWR5X] (__floorf): Likewise.
13487 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
13488 inline function.
13489 [__SSE4_1__] (__floorf): Likewise.
13490 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
13491 instead of __floor variants.
13492 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
13493 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
13494 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
13495 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
13496 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
13497 * math/w_tgamma_compat.c (__tgamma): Likewise.
13498 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
13499 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
13500 * math/w_tgammal_compat.c (__tgammal): Likewise.
13501 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
13502 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
13503 Likewise.
13504 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
13505 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
13506 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
13507 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
13508 Likewise.
13509 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13510 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
13511 Likewise.
13512 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
13513 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
13514 Likewise.
13515 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13516 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
13517 Likewise.
13518 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13519 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
13520 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
13521 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
13522 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
13523 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
13524
13525 2018-09-12 Joseph Myers <joseph@codesourcery.com>
13526
13527 * elf/Makefile (modules-names-tests): New variable.
13528
13529 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
13530
13531 * NEWS: Mention log2 improvements.
13532 * math/Makefile (type-double-routines): Add e_log2_data.
13533 * sysdeps/i386/fpu/e_log2_data.c: New file.
13534 * sysdeps/ia64/fpu/e_log2_data.c: New file.
13535 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
13536 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
13537 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
13538 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
13539 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
13540
13541 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
13542
13543 * NEWS: Mention log improvement.
13544 * math/Makefile (type-double-routines): Add e_log_data.
13545 * sysdeps/i386/fpu/e_log_data.c: New file.
13546 * sysdeps/ia64/fpu/e_log_data.c: New file.
13547 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
13548 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
13549 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
13550 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
13551 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
13552 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
13553
13554 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
13555 Xuepeng Guo <xuepeng.guo@intel.com>
13556
13557 [BZ #23606]
13558 * sysdeps/i386/start.S: Include <sysdep.h>
13559 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
13560 enabled. Add cfi_undefined (eip).
13561
13562 2018-09-11 Joseph Myers <joseph@codesourcery.com>
13563
13564 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
13565 (MOVQ): Likewise.
13566 (EXTRACT_WORDS64): Likewise.
13567 (INSERT_WORDS64): Likewise.
13568 (GET_FLOAT_WORD): Likewise.
13569 (SET_FLOAT_WORD): Likewise.
13570
13571 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
13572 argument.
13573 (Config.build_gcc): Use --disable-libsanitizer for first GCC
13574 build, but not for second build if --full-gcc. Use
13575 --enable-languages=all for second build if --full-gcc.
13576 (get_parser): Add --full-gcc option.
13577 (main): Update call to Context.
13578
13579 2018-09-10 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
13580
13581 [BZ #10797]
13582 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
13583 Single Quotation Mark).
13584 (thousands_sep): Likewise.
13585 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
13586 * localedata/locales/it_IT (thousands_sep): Use ".".
13587 (grouping): Use "3;3".
13588
13589 2018-09-10 Joseph Myers <joseph@codesourcery.com>
13590
13591 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13592 x86_64 and i686 configs using --enable-obsolete-rpc
13593 --enable-obsolete-nsl.
13594
13595 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
13596
13597 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13598
13599 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
13600
13601 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
13602 Increment size of new_argv by one.
13603
13604 2018-09-05 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
13605
13606 [BZ #17426]
13607 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
13608 * localedata/locales/ar_IN (d_fmt): Likewise.
13609 * localedata/locales/bhb_IN (d_fmt): Likewise.
13610 * localedata/locales/bho_IN (d_fmt): Likewise.
13611 * localedata/locales/bn_BD (d_fmt): Likewise.
13612 * localedata/locales/bn_IN (d_fmt): Likewise.
13613 * localedata/locales/doi_IN (d_fmt): Likewise.
13614 * localedata/locales/gu_IN (d_fmt): Likewise.
13615 * localedata/locales/hi_IN (d_fmt): Likewise.
13616 * localedata/locales/hne_IN (d_fmt): Likewise.
13617 * localedata/locales/kn_IN (d_fmt): Likewise.
13618 * localedata/locales/mag_IN (d_fmt): Likewise.
13619 * localedata/locales/mai_IN (d_fmt): Likewise.
13620 * localedata/locales/mjw_IN (d_fmt): Likewise.
13621 * localedata/locales/ml_IN (d_fmt): Likewise.
13622 * localedata/locales/mni_IN (d_fmt): Likewise.
13623 * localedata/locales/mr_IN (d_fmt): Likewise.
13624 * localedata/locales/pa_IN (d_fmt): Likewise.
13625 * localedata/locales/raj_IN (d_fmt): Likewise.
13626 * localedata/locales/sat_IN (d_fmt): Likewise.
13627 * localedata/locales/sd_IN (d_fmt): Likewise.
13628 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
13629 * localedata/locales/ta_IN (d_fmt): Likewise.
13630 * localedata/locales/ta_LK (d_fmt): Likewise.
13631 * localedata/locales/tcy_IN (d_fmt): Likewise.
13632 * localedata/locales/ur_IN (d_fmt): Likewise.
13633
13634 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
13635 * localedata/locales/ks_IN (d_fmt): Likewise.
13636 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
13637
13638 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
13639 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
13640 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
13641 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
13642
13643 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
13644
13645 * NEWS: Mention exp and exp2 improvements.
13646 * math/Makefile (libm-support): Remove t_exp.
13647 (type-double-routines): Add math_err and e_exp_data.
13648 * sysdeps/aarch64/libm-test-ulps: Update.
13649 * sysdeps/arm/libm-test-ulps: Update.
13650 * sysdeps/i386/fpu/e_exp_data.c: New file.
13651 * sysdeps/i386/fpu/math_err.c: New file.
13652 * sysdeps/i386/fpu/t_exp.c: Remove.
13653 * sysdeps/ia64/fpu/e_exp_data.c: New file.
13654 * sysdeps/ia64/fpu/math_err.c: New file.
13655 * sysdeps/ia64/fpu/t_exp.c: Remove.
13656 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
13657 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
13658 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
13659 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
13660 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
13661 * sysdeps/ieee754/dbl-64/math_config.h: New file.
13662 * sysdeps/ieee754/dbl-64/math_err.c: New file.
13663 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
13664 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
13665 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
13666 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
13667 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
13668 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
13669 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
13670 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13671 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13672
13673 2018-09-05 Joseph Myers <joseph@codesourcery.com>
13674
13675 * sysdeps/alpha/fpu/math_private.h: Remove.
13676
13677 * sysdeps/generic/math_private.h
13678 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
13679 Move this inline function ....
13680 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
13681 * include/math.h [!_ISOMAC]: To here....
13682
13683 2018-09-04 Joseph Myers <joseph@codesourcery.com>
13684
13685 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
13686 code ....
13687 [!FE_HAVE_ROUNDING_MODES]: And this code ....
13688 * include/fenv.h [!_ISOMAC]: ... to here.
13689 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
13690 (feraiseexcept): Likewise.
13691 * math/fromfp.h: Do not include <fenv_private.h>.
13692 * math/s_cexp_template.c: Likewise.
13693 * math/s_csin_template.c: Likewise.
13694 * math/s_csinh_template.c: Likewise.
13695 * math/s_ctan_template.c: Likewise.
13696 * math/s_ctanh_template.c: Likewise.
13697 * math/s_iseqsig_template.c: Likewise.
13698 * math/w_acos_compat.c: Likewise.
13699 * math/w_acosf_compat.c: Likewise.
13700 * math/w_acosl_compat.c: Likewise.
13701 * math/w_asin_compat.c: Likewise.
13702 * math/w_asinf_compat.c: Likewise.
13703 * math/w_asinl_compat.c: Likewise.
13704 * math/w_j0_compat.c: Likewise.
13705 * math/w_j0f_compat.c: Likewise.
13706 * math/w_j0l_compat.c: Likewise.
13707 * math/w_j1_compat.c: Likewise.
13708 * math/w_j1f_compat.c: Likewise.
13709 * math/w_j1l_compat.c: Likewise.
13710 * math/w_jn_compat.c: Likewise.
13711 * math/w_jnf_compat.c: Likewise.
13712 * math/w_log10_compat.c: Likewise.
13713 * math/w_log10f_compat.c: Likewise.
13714 * math/w_log10l_compat.c: Likewise.
13715 * math/w_log2_compat.c: Likewise.
13716 * math/w_log2f_compat.c: Likewise.
13717 * math/w_log2l_compat.c: Likewise.
13718 * math/w_log_compat.c: Likewise.
13719 * math/w_logf_compat.c: Likewise.
13720 * math/w_logl_compat.c: Likewise.
13721 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13722 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13723 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13724 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13725 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13726 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13727 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13728 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13729 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13730 * sysdeps/ieee754/k_standardl.c: Likewise.
13731 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13732 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13733 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13734 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13735 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13736 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13737 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13738 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13739 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13740 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13741 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13742 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13743 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13744 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13745 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13746 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13747 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13748 * math/w_ilogb_template.c: Include <fenv.h> instead of
13749 <fenv_private.h>.
13750 * math/w_llogb_template.c: Likewise.
13751 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13752 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13753
13754 2018-09-03 Joseph Myers <joseph@codesourcery.com>
13755
13756 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
13757 * math/fromfp.h: Include <fenv_private.h>.
13758 * math/math-narrow.h: Likewise.
13759 * math/s_cexp_template.c: Likewise.
13760 * math/s_csin_template.c: Likewise.
13761 * math/s_csinh_template.c: Likewise.
13762 * math/s_ctan_template.c: Likewise.
13763 * math/s_ctanh_template.c: Likewise.
13764 * math/s_iseqsig_template.c: Likewise.
13765 * math/w_acos_compat.c: Likewise.
13766 * math/w_acosf_compat.c: Likewise.
13767 * math/w_acosl_compat.c: Likewise.
13768 * math/w_asin_compat.c: Likewise.
13769 * math/w_asinf_compat.c: Likewise.
13770 * math/w_asinl_compat.c: Likewise.
13771 * math/w_ilogb_template.c: Likewise.
13772 * math/w_j0_compat.c: Likewise.
13773 * math/w_j0f_compat.c: Likewise.
13774 * math/w_j0l_compat.c: Likewise.
13775 * math/w_j1_compat.c: Likewise.
13776 * math/w_j1f_compat.c: Likewise.
13777 * math/w_j1l_compat.c: Likewise.
13778 * math/w_jn_compat.c: Likewise.
13779 * math/w_jnf_compat.c: Likewise.
13780 * math/w_llogb_template.c: Likewise.
13781 * math/w_log10_compat.c: Likewise.
13782 * math/w_log10f_compat.c: Likewise.
13783 * math/w_log10l_compat.c: Likewise.
13784 * math/w_log2_compat.c: Likewise.
13785 * math/w_log2f_compat.c: Likewise.
13786 * math/w_log2l_compat.c: Likewise.
13787 * math/w_log_compat.c: Likewise.
13788 * math/w_logf_compat.c: Likewise.
13789 * math/w_logl_compat.c: Likewise.
13790 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
13791 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
13792 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
13793 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
13794 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13795 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13796 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13797 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13798 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13799 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13800 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13801 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13802 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
13803 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13804 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13805 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13806 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13807 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13808 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13809 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13810 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13811 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13812 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13813 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13814 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13815 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13816 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13817 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
13818 * sysdeps/ieee754/float128/float128_private.h: Likewise.
13819 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13820 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13821 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13822 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13823 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13824 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13825 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13826 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13827 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13828 * sysdeps/ieee754/k_standardl.c: Likewise.
13829 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13830 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13831 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13832 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13833 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
13834 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
13835 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13836 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13837 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13838 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13839 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13840 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13841 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13842 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13843 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13844 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13845 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13846 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
13847 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13848 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13849 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13850 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13851 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13852 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13853 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13854 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13855 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13856 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
13857 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
13858 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13859 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13860 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13861 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13862 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13863 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13864 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13865 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13866 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13867 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13868 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13869 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13870 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13871 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13872 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13873 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13874 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13875 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13876 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13877 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13878 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13879 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13880 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13881 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13882 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13883 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13884 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13885 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13886 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13887 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13888 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13889 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13890 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13891 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13892 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13893 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13894 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13895 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13896 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13897 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13898 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13899 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13900
13901 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
13902
13903 [BZ #20271]
13904 * include/stdio.h (__libc_fatal): Mention newline in comment.
13905 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
13906 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
13907 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13908 * nss/nsswitch.c (__nss_next2): Likewise.
13909 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
13910 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
13911 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
13912 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
13913 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
13914 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
13915 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
13916 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
13917 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
13918 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13919 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13920 * sysdeps/unix/sysv/linux/netlink_assert_response.c
13921 (__netlink_assert_response): Likewise.
13922
13923 2018-08-31 Joseph Myers <joseph@codesourcery.com>
13924
13925 * conform/glibcconform.py: New file.
13926 * conform/list-header-symbols.py: Likewise.
13927 * conform/list-header-symbols.pl: Remove.
13928 * conform/Makefile (tests-special): Only add linknamespace tests
13929 if [PYTHON].
13930 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13931
13932 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
13933
13934 [BZ #23597]
13935 * support/Makefile (libsupport-routines): Add
13936 support_copy_file_range and xcopy_file_range.
13937 * support/support.h: Include <sys/types.h>.
13938 (support_copy_file_range): New prototype.
13939 * support/support_copy_file_range.c: New file. Copied and
13940 modified from io/copy_file_range-compat.c.
13941 * support/test-container.c (copy_one_file): Call xcopy_file_rang
13942 instead of copy_file_range.
13943 * support/xcopy_file_range.c: New file.
13944 * support/xunistd.h (xcopy_file_range): New prototype.
13945
13946 2018-08-30 Carlos O'Donell <carlos@redhat.com>
13947
13948 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13949 xpthread_create and xpthread_join.
13950
13951 2018-08-30 Florian Weimer <fweimer@redhat.com>
13952
13953 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13954
13955 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
13956
13957 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13958 if malloc fails.
13959
13960 2018-08-29 Joseph Myers <joseph@codesourcery.com>
13961
13962 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13963 and minus_oflow as non-finite.
13964
13965 2018-08-28 Joseph Myers <joseph@codesourcery.com>
13966
13967 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
13968 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
13969 moved to fenv_private.h except for ...
13970 (TOINT_INTRINSICS): Kept in math_private.h.
13971 (roundtoint): Likewise.
13972 (converttoint): Likewise.
13973 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13974 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13975 * sysdeps/arm/math_private.h: Remove.
13976 * sysdeps/generic/fenv_private.h: New file. Contents moved from
13977 ....
13978 * sysdeps/generic/math_private.h: ... this file. Include
13979 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
13980 Include <fenv_private.h>. Remove functions and macros moved to
13981 fenv_private.h.
13982 * sysdeps/i386/fpu/math_private.h: Remove.
13983 * sysdeps/mips/math_private.h: Move to ....
13984 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
13985 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
13986 [__mips_hard_float] conditional. Include next <fenv_private.h>.
13987 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13988 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13989 * sysdeps/powerpc/fpu/math_private.h: Do not include
13990 <fenv_private.h>.
13991 * sysdeps/riscv/rvf/math_private.h: Move to ....
13992 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
13993 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
13994 <fenv_private.h>.
13995 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
13996 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13997 * sysdeps/sparc/fpu/math_private.h: Remove.
13998 * sysdeps/i386/fpu/fenv_private.h: Move to ....
13999 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
14000 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
14001 <fenv_private.h>.
14002 * sysdeps/x86_64/fpu/math_private.h: Do not include
14003 <sysdeps/i386/fpu/fenv_private.h>.
14004
14005 2018-08-28 Florian Weimer <fweimer@redhat.com>
14006
14007 [BZ #23578]
14008 * posix/tst-regcomp-truncated.c: New file.
14009 * posix/Makefile (tests): Add it.
14010 (tst-regcomp-truncated.out): Depend on generated locales.
14011
14012 2018-08-28 Florian Weimer <fweimer@redhat.com>
14013
14014 * support/test-container.c (main): Treat unshare failure with
14015 EPERM as an unsupported test.
14016
14017 2018-08-28 Florian Weimer <fweimer@redhat.com>
14018
14019 [BZ #23520]
14020 nscd: Fix use-after-free in addgetnetgrentX and its callers.
14021 * nscd/netgroupcache.c
14022 (addgetnetgrentX): Add tofreep parameter. Do not free
14023 heap-allocated buffer.
14024 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
14025 (addgetnetgrentX_ignore): New function.
14026 (addgetnetgrent): Call it.
14027 (readdgetnetgrent): Likewise.
14028
14029 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14030
14031 * string/memmem.c: Use memcmp for first match.
14032
14033 2018-08-28 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
14034
14035 [BZ #17426]
14036 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
14037
14038 2018-08-27 DJ Delorie <dj@redhat.com>
14039
14040 * support/Makefile (others): Don't list programs explicitly as a
14041 dependency of "others".
14042
14043 2018-08-27 Joseph Myers <joseph@codesourcery.com>
14044
14045 * sysdeps/generic/math-tests-trap-force.h: New file.
14046 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
14047 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
14048 * sysdeps/powerpc/math-tests.h: Remove file.
14049 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
14050
14051 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
14052 Torvald Riegel <triegel@redhat.com>
14053
14054 [BZ #23538]
14055 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
14056 Update r to include the set wake-request flag if waiters are
14057 remaining after spinning.
14058
14059 2018-08-27 Joseph Myers <joseph@codesourcery.com>
14060
14061 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
14062
14063 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
14064
14065 [BZ #23578]
14066 regex: fix uninitialized memory access
14067 I introduced this bug into gnulib in commit
14068 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
14069 eventually it was merged into glibc. The bug was found by
14070 project-repo <bugs@feusi.co> and reported here:
14071 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
14072 Diagnosis and draft fix reported by Assaf Gordon here:
14073 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
14074 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
14075 * posix/regex_internal.c (build_wcs_upper_buffer):
14076 Fix bug when mbrtowc returns 0.
14077
14078 2018-08-24 Carlos O'Donell <carlos@redhat.com>
14079
14080 * po/be.po: Update translation.
14081
14082 2018-08-24 DJ Delorie <dj@delorie.com>
14083
14084 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
14085 $(libunwind).
14086
14087 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
14088
14089 [BZ #23400]
14090 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
14091 create temporary files in source tree.
14092
14093 2018-08-24 Joseph Myers <joseph@codesourcery.com>
14094
14095 * sysdeps/generic/math-tests-trap.h: New file.
14096 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
14097 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
14098 * sysdeps/aarch64/math-tests.h: Remove file.
14099 * sysdeps/arm/math-tests.h: Likewise.
14100 * sysdeps/riscv/math-tests.h: Likewise.
14101 * sysdeps/aarch64/math-tests-trap.h: New file.
14102 * sysdeps/arm/math-tests-trap.h: Likewise.
14103 * sysdeps/riscv/math-tests-trap.h: Likewise.
14104
14105 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
14106
14107 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
14108 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
14109 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
14110 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
14111 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
14112 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
14113 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
14114 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
14115 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
14116 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14117 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14118 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14119 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14120 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
14121 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
14122 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
14123 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
14124 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
14125
14126 2018-08-23 Joseph Myers <joseph@codesourcery.com>
14127
14128 * sysdeps/generic/math-tests-exceptions.h: New file.
14129 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
14130 (EXCEPTION_TESTS_float): Do not define here.
14131 (EXCEPTION_TESTS_double): Likewise.
14132 (EXCEPTION_TESTS_long_double): Likewise.
14133 (EXCEPTION_TESTS_float128): Likewise.
14134 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
14135 Likewise.
14136 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
14137 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
14138 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
14139 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
14140 * sysdeps/mips/math-tests.h: Likewise.
14141 * sysdeps/nios2/math-tests.h: Likewise.
14142 * sysdeps/riscv/math-tests.h [!__riscv_flen]
14143 (EXCEPTION_TESTS_float): Do not define here.
14144 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
14145 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
14146 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
14147
14148 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14149
14150 * NEWS: Move optimized sinf entry to 2.29.
14151
14152 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14153
14154 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
14155
14156 2018-08-22 DJ Delorie <dj@redhat.com>
14157
14158 * Makefile (testroot.pristine): New rules to initialize the
14159 test-in-container "testroot".
14160 * Makerules (all-testsuite): Add tests-container.
14161 * Rules (tests-expected): Add tests-container.
14162 (binaries-all-tests): Likewise.
14163 (tests-container): New, run these tests in the testroot container.
14164 * support/Makefile (others): Add *-container, support_paths.c,
14165 xmkdirp, and links-dso-program.
14166 * support/links-dso-program-c.c: New.
14167 * support/links-dso-program.cc: New.
14168 * support/test-container.c: New.
14169 * support/shell-container.c: New.
14170 * support/echo-container.c: New.
14171 * support/true-container.c: New.
14172 * support/xmkdirp.c: New.
14173 * support/xsymlink.c: New.
14174 * support/support_paths.c: New.
14175 * support/support.h: Add support paths prototypes.
14176 * support/xunistd.h: Add xmkdirp () and xsymlink ().
14177
14178 * nss/tst-nss-test3.c: Convert to test-in-container.
14179 * nss/tst-nss-test3.root/: New.
14180
14181 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
14182
14183 regex: port Gnulib code to z/OS POSIX environment
14184 Problem reported by Arnold Robbins in:
14185 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
14186 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
14187 Undef.
14188
14189 2018-08-22 Joseph Myers <joseph@codesourcery.com>
14190
14191 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
14192 (ROUNDING_TESTS_double): Remove.
14193 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
14194 (ROUNDING_TESTS_double): Remove.
14195 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
14196 (ROUNDING_TESTS_double): Remove.
14197 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
14198 (ROUNDING_TESTS_float): Remove.
14199 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
14200 (ROUNDING_TESTS_float): Remove.
14201 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
14202 (ROUNDING_TESTS_float): Remove.
14203 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
14204 !TEST_MATHVEC here.
14205 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
14206 (IF_ROUND_INIT_FE_UPWARD): Likewise.
14207
14208 * sysdeps/generic/math-tests-rounding.h: New file.
14209 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
14210 (ROUNDING_TESTS_float): Do not define here.
14211 (ROUNDING_TESTS_double): Likewise.
14212 (ROUNDING_TESTS_long_double): Likewise.
14213 (ROUNDING_TESTS_float128): Likewise.
14214 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
14215 (ROUNDING_TESTS_double): Undefine before defining.
14216 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
14217 (ROUNDING_TESTS_double): Undefine before defining.
14218 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
14219 (ROUNDING_TESTS_double): Undefine before defining.
14220 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
14221 (ROUNDING_TESTS_float): Undefine before defining.
14222 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
14223 (ROUNDING_TESTS_float): Undefine before defining.
14224 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
14225 (ROUNDING_TESTS_float): Undefine before defining.
14226 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
14227 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
14228 not define here.
14229 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
14230 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
14231 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
14232 * sysdeps/riscv/math-tests.h [!__riscv_flen]
14233 (ROUNDING_TESTS_float): Do not define here.
14234 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
14235 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
14236 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
14237 (ROUNDING_TESTS_float): Likewise.
14238 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
14239 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
14240 * sysdeps/mips/math-tests.h [__mips_soft_float]
14241 (ROUNDING_TESTS_float): Likewise.
14242 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
14243 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
14244 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
14245 (ROUNDING_TESTS_double): Likewise.
14246 (ROUNDING_TESTS_long_double): Likewise.
14247
14248 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
14249
14250 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
14251 (PF_XDP): New macro.
14252 (AF_XDP): New macro.
14253 (SOL_XDP): New macro.
14254
14255 2018-08-21 Joseph Myers <joseph@codesourcery.com>
14256
14257 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
14258 (TCP_INQ): Likewise.
14259 (TCP_CM_INQ): Likewise.
14260 (TCP_REPAIR_ON): Likewise.
14261 (TCP_REPAIR_OFF): Likewise.
14262 (TCP_REPAIR_OFF_NO_WP): Likewise.
14263 (struct tcp_zerocopy_receive): New type.
14264
14265 2018-08-21 Florian Weimer <fweimer@redhat.com>
14266
14267 * support/support.h (support_descriptor_supports_holes): Declare.
14268 * support/Makefile (libsupport-routines): Add
14269 support_descriptor_supports_holes.
14270 * support/support_descriptor_supports_holes.c: New file.
14271 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
14272 and stop testing if holes are not supported.
14273 * io/test-lfs.c (do_prepare): Likewise.
14274 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
14275 Likewise.
14276 * timezone/tst-tzset.c (create_tz_file): Likewise.
14277 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
14278 variable.
14279 (do_prepare): Set it.
14280 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
14281
14282 2018-08-21 Florian Weimer <fweimer@redhat.com>
14283
14284 [BZ #17248]
14285 * Makeconfig (+cflags): Do not sort (and deduplicate).
14286
14287 2018-08-21 Florian Weimer <fweimer@redhat.com>
14288
14289 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
14290 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
14291
14292 2018-08-20 Florian Weimer <fweimer@redhat.com>
14293
14294 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
14295 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
14296
14297 2018-08-20 Joseph Myers <joseph@codesourcery.com>
14298
14299 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
14300 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
14301 and ssi_arch members.
14302
14303 * elf/elf.c (NT_VMCOREDD): New macro.
14304 (AT_MINSIGSTKSZ): Likewise.
14305
14306 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14307
14308 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
14309 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
14310 s_cosf-ppc64 and s_cosf-power8.
14311 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
14312 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
14313 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
14314 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
14315 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
14316 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
14317 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
14318 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
14319 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
14320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
14321 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
14322 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
14323
14324 2018-08-17 Florian Weimer <fweimer@redhat.com>
14325
14326 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
14327
14328 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
14329
14330 * malloc/malloc.c (_int_malloc): Additional binning code checks.
14331
14332 2018-08-16 Florian Weimer <fweimer@redhat.com>
14333
14334 * configure.ac: Add --with-nonshared-cflags option.
14335 * config.make.in (extra-nonshared-cflags): Set variable.
14336 * Makeconfig (CFLAGS-.oS): Use it.
14337 * manual/install.texi (Configuring and compiling): Document
14338 --with-nonshared-cflags.
14339 * configure: Regenerate.
14340 * INSTALL: Likewise.
14341
14342 2018-08-16 Florian Weimer <fweimer@redhat.com>
14343
14344 * Makeconfig (ASFLAGS): Always append required assembler flags.
14345
14346 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
14347
14348 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
14349 (malloc_consolidate): Likewise.
14350
14351 2018-08-16 Pochang Chen <johnchen902@gmail.com>
14352
14353 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
14354
14355 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
14356
14357 * benchtests/bench-strlen.c (do_test): Allocate buffers before
14358 every strlen call.
14359
14360 * benchtests/bench-strlen.c: Print performance numbers in json.
14361
14362 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14363
14364 * sysdeps/powerpc/powerpc64/multiarch/Makefile
14365 (sysdep_routines): Build strcmp-power9 and strncmp-power9
14366 only for little endian.
14367 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
14368 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
14369 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
14370 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
14371 Add check for little endian.
14372 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
14373 (__strcmp_power9): Add check for little endian.
14374 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
14375 Add check for little endian.
14376 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
14377 (__strncmp_power9): Add check for little endian.
14378 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
14379 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
14380 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
14381 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
14382 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
14383
14384 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14385
14386 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
14387 [!STRLEN](STRLEN): Set to __strlen.
14388 * sysdeps/aarch64/multiarch/strlen.c: New file.
14389 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
14390 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
14391 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
14392 (__libc_ifunc_impl_list): Add strlen.
14393 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
14394 strlen_generic and strlen_asimd.
14395
14396 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
14397
14398 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
14399 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
14400 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
14401
14402 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
14403
14404 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
14405
14406 2018-08-14 Florian Weimer <fweimer@redhat.com>
14407
14408 [BZ #23519]
14409 * include/stdio.h (__vfxprintf): Declare.
14410 * stdio-common/fxprintf.c (__vfxprintf): New function.
14411 (__fxprintf): Call it.
14412 * misc/err.c (convert_and_print): Remove function.
14413 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
14414 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
14415 * misc/Makefile (tests): Add tst-warn-wide.
14416 * misc/tst-warn-wide.c: New file.
14417
14418 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
14419 Szabolcs Nagy <szabolcs.nagy@arm.com>
14420
14421 * NEWS: Mention sinf, cosf, sincosf.
14422 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
14423 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
14424 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
14425 constants rather than including generic sincosf.h.
14426 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
14427 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
14428 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
14429 (reduced_cos): Remove.
14430 (sinf_poly): New function.
14431 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
14432
14433 2018-08-14 Florian Weimer <fweimer@redhat.com>
14434
14435 [BZ #23521]
14436 [BZ #23522]
14437 * nss/nss_files/files-alias.c (get_next_alias): During :include:
14438 processing, bail out if no room, and close the stream before
14439 returning ERANGE.
14440 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
14441 (tst-nss-files-alias-leak): Link with libdl.
14442 (tst-nss-files-alias-leak.out): Depend on nss_files.
14443
14444 * nss/tst-nss-files-alias-leak.c: New file.
14445
14446 2018-08-14 Florian Weimer <fweimer@redhat.com>
14447
14448 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
14449 server_user, stat_user.
14450
14451 2018-08-13 Joseph Myers <joseph@codesourcery.com>
14452
14453 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14454 version to 4.18.
14455 (io_pgetevents): New syscall.
14456 (rseq): Likewise.
14457
14458 * manual/install.texi (Configuring and compiling): Do not list
14459 tools used for testing pretty printers here.
14460 (Tools for Compilation): List Python, PExpect and GDB here.
14461 Update descriptions of uses of Perl and Python.
14462 * INSTALL: Regenerate.
14463
14464 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
14465 version to 4.18.
14466
14467 2018-08-13 Florian Weimer <fweimer@redhat.com>
14468
14469 * misc/error.c (error): Add missing va_end call.
14470 (error_at_line): Likewise.
14471
14472 2018-08-13 Florian Weimer <fweimer@redhat.com>
14473
14474 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
14475
14476 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14477
14478 * benchtests/scripts/benchout.schema.json (properties): Add
14479 new properties.
14480
14481 * benchtests/bench-skeleton.c (main): Add duration and
14482 iterations attributes.
14483
14484 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
14485
14486 regex: Gnulib unibyte RRI uses bytes not chars
14487 Adjust the non-glibc code to agree with what Gawk needs for
14488 rational range interpretation (RRI) for regular expression ranges.
14489 In unibyte locales, Gawk wants ranges to use the underlying byte
14490 rather than the character code point. This change does not affect
14491 glibc proper.
14492 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
14493 In unibyte locales, use the byte value rather than
14494 running it through btowc.
14495
14496 2018-08-10 Joseph Myers <joseph@codesourcery.com>
14497
14498 * sysdeps/generic/math-tests-snan.h: New file.
14499 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
14500 (SNAN_TESTS_float): Do not define here.
14501 (SNAN_TESTS_double): Likewise.
14502 (SNAN_TESTS_long_double): Likewise.
14503 (SNAN_TESTS_float128): Likewise.
14504 * sysdeps/i386/fpu/math-tests-snan.h: New file.
14505 * sysdeps/i386/fpu/math-tests.h: Remove file.
14506 * sysdeps/ia64/math-tests-snan.h: New file.
14507 * sysdeps/ia64/math-tests.h: Remove file.
14508 * sysdeps/x86/math-tests.h: Likewise.
14509 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
14510
14511 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
14512 Szabolcs Nagy <szabolcs.nagy@arm.com>
14513
14514 * math/Makefile: Add s_sincosf_data.c.
14515 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
14516 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
14517 (sincosf_poly): Likewise.
14518 (reduce_small): Likewise.
14519 (reduce_large): Likewise.
14520 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
14521 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
14522 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
14523 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
14524
14525 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
14526 Szabolcs Nagy <szabolcs.nagy@arm.com>
14527
14528 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
14529 (converttoint): Use lround.
14530 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
14531 document the semantics when TOINT_INTRINSICS is set.
14532 (converttoint): Likewise.
14533 (TOINT_RINT): Remove.
14534 (TOINT_SHIFT): Remove.
14535 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
14536 path.
14537
14538 2018-08-10 Florian Weimer <fweimer@redhat.com>
14539
14540 [BZ #23497]
14541 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
14542 function.
14543 (__old_getdents64): Use getdents64. Convert entries without
14544 moving them.
14545 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
14546 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
14547 tst-readdir64-compat.
14548
14549 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14550
14551 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
14552 Fix unwind.
14553
14554 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14555
14556 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
14557 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
14558 code to s390x-mcount.h and #include it.
14559 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
14560 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
14561 (__fentry__): Add.
14562
14563 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14564
14565 * stdlib/Versions: Remove __fentry__.
14566 * sysdeps/i386/Versions: Add __fentry__.
14567 * sysdeps/x86_64/Versions: Add __fentry__.
14568
14569 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14570
14571 * sysdeps/s390/Makefile: Register the new tests.
14572 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
14573 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
14574 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
14575 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
14576 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
14577 * sysdeps/s390/tst-dl-runtime.c: New file.
14578
14579 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14580
14581 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
14582 Do not clobber R0.
14583
14584 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14585
14586 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
14587 Do not clobber R0.
14588
14589 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14590
14591 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
14592 Do not clobber R0.
14593
14594 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14595
14596 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
14597 Do not clobber R0.
14598
14599 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14600
14601 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
14602 Use symbolic offsets for stack variables.
14603
14604 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14605
14606 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
14607 Use symbolic offsets for stack variables.
14608
14609 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14610
14611 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
14612 Use symbolic offsets for stack variables.
14613
14614 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14615
14616 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
14617 Use symbolic offsets for stack variables.
14618
14619 2018-08-09 Joseph Myers <joseph@codesourcery.com>
14620
14621 * math/gen-libm-test.py: New file.
14622 * math/gen-libm-test.pl: Remove.
14623 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
14624 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
14625 gen-libm-test.pl.
14626 ($(libm-test-c-noauto-obj)): Likewise.
14627 ($(libm-test-c-auto-obj)): Likewise.
14628 ($(libm-test-c-narrow-obj)): Likewise.
14629 (regen-ulps): Likewise.
14630 * math/README.libm-test: Update references to gen-libm-test.pl.
14631 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
14632 referencing gen-libm-test.pl.
14633 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
14634 * math/libm-test-support.c: Likewise.
14635 * math/libm-test-support.h: Likewise.
14636 * sysdeps/generic/libm-test-ulps: Likewise.
14637
14638 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
14639
14640 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
14641 Fix value.
14642
14643 2018-08-08 Joseph Myers <joseph@codesourcery.com>
14644
14645 * math/libm-test-nextdown.inc (do_test): Move comment to ....
14646 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
14647
14648 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14649
14650 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
14651 symbols.
14652 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
14653 __pthread_setspecific): Add hidden proto.
14654 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
14655 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
14656
14657 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14658
14659 * benchtests/bench-string.h (buf1_size, buf2_size): New
14660 variables.
14661 (init_sizes): New function.
14662 (test_init): Use it.
14663 (alloc_buf, exit_error): New functions.
14664 (alloc_bufs): Use ALLOC_BUF.
14665 (realloc_bufs): Remove.
14666 * benchtests/bench-memcmp.c (do_test): Adjust.
14667 * benchtests/bench-memset-large.c (do_test): Likewise.
14668 * benchtests/bench-memset-walk.c (do_test): Likewise.
14669 * benchtests/bench-memset.c (do_test): Likewise.
14670 * benchtests/bench-strncmp.c (do_test): Likewise.
14671
14672 2018-08-06 Andreas Schwab <schwab@suse.de>
14673
14674 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
14675 of CONST_THREAD_AREA.
14676
14677 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
14678
14679 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
14680 (STATE_SAVE_MASK): Likewise.
14681 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
14682 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
14683 (STATE_SAVE_MASK): Likewise.
14684 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
14685 instead of <cpu-features.h>.
14686
14687 2018-08-03 DJ Delorie <dj@redhat.com>
14688
14689 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
14690 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
14691
14692 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
14693
14694 2018-08-03 Joseph Myers <joseph@codesourcery.com>
14695
14696 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
14697 after TEST_* calls.
14698 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
14699 * math/libm-test-logb.inc (logb_test_data): Likewise.
14700
14701 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
14702
14703 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
14704 * string/strstr.c (AVAILABLE): Likewise.
14705
14706 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14707
14708 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
14709 <init-arch.h>.
14710 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
14711 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
14712 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
14713
14714 2018-08-03 Carlos O'Donell <carlos@redhat.com>
14715
14716 * po/be.po: Update translation.
14717
14718 * po/be.po: Update translation.
14719
14720 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14721
14722 * sysdeps/x86/cpu-features-offsets.sym
14723 (rtld_global_ro_offsetof): Removed.
14724 (CPU_FEATURES_SIZE): Likewise.
14725 (CPUID_OFFSET): Likewise.
14726 (CPUID_SIZE): Likewise.
14727 (CPUID_EAX_OFFSET): Likewise.
14728 (CPUID_EBX_OFFSET): Likewise.
14729 (CPUID_ECX_OFFSET): Likewise.
14730 (CPUID_EDX_OFFSET): Likewise.
14731 (FAMILY_OFFSET): Likewise.
14732 (MODEL_OFFSET): Likewise.
14733 (FEATURE_OFFSET): Likewise.
14734 (FEATURE_SIZ): Likewise.
14735 (COMMON_CPUID_INDEX_1): Likewise.
14736 (COMMON_CPUID_INDEX_7): Likewise.
14737 (FEATURE_INDEX_1): Likewise.
14738 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
14739
14740 2018-08-02 Carlos O'Donell <carlos@redhat.com>
14741
14742 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
14743 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
14744 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
14745 (install-locales): Depend on install-locale-archive.
14746 (install-locale-archive): Define.
14747 (install-locale-files): Define.
14748 (build-one-locale): Define macro.
14749 * manual/install.texi (Running make install): Document.
14750 * manual/INSTALL: Regenerate.
14751
14752 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
14753
14754 * benchtests/scripts/compare_strings.py: Import traceback.
14755 (parse_file): Pretty-print error.
14756
14757 * NEWS: Mention the change.
14758 * elf/dl-tunables.list: Rename tune namespace to cpu.
14759 * sysdeps/powerpc/dl-tunables.list: Likewise.
14760 * sysdeps/x86/dl-tunables.list: Likewise.
14761 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
14762 cpu.name.
14763 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
14764 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
14765 * manual/README.tunables: Likewise.
14766 * manual/tunables.texi: Likewise.
14767 * sysdeps/powerpc/cpu-features.c: Likewise.
14768 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14769 (init_cpu_features): Likewise.
14770 * sysdeps/x86/cpu-features.c: Likewise.
14771 * sysdeps/x86/cpu-features.h: Likewise.
14772 * sysdeps/x86/cpu-tunables.c: Likewise.
14773 * sysdeps/x86_64/Makefile: Likewise.
14774 * sysdeps/x86/dl-cet.c: Likewise.
14775
14776 2018-08-02 Joseph Myers <joseph@codesourcery.com>
14777
14778 [BZ #23479]
14779 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
14780 [__mips_hard_float].
14781 (FE_UNDERFLOW): Likewise.
14782 (FE_OVERFLOW): Likewise.
14783 (FE_DIVBYZERO): Likewise.
14784 (FE_INVALID): Likewise.
14785 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
14786 (FE_TOWARDZERO): Define only if [__mips_hard_float].
14787 (FE_UPWARD): Likewise.
14788 (FE_DOWNWARD): Likewise.
14789 (__FE_UNDEFINED): Define if [!__mips_hard_float]
14790 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
14791 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
14792 [__mips_hard_float].
14793 (FP_ROUNDMODE): Likewise.
14794 (FP_RND_NEAREST): Likewise.
14795 (FP_RND_ZERO): Likewise.
14796 (FP_RND_PINF): Likewise.
14797 (FP_RND_MINF): Likewise.
14798 (FP_EX_INVALID): Likewise.
14799 (FP_EX_OVERFLOW): Likewise.
14800 (FP_EX_UNDERFLOW): Likewise.
14801 (FP_EX_DIVZERO): Likewise.
14802 (FP_EX_INEXACT): Likewise.
14803 (FP_INIT_ROUNDMODE): Likewise.
14804 * sysdeps/mips/nofpu/fesetenv.c: New file.
14805 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
14806
14807 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14808
14809 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
14810 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
14811 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
14812 conditional on [FE_UPWARD].
14813
14814 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
14815
14816 regex: fix memory leak in Gnulib
14817 Problem and fix reported by Assaf Gordon in:
14818 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
14819 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
14820 range_ends members too, as they are defined in 'struct
14821 re_charset_t' even if not _LIBC. This affects only Gnulib.
14822
14823 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
14824
14825 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
14826 ...
14827 (get_common_indices): This.
14828 (init_cpu_features): Updated.
14829
14830 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14831
14832 * sysdeps/generic/math-tests-snan-payload.h: New file.
14833 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
14834 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
14835 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
14836 * sysdeps/generic/math-tests.h: Include
14837 <math-tests-snan-payload.h>.
14838 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14839 * sysdeps/hppa/math-tests.h: Remove file.
14840 * sysdeps/mips/math-tests.h [!__mips_nan2008]
14841 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14842 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
14843 Likewise.
14844
14845 * sysdeps/generic/math-tests-snan-cast.h: New file.
14846 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
14847 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
14848 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
14849 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
14850
14851 2018-08-01 Carlos O'Donell <carlos@redhat.com>
14852
14853 * version.h (RELEASE): Set to "development".
14854 (VERSION): Set to "2.28.9000".
14855 * NEWS (2.29): New section.
14856
14857 * version.h (RELEASE): Set to "stable".
14858 (VERSION): Set to "2.28".
14859 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
14860 * NEWS: Add the list of bugs fixed in 2.28.
14861
14862 * po/ca.po: Update to latest version.
14863 * po/cs.po: Likewise
14864 * po/da.po: Likewise
14865 * po/el.po: Likewise
14866 * po/eo.po: Likewise
14867 * po/es.po: Likewise
14868 * po/fi.po: Likewise
14869 * po/fr.po: Likewise
14870 * po/gl.po: Likewise
14871 * po/hu.po: Likewise
14872 * po/ia.po: Likewise
14873 * po/id.po: Likewise
14874 * po/it.po: Likewise
14875 * po/ja.po: Likewise
14876 * po/ko.po: Likewise
14877 * po/lt.po: Likewise
14878 * po/nb.po: Likewise
14879 * po/nl.po: Likewise
14880 * po/pt_BR.po: Likewise
14881 * po/ru.po: Likewise
14882 * po/rw.po: Likewise
14883 * po/sk.po: Likewise
14884 * po/sl.po: Likewise
14885 * po/tr.po: Likewise
14886 * po/zh_CN.po: Likewise
14887 * po/zh_TW.po: Likewise
14888
14889 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
14890
14891 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
14892 initialization...
14893 (init): ... before initializing libpthread.
14894
14895 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
14896 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
14897 (__mach_setup_tls): ... new function.
14898 (mach_setup_tls): New alias.
14899 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
14900 __mach_setup_thread.
14901 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
14902 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
14903 * mach/Versions [libc] (mach_setup_tls): Add symbol.
14904 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
14905
14906 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14907
14908 * manual/install.texi: Update versions.
14909 * INSTALL: Regenerate.
14910
14911 * manual/contrib.texi (Contributors): Update contributions.
14912
14913 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14914
14915 * po/be.po: Update translations.
14916
14917 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14918
14919 * sysdeps/sh/libm-test-ulps: Update.
14920
14921 2018-07-30 Carlos O'Donell <carlos@redhat.com>
14922
14923 * po/bg.po: Update translations.
14924 * po/de.po: Likewise.
14925 * po/hr.po: Likewise.
14926 * po/pt_BR.po: Likewise.
14927 * po/sv.po: Likewise.
14928 * po/vi.po: Likewise.
14929
14930 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14931
14932 [BZ #23467]
14933 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14934 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14935 (CFLAGS-tst-cet-property-1.o): New.
14936 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14937 ($(objpfx)tst-cet-property-2): Likewise.
14938 ($(objpfx)tst-cet-property-2.out): Likewise.
14939 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14940 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14941 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14942 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14943 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14944
14945 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14946
14947 [BZ #23458]
14948 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14949
14950 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14951
14952 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14953 __sbrk): Do not set attribute_hidden.
14954 * sysdeps/mach/hurd/not-errno.h: New file.
14955 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14956 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14957
14958 2018-07-27 Carlos O'Donell <carlos@redhat.com>
14959
14960 * po/uk.po: Update translations.
14961 * po/cs.po: Likewise.
14962 * po/pl.po: Likewise.
14963
14964 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
14965
14966 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14967 parse beyond the note end.
14968
14969 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14970
14971 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14972 kernel does not support OFD locks.
14973 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14974
14975 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14976
14977 * sysdeps/mach/hurd/Versions (libc): Make __access and
14978 __access_noerrno external so they can override the ld symbols.
14979 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14980 __writev, __open64, __access_noerrno extern so they can be overrided.
14981 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14982 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14983
14984 2018-07-26 Carlos O'Donell <carlos@redhat.com>
14985
14986 * po/libc.pot: Regenerate.
14987
14988 2018-07-26 Joseph Myers <joseph@codesourcery.com>
14989
14990 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14991
14992 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14993
14994 [BZ #23459]
14995 * sysdeps/x86/cpu-features.c (get_extended_indices): New
14996 function.
14997 (init_cpu_features): Call get_extended_indices for both Intel
14998 and AMD CPUs.
14999 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
15000 Remove "for AMD" comment.
15001
15002 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
15003
15004 [BZ # 23456]
15005 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
15006 COMMON_CPUID_INDEX_80000001.
15007
15008 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
15009
15010 * string/tst-xbzero-opt.c (use_test_buffer): New function.
15011 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
15012
15013 2018-07-26 Florian Weimer <fweimer@redhat.com>
15014
15015 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
15016 aliases for symbols not in the implementation namespace.
15017
15018 2018-07-25 Carlos O'Donell <carlos@redhat.com>
15019
15020 [BZ #23393]
15021 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
15022 lowercase in LATIN script.
15023 * localedata/Makefile (test-input): Add en_US.UTF-8.
15024 * localedata/en_US.UTF-8.in: New file.
15025 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
15026 and restore old tests.
15027 * posix/tst-regexloc.c (do_test): Add back range expression test.
15028
15029 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15030
15031 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
15032
15033 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15034
15035 * nptl/threads.h: Move to ...
15036 * sysdeps/nptl/threads.h: ... here.
15037 * sysdeps/hurd/stdc-predef.h: New file.
15038
15039 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15040
15041 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
15042 tst-cet-setcontext-1 if CET is enabled.
15043 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
15044 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
15045
15046 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15047
15048 * include/threads.h: Move to ...
15049 * sysdeps/nptl/threads.h: ... here.
15050 * sysdeps/htl/threads.h: New file.
15051 * conform/Makefile (linknamespace-libs-ISO11): Use
15052 static-thread-library instead of linking libpthread.
15053 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
15054
15055 2018-07-25 Florian Weimer <fweimer@redhat.com>
15056
15057 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
15058 nanoseconds into seconds.
15059 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
15060 (do_test): Likewise.
15061 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
15062 (do_test): Likewise. Avoid nanosecond overflow and spurious
15063 timeouts due to system load.
15064 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
15065 (child_wait): Increment it.
15066 (do_test): Wait as long as necessary until all expected threads
15067 have arrived.
15068
15069 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
15070 H.J. Lu <hongjiu.lu@intel.com>
15071
15072 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
15073 __ssp.
15074 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
15075 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
15076 (__push___start_context): New.
15077 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
15078 <asm/prctl.h>.
15079 (__getcontext): Record the current shadow stack base. Save the
15080 caller's shadow stack pointer and base.
15081 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
15082 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
15083 (__push___start_context): New prototype.
15084 (__makecontext): Call __push___start_context to allocate a new
15085 shadow stack, push __start_context onto the new stack as well
15086 as the new shadow stack.
15087 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
15088 <asm/prctl.h>.
15089 (__setcontext): Restore the target shadow stack.
15090 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
15091 <asm/prctl.h>.
15092 (__swapcontext): Record the current shadow stack base. Save
15093 the caller's shadow stack pointer and base. Restore the target
15094 shadow stack.
15095 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
15096 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
15097 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
15098
15099 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15100
15101 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
15102 tst-setcontext8 and tst-setcontext9.
15103 * stdlib/tst-setcontext6.c: New file.
15104 * stdlib/tst-setcontext7.c: Likewise.
15105 * stdlib/tst-setcontext8.c: Likewise.
15106 * stdlib/tst-setcontext9.c: Likewise.
15107
15108 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15109
15110 * stdlib/Makefile ((tests): Add tst-setcontext5.
15111 * stdlib/tst-setcontext5.c: New file.
15112
15113 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15114
15115 * stdlib/Makefile (tests): Add tst-setcontext4.
15116 * stdlib/tst-setcontext4.c: New file.
15117
15118 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15119
15120 * stdlib/Makefile (tests): Add tst-swapcontext1.
15121 * stdlib/tst-swapcontext1.c: New test.
15122
15123 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15124
15125 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
15126 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
15127 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
15128 and tst-cet-legacy-4c.
15129 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
15130 and tst-cet-legacy-mod-4.
15131 (CFLAGS-tst-cet-legacy-2.c): New.
15132 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
15133 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
15134 (CFLAGS-tst-cet-legacy-3.c): Likewise.
15135 (CFLAGS-tst-cet-legacy-4.c): Likewise.
15136 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
15137 ($(objpfx)tst-cet-legacy-1): Likewise.
15138 ($(objpfx)tst-cet-legacy-2): Likewise.
15139 ($(objpfx)tst-cet-legacy-2.out): Likewise.
15140 ($(objpfx)tst-cet-legacy-2a): Likewise.
15141 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
15142 ($(objpfx)tst-cet-legacy-4): Likewise.
15143 ($(objpfx)tst-cet-legacy-4.out): Likewise.
15144 ($(objpfx)tst-cet-legacy-4a): Likewise.
15145 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
15146 (tst-cet-legacy-4a-ENV): Likewise.
15147 ($(objpfx)tst-cet-legacy-4b): Likewise.
15148 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
15149 (tst-cet-legacy-4b-ENV): Likewise.
15150 ($(objpfx)tst-cet-legacy-4c): Likewise.
15151 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
15152 (tst-cet-legacy-4c-ENV): Likewise.
15153 * sysdeps/x86/tst-cet-legacy-1.c: New file.
15154 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
15155 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
15156 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
15157 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
15158 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
15159 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
15160 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
15161 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
15162 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
15163 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
15164
15165 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15166
15167 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
15168 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
15169 with ssp_base.
15170 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
15171 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
15172 with ssp_base.
15173
15174 2018-07-25 Andreas Schwab <schwab@suse.de>
15175
15176 [BZ #23442]
15177 * locale/weightwc.h (findidx): Handle the case where usrc is a
15178 prefix of cp but one character too short.
15179
15180 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15181
15182 * NEWS: Add ISO C threads addition.
15183
15184 2018-07-24 Florian Weimer <fweimer@redhat.com>
15185
15186 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15187 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
15188 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
15189 4.13.
15190
15191 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
15192
15193 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
15194 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
15195 <sys/prctl.h> and <asm/prctl.h>.
15196 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
15197 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
15198 and <asm/prctl.h>.
15199 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
15200 ARCH_CET_LEGACY_BITMAP.
15201 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
15202 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
15203 * sysdeps/x86/libc-start.c: Include <startup.h>.
15204
15205 2018-07-24 Florian Weimer <fweimer@redhat.com>
15206
15207 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
15208 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
15209
15210 2018-07-24 Rical Jasan <rj@2c3t.io>
15211 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15212 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
15213
15214 [BZ #14092]
15215 * manual/debug.texi: Update adjacent chapter name.
15216 * manual/probes.texi: Likewise.
15217 * manual/threads.texi (ISO C Threads): New section.
15218 (POSIX Threads): Convert to a section.
15219
15220 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15221 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
15222
15223 [BZ# 14092]
15224 * nptl/Makefile (tests): Add new test files.
15225 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
15226 * nptl/tst-cnd-basic.c: Likewise.
15227 * nptl/tst-cnd-broadcast.c: Likewise.
15228 * nptl/tst-cnd-timedwait.c: Likewise.
15229 * nptl/tst-mtx-basic.c: Likewise.
15230 * nptl/tst-mtx-recursive.c: Likewise.
15231 * nptl/tst-mtx-timedlock.c: Likewise.
15232 * nptl/tst-mtx-trylock.c: Likewise.
15233 * nptl/tst-thrd-basic.c: Likewise.
15234 * nptl/tst-thrd-detach.c: Likewise.
15235 * nptl/tst-thrd-sleep.c: Likewise.
15236 * nptl/tst-tss-basic.c: Likewise.
15237
15238 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15239
15240 [BZ #14092]
15241 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15242 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
15243 symbols.
15244 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15245 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
15246 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15247 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15248 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15249 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15250 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15251 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15252 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15253 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15254 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15255 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15256 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15257 Likewise.
15258 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15259 Likewise.
15260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
15261 Likewise.
15262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15263 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15264 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15265 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15266 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15267 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15268 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15269 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15270 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15271 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
15272 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
15273 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
15274 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
15275 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
15276 Likewise.
15277 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
15278 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
15279 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
15280 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
15281 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
15282 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
15283 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
15284 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
15285 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
15286 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
15287 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
15288 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
15289 ikewise.
15290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
15291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
15292 Likewise.
15293 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
15294 Likewise.
15295 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
15296 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
15297 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
15298 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
15299 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
15300 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
15301 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
15302 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
15303
15304 [BZ #14092]
15305 * conform/data/threads.h-data (thread_local): New macro.
15306 (TSS_DTOR_ITERATIONS): Likewise.
15307 (tss_t): New type.
15308 (tss_dtor_t): Likewise.
15309 (tss_create): New function.
15310 (tss_get): Likewise.
15311 (tss_set): Likewise.
15312 (tss_delete): Likewise.
15313 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
15314 tss_get, and tss_set objects.
15315 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
15316 * nptl/tss_create.c: New file.
15317 * nptl/tss_delete.c: Likewise.
15318 * nptl/tss_get.c: Likewise.
15319 * nptl/tss_set.c: Likewise.
15320 * sysdeps/nptl/threads.h (thread_local): New define.
15321 (TSS_DTOR_ITERATIONS): Likewise.
15322 (tss_t): New typedef.
15323 (tss_dtor_t): Likewise.
15324 (tss_create): New prototype.
15325 (tss_get): Likewise.
15326 (tss_set): Likewise.
15327 (tss_delete): Likewise.
15328
15329 [BZ #14092]
15330 * conform/data/threads.h-data (cnd_t): New type.
15331 (cnd_init): New function.
15332 (cnd_signal): Likewise.
15333 (cnd_broadcast): Likewise.
15334 (cnd_wait): Likewise.
15335 (cnd_timedwait): Likewise.
15336 (cnd_destroy): Likewise.
15337 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
15338 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
15339 object.
15340 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
15341 * nptl/cnd_broadcast.c: New file.
15342 * nptl/cnd_destroy.c: Likewise.
15343 * nptl/cnd_init.c: Likewise.
15344 * nptl/cnd_signal.c: Likewise.
15345 * nptl/cnd_timedwait.c: Likewise.
15346 * nptl/cnd_wait.c: Likewise.
15347 * sysdeps/nptl/threads.h (cnd_t): New type.
15348 (cnd_init): New prototype.
15349 (cnd_signa): Likewise.
15350 (cnd_broadcast): Likewise.
15351 (cnd_wait): Likewise.
15352 (cnd_timedwait): Likewise.
15353 (cnd_destroy): Likewise.
15354
15355 [BZ #14092]
15356 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
15357 (once_flag): New type.
15358 (call_once): New function.
15359 * nptl/Makefile (libpthread-routines): Add call_once object.
15360 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
15361 * nptl/call_once.c: New file.
15362 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
15363 (once_flag): New type.
15364 (call_once): New prototype.
15365
15366 [BZ #14092]
15367 * conform/data/threads.h-data (mtx_plain): New constant.
15368 (mtx_recursive): Likewise.
15369 (mtx_timed): Likewise.
15370 (mtx_t): New type.
15371 (mtx_init): New function.
15372 (mtx_lock): Likewise.
15373 (mtx_timedlock): Likewise.
15374 (mtx_trylock): Likewise.
15375 (mtx_unlock): Likewise.
15376 (mtx_destroy): Likewise.
15377 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
15378 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
15379 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
15380 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
15381 * nptl/mtx_destroy.c: New file.
15382 * nptl/mtx_init.c: Likewise.
15383 * nptl/mtx_lock.c: Likewise.
15384 * nptl/mtx_timedlock.c: Likewise.
15385 * nptl/mtx_trylock.c: Likewise.
15386 * nptl/mtx_unlock.c: Likewise.
15387 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
15388 (mtx_recursive): Likewise.
15389 (mtx_timed): Likewise.
15390 (mtx_t): New type.
15391 (mtx_init): New prototype.
15392 (mtx_lock): Likewise.
15393 (mtx_timedlock): Likewise.
15394 (mtx_trylock): Likewise.
15395 (mtx_unlock): Likewise.
15396 (mtx_destroy): Likewise.
15397
15398 [BZ #14092]
15399 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
15400 (linknamespace-libs-ISO11): Add libpthread.a.
15401 * conform/data/threads.h-data: New file: add C11 thrd_* types and
15402 functions.
15403 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
15404 * nptl/Makefile (headers): Add threads.h.
15405 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
15406 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
15407 thrd_yield.
15408 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
15409 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
15410 thrd_join, thrd_sleep, and thrd_yield symbols.
15411 * nptl/descr.h (struct pthread): Add c11 field.
15412 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
15413 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
15414 routine with expected function prototype.
15415 (__pthread_create_2_1): Add C11 threads check based on attribute
15416 value.
15417 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
15418 * nptl/thrd_create.c: New file.
15419 * nptl/thrd_current.c: Likewise.
15420 * nptl/thrd_detach.c: Likewise.
15421 * nptl/thrd_equal.c: Likewise.
15422 * nptl/thrd_exit.c: Likewise.
15423 * nptl/thrd_join.c: Likewise.
15424 * nptl/thrd_priv.h: Likewise.
15425 * nptl/thrd_sleep.c: Likewise.
15426 * nptl/thrd_yield.c: Likewise.
15427 * include/threads.h: Likewise.
15428
15429 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
15430
15431 * bits/indirect-return.h: New file.
15432 * misc/sys/cdefs.h (__glibc_has_attribute): New.
15433 * sysdeps/x86/bits/indirect-return.h: Likewise.
15434 * stdlib/Makefile (headers): Add bits/indirect-return.h.
15435 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
15436 (swapcontext): Add __INDIRECT_RETURN.
15437 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
15438 (prepare_test_buffer): Use it.
15439
15440 2018-07-24 Andreas Schwab <schwab@suse.de>
15441
15442 [BZ #23448]
15443 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
15444 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
15445
15446 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
15447
15448 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
15449 Redefine if shadow stack is enabled.
15450 (SYSCALL_ERROR_LABEL): Likewise.
15451 (__vfork): Pop shadow stack and jump back to to caller directly
15452 when shadow stack is in use.
15453 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
15454 Redefine if shadow stack is enabled.
15455 (SYSCALL_ERROR_LABEL): Likewise.
15456 (__vfork): Pop shadow stack and jump back to to caller directly
15457 when shadow stack is in use.
15458
15459 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
15460
15461 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
15462 enabled.
15463 (foo): Likewise.
15464 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
15465 (foo): Likewise.
15466
15467 2018-07-20 Joseph Myers <joseph@codesourcery.com>
15468
15469 * scripts/build-many-glibcs.py (Context.checkout): Default
15470 binutils version to 2.31 branch.
15471
15472 2018-07-20 Zong Li <zong@andestech.com>
15473
15474 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
15475 URL of gcc's tarball.
15476
15477 2018-07-20 Florian Weimer <fweimer@redhat.com>
15478
15479 [BZ #23396]
15480 * posix/regcomp.c (build_equiv_class): When comparing weights, do
15481 not compare an extra byte after the end of the weights.
15482
15483 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
15484
15485 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
15486 to 1.
15487 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
15488 hidden prototypes.
15489 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
15490 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
15491 * scripts/check-execstack.awk: Consider `xfail' variable containing a
15492 list of libraries whose stack executability is expected.
15493 * elf/Makefile ($(objpfx)check-execstack.out): Pass
15494 $(check-execstack-xfail) to check-execstack.awk through `xfail'
15495 variable.
15496 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
15497 libc.so libpthread.so.
15498
15499 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
15500
15501 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
15502 SOCK_NONBLOCK.
15503 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
15504 and SOCK_NONBLOCK.
15505 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
15506 implement __pipe2.
15507 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
15508
15509 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
15510
15511 * benchtests/scripts/compare_bench.py (__main__): use the argparse
15512 library to improve command line parsing.
15513 (__main__): make schema file as optional parameter (--schema),
15514 defaulting to benchtests/scripts/benchout.schema.json.
15515 (main): move out of the parsing stuff to __main_  and leave it
15516 only as caller of main comparison functions.
15517
15518 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
15519
15520 * NEWS: Add a note for Intel CET status.
15521 * manual/install.texi: Likewise.
15522 * INSTALL: Regenerated.
15523
15524 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
15525
15526 [BZ #23140]
15527 * localedata/locales/oc_FR (mon): Rename to...
15528 (alt_mon): This, then update October (typo fix).
15529 (mon): New content (genitive case, month names preceded by
15530 "de" or "d’").
15531
15532 [BZ #23422]
15533 * localedata/locales/oc_FR (abday): Update all items.
15534 (day): Update Wednesday and Saturday (typo fixes).
15535 (abmon): Update all items, except May.
15536 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
15537 (LC_IDENTIFICATION): Bump the revision number and date.
15538 Keep the "category" entries in alphabetic order.
15539 (LC_ADDRESS): Remove no longer needed comment.
15540 (LC_COLLATE): Use “copy "ca_ES"”.
15541 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
15542 "name_mrs".
15543
15544 2018-07-18 Joseph Myers <joseph@codesourcery.com>
15545
15546 * grp/tst_fgetgrent.c: Include <unistd.h>.
15547 (main): Use mkstemp instead of tmpnam.
15548 * io/test-utime.c (main): Likewise.
15549 * posix/annexc.c (macrofile): Change to modifiable array.
15550 (main): Remove macrofile here.
15551 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
15552 macrofile here.
15553 (check_header): Do not remove macrofile here.
15554 * posix/bug-getopt1.c: Include <stdlib.h>.
15555 (do_test): Use mkstemp instead of tmpnam.
15556 * posix/bug-getopt2.c: Include <stdlib.h>.
15557 (do_test): Use mkstemp instead of tmpnam.
15558 * posix/bug-getopt3.c: Include <stdlib.h>.
15559 (do_test): Use mkstemp instead of tmpnam.
15560 * posix/bug-getopt4.c: Include <stdlib.h>.
15561 (do_test): Use mkstemp instead of tmpnam.
15562 * posix/bug-getopt5.c: Include <stdlib.h>.
15563 (do_test): Use mkstemp instead of tmpnam.
15564 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
15565 (main): Use mkstemp instead of tmpnam.
15566 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
15567 (main): Use mkstemp instead of tmpnam.
15568 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
15569 (main): use mkstemp instead of tmpnam.
15570 * stdlib/isomac.c (macrofile): Change to modifiable array.
15571 (main): Remove macrofile here.
15572 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
15573 macrofile here.
15574 (check_header): Do not remove macrofile here.
15575
15576 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15577
15578 * manual/tunables.texi: Document glibc.tune.x86_ibt and
15579 glibc.tune.x86_shstk.
15580
15581 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15582
15583 * NEWS: Mention --enable-cet.
15584 * manual/install.texi: Document --enable-cet.
15585 * INSTALL: Regenerated.
15586
15587 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15588
15589 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
15590 Add _CET_NOTRACK before indirect jump to jump table.
15591
15592 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15593
15594 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
15595 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15596 to jump table.
15597
15598 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15599
15600 * sysdeps/i386/i686/multiarch/strcat-sse2.S
15601 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15602 to jump table.
15603
15604 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15605
15606 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
15607 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15608 to jump table.
15609
15610 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15611
15612 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
15613 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15614 to jump table.
15615
15616 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15617
15618 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
15619 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15620 to jump table.
15621 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
15622
15623 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15624
15625 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
15626 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15627 to jump table.
15628
15629 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15630
15631 * sysdeps/i386/i686/multiarch/memset-sse2.S
15632 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15633 to jump table.
15634
15635 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15636
15637 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
15638 indirect jump to jump table.
15639
15640 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15641
15642 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
15643 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15644 to jump table.
15645 (MEMCPY): Likewise.
15646
15647 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15648
15649 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
15650 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15651 to jump table.
15652 (MEMCPY): Likewise.
15653
15654 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15655
15656 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15657 _CET_NOTRACK before indirect jump to jump table.
15658
15659 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15660
15661 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
15662 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15663 to jump table.
15664
15665 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15666
15667 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
15668 indirect jump to jump table.
15669
15670 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
15671
15672 [BZ #22241]
15673 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
15674 (LOCALES): Likewise.
15675 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
15676 * localedata/locales/sah_RU: New file.
15677 * localedata/sah_RU.UTF-8.in: New file.
15678
15679 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15680
15681 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
15682 "sysdep.h".
15683 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
15684 _CET_ENDBR to indirect jump targets and adjust jump destination
15685 for _CET_ENDBR.
15686 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
15687 "sysdep.h".
15688 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
15689 _CET_ENDBR to indirect jump targets and adjust jump destination
15690 for _CET_ENDBR.
15691 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
15692 "sysdep.h".
15693 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
15694 _CET_ENDBR to indirect jump targets and adjust jump destination
15695 for _CET_ENDBR.
15696
15697 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15698
15699 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15700 _CET_ENDBR.
15701
15702 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15703
15704 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
15705 _CET_ENDBR.
15706 (_dl_tlsdesc_undefweak): Likewise.
15707 (_dl_tlsdesc_dynamic): Likewise.
15708 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
15709 (_dl_tlsdesc_resolve_rel): Likewise.
15710 (_dl_tlsdesc_resolve_rela): Likewise.
15711 (_dl_tlsdesc_resolve_hold): Likewise.
15712 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
15713 (_dl_tlsdesc_undefweak): Likewise.
15714 (_dl_tlsdesc_dynamic): Likewise.
15715 (_dl_tlsdesc_resolve_rela): Likewise.
15716 (_dl_tlsdesc_resolve_hold): Likewise.
15717
15718 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15719
15720 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
15721 (_fini): Likewise.
15722 * sysdeps/x86_64/crti.S (_init): Likewise.
15723 (_fini): Likewise.
15724
15725 2018-07-17 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
15726
15727 [BZ #23140]
15728 * localedata/locales/os_RU (mon): Rename to...
15729 (alt_mon): This.
15730 (mon): Import from CLDR (genitive case).
15731
15732 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15733
15734 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
15735 cet-tunables.h> when CET is enabled.
15736
15737 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
15738
15739 [BZ #21598]
15740 * configure.ac: Add --enable-cet.
15741 * configure: Regenerated.
15742 * elf/Makefille (all-built-dso): Add a comment.
15743 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
15744 Include <dl-prop.h>.
15745 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
15746 segment.
15747 * elf/dl-open.c: Include <dl-prop.h>.
15748 (dl_open_worker): Call _dl_open_check.
15749 * elf/rtld.c: Include <dl-prop.h>.
15750 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
15751 _rtld_main_check.
15752 * sysdeps/generic/dl-prop.h: New file.
15753 * sysdeps/i386/dl-cet.c: Likewise.
15754 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
15755 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
15756 * sysdeps/x86/cet-tunables.h: Likewise.
15757 * sysdeps/x86/check-cet.awk: Likewise.
15758 * sysdeps/x86/configure: Likewise.
15759 * sysdeps/x86/configure.ac: Likewise.
15760 * sysdeps/x86/dl-cet.c: Likewise.
15761 * sysdeps/x86/dl-procruntime.c: Likewise.
15762 * sysdeps/x86/dl-prop.h: Likewise.
15763 * sysdeps/x86/libc-start.h: Likewise.
15764 * sysdeps/x86/link_map.h: Likewise.
15765 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
15766 _CET_ENDBR.
15767 (_dl_runtime_profile): Likewise.
15768 (_dl_runtime_resolve_shstk): New.
15769 (_dl_runtime_profile_shstk): Likewise.
15770 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
15771 if CET is enabled.
15772 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
15773 (CFLAGS-.os): Likewise.
15774 (CFLAGS-.op): Likewise.
15775 (CFLAGS-.oS): Likewise.
15776 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
15777 is enabled.
15778 (tests-special): Add $(objpfx)check-cet.out.
15779 (cet-built-dso): New.
15780 (+$(cet-built-dso:=.note)): Likewise.
15781 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
15782 ($(objpfx)check-cet.out): New.
15783 (generated): Add check-cet.out.
15784 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
15785 <cet-tunables.h>.
15786 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
15787 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15788 (init_cpu_features): Call get_cet_status to check CET status
15789 and update dl_x86_feature_1 with CET status. Call
15790 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
15791 (set_x86_shstk). Disable and lock CET in libc.a.
15792 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
15793 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
15794 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15795 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
15796 (_CET_ENDBR): Define if not defined.
15797 (ENTRY): Add _CET_ENDBR.
15798 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
15799 x86_shstk.
15800 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
15801 _CET_ENDBR.
15802 (_dl_runtime_profile): Likewise.
15803
15804 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
15805
15806 [BZ #21895]
15807 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
15808 restore r2 on longjmp.
15809 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
15810 test list.
15811 Added rules to build test tst-setjmp-bug21895-static.
15812 Added module setjmp-bug21895 and rules to build a shared object from it.
15813 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
15814 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
15815
15816 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
15817
15818 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
15819 * benchtests/bench-strstr.c: Likewise.
15820 * string/memmem.c (FASTSEARCH): Define.
15821 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
15822 Add support for FASTSEARCH.
15823 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
15824 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
15825 (FASTSEARCH): Define.
15826 * string/test-strcasestr.c: Rename __strnlen to strnlen.
15827 * string/test-strstr.c: Likewise.
15828
15829 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
15830
15831 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
15832 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
15833
15834 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
15835 H.J. Lu <hongjiu.lu@intel.com>
15836
15837 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
15838 (__longjmp): Restore shadow stack pointer if shadow stack is
15839 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15840 isn't defined for __longjmp_cancel.
15841 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
15842 (_setjmp): Save shadow stack pointer if shadow stack is enabled
15843 and SHADOW_STACK_POINTER_OFFSET is defined.
15844 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
15845 (setjmp): Save shadow stack pointer if shadow stack is enabled
15846 and SHADOW_STACK_POINTER_OFFSET is defined.
15847 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
15848 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15849 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15850 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
15851 <jmp_buf-ssp.h>.
15852 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15853 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15854 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
15855 Remove jmp_buf-ssp.sym.
15856 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15857 <jmp_buf-ssp.h>.
15858 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15859 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15860 * sysdeps/x86/Makefile (gen-as-const-headers): Add
15861 jmp_buf-ssp.sym.
15862 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
15863 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
15864 (__longjmp): Restore shadow stack pointer if shadow stack is
15865 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15866 isn't defined for __longjmp_cancel.
15867 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
15868 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15869 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15870
15871 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
15872
15873 [BZ #22563]
15874 * nptl/pthread_create.c: Include <tls-setup.h>.
15875 (__pthread_create_2_1): Call tls_setup_tcbhead.
15876 * sysdeps/generic/tls-setup.h: New file.
15877 * sysdeps/x86/nptl/tls-setup.h: Likewise.
15878 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15879 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
15880 Likewise.
15881 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
15882 to feature_1.
15883 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
15884 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
15885 (X86_FEATURE_1_SHSTK): Likewise.
15886 (CET_ENABLED): Likewise.
15887 (IBT_ENABLED): Likewise.
15888 (SHSTK_ENABLED): Likewise.
15889
15890 2018-07-13 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
15891
15892 [BZ #23208]
15893 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
15894 (LOCALES): Likewise.
15895 * localedata/dsb_DE.UTF-8.in: New file.
15896 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
15897
15898 2018-07-12 Florian Weimer <fweimer@redhat.com>
15899
15900 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
15901 __mprotect, not mprotect.
15902
15903 2018-07-11 Florian Weimer <fweimer@redhat.com>
15904
15905 * io/Makefile (headers): Add bits/statx.h.
15906
15907 2018-07-10 Mike FABIAN <mfabian@redhat.com>
15908
15909 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
15910 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
15911 and headers.
15912 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
15913 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
15914 for utf8_gen.py
15915
15916 2018-07-10 Florian Weimer <fweimer@redhat.com>
15917
15918 * io/Makefile (routines): Add statx.
15919 (tests-internal): Add tst-statx.
15920 * io/Versions (GLIBC_2.28): Export statx.
15921 * io/bits/statx.h: New file.
15922 * io/sys/stat.h [__USE_GNU]: Include it.
15923 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15924 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15925 Define.
15926 * io/statx.c: New file.
15927 * io/statx_generic.: Likewise.
15928 * io/tst-statx.: Likewise.
15929 * include/bits/statx.h: Likewise.
15930 * sysdeps/unix/sysv/linux/kernel-features.h
15931 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15932 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15933 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15934 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15935 Undefine.
15936 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15937 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15938 * sysdeps/unix/sysv/linux/statx.c: New file.
15939 * manual/filesys.texi: Note that statx is undocumented.
15940 * sysdeps/**/libc*.abilist: Update.
15941
15942 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15943
15944 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15945 a kernel issue which lead to test failure in some cases.
15946
15947 2018-07-10 Florian Weimer <fweimer@redhat.com>
15948
15949 [BZ #23036]
15950 * posix/regexec.c (check_node_accept_bytes): When comparing
15951 weights, do not compare an extra byte after the end of the
15952 weights.
15953
15954 2018-07-10 Florian Weimer <fweimer@redhat.com>
15955
15956 * libio/readline.c: Fix copyright year.
15957 * libio/tst-readline.c Likewise.
15958 * nss/tst-nss-files-hosts-getent.c: Likewise.
15959
15960 2018-07-06 Florian Weimer <fweimer@redhat.com>
15961
15962 [BZ #18991]
15963 * nss/nss_files/files-XXX.c (internal_getent): Use
15964 __libc_readline_unlocked. Seek back to the start of the line if
15965 parsing failes with ERANGE.
15966 (get_contents_ret, get_contents): Remove.
15967 * nss/tst-nss-files-hosts-getent.c: New file.
15968 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15969 (tst-nss-files-hosts-getent): Link with -ldl.
15970
15971 2018-07-06 Florian Weimer <fweimer@redhat.com>
15972
15973 * include/stdio.h (__libc_readline_unlocked): Declare.
15974 (__ftello64, __fseeko64): Declare aliases.
15975 * libio/readline.c: New file.
15976 * libio/tst-readline.c: Likewise.
15977 (routines): Add readline.
15978 (tests-internal): Add tst-readlime.
15979 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15980 __libc_readline_unlocked.
15981 * libio/fseeko.c (__fseeko): Rename from fseeko.
15982 (fseeko): Add alias.
15983 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15984 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15985 (fseeko64): Add alias.
15986 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15987 * libio/ftello64.c (__ftello64): Rename from ftello64.
15988 (ftello64): Add alias.
15989
15990 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15991
15992 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15993 HWCAP_ATOMICS.
15994
15995 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15996
15997 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
15998 Use dl_hwcap without masking.
15999 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
16000 Remove HWCAP_CPUID.
16001
16002 2018-07-06 Florian Weimer <fweimer@redhat.com>
16003
16004 * conform/conformtest.pl (checknamespace): Escape literal braces
16005 in regular expressions.
16006
16007 2018-07-06 Amit Pawar <amit.pawar@amd.com>
16008
16009 * sysdeps/x86/cpu-features.c (get_common_indeces):
16010 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
16011 * sysdeps/x86/cpu-features.c (init_cpu_features):
16012 AVX_Fast_Unaligned_Load is disabled for Excavator core.
16013
16014 2018-07-05 Florian Weimer <fweimer@redhat.com>
16015
16016 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
16017 protector.
16018 (CFLAGS-elf-init.oS): Likewise.
16019
16020 2018-07-05 Florian Weimer <fweimer@redhat.com>
16021 Carlos O'Donell <carlos@redhat.com>
16022
16023 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
16024 $(no-stack-protector). stack_chk_fail_local.c can be compiled
16025 with stack protector enabled because there is no risk of infinite
16026 recursion.
16027
16028 2018-07-05 Maciej W. Rozycki <macro@mips.com>
16029
16030 [BZ #19818]
16031 [BZ #23307]
16032 * libc-abis (ABSOLUTE): New ABI.
16033 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
16034 * NEWS: Mention the new ABI.
16035
16036 2018-07-05 Florian Weimer <fweimer@redhat.com>
16037
16038 [BZ # 17662]
16039 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
16040 (RENAME_WHITEOUT): Define.
16041 [__USE_GNU] (renameat2): Declare.
16042 * stdio-common/Makefile (routines): Add renameat2.
16043 (tests): Add tst-renameat2.
16044 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
16045 * stdio-common/renameat2.c: New file.
16046 * stdio-common/tst-renameat2.c: Likewise.
16047 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
16048 * manual/filesys.texi (Temporary Files): Note that renameat2 is
16049 undocumented.
16050 * sysdeps/unix/sysv/linux/kernel-features.h
16051 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
16052 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
16053 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
16054 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16055 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
16056 * sysdeps/unix/sysv/linux/sh/kernel-features.h
16057 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
16058 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16059 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
16060 * include/stdio.h (__renameat): Add alias for renameat.
16061 * stdio-common/renameat.c (__renameat): Rename from renameat.
16062 Add hidden definition and alias.
16063 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
16064 * sysdeps/mach/hurd/renameat.c: Likewise.
16065 * sysdeps/**/libc*.abilist: Add renameat2.
16066
16067 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16068
16069 * posix/bug-regex33.c: Fix build after regex sync.
16070
16071 2018-07-04 Carlos O'Donell <carlos@redhat.com>
16072
16073 [BZ #23164]
16074 * localedata/tst-langinfo-setlocale.c: New file.
16075 * localedata/tst-langinfo-setlocale-static.c: New file.
16076 * localedata/tst-langinfo-newlocale.c: New file.
16077 * localedata/tst-langinfo-newlocale-static.c: New file.
16078 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
16079 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
16080 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
16081 (tests-static): Remove tst-langinfo-static. Add
16082 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
16083 (tests-special): Remove $(objpfx)tst-langinfo.out,
16084 $(objpfx)tst-langinfo-static.out. Add
16085 $(objpfx)tst-langinfo-setlocale.out,
16086 $(objpfx)tst-langinfo-newlocale.out,
16087 $(objpfx)tst-langinfo-setlocale-static.out,
16088 $(objpfx)tst-langinfo-newlocale-static.out.
16089 ($(objpfx)tst-langinfo.out): Remove.
16090 ($(objpfx)tst-langinfo-static.out): Remove.
16091 ($(objpfx)tst-langinfo-newlocale.out): New target.
16092 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
16093 (test-xfail-tst-langinfo-newlocale-static): Add.
16094 ($(objpfx)tst-langinfo-setlocale.out): New target.
16095 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
16096 * localedata/tst-langinfo.c: Call test_locale.
16097 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
16098 data.
16099
16100 2018-07-04 Florian Weimer <fweimer@redhat.com>
16101
16102 testrun.sh: Implement --tool=strace, --tool=valgrind
16103 * Makefile (testrun-script): Define variable.
16104 (testrun.sh): Use variable.
16105 * manual/install.texi (Tools for Compilation): make 4.0 or later
16106 is required.
16107 * configure.ac: Check for make 4.0 or later.
16108 * INSTALL: Regenerate.
16109 * configure: Likewise.
16110
16111 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16112
16113 [BZ #23233]
16114 [BZ #21163]
16115 [BZ #18986]
16116 [BZ #13762]
16117 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
16118 * posix/PCRE.tests: Remove invalid test.
16119 * posix/bug-regex28.c: Fix expected values for used syntax.
16120 * posix/bug-regex37.c: New file.
16121 * posix/bug-regex38.c: Likewise.
16122 * posix/regcomp.c: Sync with gnulib.
16123 * posix/regex.c: Likewise.
16124 * posix/regex.h: Likewise.
16125 * posix/regex_internal.c: Likewise.
16126 * posix/regex_internal.h: Likewise.
16127 * posix/regexec.c: Likewise.
16128
16129 2018-06-26 Mike FABIAN <mfabian@redhat.com>
16130
16131 [BZ #23308]
16132 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
16133 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
16134 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
16135 * localedata/unicode-gen/PropList.txt: likewise.
16136 * localedata/unicode-gen/UnicodeData.txt: likewise.
16137 * localedata/charmaps/UTF-8: Regenerate.
16138 * localedata/locales/i18n_ctype: likewise.
16139 * localedata/locales/tr_TR: likewise.
16140 * localedata/locales/translit_circle: likewise.
16141 * localedata/locales/translit_cjk_compat: likewise.
16142 * localedata/locales/translit_combining: likewise.
16143 * localedata/locales/translit_compat: likewise.
16144 * localedata/locales/translit_font: likewise.
16145 * localedata/locales/translit_fraction: likewise.
16146
16147 2018-07-03 Florian Weimer <fweimer@redhat.com>
16148
16149 [BZ #23363]
16150 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
16151 * stdio-common/tst-printf.sh: Adjust expected output.
16152 * LICENSES: Update.
16153
16154 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16155
16156 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
16157 symbol.
16158
16159 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16160
16161 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
16162 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
16163 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
16164 * stdio-common/tst-printfsz-islongdouble.c: New file.
16165 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
16166 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
16167 [subdir == stdio-common] (routines): Add ieee128-printf_size.
16168 [subdir == stdio-common] (tests-internal): Add
16169 test-printf-size-ieee128, and test-printf-size-ibm128.
16170 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
16171 (CFLAGS-test-printf-size-ibm128.c): New variables.
16172 [subdir == stdio-common] (tests-special): Add
16173 $(objpfx)test-printf-size-ieee128.out and
16174 $(objpfx)test-printf-size-ibm128.out.
16175 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
16176 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
16177 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
16178 __printf_sizeieee128.
16179 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
16180 New file.
16181 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
16182 Likewise.
16183 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
16184 Likewise.
16185
16186 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
16187
16188 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
16189 (exp2f_inline): Likewise.
16190 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
16191 (__math_uflowf): Likewise.
16192 (__math_may_uflowf): Likewise.
16193 (__math_divzerof): Likewise.
16194 (__math_invalidf): Likewise.
16195 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
16196 (__math_oflowf): Likewise.
16197 (__math_uflowf): Likewise.
16198 (__math_may_uflowf): Likewise.
16199 (__math_divzerof): Likewise.
16200 (__math_invalidf): Likewise.
16201
16202 2018-06-29 DJ Delorie <dj@redhat.com>
16203 Carlos O'Donell <carlos@redhat.com>
16204
16205 [BZ #23329]
16206 * include/libc-symbols.h: Comment the freeres framework.
16207 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
16208 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
16209 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
16210 * dlfcn/dlerror.c: Include libc-symbols.h
16211 (__dlerror_main_freeres): New function.
16212 * dlfcn/dlfreeres.c: New file.
16213 * dlfcn/sdlfreeres.c: New file.
16214 * include/dlfcn.h: Declare __dlerror_main_freeres.
16215 * malloc/set-freeres.c: Declare __libdl_freeres, and
16216 __libpthread_freeres.
16217 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
16218 the releavant libraries are loaded.
16219 * malloc/thread-freeres.c: Add comments.
16220 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
16221 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
16222 * nptl/allocatestack.c (__nptl_free_stacks): New function.
16223 (__free_stacks): Rename to...
16224 (free_stacks): ...this. Mark static.
16225 (queue_stack): Call free_stacks.
16226 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
16227 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
16228 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
16229 ptr_freeres element from struct.
16230 (pthread_functions): Remove .ptr_freeres from struct initializer.
16231 [SHARED] (nptl_freeres): Remove.
16232 * nptl/nptlfreeres.c: New file.
16233 * nptl/pthreadP.h
16234 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
16235 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
16236 attribute_hidden.
16237 (__free_stacks): Rename to...
16238 (__nptl_stacks_freeres): ...this.
16239 (__shm_directory_freeres): Declare.
16240 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
16241 (__nptl_unwind_freeres): ...this.
16242 * resolv/res-close.c: Add comment.
16243 * resolv/resolv_conf.c: Include libc-symbols.h.
16244 * string/strerror_l.c: Include libc-symbols.h.
16245 * sunrpc/rpc_thread.c: Include libc-symbols.h.
16246 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
16247 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
16248 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
16249
16250 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16251
16252 * stdlib/tst-strfmon_l.c: Add tests for long double.
16253
16254 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
16255
16256 [BZ #23208]
16257 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
16258 * localedata/locales/dsb_DE: New file.
16259
16260 2018-06-29 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
16261
16262 [BZ #23140]
16263 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
16264 genitive case).
16265 (alt_mon): New entry, import from CLDR (nominative case).
16266
16267 2018-06-29 Sylvain Lesage <severo@rednegra.net>
16268
16269 [BZ #22996]
16270 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
16271
16272 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
16273
16274 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
16275 Use vector registers.
16276
16277 * sysdeps/aarch64/multiarch/memmove_falkor.S
16278 (__memcpy_falkor): Use vector registers.
16279
16280 2018-06-29 Martin Sebor <msebor@redhat.com>
16281
16282 * manual/stdio.texi (Customizing Printf): Mention interaction
16283 with GCC built-ins.
16284
16285 2018-06-29 Maciej W. Rozycki <macro@mips.com>
16286
16287 [BZ #23307]
16288 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
16289 `st_value' is 0 if `st_shndx' is SHN_ABS.
16290 * elf/tst-absolute-zero.c: New file.
16291 * elf/tst-absolute-zero-lib.c: New file.
16292 * elf/tst-absolute-zero-lib.lds: New file.
16293 * elf/Makefile (tests): Add `tst-absolute-zero'.
16294 (modules-names): Add `tst-absolute-zero-lib'.
16295 (LDLIBS-tst-absolute-zero-lib.so): New variable.
16296 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
16297 ($(objpfx)tst-absolute-zero: New dependency.
16298
16299 2018-06-29 Zack Weinberg <zackw@panix.com>
16300
16301 * configure.ac: New command-line option --disable-crypt.
16302 Force --disable-nss-crypt when --disable-crypt is given, with a
16303 warning if it was explicitly enabled.
16304 * configure: Regenerate.
16305 * config.make.in: New boolean substitution variable $(build-crypt).
16306 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
16307 when $(build-crypt).
16308 * manual/install.texi: Document --disable-crypt.
16309 * INSTALL: Regenerate.
16310
16311 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
16312 which is never set.
16313 * conform/Makefile: Only include libcrypt.a in
16314 linknamespace-libs-xsi and linknamespace-libs-XPG4
16315 when $(build-crypt).
16316 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
16317 USE_CRYPT to 1 when $(build-crypt).
16318 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
16319 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
16320 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
16321
16322 2018-06-29 Zack Weinberg <zackw@panix.com>
16323
16324 * crypt/crypt.h, posix/unistd.h: Update comments and
16325 prototypes for crypt and crypt_r.
16326
16327 * manual/crypt.texi (Cryptographic Functions): New initial
16328 exposition.
16329 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
16330 (Unpredictable Bytes): Improve initial exposition. Clarify error
16331 behavior of getentropy and getrandom.
16332 * manual/examples/genpass.c: Generate a salt using getentropy
16333 instead of the current time. Use hash $5$ (SHA-2-256).
16334 * manual/examples/testpass.c: Demonstrate validation against
16335 hashes generated with three different one-way functions.
16336
16337 * manual/intro.texi: crypt.texi does not need an overview
16338 anymore.
16339
16340 * manual/nss.texi, manual/memory.texi, manual/socket.texi
16341 * manual/terminal.texi: Consistently refer to "passphrases"
16342 * instead of "passwords", and to the "user database" instead
16343 * of the "password database".
16344 * manual/users.texi: Similarly. Add notes about how actual
16345 passphrase hashes are now stored in the shadow database.
16346 Remove 20-year-old junk todo note.
16347
16348 2018-06-29 Zack Weinberg <zackw@panix.com>
16349
16350 * manual/crypt.texi: Use a normal top-level @node declaration.
16351 Move most of the introductory text to the 'crypt' section.
16352 Move the example programs below the @deftypefun for 'crypt_r'.
16353 Move the 'getpass' section...
16354 * manual/terminal.texi: ...here.
16355
16356 2018-06-29 Zack Weinberg <zackw@panix.com>
16357 Florian Weimer <fweimer@redhat.com>
16358
16359 * posix/unistd.h: Do not declare encrypt.
16360 (_XOPEN_CRYPT): Remove macro definition.
16361 (crypt): Declare only for _USE_MISC.
16362 * stdlib/stdlib.h: Do not declare setkey.
16363 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
16364 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
16365
16366 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
16367 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
16368 into compat symbols. Don't define initial_perm if it's not
16369 going to be used.
16370 * crypt/cert.c: Link explicitly with the expected versions for
16371 setkey and encrypt. If they are not available at all, mark
16372 the test as unsupported.
16373
16374 * sunrpc/des_crypt.c: Unconditionally block linkage with
16375 cbc_crypt and ecb_crypt for new binaries.
16376 * sunrpc/des_soft.c: Unconditionally block linkage with
16377 des_setparity for new binaries.
16378
16379 * manual/crypt.texi: Remove the entire "DES Encryption"
16380 section. Also remove the paragraph talking about FIPS 140-2
16381 from the introduction.
16382 * manual/string.texi (strfry, memfrob): Revise. Recommend use
16383 of libgcrypt for "real" encryption, not DES.
16384 * manual/conf.texi (Constants for Sysconf): Mention that
16385 _XOPEN_CRYPT is no longer impelemented.
16386
16387 * conform/data/unistd.h-data: Remove crypt function declaration.
16388
16389 2018-06-29 Florian Weimer <fweimer@redhat.com>
16390
16391 [BZ #23351]
16392 * malloc/hooks.c: Update comments on restoring of dumped heaps.
16393 (disallow_malloc_check): Remove variable.
16394 (__malloc_check_init): Adjust.
16395 (malloc_set_state): Update comment.
16396 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
16397 declarations.
16398
16399 2018-06-29 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
16400
16401 [BZ #23140]
16402 * localedata/locales/ast_ES (mon): Rename to...
16403 (alt_mon): This.
16404 (mon): Import from CLDR (genitive case).
16405
16406 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
16407 Jakub Sitnicki <jkbs@redhat.com>
16408
16409 [BZ #21812]
16410 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
16411 on NLM_F_DUMP_INTR.
16412
16413 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
16414
16415 * manual/llio.texi: Remove spurious space.
16416
16417 2018-06-28 Florian Weimer <fweimer@redhat.com>
16418
16419 [BZ #23349]
16420 * time/bits/types/struct_timespec.h: Change header inclusion guard to
16421 _STRUCT_TIMESPEC.
16422
16423 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16424
16425 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
16426 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
16427 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
16428 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
16429 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
16430 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
16431 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
16432
16433 2018-06-27 Maciej W. Rozycki <macro@mips.com>
16434
16435 [BZ #23266]
16436 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
16437 Copy and null-terminate entries that are not terminated, in
16438 addition to empty ones.
16439
16440 2018-06-27 Florian Weimer <fweimer@redhat.com>
16441
16442 [BZ #18023]
16443 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
16444 (extend_alloca_account): Remove.
16445 * manual/stdio.texi (Variable Arguments Output): Update comment.
16446
16447 2018-06-27 Joseph Myers <joseph@codesourcery.com>
16448
16449 * nptl/sockperf.c: Remove file.
16450
16451 2018-06-27 Florian Weimer <fweimer@redhat.com>
16452
16453 [BZ #18023]
16454 * elf/dl-deps.c (_dl_map_object_deps): Use struct
16455 scratch_buffer instead of extend_alloca.
16456
16457 2018-06-27 Florian Weimer <fweimer@redhat.com>
16458
16459 [BZ #18023]
16460 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
16461 scratch_buffer instead of extend_alloca. Update comments.
16462
16463 2018-06-27 Florian Weimer <fweimer@redhat.com>
16464
16465 [BZ #18023]
16466 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
16467 instead of extend_alloca.
16468
16469 2018-06-26 Joseph Myers <joseph@codesourcery.com>
16470
16471 [BZ #13888]
16472 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
16473 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
16474 /tmp.
16475 * scripts/test-installation.pl: Put temporary files in build
16476 directory, not /tmp.
16477 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
16478 (CFLAGS-bug4.c): Likewise.
16479 (CFLAGS-bug5.c): Likewise.
16480 (CFLAGS-test-fseek.c): Likewise.
16481 (CFLAGS-test-popen.c): Likewise.
16482 (CFLAGS-test_rdwr.c): Likewise.
16483 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
16484 /tmp.
16485 * stdio-common/bug4.c (main): Likewise.
16486 * stdio-common/bug5.c (main): Likewise.
16487 * stdio-common/test-fseek.c (TESTFILE): Likewise.
16488 * stdio-common/test-popen.c (do_test): Likewise.
16489 * stdio-common/test_rdwr.c (main): Likewise.
16490
16491 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
16492
16493 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
16494 (sem_open): Set sem.newsem.pad to zero for valgrind.
16495
16496 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16497
16498 [BZ #20251]
16499 * NEWS: Mention fcntl64 addition.
16500 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
16501 * login/utmp_file.c: Likewise.
16502 * sysdeps/posix/fdopendir.c: Likewise.
16503 * sysdeps/posix/opendir.c: Likewise.
16504 * sysdeps/unix/pt-fcntl.c: Likewise.
16505 * include/fcntl.h (__libc_fcntl64, __fcntl64,
16506 __fcntl64_nocancel_adjusted): New prototype.
16507 (__fcntl_nocancel_adjusted): Remove prototype.
16508 * io/Makefile (routines): Add fcntl64.
16509 (CFLAGS-fcntl64.c): New rule.
16510 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
16511 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
16512 * io/fcntl.h (fcntl64): Add prototype and redirect if
16513 __USE_FILE_OFFSET64 is defined.
16514 * io/fcntl64.c: New file.
16515 * manual/llio.text: Add a note for which commands fcntl acts a
16516 cancellation point.
16517 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
16518 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
16519 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
16520 New symbols.
16521 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
16522 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
16523 non-LFS case.
16524 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
16525 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
16526 to __fcntl64_nocancel.
16527 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
16528 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
16529 to __fcntl64_nocancel.
16530 * sysdeps/generic/not-cancel.h: Likewise.
16531 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
16532 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
16533 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
16534 (fcntl64): New symbol.
16535 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
16536 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
16537 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
16538 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
16539 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
16540 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16541 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
16542 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
16543 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
16544 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
16545 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
16546 fcntl64): Likewise.
16547 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
16548 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
16549 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
16550 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
16551 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
16552 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
16553 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
16554 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
16555 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
16556 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
16557 Likewise.
16558 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
16559 Likewise.
16560 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
16561 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
16562 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
16563
16564 2018-06-26 Florian Weimer <fweimer@redhat.com>
16565
16566 Run thread shutdown functions in an explicit order.
16567 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
16568 definition.
16569 (__libc_thread_freeres): Call thread shutdown functions
16570 explicitly.
16571 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
16572 * include/string.h (__strerror_thread_freeres): Declare.
16573 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
16574 arena_thread_freeres. No longer static. Remove thread shutdown
16575 hook registration.
16576 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
16577 Declare.
16578 * resolv/res-close.c (__res_thread_freeres): Renamed from
16579 res_thread_freeres. No longer static. Remove thread shutdown
16580 hook registration.
16581 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
16582 * resolv/resolv_conf.c (freeres): Remove incorrect section
16583 attribute and use libc_freeres_fn.
16584 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
16585 strerror_thread_freeres. No longer static. Remove thread
16586 shutdown hook registration.
16587 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
16588 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
16589 shutdown hook registration.
16590 * Makerules (shlib.lds): Do not provide section boundary symbols
16591 for __libc_thread_subfreeres.
16592 * manual/memory.texi (Basic Allocation): Update comment.
16593
16594 2018-06-26 Florian Weimer <fweimer@redhat.com>
16595
16596 Remove always-defined _RPC_THREAD_SAFE_ macro.
16597 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
16598 Do not define _RPC_THREAD_SAFE_.
16599 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
16600 conditional.
16601 * sunrpc/clnt_perr.c: Likewise.
16602 * sunrpc/clnt_raw.c: Likewise.
16603 * sunrpc/clnt_simp.c: Likewise.
16604 * sunrpc/key_call.c: Likewise.
16605 * sunrpc/rpc_common.c: Likewise.
16606 * sunrpc/rpc_main.c: Likewise.
16607 * sunrpc/rpc_thread.c: Likewise.
16608 * sunrpc/svc.c: Likewise.
16609 * sunrpc/svc_raw.c: Likewise.
16610 * sunrpc/svc_simple.c: Likewise.
16611 * sumrpc/svcauth_des.c: Likewise.
16612
16613 2018-06-26 Florian Weimer <fweimer@redhat.com>
16614
16615 * libio/Makefile (tests-internal): Add tst-vtables,
16616 tst-vtables-interposed.
16617 * libio/tst-vtables.c: New file.
16618 * libio/tst-vtables-common.c: Likewise.
16619 * libio/tst-vtables-interposed.c: Likewise.
16620
16621 2018-06-26 Florian Weimer <fweimer@redhat.com>
16622
16623 * support/support_test_main.c (support_test_main): Only call
16624 setvbuf if not disables.
16625 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
16626 * support/test-driver.h (struct test_config): Add no_setvbuf member.
16627
16628 2018-06-26 Florian Weimer <fweimer@redhat.com>
16629
16630 [BZ #23313]
16631 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
16632
16633 2018-06-25 Florian Weimer <fweimer@redhat.com>
16634
16635 [BZ #18023]
16636 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16637 Use struct scratch_buffer instead of extend_alloca.
16638
16639 2018-06-25 Florian Weimer <fweimer@redhat.com>
16640
16641 [BZ #18023]
16642 * nss/getent.c (initgroups_keys): Use dynarray instead of
16643 extend_alloca.
16644
16645 2018-06-25 Florian Weimer <fweimer@redhat.com>
16646
16647 [BZ #18023]
16648 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
16649 Use struct scratch_buffer instead of extend_alloca.
16650
16651 2018-06-25 Florian Weimer <fweimer@redhat.com>
16652
16653 [BZ #18023]
16654 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
16655 back to malloc directly, without stack allocations.
16656
16657 2018-06-25 Florian Weimer <fweimer@redhat.com>
16658
16659 [BZ #18023]
16660 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
16661 of extend_alloca.
16662
16663 2018-06-25 Florian Weimer <fweimer@redhat.com>
16664
16665 [BZ #18023]
16666 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
16667 of extend_alloca.
16668 * nscd/hstcache.c (addhstbyX): Likewise.
16669 * nscd/pwdcache.c (addpwbyX): Likewise.
16670 * nscd/servicescache.c (addservbyX): Likewise.
16671
16672 2018-06-25 Florian Weimer <fweimer@redhat.com>
16673
16674 [BZ #18023]
16675 * nscd/connections.c (read_cmdline): New function.
16676 (restart): Use it. Update comment.
16677
16678 2018-06-25 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
16679
16680 [BZ #23140]
16681 * localedata/locales/csb_PL (mon): Rename to...
16682 (alt_mon): This.
16683 (abmon): Rename to...
16684 (ab_alt_mon): This.
16685 (mon): Add with proper genitive forms, copy from Wikipedia.
16686 (abmon): Likewise.
16687
16688 2018-06-25 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
16689
16690 [BZ #19485]
16691 * localedata/locales/csb_PL (mon): Fix typos:
16692 "Ć‚ĆŒĂ«kwiĂŽt" -> "Ć‚ĆŒĂ«kwiat" (April); "lĂ«pinc" -> "lĂ«piƄc" (July).
16693 (yesstr): Add, value is "jo".
16694 (nostr): Add, value is "nié".
16695
16696 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16697
16698 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
16699 all log1p and significand functions on m680x0.
16700 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
16701 of s_significand.c..
16702 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
16703 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
16704 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
16705 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
16706 s_log1p.c and include it..
16707
16708 2018-06-21 Vincent Chen <vincentc@andestech.com>
16709
16710 * elf/elf.h (R_NDS32_NONE): New define.
16711 (R_NDS32_32_RELA): Likewise.
16712 (R_NDS32_COPY): Likewise.
16713 (R_NDS32_GLOB_DAT): Likewise.
16714 (R_NDS32_JUMP_SLOT): Likewise.
16715 (R_NDS32_RELATIVE): Likewise.
16716 (R_NDS32_TLS_TPOFF): Likewise.
16717 (R_NDS32_TLS_DESC): Likewise.
16718
16719 2018-06-21 Mark Wielaard <mark@klomp.org>
16720
16721 * elf/elf.h (R_BPF_MAP_FD): Removed.
16722 (R_BPF_64_64, R_BPF_64_32): New.
16723
16724 2018-06-21 Florian Weimer <fweimer@redhat.com>
16725
16726 [BZ #23253]
16727 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
16728 Renamed from libc_feholdsetround_ctx.
16729 (default_libc_feresetround_ctx): Renamed from
16730 libc_feresetround_ctx.
16731 (default_libc_feholdsetround_noex_ctx): Renamed from
16732 libc_feholdsetround_noex_ctx.
16733 (default_libc_feresetround_noex_ctx): Renamed from
16734 libc_feresetround_noex_ctx.
16735 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
16736 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
16737 forwardning to the old implementations under the new names.
16738 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
16739 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
16740 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
16741 (libc_feresetround_ctx): Forward to default implements for i386
16742 and MATH_SET_BOTH_ROUNDING_MODES.
16743 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
16744 Add -DMATH_SET_BOTH_ROUNDING_MODES.
16745
16746 2018-06-20 Joseph Myers <joseph@codesourcery.com>
16747
16748 * string/tst-cmp.c: Include <libc-diag.h>.
16749 (strncmp_max): Disable -Wstringop-overflow= around call to
16750 strncmp.
16751 (strncasecmp_max): Disable -Wstringop-overflow= around call to
16752 strncasecmp.
16753
16754 * string/bug-strpbrk1.c: Include <libc-diag.h>.
16755 (main): Disable -Wunused-value around call to strpbrk.
16756 * string/bug-strspn1.c: Include <libc-diag.h>.
16757 (main): Disable -Wunused-value around call to strspn.
16758
16759 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16760 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16761
16762 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
16763 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
16764
16765 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16766
16767 * math/Makefile (libm-calls): Move s_significandF to...
16768 (gen-libm-calls): ... here.
16769 * math/s_significand_template.c: New file.
16770 * math/s_significand.c: Removed.
16771 * math/s_significandf.c: Removed.
16772 * math/s_significandl.c: Removed.
16773 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
16774 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
16775
16776 * math/e_exp2_template.c (declare_mgen_finite_alias,
16777 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
16778 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
16779 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
16780
16781 2018-06-20 Florian Weimer <fweimer@redhat.com>
16782
16783 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
16784
16785 2018-06-19 Joseph Myers <joseph@codesourcery.com>
16786
16787 [BZ #23280]
16788 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
16789 floating-point number to strtod functions rather than possibly
16790 negating result of those functions.
16791 * stdio-common/tst-scanf-round.c: New file.
16792 * stdio-common/Makefile (tests): Add tst-scanf-round.
16793 ($(objpfx)tst-scanf-round): Depend on $(libm).
16794
16795 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16796
16797 * sysdeps/mach/hurd/localplt.data: Move to...
16798 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
16799 R_386_GLOB_DAT like on Linux i386.
16800
16801 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16802
16803 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
16804 (SHM_STAT_ANY): New macro.
16805 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
16806 (SHM_STAT_ANY): Likewise.
16807 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
16808 (SHM_STAT_ANY): Likewise.
16809 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
16810 (SHM_STAT_ANY): Likewise.
16811 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
16812 (SHM_STAT_ANY): Likewise.
16813 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
16814 (SHM_STAT_ANY): Likewise.
16815 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
16816 (SHM_STAT_ANY): Likewise.
16817 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
16818 (SHM_STAT_ANY): Likewise.
16819 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
16820 (SHM_STAT_ANY): Likewise.
16821 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
16822 (SHM_STAT_ANY): Likewise.
16823 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
16824 (SHM_STAT_ANY): Likewise.
16825 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
16826 (SHM_STAT_ANY): Likewise.
16827
16828 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
16829 (SEM_STAT_ANY): New macro.
16830 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
16831 (SEM_STAT_ANY): Likewise.
16832 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
16833 (SEM_STAT_ANY): Likewise.
16834 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
16835 (SEM_STAT_ANY): Likewise.
16836 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
16837 (SEM_STAT_ANY): Likewise.
16838 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
16839 (SEM_STAT_ANY): Likewise.
16840 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
16841 (SEM_STAT_ANY): Likewise.
16842 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
16843 (SEM_STAT_ANY): Likewise.
16844 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
16845 (SEM_STAT_ANY): Likewise.
16846 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
16847 (SEM_STAT_ANY): Likewise.
16848
16849 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
16850 (MSG_STAT_ANY): New macro.
16851 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
16852 (MSG_STAT_ANY): Likewise.
16853 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
16854 (MSG_STAT_ANY): Likewise.
16855 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
16856 (MSG_STAT_ANY): Likewise.
16857 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
16858 (MSG_STAT_ANY): Likewise.
16859 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
16860 (MSG_STAT_ANY): Likewise.
16861 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
16862 (MSG_STAT_ANY): Likewise.
16863 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
16864 (MSG_STAT_ANY): Likewise.
16865 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
16866 (MSG_STAT_ANY): Likewise.
16867 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
16868 (MSG_STAT_ANY): Likewise.
16869
16870 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16871 (MAP_TYPE): Change value to 0x2b.
16872
16873 2018-06-18 Florian Weimer <fweimer@redhat.com>
16874
16875 [BZ #15722]
16876 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
16877 socket with SOCK_CLOEXEC.
16878
16879 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16880
16881 [BZ #23303]
16882 * sysdeps/powerpc/powerpc64/le/Makefile
16883 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
16884 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
16885 (gnulib-tests): Also add $(f128-loader-link) for
16886 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
16887
16888 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
16889
16890 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
16891 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
16892 of sendfile.
16893 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
16894 (sendfile64): New strong alias.
16895 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
16896 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
16897 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
16898 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
16899 attribute.
16900 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
16901 ___pthread_get_cleanup_stack.
16902 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
16903 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
16904 * mach/shortcut.awk: Make syscall stubs include
16905 <mach-shortcuts-hidden.h> and add hidden definition.
16906 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
16907 (__mach_msg): Add hidden prototype.
16908 * mach/msg.c: Include <mach.h>.
16909 (__mach_msg): Add hidden definition.
16910 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
16911 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
16912 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
16913 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
16914 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
16915 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
16916 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
16917 prototype and definition.
16918 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16919 hidden target for _hurd_self_sigstate.
16920
16921 2018-06-15 Joseph Myers <joseph@codesourcery.com>
16922
16923 [BZ #23007]
16924 * stdlib/tst-strtod-nan-sign-main.c: New file.
16925 * stdlib/tst-strtod-nan-sign.c: Likewise.
16926 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16927 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16928 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16929 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16930 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16931
16932 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
16933
16934 [BZ #23007]
16935 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16936 appropriate sign.
16937
16938 2018-06-14 Florian Weimer <fweimer@redhat.com>
16939
16940 [BZ #23290]
16941 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16942 that the result stays within the ISO-8859-1 range.
16943 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16944 characters are defined in IBM273.
16945
16946 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16947
16948 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16949 __mach_task_self): Remove attribute_hidden.
16950
16951 2018-06-14 Joseph Myers <joseph@codesourcery.com>
16952
16953 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16954 ignore -Wrestrict for one test.
16955
16956 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
16957 Szabolcs Nagy <szabolcs.nagy@arm.com>
16958
16959 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16960
16961 2018-06-14 Florian Weimer <fweimer@redhat.com>
16962
16963 * scripts/update-abilist.sh: Accept empty list of files to patch.
16964
16965 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16966
16967 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16968 test-xfail-check-abi-libmachuser): Add.
16969 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16970 __libc_read and __libc_write to __read and __write.
16971 * sysdeps/hurd/include/hurd/port.h: New file.
16972 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16973 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16974 __thread_switch, __evc_wait): Move declarations to...
16975 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16976 attribute_hidden.
16977 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16978 use PLT to call _hurd_self_sigstate.
16979
16980 2018-06-13 Joseph Myers <joseph@codesourcery.com>
16981
16982 [BZ #23279]
16983 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16984 MAX_EXP as overflowing.
16985 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16986 overflow flag.
16987 (round_str): Output also whether result overflows in each rounding
16988 mode.
16989 * stdlib/tst-strtod-round-data: Add more tests.
16990 * stdlib/tst-strtod-round-data.h: Regenerated.
16991 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16992 (TEST): Handle extra arguments for overflow flags.
16993 (struct test_overflow): New type.
16994 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16995 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
16996 (test_in_one_mode): Take argument with overflow information.
16997 (do_test): Update calls to test_in_one_mode.
16998
16999 2018-06-12 Carlos O'Donell <carlos@redhat.com>
17000
17001 * elf/dl-load (_dl_dst_substitute): Correct comment.
17002 (_dl_dst_count): Likewise.
17003
17004 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
17005 lll_futex_timed_wait.
17006
17007 2018-06-12 Joseph Myers <joseph@codesourcery.com>
17008
17009 [BZ #23277]
17010 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
17011 attribute.
17012 * math/test-nan-const.c: New file.
17013 * math/Makefile (tests): Add test-nan-const.
17014 (CFLAGS-test-nan-const.c): New variable.
17015
17016 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
17017
17018 * benchtests/scripts/compare_strings.py (process_results): Add
17019 funcs argument. Compare only functions which are selected.
17020 (main): Check if base function is among selected functions.
17021 Pass selected functions to process_results.
17022 (__main__): Add -f/--functions argument.
17023
17024 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
17025 Hongbo Zhang <hongbo.zhang@linaro.org>
17026
17027 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
17028 __memcpy_falkor for phecda core.
17029 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
17030 __memmove_falkor for phecda core.
17031 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
17032 __memset_falkor for phecda core.
17033 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
17034 for phecda core.
17035 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
17036 macro to identify phecda core.
17037
17038 2018-06-12 Carlos O'Donell <carlos@redhat.com>
17039 Andreas Schwab <schwab@suse.de>
17040 Dmitry V. Levin <ldv@altlinux.org>
17041 Florian Weimer <fweimer@redhat.com>
17042
17043 [BZ #23102]
17044 [BZ #21942]
17045 [BZ #18018]
17046 [BZ #23259]
17047 CVE-2011-0536
17048 * elf/dl-dst.h: Remove DL_DST_COUNT.
17049 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
17050 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
17051 (is_dst): Comment. Support ELF gABI.
17052 (_dl_dst_count): Comment. Simplify and count DSTs.
17053 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
17054 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
17055 locals.
17056
17057 2018-06-12 Zack Weinberg <zackw@panix.com>
17058
17059 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
17060 * sysdeps/unix/sysv/linux/dl-sysdep.c
17061 Include not-cancel.h. Use __close_nocancel instead of __close,
17062 __open64_nocancel instead of __open, __read_nocancel instead of
17063 __libc_read, and __write_nocancel instead of __libc_write.
17064
17065 * csu/check_fds.c (check_one_fd)
17066 * sysdeps/posix/fdopendir.c (__fdopendir)
17067 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
17068 instead of __fcntl and/or __libc_fcntl.
17069
17070 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
17071 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
17072 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
17073 Use __open64_nocancel instead of __open_nocancel.
17074
17075 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
17076 hidden_proto declarations to the end and issue them if either
17077 IS_IN(libc) or IS_IN(rtld).
17078 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
17079 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
17080 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
17081 read_nocancel, waitpid_nocancel, write_nocancel.
17082
17083 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
17084 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
17085 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
17086
17087 * nptl/pt-fcntl.c: New file.
17088 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
17089 (libpthread-routines): Add pt-fcntl.
17090 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
17091 (__libc_fcntl): Remove attribute_hidden.
17092 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
17093 __fcntl_nocancel_adjusted, not fcntl_common.
17094 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
17095 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
17096 to fcntl_nocancel.c.
17097 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
17098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
17099 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17100 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
17101
17102 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
17103 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
17104 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
17105 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
17106 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
17107 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
17108 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
17109 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
17110 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
17111 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
17112 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
17113 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
17114 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
17115 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
17116 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
17117 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
17118 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
17119 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
17120 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
17121 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
17122
17123 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
17124 libpthread-routines.
17125 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
17126 defines nothing.
17127
17128 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
17129 __libc_read, and __write instead of __libc_write. Define
17130 __open64 in addition to __open.
17131
17132 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
17133
17134 [BZ #23250]
17135 [BZ #10686]
17136 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
17137 to _private_tm[3] and add __glibc_reserved2.
17138 Add _Static_assert of offset of __private_ss == 0x30.
17139 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
17140 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
17141
17142 2018-06-12 Florian Weimer <fweimer@redhat.com>
17143
17144 x86: Make strncmp usable from rtld.
17145 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
17146 __strncmp_ia32 if in libc (and not in rtld).
17147 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
17148 strncmp if not in libc (and not to __strncmp_sse2).
17149
17150 2018-06-12 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
17151
17152 [BZ #23140]
17153 * localedata/locales/gd_GB (mon): Rename to...
17154 (alt_mon): This.
17155 (mon): Import from CLDR (genitive case).
17156 * localedata/locales/hsb_DE (mon): Rename to...
17157 (alt_mon): This.
17158 (mon): Import from CLDR (genitive case).
17159 * localedata/locales/wa_BE (mon): Rename to...
17160 (alt_mon): This.
17161 (mon): Add, fill with the proper genitive forms, but CLDR data
17162 is incomplete; completed according to the comments in this file.
17163 (d_t_fmt): Do not use "di" before the month name, no longer needed.
17164
17165 * localedata/locales/wa_BE (country_name): Reword
17166 "Beljike" -> "Beldjike".
17167
17168 2018-06-11 Joseph Myers <joseph@codesourcery.com>
17169
17170 [BZ #23272]
17171 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
17172 cases of non-finite arguments.
17173 * math/libm-test-fma.inc (fma_test_data): Add more tests.
17174
17175 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
17176
17177 [BZ #23174]
17178 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
17179
17180 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17181
17182 [BZ #23264]
17183 * include/unistd.h (__execvpex): New prototype.
17184 * posix/Makefile (tests): Add tst-spawn4.
17185 (tests-internal): Add tst-spawn4-compat.
17186 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
17187 * posix/tst-spawn4-compat.c: New file.
17188 * posix/tst-spawn4.c: Likewise.
17189 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
17190 binaries as shell scripts.
17191 * sysdeps/posix/spawni.c (__spawni): Likewise.
17192
17193 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
17194
17195 [BZ #23145]
17196 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
17197 ($(all-built-dso:=.dynsym): New target.
17198 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
17199 ($(objpfx)check-initfini.out): New target.
17200 (generated): Add check-initfini.out.
17201 * scripts/check-initfini.awk: New file.
17202 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
17203 (_fini): Likewise.
17204 * sysdeps/alpha/crti.S (_init): Mark as hidden.
17205 (_fini): Likewise.
17206 * sysdeps/arm/crti.S (_init): Mark as hidden.
17207 (_fini): Likewise.
17208 * sysdeps/hppa/crti.S (_init): Mark as hidden.
17209 (_fini): Likewise.
17210 * sysdeps/i386/crti.S (_init): Mark as hidden.
17211 (_fini): Likewise.
17212 * sysdeps/ia64/crti.S (_init): Mark as hidden.
17213 (_fini): Likewise.
17214 * sysdeps/m68k/crti.S (_init): Mark as hidden.
17215 (_fini): Likewise.
17216 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
17217 (_fini): Likewise.
17218 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
17219 (_fini): Likewise.
17220 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
17221 (_fini): Likewise.
17222 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
17223 (_fini): Likewise.
17224 * sysdeps/nios2/crti.S (_init): Mark as hidden.
17225 (_fini): Likewise.
17226 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
17227 (_fini): Likewise.
17228 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
17229 (_fini): Likewise.
17230 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
17231 (_fini): Likewise.
17232 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
17233 (_fini): Likewise.
17234 * sysdeps/sh/crti.S (_init): Mark as hidden.
17235 (_fini): Likewise.
17236 * sysdeps/sparc/crti.S (_init): Mark as hidden.
17237 (_fini): Likewise.
17238 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
17239 (_fini): Likewise.
17240
17241 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17242
17243 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
17244 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
17245 and TF redirection to KFtype and KF only when the default
17246 long double type is not the IEEE 128-bit floating point type.
17247
17248 2018-06-05 Joseph Myers <joseph@codesourcery.com>
17249
17250 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
17251 macro.
17252 (HWCAP_USCAT): Likewise.
17253 (HWCAP_ILRCPC): Likewise.
17254 (HWCAP_FLAGM): Likewise.
17255 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
17256 Increase to 28.
17257 (_dl_aarch64_cap_flags): Add new flag names.
17258
17259 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
17260 (MAP_FIXED_NOREPLACE): New macro.
17261 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
17262 (MAP_FIXED_NOREPLACE): Likewise.
17263 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
17264 (MAP_FIXED_NOREPLACE): Likewise.
17265 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
17266 (MAP_FIXED_NOREPLACE): Likewise.
17267 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
17268 (MAP_FIXED_NOREPLACE): Likewise.
17269 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
17270 (MAP_FIXED_NOREPLACE): Likewise.
17271 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
17272 (MAP_FIXED_NOREPLACE): Likewise.
17273 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
17274 (MAP_FIXED_NOREPLACE): Likewise.
17275 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
17276 (MAP_FIXED_NOREPLACE): Likewise.
17277 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
17278 (MAP_FIXED_NOREPLACE): Likewise.
17279 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
17280 (MAP_FIXED_NOREPLACE): Likewise.
17281 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
17282 (MAP_FIXED_NOREPLACE): Likewise.
17283 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
17284 (MAP_FIXED_NOREPLACE): Likewise.
17285 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
17286 (MAP_FIXED_NOREPLACE): Likewise.
17287 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
17288 (MAP_FIXED_NOREPLACE): Likewise.
17289
17290 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
17291 version to 4.17.
17292
17293 2018-06-04 Joseph Myers <joseph@codesourcery.com>
17294
17295 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17296 version to 4.17
17297
17298 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17299
17300 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
17301 int.
17302 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
17303
17304 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17305
17306 * benchtests/scripts/compare_string.py: (process_results) Catch
17307 exception in non-existent base_func and catch exception in
17308 non-existent attribute.
17309 (parse_file) Catch exception if input file does not exist.
17310
17311 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17312
17313 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
17314 options to avoid diff calculation and omit header, respectively.
17315 (main): process --no-diff and --no-header
17316
17317 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17318 H.J. Lu <hongjiu.lu@intel.com>
17319
17320 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17321 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
17322 wcsncmp-sse2.
17323 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17324 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
17325 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
17326 and __wcsncmp_sse2.
17327 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
17328 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
17329 AVX unaligned load is fast and vzeroupper is preferred.
17330 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
17331 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
17332 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
17333 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
17334 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
17335 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
17336 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
17337 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
17338 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
17339 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
17340 is undefined.
17341
17342 2018-06-01 Florian Weimer <fweimer@redhat.com>
17343
17344 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
17345 configuring with --disable-multi-arch, building with
17346 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
17347 Haswell-era CPU.
17348
17349 2018-06-01 Florian Weimer <fweimer@redhat.com>
17350
17351 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
17352 results from building with “-march=x86-64 -mtune=generic
17353 -mfpmath=sse” and running on a Haswell-era CPU.
17354
17355 2018-06-01 Joseph Myers <joseph@codesourcery.com>
17356
17357 [BZ #18473]
17358 * soft-fp/sqrttf2.c: Remove file.
17359 * soft-fp/sqrtdf2.c: Move to ....
17360 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
17361 <shlib-compat.h>.
17362 (__sqrtdf2): Make conditional on
17363 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
17364 symbol.
17365 * soft-fp/sqrtsf2.c: Move to ....
17366 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
17367 <shlib-compat.h>.
17368 (__sqrtsf2): Make conditional on
17369 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
17370 symbol.
17371 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
17372 (gcc-double-routines): Remove sqrtdf2.
17373 (gcc-quad-routines): Remove sqrttf2.
17374 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
17375 Do not filter out sqrtsf2 and sqrtdf2.
17376 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
17377 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
17378
17379 2018-06-01 Florian Weimer <fweimer@redhat.com>
17380
17381 * sysdeps/generic/libcidn.abilist: Remove file.
17382
17383 2018-06-01 Florian Weimer <fweimer@redhat.com>
17384
17385 [BZ #23236]
17386 * libio/strfile.h (struct _IO_str_fields): Rename members to
17387 discourage their use and add comment.
17388 (_IO_STR_DYNAMIC): Remove unused macro.
17389 * libio/strops.c (_IO_str_init_static_internal): Do not use
17390 callback pointers. Call malloc and free.
17391 (_IO_str_overflow): Do not use callback pointers. Call malloc
17392 and free.
17393 (enlarge_userbuf): Likewise.
17394 (_IO_str_finish): Call free.
17395 * libio/wstrops.c (_IO_wstr_init_static): Initialize
17396 _allocate_buffer_unused.
17397 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
17398 and free.
17399 (enlarge_userbuf): Likewise.
17400 (_IO_wstr_finish): Call free.
17401 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
17402 _allocate_buffer_unused, _free_buffer_unused.
17403 * libio/memstream.c (__open_memstream): Likewise.
17404 * libio/vasprintf.c (_IO_vasprintf): Likewise.
17405 * libio/wmemstream.c (open_wmemstream): Likewise.
17406
17407 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
17408
17409 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
17410 AMD Ryzen 7 1800X.
17411
17412 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17413
17414 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
17415 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
17416 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
17417 New file.
17418 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
17419 Likewise.
17420 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
17421
17422 2018-05-29 Florian Weimer <fweimer@redhat.com>
17423
17424 * support/Makefile (libsupport-routines): Add
17425 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
17426 xpthread_barrierattr_setpshared.
17427 * support/xpthread_barrierattr_destroy.c: New file.
17428 * support/xpthread_barrierattr_init.c: Likewise.
17429 * support/xpthread_barrierattr_setpshared.c: Likewise.
17430
17431 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
17432
17433 [BZ #23206]
17434 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
17435 _r_debug and update DT_DEBUG for debugger.
17436
17437 2018-05-29 Florian Weimer <fweimer@redhat.com>
17438
17439 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
17440 (tst-strtod5i.out): Likewise.
17441
17442 2018-05-25 Joseph Myers <joseph@codesourcery.com>
17443
17444 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
17445 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
17446 (sparc64-quad-routines): New variable. Moved from ....
17447 [$(subdir) = soft-fp] (sysdep_routines): Add
17448 $(sparc64-quad-routines). Moved from ....
17449 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
17450 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
17451 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
17452 moved from ....
17453 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
17454 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
17455 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
17456 * sysdeps/sparc/sparc64/qp_add.c: ... here.
17457 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
17458 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
17459 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
17460 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
17461 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
17462 * sysdeps/sparc/sparc64/qp_div.c: ... here.
17463 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
17464 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
17465 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
17466 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
17467 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
17468 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
17469 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
17470 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
17471 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
17472 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
17473 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
17474 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
17475 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
17476 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
17477 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
17478 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
17479 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
17480 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
17481 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
17482 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
17483 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
17484 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
17485 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
17486 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
17487 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
17488 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
17489 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
17490 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
17491 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
17492 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
17493 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
17494 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
17495 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
17496 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
17497 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
17498 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
17499 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
17500 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
17501 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
17502 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
17503 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
17504 * sysdeps/sparc/sparc64/qp_util.c: ... here.
17505 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
17506 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
17507 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
17508 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
17509 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
17510 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
17511
17512 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
17513 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
17514 (sparc32-quad-routines): New variable. Moved from ....
17515 [$(subdir) = soft-fp] (sysdep_routines): Add
17516 $(sparc32-quad-routines). Moved from ....
17517 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
17518 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
17519 moved from ....
17520 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
17521 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
17522 * sysdeps/sparc/sparc32/q_add.c: ... here.
17523 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
17524 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
17525 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
17526 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
17527 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
17528 * sysdeps/sparc/sparc32/q_div.c: ... here.
17529 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
17530 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
17531 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
17532 * sysdeps/sparc/sparc32/q_feq.c: ... here.
17533 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
17534 * sysdeps/sparc/sparc32/q_fge.c: ... here.
17535 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
17536 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
17537 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
17538 * sysdeps/sparc/sparc32/q_fle.c: ... here.
17539 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
17540 * sysdeps/sparc/sparc32/q_flt.c: ... here.
17541 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
17542 * sysdeps/sparc/sparc32/q_fne.c: ... here.
17543 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
17544 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
17545 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
17546 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
17547 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
17548 * sysdeps/sparc/sparc32/q_mul.c: ... here.
17549 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
17550 * sysdeps/sparc/sparc32/q_neg.c: ... here.
17551 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
17552 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
17553 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
17554 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
17555 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
17556 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
17557 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
17558 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
17559 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
17560 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
17561 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
17562 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
17563 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
17564 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
17565 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
17566 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
17567 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
17568 * sysdeps/sparc/sparc32/q_sub.c: ... here.
17569 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
17570 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
17571 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
17572 * sysdeps/sparc/sparc32/q_util.c: ... here.
17573 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
17574 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
17575 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
17576 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
17577
17578 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17579 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17580
17581 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
17582 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
17583 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
17584 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
17585
17586 2018-05-24 Joseph Myers <joseph@codesourcery.com>
17587
17588 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
17589 powerpc/soft-fp.
17590 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
17591 Likewise.
17592 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
17593 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
17594
17595 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17596
17597 [BZ #23171]
17598 * math/math.h [C++] (iseqsig): Fix parameter type for the long
17599 double version.
17600
17601 2018-05-23 Joseph Myers <joseph@codesourcery.com>
17602
17603 * sysdeps/sh/Implies: Remove sh/soft-fp.
17604 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
17605 * sysdeps/sh/sfp-machine.h: ... here.
17606
17607 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17608
17609 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17610 (__mempcpy_erms): Skip zero length.
17611 (__memmove_erms): Likewise.
17612 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17613 (__memset_erms): Likewise.
17614
17615 2018-05-23 Joseph Myers <joseph@codesourcery.com>
17616
17617 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
17618 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
17619 Add functions moved from ....
17620 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
17621 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
17622 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
17623 from ....
17624 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
17625 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
17626 * sysdeps/alpha/e_sqrtl.c: ... here.
17627 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
17628 * sysdeps/alpha/local-soft-fp.h: ... here.
17629 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
17630 * sysdeps/alpha/ots_add.c: ... here.
17631 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
17632 * sysdeps/alpha/ots_cmp.c: ... here.
17633 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
17634 * sysdeps/alpha/ots_cmpe.c: ... here.
17635 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
17636 * sysdeps/alpha/ots_cvtqux.c: ... here.
17637 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
17638 * sysdeps/alpha/ots_cvtqx.c: ... here.
17639 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
17640 * sysdeps/alpha/ots_cvttx.c: ... here.
17641 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
17642 * sysdeps/alpha/ots_cvtxq.c: ... here.
17643 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
17644 * sysdeps/alpha/ots_cvtxt.c: ... here.
17645 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
17646 * sysdeps/alpha/ots_div.c: ... here.
17647 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
17648 * sysdeps/alpha/ots_mul.c: ... here.
17649 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
17650 * sysdeps/alpha/ots_nintxq.c: ... here.
17651 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
17652 * sysdeps/alpha/ots_sub.c: ... here.
17653 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
17654 * sysdeps/alpha/sfp-machine.h: ... here.
17655
17656 2018-05-23 Florian Weimer <fweimer@redhat.com>
17657
17658 [BZ #19728]
17659 [BZ #19729]
17660 [BZ #22247]
17661 CVE-2016-6261
17662 CVE-2016-6263
17663 CVE-2017-14062
17664 Switch to extern IDNA implementation (libidn2).
17665 * libidn: Remove subdirectory.
17666 * LICENSES: Do not mention licensing conditions for the removed
17667 libidn code.
17668 * config.h.in (HAVE_LIBIDN): Remove.
17669 * include/dlfcn.h (__libc_dlopen): Update comment.
17670 * include/idna.h: Remove file.
17671 * inet/Makefile (routines): Add idna.
17672 (tests-static, tests-internal): Add tst-idna_name_classify.
17673 (LOCALES): Generate locales for tests.
17674 (tst-idna_name_classify.out): Depend on generated locales.
17675 * inet/idna_name_classify.c: New file.
17676 * inet/tst-idna_name_classify.c: Likewise.
17677 * inet/net-internal.h (__idna_to_dns_encoding)
17678 (__idna_from_dns_encoding): Declare.
17679 * inet/net-internal.h (enum idna_name_classification): Define.
17680 (__idna_name_classify): Declare.
17681 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
17682 __idna_from_dns_encoding.
17683 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
17684 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
17685 name as a fallback in case of encoding errors.
17686 (getnameinfo): Use DEPRECATED_NI_IDN.
17687 * inet/idna.c: New file.
17688 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
17689 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
17690 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
17691 (modules-names): Add tst-no-libidn2.
17692 (extra-test-objs): Add tst-no-libidn2.os.
17693 (LDFLAGS-tst-no-libidn2.so): Set soname.
17694 (LOCALES): Set, and generate locales.
17695 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
17696 (tst-resolv-ai_idn-latin1): Likewise.
17697 (tst-resolv-ai_idn-nolibidn2): Likewise.
17698 (tst-resolv-ai_idn.out): Depend on locales.
17699 (tst-resolv-ai_idn-latin1.out): Depend on locales.
17700 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
17701 tst-no-libidn2.so.
17702 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
17703 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
17704 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
17705 * resolv/tst-resolv-ai_idn.c: New file.
17706 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
17707 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
17708 * resolv/tst-no-libidn2.c: Likewise.
17709 * support/support_format_addrinfo.c (format_ai_flags): Do not
17710 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
17711 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
17712 (gaih_inet): Call __idna_to_dns_encoding and
17713 __idna_from_dns_encoding, and use the original (punycode) name if
17714 __idna_from_dns_encoding fails due to an encoding error.
17715 (getaddrinfo): Use DEPRECATED_AI_IDN.
17716 * sysdeps/unix/inet/Subdirs (libidn): Remove.
17717 * sysdeps/unix/inet/configure: Remove file.
17718 * sysdeps/unix/inet/configure.ac: Likewise.
17719
17720 2018-05-23 Florian Weimer <fweimer@redhat.com>
17721
17722 Implement allocate_once.
17723 * include/allocate_once.h: New file.
17724 * misc/allocate_once.c: Likewise.
17725 * misc/tst-allocate_once.c: Likewise.
17726 * misc/Makefile (routines): Add allocate_once.
17727 (tests-internal): Add tst-allocate_once.
17728 (generated): Add tst-allocate_once.mtrace,
17729 tst-allocate_once-mem.out.
17730 (tests-special): Add tst-allocate_once-mem.out.
17731 (tst-allocate_once-ENV): Set MALLOC_TRACE.
17732 (tst-allocate_once-mem.out): Call mtrace.
17733 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
17734
17735 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17736
17737 [BZ #23196]
17738 * string/test-memcpy.c (do_test1): New function.
17739 (test_main): Call it.
17740
17741 2018-05-23 Andreas Schwab <schwab@suse.de>
17742
17743 [BZ #23196]
17744 CVE-2018-11237
17745 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
17746 (L(preloop_large)): Save initial destination pointer in %r11 and
17747 use it instead of %rax after the loop.
17748 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
17749
17750 2018-05-22 Joseph Myers <joseph@codesourcery.com>
17751
17752 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
17753 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
17754 -I../soft-fp. Moved from ....
17755 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
17756 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
17757 * sysdeps/aarch64/e_sqrtl.c: ... here.
17758 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
17759 * sysdeps/aarch64/sfp-machine.h: ... here.
17760
17761 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
17762 -Wmaybe-uninitialized around access to fq[0].
17763 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17764 Likewise.
17765
17766 [BZ #18471]
17767 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
17768 aliases for non-libc case of versioned symbols.
17769 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
17770 (llseek): Define as compat symbol if
17771 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
17772 with link warning.
17773 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
17774 Make into a compat symbol, disabled for minimum symbol version
17775 GLIBC_2.28 and later.
17776 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
17777
17778 2018-05-22 Florian Weimer <fweimer@redhat.com>
17779
17780 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
17781 not add -mpreferred-stack-boundary=4.
17782 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
17783 (stack-align-test-flags): Likewise.
17784 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
17785 Likewise.
17786 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
17787 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
17788 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
17789 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
17790 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
17791 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
17792 (CFLAGS-tst-align2.c): Likewise.
17793
17794 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17795
17796 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
17797 (index_arch_Prefer_FSRM): Likewise.
17798 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17799 Also check Prefer_FSRM.
17800 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
17801 Also return OPTIMIZE (erms) for Prefer_FSRM.
17802
17803 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17804
17805 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
17806 (index_cpu_FSRM): Likewise.
17807 (reg_FSRM): Likewise.
17808
17809 2018-05-18 Joseph Myers <joseph@codesourcery.com>
17810
17811 * math/gen-tgmath-tests.py: Import sys.
17812 (Tests.__init__): Initialize macros_seen.
17813 (Tests.add_tests): Add macro to macros_seen. Only generate tests
17814 if requested to do so for this macro.
17815 (Tests.add_all_tests): Take argument for macro for which to
17816 generate tests.
17817 (Tests.check_macro_list): New function.
17818 (main): Handle check-list argument and argument specifying macro
17819 for which to generate tests.
17820 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
17821 [PYTHON] (tgmath3-macro-tests): Likewise.
17822 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
17823 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
17824 not test-tgmath3.c.
17825 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
17826 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
17827 to CFLAGS.
17828 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
17829 [PYTHON] ($(foreach
17830 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
17831 rule.
17832 [PYTHON] (tests-special): Add
17833 $(objpfx)test-tgmath3-macro-list.out.
17834 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
17835
17836 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
17837 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
17838 later.
17839
17840 [BZ #22639]
17841 * time/tzset.c (SECSPERDAY): Cast to time_t.
17842 * time/tst-y2039.c: New file.
17843 * time/Makefile (tests): Add tst-y2039.
17844
17845 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17846
17847 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17848 (PREFETCH_ONE_SET): Remove duplicate line.
17849
17850 2018-05-17 Florian Weimer <fweimer@redhat.com>
17851
17852 * sysdeps/generic/math-type-macros-double.h: Include
17853 <math-nan-payload-double.h> after <libm-alias-double.h>.
17854 * sysdeps/generic/math-type-macros-float.h: Include
17855 <math-nan-payload-float.h> after <libm-alias-float.h>.
17856 * sysdeps/generic/math-type-macros-float128.h: Include
17857 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
17858 * sysdeps/generic/math-type-macros-ldouble.h: Include
17859 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
17860
17861 2018-05-17 Andreas Schwab <schwab@suse.de>
17862
17863 * resolv/res_send.c (__res_context_send): Don't set errno when
17864 returing error after malloc failure.
17865
17866 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
17867
17868 * nptl/allocatestack.c (allocate_stack): Remove the
17869 !__ASSUME_PRIVATE_FUTEX paths.
17870 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
17871 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17872 Likewise.
17873 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
17874 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17875 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17876 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17877 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
17878 !__ASSUME_PRIVATE_FUTEX path.
17879 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
17880 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
17881 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
17882 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
17883 !__ASSUME_PRIVATE_FUTEX macros.
17884 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
17885 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
17886 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
17887 * sysdeps/unix/sysv/linux/kernel-features.h
17888 (__ASSUME_PRIVATE_FUTEX): Removed.
17889
17890 2018-05-17 Joseph Myers <joseph@codesourcery.com>
17891
17892 * math/Makefile (libm-narrow-fns): Add div.
17893 (libm-test-funcs-narrow): Likewise.
17894 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
17895 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
17896 * math/gen-auto-libm-tests.c (test_functions): Add div.
17897 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
17898 (NARROW_DIV_ROUND_TO_ODD): Likewise.
17899 (NARROW_DIV_TRIVIAL): Likewise.
17900 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
17901 macro.
17902 (__ddivl): Likewise.
17903 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
17904 ddiv.
17905 (CFLAGS-nldbl-ddiv.c): New variable.
17906 (CFLAGS-nldbl-fdiv.c): Likewise.
17907 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17908 __nldbl_ddivl.
17909 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
17910 prototype.
17911 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
17912 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
17913 * math/auto-libm-test-in: Add tests of div.
17914 * math/auto-libm-test-out-narrow-div: New generated file.
17915 * math/libm-test-narrow-div.inc: New file.
17916 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
17917 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
17918 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17919 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17920 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17921 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17922 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17923 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17924 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17925 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17926 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17927 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17928 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17929 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17930 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17931 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17932 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17933 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17934 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17935 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17936 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17937 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17938 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17939 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17940 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17941 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17942 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17943 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17944 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17945 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17946 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17947 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17948 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17949 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17951 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17952 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17953 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17954 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17955 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17956 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17957 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17958 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17959 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17960
17961 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17962
17963 [BZ #23178]
17964 * nscd/nscd-client.h (sendfileall): Remove prototype.
17965 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17966 (handle_request): Use writeall instead of sendfileall.
17967 * nscd/aicache.c (addhstaiX): Likewise.
17968 * nscd/grpcache.c (cache_addgr): Likewise.
17969 * nscd/hstcache.c (cache_addhst): Likewise.
17970 * nscd/initgrcache.c (addinitgroupsX): Likewise.
17971 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17972 * nscd/pwdcache.c (cache_addpw): Likewise.
17973 * nscd/servicescache.c (cache_addserv): Likewise.
17974 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17975 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17976 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17977 Remove define.
17978
17979 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
17980
17981 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17982 Include <string/strncat.c>.
17983 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17984 alias.
17985 (__GI___strncat): New hidden alias.
17986
17987 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17988
17989 * sysdeps/mips/mips32/libm-test-ulps: Update.
17990 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17991
17992 2018-05-16 Florian Weimer <fweimer@redhat.com>
17993
17994 * support/Makefile (libsupport-routines): Add support_quote_blob,
17995 support_test_compare_blob.
17996 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
17997 * support/check.h (TEST_COMPARE_BLOB): Define.
17998 (support_test_compare_blob): Declare.
17999 * support/support.h (support_quote_blob): Declare.
18000 * support/support_quote_blob.c: New file.
18001 * support/support_test_compare_blob.c: Likewise.
18002 * support/tst-support_quote_blob.c: Likewise.
18003 * support/tst-test_compare_blob.c: Likewise.
18004
18005 2018-05-16 Florian Weimer <fweimer@redhat.com>
18006
18007 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
18008 of <strtod_nan_double.h>.
18009 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
18010 instead of SET_MANTISSA.
18011 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
18012 of include <strtod_nan_float.h>.
18013 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
18014 instead of <strtod_nan_ldouble.h>.
18015 * stdlib/strtod_nan_double.h: Move to ...
18016 * sysdeps/generic/math-nan-payload-double.h: ... here.
18017 (FLOAT): Remove definition.
18018 (SET_MANTISSA): Rename to ...
18019 (SET_NAN_PAYLOAD): ... this.
18020 * stdlib/strtod_nan_float.h: Move to ...
18021 * sysdeps/generic/math-nan-payload-float.h: ... here.
18022 (FLOAT): Remove definition.
18023 (SET_MANTISSA): Rename to ...
18024 (SET_NAN_PAYLOAD): ... this.
18025 * sysdeps/generic/math-type-macros-double.h: Include
18026 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
18027 instead of <math-svid-compat.h>.
18028 * sysdeps/generic/math-type-macros-float.h: Include
18029 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
18030 instead of <math-svid-compat.h>.
18031 * sysdeps/generic/math-type-macros-float128.h: Include
18032 <math-nan-payload-float128.h>.
18033 * sysdeps/generic/math-type-macros-ldouble.h: Include
18034 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
18035 instead of <math-svid-compat.h>.
18036 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
18037 check for definition.
18038 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
18039 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
18040 Include <ieee754_float128.h>.
18041 (FLOAT): Remove definition.
18042 (SET_MANTISSA): Rename to ...
18043 (SET_NAN_PAYLOAD): ... this.
18044 * sysdeps/ieee754/float128/strtof128_nan.c: Include
18045 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
18046 Do not include <float128_private.h>.
18047 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
18048 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
18049 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
18050 (FLOAT): Remove definition.
18051 (SET_MANTISSA): Rename to ...
18052 (SET_NAN_PAYLOAD): ... this.
18053 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
18054 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
18055 (FLOAT): Remove definition.
18056 (SET_MANTISSA): Rename to ...
18057 (SET_NAN_PAYLOAD): ... this.
18058 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
18059 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
18060 (FLOAT): Remove definition.
18061 (SET_MANTISSA): Rename to ...
18062 (SET_NAN_PAYLOAD): ... this.
18063 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
18064 of "../stdlib/strtod_nan_double.h".
18065 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
18066 of "../stdlib/strtod_nan_float.h".
18067 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
18068 instead of "../stdlib/strtod_nan_ldouble.h".
18069 * manual/arith.texi (Parsing of Floats): Adjust comment.
18070
18071 2018-05-16 Joseph Myers <joseph@codesourcery.com>
18072
18073 * math/Makefile (libm-narrow-fns): Add mul.
18074 (libm-test-funcs-narrow): Likewise.
18075 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
18076 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
18077 * math/gen-auto-libm-tests.c (test_functions): Add mul.
18078 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
18079 (NARROW_MUL_ROUND_TO_ODD): Likewise.
18080 (NARROW_MUL_TRIVIAL): Likewise.
18081 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
18082 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
18083 macro.
18084 (__dmull): Likewise.
18085 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
18086 dmul.
18087 (CFLAGS-nldbl-dmul.c): New variable.
18088 (CFLAGS-nldbl-fmul.c): Likewise.
18089 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18090 __nldbl_dmull.
18091 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
18092 prototype.
18093 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
18094 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
18095 * math/auto-libm-test-in: Add tests of mul.
18096 * math/auto-libm-test-out-narrow-mul: New generated file.
18097 * math/libm-test-narrow-mul.inc: New file.
18098 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
18099 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
18100 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
18101 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
18102 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
18103 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
18104 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
18105 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
18106 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
18107 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
18108 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
18109 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
18110 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
18111 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
18112 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
18113 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
18114 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
18115 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
18116 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18117 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18118 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18119 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18120 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18121 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18122 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18123 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18124 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18125 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18126 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18127 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18128 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18129 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18131 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18132 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18133 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18134 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18135 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18136 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18137 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18138 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18139 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18140 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18141 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18142
18143 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
18144
18145 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
18146 with *%eax in call.
18147
18148 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
18149
18150 * sysdeps/i386/ldsodefs.h: Removed.
18151 * sysdeps/x86_64/ldsodefs.h: Moved to ...
18152 * sysdeps/x86/ldsodefs.h: This.
18153 (La_i86_regs): New.
18154 (La_i86_retval): Likewise.
18155 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
18156 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
18157
18158 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
18159
18160 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
18161 unnecessary testl.
18162
18163 2018-05-13 Alan Modra <amodra@gmail.com>
18164
18165 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
18166 R_PARISC_TLS_DTPOFF32 reloc addend.
18167
18168 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18169
18170 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
18171 * math/math.h: Restrict the prototype definition for the functions
18172 issignaling(_Float128) and iszero(_Float128); and template
18173 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
18174 __HAVE_FLOAT128_UNLIKE_LDBL.
18175 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
18176 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18177 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
18178 __f128() constants; define the type _Float128 as long double;
18179 and reuse long double in __CFLOAT128.
18180
18181 2018-05-11 Joseph Myers <joseph@codesourcery.com>
18182
18183 * sysdeps/generic/math_private.h: Do not include
18184 <math-barriers.h>.
18185 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
18186 <math_private.h>.
18187 * math/fromfp.h: Include <math-barriers.h>.
18188 * math/math-narrow.h: Likewise.
18189 * math/s_nextafter.c: Likewise.
18190 * math/s_nexttowardf.c: Likewise.
18191 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
18192 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
18193 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
18194 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
18195 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
18196 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
18197 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
18198 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18199 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18200 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
18201 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
18202 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
18203 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
18204 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
18205 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
18206 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
18207 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
18208 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
18209 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
18210 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18211 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
18212 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18213 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18214 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
18215 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
18216 * sysdeps/ieee754/k_standardl.c: Likewise.
18217 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18218 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
18219 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
18220 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
18221 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
18222 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
18223 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
18224 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
18225 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18226 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
18227 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
18228 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
18229 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
18230 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
18231 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18232 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
18233 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
18234 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
18235 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
18236 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
18237 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
18238 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
18239
18240 2018-05-11 Florian Weimer <fweimer@redhat.com>
18241
18242 Use 64-bit epoch values in the time zone file parser.
18243 * include/time.h (internal_time_t): Define.
18244 (__tzfile_compute): Use it.
18245 * time/tzfile.c (struct leap): Use internal_time_t for epoch
18246 member.
18247 (transitions): Switch to internal_time_t.
18248 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
18249 types.
18250 (__tzfile_compute): Use internal_time_t for timer argument. Check
18251 for truncation before calling __offtime.
18252
18253 2018-05-11 Florian Weimer <fweimer@redhat.com>
18254
18255 [BZ #23166]
18256 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
18257 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
18258 Likewise.
18259 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
18260 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
18261 export without --enable-obsolete-rpc.
18262 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
18263 symbol. This should not have been exported, ever.
18264
18265 2018-05-11 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
18266
18267 [BZ #23152]
18268 * localedata/locales/gd_GB (abmon): Fix typo in May:
18269 "MhĂ rt" -> "CĂšit". Adjust the comment according to the change.
18270
18271 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
18272
18273 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
18274 Use multiple registers to copy data in loop tail.
18275
18276 * sysdeps/aarch64/multiarch/memmove_falkor.S
18277 (__memmove_falkor): Use multiple registers to move data in
18278 loop tail.
18279
18280 2018-05-10 Joseph Myers <joseph@codesourcery.com>
18281
18282 * math/math-underflow.h: New file.
18283 * sysdeps/generic/math_private.h: Do not include <float.h>.
18284 (fabs_tg): Remove macro. Moved to math-underflow.h.
18285 (min_of_type_f): Likewise.
18286 (min_of_type_): Likewise.
18287 (min_of_type_l): Likewise.
18288 (min_of_type_f128): Likewise.
18289 (min_of_type): Likewise.
18290 (math_check_force_underflow): Likewise.
18291 (math_check_force_underflow_nonneg): Likewise.
18292 (math_check_force_underflow_complex): Likewise.
18293 * math/e_exp2_template.c: Include <math-underflow.h>.
18294 * math/k_casinh_template.c: Likewise.
18295 * math/s_catan_template.c: Likewise.
18296 * math/s_catanh_template.c: Likewise.
18297 * math/s_ccosh_template.c: Likewise.
18298 * math/s_cexp_template.c: Likewise.
18299 * math/s_clog10_template.c: Likewise.
18300 * math/s_clog_template.c: Likewise.
18301 * math/s_csin_template.c: Likewise.
18302 * math/s_csinh_template.c: Likewise.
18303 * math/s_csqrt_template.c: Likewise.
18304 * math/s_ctan_template.c: Likewise.
18305 * math/s_ctanh_template.c: Likewise.
18306 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
18307 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18308 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
18309 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
18310 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
18311 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18312 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18313 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18314 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18315 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
18316 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18317 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18318 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
18319 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
18320 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
18321 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
18322 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18323 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
18324 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18325 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18326 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
18327 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18328 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18329 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18330 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
18331 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
18332 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
18333 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
18334 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18335 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18336 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18337 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
18338 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18339 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
18340 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
18341 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
18342 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
18343 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
18344 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18345 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
18346 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
18347 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
18348 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
18349 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
18350 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
18351 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
18352 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
18353 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
18354 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
18355 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18356 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
18357 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
18358 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
18359 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
18360 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18361 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
18362 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
18363 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
18364 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
18365 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
18366 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
18367 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
18368 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
18369 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
18370 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
18371 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18372 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18373 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
18374 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18375 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
18376 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18377 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
18378 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
18379 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
18380 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18381 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
18382 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
18383 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18384 * sysdeps/x86/fpu/powl_helper.c: Likewise.
18385 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
18386 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
18387 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
18388 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
18389 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
18390
18391 2018-05-09 Joseph Myers <joseph@codesourcery.com>
18392
18393 * sysdeps/generic/math-barriers.h: New file.
18394 * sysdeps/generic/math_private.h [!math_opt_barrier]
18395 (math_opt_barrier): Move to math-barriers.h.
18396 [!math_opt_barrier] (math_force_eval): Likewise.
18397 * sysdeps/aarch64/fpu/math-barriers.h: New file.
18398 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
18399 math-barriers.h.
18400 (math_force_eval): Likewise.
18401 * sysdeps/alpha/fpu/math-barriers.h: New file.
18402 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
18403 math-barriers.h.
18404 (math_force_eval): Likewise.
18405 * sysdeps/x86/fpu/math-barriers.h: New file.
18406 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
18407 math-barriers.h.
18408 (math_force_eval): Likewise.
18409 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
18410 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
18411 multiple-include guard for rename.
18412 * sysdeps/powerpc/fpu/math-barriers.h: New file.
18413 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
18414 math-barriers.h.
18415 (math_force_eval): Likewise.
18416
18417 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
18418
18419 [BZ #22786]
18420 CVE-2018-11236
18421 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
18422 computation.
18423 * stdlib/Makefile (test-bz22786): New test.
18424 * stdlib/test-bz22786.c: New test.
18425
18426 2018-05-09 Joseph Myers <joseph@codesourcery.com>
18427
18428 * include/math-narrow-eval.h: New file. Contents moved from ....
18429 * sysdeps/generic/math_private.h: ... here.
18430 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
18431 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
18432 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
18433 * stdlib/strtod_l.c: Likewise.
18434 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18435 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
18436 * sysdeps/i386/fpu/s_fdim.c: Likewise.
18437 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
18438 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
18439 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18440 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18441 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
18442 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18443 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18444 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
18445 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
18446 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18447 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
18448 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
18449 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
18450 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
18451 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
18452 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
18453 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18454 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18455 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
18456 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18457 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
18458 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
18459 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18460 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
18461 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
18462 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18463
18464 2018-05-08 Andreas Schwab <schwab@suse.de>
18465
18466 * sysdeps/nptl/internaltypes.h: Fix comment.
18467
18468 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
18469
18470 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
18471 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
18472 hidden.
18473
18474 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
18475
18476 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
18477 of I into loop header.
18478 * benchtests/bench-memmove-walk.c
18479 (test_main): Likewise.
18480
18481 2018-05-07 Alexandre Oliva <oliva@gnu.org>
18482
18483 Revert:
18484 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18485 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18486
18487 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
18488
18489 [BZ #20419]
18490 * elf/dl-load.c (open_verify): Fix stack overflow.
18491 * elf/Makefile (tst-big-note): New test.
18492 * elf/tst-big-note-lib.S: New.
18493 * elf/tst-big-note.c: New.
18494
18495 2018-05-04 Joseph Myers <joseph@codesourcery.com>
18496
18497 * scripts/abilist.awk: Ignore absolute symbols.
18498 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
18499 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
18500 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
18501 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
18502 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
18503 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
18504 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18505 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
18506 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
18507 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
18508 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
18509 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
18510 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
18511 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
18512 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
18513 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
18514 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
18515 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
18516 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18517 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
18518 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
18519 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
18520 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
18521 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
18522 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
18523 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
18524 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
18525 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
18526 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18527 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
18528 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
18529 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18530 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
18531 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
18532 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
18533 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
18534 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
18535 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
18536 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
18537 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
18538 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
18539 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18540 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
18541 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
18542 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18543 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
18544 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
18545 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
18546 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
18547 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
18548 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
18549 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
18550 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
18551 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
18552 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18553 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
18554 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
18555 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18556 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
18557 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
18558 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
18559 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
18560 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
18561 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
18562 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
18563 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
18564 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
18565 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18566 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
18567 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
18568 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18569 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
18570 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
18571 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
18572 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
18573 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
18574 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
18575 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
18576 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
18577 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
18578 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18579 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
18580 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
18581 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18582 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
18583 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
18584 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
18585 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
18586 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
18587 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
18588 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
18589 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
18590 Likewise.
18591 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
18592 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18593 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
18594 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
18595 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18596 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
18597 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
18598 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
18599 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
18600 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
18601 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
18602 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
18603 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
18604 Likewise.
18605 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
18606 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18607 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
18608 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
18609 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18610 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
18611 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
18612 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
18613 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
18614 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
18615 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
18616 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
18617 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
18618 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
18619 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18620 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
18621 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
18622 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18623 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
18624 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
18625 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
18626 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
18627 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
18628 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
18629 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18630 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
18631 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
18632 Likewise.
18633 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
18634 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
18635 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
18636 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
18637 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18638 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
18639 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
18640 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
18641 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
18642 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
18643 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
18644 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
18645 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
18646 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
18647 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
18648 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
18649 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
18650 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
18651 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
18652 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
18653 Likewise.
18654 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
18655 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
18656 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
18657 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18658 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
18659 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
18660 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
18661 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
18662 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
18663 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
18664 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18665 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
18666 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
18667 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18668 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
18669 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
18670 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
18671 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
18672 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18673 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
18674 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
18675 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18676 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
18677 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
18678 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
18679 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
18680 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
18681 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
18682 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
18683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
18685 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
18686 Likewise.
18687 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
18688 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
18689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
18690 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
18691 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
18692 Likewise.
18693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
18694 Likewise.
18695 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
18696 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
18697 Likewise.
18698 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
18699 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18700 Likewise.
18701 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18702 Likewise.
18703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18704 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18705 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
18706 Likewise.
18707 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
18708 Likewise.
18709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
18710 Likewise.
18711 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
18712 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
18713 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
18714 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
18715 Likewise.
18716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
18717 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
18718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
18719 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18721 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
18722 Likewise.
18723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
18724 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
18725 Likewise.
18726 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
18727 Likewise.
18728 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
18729 Likewise.
18730 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
18731 Likewise.
18732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
18733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
18734 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
18735 Likewise.
18736 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
18737 Likewise.
18738 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
18739 Likewise.
18740 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
18741 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18742 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
18743 Likewise.
18744 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18745 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18746 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
18747 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18748 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18749 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18750 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
18751 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
18752 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18753 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
18754 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18755 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
18756 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
18757 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
18758 Likewise.
18759 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18760 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
18761 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
18762 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18763 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
18764 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
18765 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
18766 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
18767 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
18768 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
18769 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
18770 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
18771 Likewise.
18772 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18773 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
18774 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
18775 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18776 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
18777 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
18778 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
18779 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
18780 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
18781 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
18782 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
18783 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
18784 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
18785 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18786 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
18787 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
18788 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18789 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
18790 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
18791 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
18792 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
18793 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
18794 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
18795 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
18796 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
18797 Likewise.
18798 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
18799 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18800 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
18801 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
18802 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18803 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
18804 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
18805 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
18806 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
18807 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
18808 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
18809 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
18810 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
18811 Likewise.
18812 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
18813 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18814 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
18815 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
18816 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18817 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
18818 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
18819 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
18820 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
18821 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
18822 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
18823 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
18824 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
18825 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
18826 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18827 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
18828 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
18829 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18830 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
18831 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
18832 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
18833 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
18834 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
18835 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
18836 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
18837 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
18838 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
18839 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
18840 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18841 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
18842 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
18843 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18844 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
18845 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
18846 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
18847 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
18848 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
18849 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
18850
18851 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
18852
18853 [BZ #23137]
18854 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
18855 Use atomic_load_acquire to load __tid.
18856
18857 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18858
18859 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
18860 Restore the pointer into %rdx, after syscall and use %rdx,
18861 instead of %rsi, to restore context.
18862
18863 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18864
18865 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
18866 Pop the pointer into %rdx after syscall and use %rdx, instead
18867 of %rsi, to restore context.
18868
18869 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18870
18871 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
18872 handlers after setjmp.
18873 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
18874 defined.
18875 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
18876 <libc-pointer-arith.h>.
18877 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
18878 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
18879 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
18880 _JUMP_BUF_SIGSET_BITS_PER_WORD.
18881 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
18882 * sysdeps/x86/__longjmp_cancel.S: New file.
18883 * sysdeps/x86/longjmp.c: Likewise.
18884 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
18885
18886 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18887
18888 * NEWS: Add ustat.h deprecation entry.
18889 * bits/ustat.h: Remove file.
18890 * misc/sys/ustat.h: Likewise.
18891 * misc/ustat.h: Likewise.
18892 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
18893 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
18894 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
18895 compatibility mode.
18896 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
18897 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
18898 generic Linux implementation.
18899
18900 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18901
18902 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
18903 * math/w_expl_compat.c: Likewise.
18904 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
18905
18906 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18907
18908 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18909
18910 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18911
18912 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
18913 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
18914 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
18915 Remove.
18916 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
18917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18918 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18919 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18920 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18921 and SYSCALL_LL64.
18922
18923 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18924
18925 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18926
18927 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18928 * math/w_asin_template.c: Likewise.
18929 * math/w_atanh_template.c: Likewise.
18930
18931 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18932
18933 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18934 to powerpc/powerpc64/be for big-endian.
18935 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18936 little-endian.
18937
18938 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18939 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18940 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18941 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18942 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18943 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18944 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18945 * sysdeps/powerpc/powerpc64/power5+/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/power6/Implies: Likewise.
18951 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18952 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18953 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18954 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18955 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18956 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18957 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18958 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18959 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18960 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18961 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18962 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18963 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18964 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18965 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18966 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18967 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18968 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18969 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18970
18971 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18972 adjusted to imply powerpc64 and older processors on powerpc64/be.
18973 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18974 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18975 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18976 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18977 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18978 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18979 * sysdeps/powerpc/powerpc64/be/power5+/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/power6/Implies: Likewise.
18985 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18986 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18987 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18988 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18989 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18990 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18991 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18992 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18993 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18994 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18995 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
18996 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
18997 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
18998 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
18999 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
19000 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
19001 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
19002 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
19003 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
19004
19005 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
19006 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
19007 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
19008 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
19009
19010 * sysdeps/powerpc/powerpc64/be/Implies: New file.
19011 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
19012 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
19013 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
19014
19015 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
19016 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
19017 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
19018 * sysdeps/powerpc/powerpc64le/configure: Likewise.
19019 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
19020 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
19021 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
19022 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
19023 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
19024 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
19025 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
19026
19027 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
19028 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
19029 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
19030 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
19031 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
19032 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
19033 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
19034 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
19035 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
19036 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
19037 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
19038
19039 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
19040 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
19041 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
19042 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
19043 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
19044 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
19045 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
19046 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
19047 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
19048 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
19049 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
19050 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
19051
19052 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
19053 and adjusted to imply olders processors.
19054 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
19055 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
19056 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
19057 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
19058 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
19059 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
19060 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
19061 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
19062 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
19063 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
19064 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
19065
19066 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
19067 powerpc64/le.
19068 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
19069 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
19070
19071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
19072 powerpc64le.
19073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
19074 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
19075
19076 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
19077 powerpc64/be.
19078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
19080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
19081
19082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
19083 powerpc64 and adjusted.
19084 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
19085 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
19086 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
19087 Likewise.
19088
19089 2018-04-27 Joseph Myers <joseph@codesourcery.com>
19090
19091 * sysdeps/tile: Remove.
19092 * sysdeps/unix/sysv/linux/tile: Likewise.
19093 * README (tilegx-*-linux-gnu): Remove from list of supported
19094 configurations.
19095 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
19096 contribution of support for generic Linux kernel syscall
19097 interface.
19098 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
19099 tilegx configurations.
19100 (Config.install_linux_headers): Do not handle tile.
19101 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
19102 in comment.
19103 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
19104 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
19105 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
19106 conditional undefine and redefine.
19107 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
19108 in comment.
19109 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
19110 conditional undefine and redefine.
19111
19112 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
19113
19114 * signal/tst-sigaction.c: New file to test BZ #23069.
19115 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
19116
19117 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
19118
19119 [BZ #22766]
19120 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
19121 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
19122 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
19123 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
19124
19125 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19126
19127 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
19128 _DIRENT_MATCHES_DIRENT64 is not defined.
19129 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
19130 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
19131 is defined.
19132 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
19133 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
19134
19135 2018-04-25 Joseph Myers <joseph@codesourcery.com>
19136
19137 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
19138 version to GCC 8 branch.
19139
19140 2018-04-24 Joseph Myers <joseph@codesourcery.com>
19141
19142 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
19143 (check_no_hidden): Use type of original function when declaring
19144 alias.
19145
19146 * sysdeps/unix/sysv/linux/sys/ptrace.h
19147 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
19148 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
19149 (struct __ptrace_seccomp_metadata): New type.
19150 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
19151 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19152 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
19153 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19154 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
19155 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19156 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
19157 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19158 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
19159 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19160 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
19161 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19162 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
19163 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19164 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
19165 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19166
19167 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19168
19169 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
19170 defined.
19171 * dirent/versionsort.c (versionsort): Likewise.
19172 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
19173 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
19174 * dirent/versionsort64.c (versionsort64): Likewise.
19175 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
19176 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
19177 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
19178 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
19179 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
19180 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
19181 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
19182 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
19183 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
19184 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
19185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
19186 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
19187 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
19188 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
19189
19190 2018-04-23 Joseph Myers <joseph@codesourcery.com>
19191
19192 * elf/elf.h (NT_PPC_PKEY): New macro.
19193
19194 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
19195
19196 [BZ #23094]
19197 * localedata/locales/hr_HR: fix thousands_sep and
19198 mon_thousands_sep
19199
19200 2018-04-20 Joseph Myers <joseph@codesourcery.com>
19201
19202 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
19203 (XTABS): Define to TAB3.
19204
19205 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19206
19207 * sysdeps/hppa/fpu/libm-test-ulps: Update.
19208
19209 * dirent/scandir-tail-common.c: New file.
19210 * dirent/scandir-tail.c: Use scandir-tail-common.c.
19211 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
19212 * dirent/scandir.c: Use scandir-tail-common.c.
19213 * dirent/scandirat.c: Likewise.
19214 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
19215 * dirent/scandir64.c (scandir64): Always build and alias to scandir
19216 if _DIRENT_MATCHES_DIRENT64 is defined.
19217 * dirent/scandirat64.c (scandirat64): Likewise.
19218 * include/dirent.h (__scandir_tail): Only define iff
19219 _DIRENT_MATCHES_DIRENT64 is not defined.
19220 (__scandir64_tail): Define regardless.
19221 (__scandirat, scandirat64): Remove libc_hidden_proto.
19222 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
19223 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
19224 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
19225 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
19226 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
19227 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
19228 * sysdeps/unix/sysv/linux/scandir64.c: New file.
19229
19230 2018-04-20 Joseph Myers <joseph@codesourcery.com>
19231
19232 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
19233 New macro.
19234 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
19235 Increase to 24.
19236 (_dl_aarch64_cap_flags): Add asimdfhm.
19237
19238 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
19239
19240 * sysdeps/nios2/libm-test-ulps: Update.
19241
19242 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19243
19244 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
19245 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
19246
19247 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
19248 requirements.
19249 (_DIRENT_MATCHES_DIRENT64): Undef
19250 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
19251 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
19252 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
19253 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
19254 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
19255 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
19256 use getdents64 syscalls as base.
19257 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
19258 symbol if required.
19259 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
19260 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
19261 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
19262 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
19263 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
19264 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
19265 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
19266 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
19267 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
19268 (__get_clockfreq_via_proc_openprom): Use __getdents64.
19269 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
19270
19271 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
19272
19273 * scripts/test_printers_common.py (init_test): Disable lock elision.
19274
19275 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
19276
19277 * math/test-tgmath.c (count_double, count_float,
19278 count_ldouble, count_cdouble, count_cfloat,
19279 count_cldouble): Use volatile int.
19280
19281 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19282
19283 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
19284 (conformtest-xfail-conds): Add i386-gnu.
19285 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
19286 i386-gnu.
19287 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
19288 ipc_perm.cuid, ipc_perm.cgid): Likewise.
19289 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
19290 msqid_ds.msg_lrpid): Likewise.
19291 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
19292 Likewise.
19293 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
19294 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
19295 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
19296 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
19297 unsigned int.
19298 (struct statvfs64): Likewise.
19299 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
19300 Likewise.
19301 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
19302 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
19303 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
19304 instead of wait_queue.
19305 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
19306 instead of vm_area_struct.
19307 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
19308 struct sched_param definition to it.
19309 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
19310 * bits/types/struct_sched_param.h: New file.
19311 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
19312 <bits/types/struct_sched_param.h> instead of <sched.h>.
19313 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
19314 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
19315 generic version but include <bits/pthreadtypes.h> to make struct
19316 sigevent's sigev_notify_attributes field a pthread_attr_t*.
19317 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
19318 non-compliant.
19319 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
19320 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
19321 [__USE_XOPEN] (OFDEL): New macro.
19322 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
19323 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
19324 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
19325 prototypes.
19326 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
19327 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
19328 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
19329 non-compliant.
19330 * sysdeps/i386/sys/ucontext.h: Likewise.
19331 * sysdeps/m68k/sys/ucontext.h: Likewise.
19332 * sysdeps/mips/sys/ucontext.h: Likewise.
19333 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
19334 * sysdeps/mach/hurd/i386/Makefile
19335 (test-xfail-POSIX/fcntl.h/conform): Add.
19336 (test-xfail-POSIX/signal.h/conform): Add.
19337 (test-xfail-POSIX/semaphore.h/conform): Add.
19338 (test-xfail-POSIX/regex.h/conform): Add.
19339 (test-xfail-POSIX/aio.h/conform): Add.
19340 (test-xfail-POSIX/mqueue.h/conform): Add.
19341 (test-xfail-POSIX/sys/types.h/conform): Add.
19342 (test-xfail-UNIX98/fcntl.h/conform): Add.
19343 (test-xfail-UNIX98/netdb.h/conform): Add.
19344 (test-xfail-UNIX98/signal.h/conform): Add.
19345 (test-xfail-UNIX98/semaphore.h/conform): Add.
19346 (test-xfail-UNIX98/regex.h/conform): Add.
19347 (test-xfail-UNIX98/aio.h/conform): Add.
19348 (test-xfail-UNIX98/ftw.h/conform): Add.
19349 (test-xfail-UNIX98/mqueue.h/conform): Add.
19350 (test-xfail-UNIX98/netinet/in.h/conform): Add.
19351 (test-xfail-UNIX98/sys/wait.h/conform): Add.
19352 (test-xfail-UNIX98/sys/sem.h/conform): Add.
19353 (test-xfail-UNIX98/sys/uio.h/conform): Add.
19354 (test-xfail-UNIX98/sys/socket.h/conform): Add.
19355 (test-xfail-UNIX98/sys/types.h/conform): Add.
19356 (test-xfail-UNIX98/stdlib.h/conform): Add.
19357 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
19358 (test-xfail-POSIX2008/fcntl.h/conform): Add.
19359 (test-xfail-POSIX2008/netdb.h/conform): Add.
19360 (test-xfail-POSIX2008/signal.h/conform): Add.
19361 (test-xfail-POSIX2008/semaphore.h/conform): Add.
19362 (test-xfail-POSIX2008/regex.h/conform): Add.
19363 (test-xfail-POSIX2008/aio.h/conform): Add.
19364 (test-xfail-POSIX2008/mqueue.h/conform): Add.
19365 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
19366 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
19367 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
19368 (test-xfail-POSIX2008/sys/types.h/conform): Add.
19369 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
19370 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
19371 (test-xfail-XOPEN2K/netdb.h/conform): Add.
19372 (test-xfail-XOPEN2K/signal.h/conform): Add.
19373 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
19374 (test-xfail-XOPEN2K/regex.h/conform): Add.
19375 (test-xfail-XOPEN2K/aio.h/conform): Add.
19376 (test-xfail-XOPEN2K/ftw.h/conform): Add.
19377 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
19378 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
19379 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
19380 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
19381 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
19382 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
19383 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
19384 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
19385 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
19386 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
19387 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
19388 (test-xfail-XOPEN2K8/signal.h/conform): Add.
19389 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
19390 (test-xfail-XOPEN2K8/regex.h/conform): Add.
19391 (test-xfail-XOPEN2K8/aio.h/conform): Add.
19392 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
19393 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
19394 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
19395 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
19396 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
19397 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
19398 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
19399 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
19400 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
19401 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
19402 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
19403 i386-gnu.
19404 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
19405 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
19406
19407 2018-04-18 Joseph Myers <joseph@codesourcery.com>
19408
19409 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19410 --enable-obsolete for powerpc-linux-gnuspe.
19411
19412 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19413
19414 * conform/data/sys/un.h-data: Allow sun_ prefix.
19415 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
19416 prototypes.
19417 * sysdeps/mach/include/mach.h: Likewise.
19418 * sysdeps/mach/include/mach/mig_support.h: Likewise.
19419 * sysdeps/mach/include/mach_error.h: Likewise.
19420
19421 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19422
19423 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
19424 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
19425 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
19426 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
19427
19428 2018-04-16 Andreas Schwab <schwab@suse.de>
19429
19430 [BZ #19527]
19431 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
19432
19433 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19434
19435 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
19436 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
19437
19438 2018-04-12 DJ Delorie <dj@redhat.com>
19439
19440 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
19441 version to 4.16.
19442
19443 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
19444
19445 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
19446 (struct kernel_sigaction): Use the same definition on 31bit as is used
19447 on 64bit.
19448
19449 2018-04-09 Florian Weimer <fweimer@redhat.com>
19450
19451 [BZ #23037]
19452 * resolv/res_send.c (send_dg): Use designated initializers instead
19453 of assignment to zero-initialize other fields of struct mmsghdr.
19454
19455 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19456
19457 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
19458 __READDIR_ALIAS): Undefine after usage.
19459 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
19460 __READDIR_R_ALIAS): Likewise.
19461 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
19462 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
19463 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
19464 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
19465 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
19466 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
19467 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
19468 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
19469 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
19470 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
19471 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
19472 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
19473 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
19474 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
19475 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
19476 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
19477 * sysdeps/unix/sysv/linux/readdir.c: New file.
19478 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
19479 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
19480 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
19481
19482 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
19483
19484 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
19485
19486 * manual/charset.texi (Converting a Character): Fix typo.
19487
19488 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19489
19490 * sysdeps/sparc/fpu/libm-test-ulps: Update.
19491
19492 * sysdeps/arm/libm-test-ulps: Update.
19493
19494 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
19495 as base implementation.
19496 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
19497 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
19498 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
19499 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
19500 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
19501 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
19502 remove unrequired definitions and update comments.
19503 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
19504 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
19505 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
19506 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
19507 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
19508 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
19509 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
19510 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
19511 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
19512 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
19513 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
19514 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
19515 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
19516 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
19517 and RESET_SA_RESTORER hooks.
19518
19519 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
19520
19521 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
19522
19523 2018-04-05 Florian Weimer <fweimer@redhat.com>
19524
19525 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
19526 integer overflow, memory leak on error, and indeterminate errno
19527 value. Add a null wide character to terminate the result string.
19528 * manual/charset.texi (Converting a Character): Mention embedded
19529 null bytes in the mbrtowc input string. Explain what happens in
19530 the -2 result case. Do not claim that mbrtowc is simple or
19531 obvious to use. Adjust the description of the code example. Use
19532 @code, not @var, for concrete variables.
19533
19534 2018-04-05 Florian Weimer <fweimer@redhat.com>
19535
19536 * manual/examples/mbstouwcs.c: New file.
19537 * manual/charset.texi (Converting a Character): Include it.
19538
19539 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
19540
19541 * include/dirent.h (dirfd): Add hidden proto.
19542 * dirent/dirfd.c (dirfd): Add hidden def.
19543 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
19544 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
19545
19546 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
19547
19548 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
19549 sin, cos and sincos to 1 ULP.
19550
19551 2018-04-04 Maciej W. Rozycki <macro@mips.com>
19552
19553 [BZ #19818]
19554 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
19555 symbols.
19556 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
19557 * elf/tst-absolute-sym.c: New file.
19558 * elf/tst-absolute-sym-lib.c: New file.
19559 * elf/tst-absolute-sym-lib.lds: New file.
19560 * elf/Makefile (tests): Add `tst-absolute-sym'.
19561 (modules-names): Add `tst-absolute-sym-lib'.
19562 (LDLIBS-tst-absolute-sym-lib.so): New variable.
19563 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
19564 ($(objpfx)tst-absolute-sym): New dependency.
19565
19566 [BZ #19818]
19567 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
19568 parameter.
19569 (SYMBOL_ADDRESS): New macro.
19570 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
19571 SYMBOL_ADDRESS for symbol address calculation.
19572 * elf/dl-runtime.c (_dl_fixup): Likewise.
19573 (_dl_profile_fixup): Likewise.
19574 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
19575 * elf/rtld.c (dl_main): Likewise.
19576 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
19577 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
19578 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
19579 (elf_machine_rela): Likewise.
19580 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
19581 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
19582 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
19583 (elf_machine_rela): Likewise.
19584 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
19585 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
19586 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
19587 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
19588 Likewise.
19589 (elf_machine_reloc): Likewise.
19590 (elf_machine_got_rel): Likewise.
19591 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
19592 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
19593 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
19594 Likewise.
19595 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19596 Likewise.
19597 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
19598 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
19599 Likewise.
19600 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
19601 Likewise.
19602 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
19603 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
19604 Likewise.
19605 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
19606 Likewise.
19607 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
19608 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
19609
19610 2018-04-04 Zack Weinberg <zackw@panix.com>
19611
19612 * sysdeps/generic/internal-signals.h: Include signal.h,
19613 sigsetops.h, and stdbool.h.
19614 (__libc_signal_block_all): Actually block all signals.
19615 (__libc_signal_block_app): Likewise.
19616 (__libc_signal_restore_set): Actually restore the signal mask.
19617
19618 2018-04-04 Florian Weimer <fweimer@redhat.com>
19619
19620 inet: Actually build and run tst-deadline.
19621 * inet/Makefile (tests-internal): Add tst-deadline and do not
19622 overwrite the variable.
19623 (tests-static-internal): Remove variable.
19624
19625 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
19626
19627 [BZ #22947]
19628 * bits/uio-ext.h (RWF_APPEND): New.
19629 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
19630 * manual/llio.texi: Document RWF_APPEND.
19631 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
19632 (RWF_SUPPORTED): Add RWF_APPEND.
19633
19634 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19635
19636 [BZ #22391]
19637 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
19638 check for internal nptl signals.
19639 * nptl/sigaction.c (__sigaction): Likewise.
19640 * signal/sigaddset.c (sigaddset): Likewise.
19641 * signal/sigdelset.c (sigdelset): Likewise.
19642 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
19643 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
19644 value.
19645 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
19646 to filter out internal nptl signals.
19647 * signal/tst-sigset.c (do_test): Check ech signal indidually and
19648 also check realtime signals using standard macros.
19649 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
19650 __is_internal_signal, __libc_signal_block_all,
19651 __libc_signal_block_app, __libc_signal_restore_set): New functions.
19652 * sysdeps/nptl/sigfillset.c: Remove file.
19653 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
19654 Change return to bool.
19655 (__clear_internal_signals): Remove SIGTIMER clean since it is
19656 equal to SIGCANEL on Linux.
19657 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
19658 signal set was constructed using standard functions.
19659
19660 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19661
19662 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
19663 ifname is too long.
19664 * hurd/hurdsig.c (interrupted_reply_port_location): Use
19665 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
19666 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
19667 hidden def.
19668 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
19669 * signal/sigaddset.c: Include <sigsetopts.h>.
19670 * signal/sigdelset.c: Likewise.
19671
19672 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19673
19674 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
19675 (__cos): Likewise.
19676 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
19677 logic as sin and cos.
19678
19679 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19680
19681 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
19682 inputs. Return correct sign.
19683 (do_sincos): Remove small input check before do_sin, let do_sin set
19684 the sign.
19685 (__sin): Likewise.
19686 (__cos): Likewise.
19687
19688 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19689
19690 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
19691 (do_cos_slow): Likewise.
19692 (do_sin_slow): Likewise.
19693 (reduce_and_compute): Likewise.
19694 (slow): Likewise.
19695 (slow1): Likewise.
19696 (slow2): Likewise.
19697 (sloww): Likewise.
19698 (sloww1): Likewise.
19699 (sloww2): Likewise.
19700 (bslow): Likewise.
19701 (bslow1): Likewise.
19702 (bslow2): Likewise.
19703 (cslow2): Likewise.
19704
19705 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19706
19707 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
19708 (do_cos): Remove corp parameter and calculations.
19709 (do_sin): Likewise.
19710 (do_sincos): Remove cor variable.
19711 (__sin): Use do_sincos for huge inputs.
19712 (__cos): Likewise.
19713 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19714 (reduce_and_compute_sincos): Remove unused function.
19715
19716 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19717
19718 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
19719 reduce_sincos, improve accuracy to 136 bits.
19720 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
19721 (__sin): Use improved reduction and simplified do_sincos calculation.
19722 (__cos): Likewise.
19723 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19724
19725 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19726
19727 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
19728 (do_sincos_2): Likewise.
19729 (__sin): Remove middle range reduction case.
19730 (__cos): Likewise.
19731 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
19732 reduction case.
19733
19734 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19735
19736 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
19737 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
19738 inputs.
19739 (__cos): Likewise.
19740 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
19741
19742 2018-04-03 Joseph Myers <joseph@codesourcery.com>
19743
19744 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19745 version to 4.16
19746
19747 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19748
19749 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
19750 Remove definitions.
19751 (opendir_oflags): Use O_DIRECTORY regardless.
19752 (__opendir, __opendirat): Remove need_isdir_precheck usage.
19753 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
19754
19755 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19756
19757 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
19758 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
19759 macros.
19760 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
19761 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
19762 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
19763 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
19764 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
19765 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
19766
19767 * htl/Makefile: Bump licence to LGPL 2.1+.
19768 * htl/alloca_cutoff.c: Likewise.
19769 * htl/cthreads-compat.c: Likewise.
19770 * htl/lockfile.c: Likewise.
19771 * htl/pt-alloc.c: Likewise.
19772 * htl/pt-cancel.c: Likewise.
19773 * htl/pt-cleanup.c: Likewise.
19774 * htl/pt-create.c: Likewise.
19775 * htl/pt-dealloc.c: Likewise.
19776 * htl/pt-detach.c: Likewise.
19777 * htl/pt-exit.c: Likewise.
19778 * htl/pt-getattr.c: Likewise.
19779 * htl/pt-initialize.c: Likewise.
19780 * htl/pt-internal.h: Likewise.
19781 * htl/pt-join.c: Likewise.
19782 * htl/pt-self.c: Likewise.
19783 * htl/pt-setcancelstate.c: Likewise.
19784 * htl/pt-setcanceltype.c: Likewise.
19785 * htl/pt-sigmask.c: Likewise.
19786 * htl/pt-spin-inlines.c: Likewise.
19787 * htl/pt-testcancel.c: Likewise.
19788 * htl/pt-yield.c: Likewise.
19789 * htl/tests/test-1.c: Likewise.
19790 * htl/tests/test-10.c: Likewise.
19791 * htl/tests/test-11.c: Likewise.
19792 * htl/tests/test-12.c: Likewise.
19793 * htl/tests/test-13.c: Likewise.
19794 * htl/tests/test-14.c: Likewise.
19795 * htl/tests/test-15.c: Likewise.
19796 * htl/tests/test-16.c: Likewise.
19797 * htl/tests/test-17.c: Likewise.
19798 * htl/tests/test-2.c: Likewise.
19799 * htl/tests/test-3.c: Likewise.
19800 * htl/tests/test-4.c: Likewise.
19801 * htl/tests/test-5.c: Likewise.
19802 * htl/tests/test-6.c: Likewise.
19803 * htl/tests/test-7.c: Likewise.
19804 * htl/tests/test-8.c: Likewise.
19805 * htl/tests/test-9.c: Likewise.
19806 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
19807 * sysdeps/htl/bits/cancelation.h: Likewise.
19808 * sysdeps/htl/bits/pthread-np.h: Likewise.
19809 * sysdeps/htl/bits/pthread.h: Likewise.
19810 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
19811 * sysdeps/htl/bits/semaphore.h: Likewise.
19812 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
19813 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
19814 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
19815 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
19816 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
19817 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
19818 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
19819 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
19820 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
19821 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
19822 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
19823 * sysdeps/htl/old_pt-atfork.c: Likewise.
19824 * sysdeps/htl/pt-atfork.c: Likewise.
19825 * sysdeps/htl/pt-attr-destroy.c: Likewise.
19826 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
19827 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
19828 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
19829 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
19830 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
19831 * sysdeps/htl/pt-attr-getscope.c: Likewise.
19832 * sysdeps/htl/pt-attr-getstack.c: Likewise.
19833 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
19834 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
19835 * sysdeps/htl/pt-attr-init.c: Likewise.
19836 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
19837 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
19838 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
19839 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
19840 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
19841 * sysdeps/htl/pt-attr-setscope.c: Likewise.
19842 * sysdeps/htl/pt-attr-setstack.c: Likewise.
19843 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
19844 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
19845 * sysdeps/htl/pt-attr.c: Likewise.
19846 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
19847 * sysdeps/htl/pt-barrier-init.c: Likewise.
19848 * sysdeps/htl/pt-barrier-wait.c: Likewise.
19849 * sysdeps/htl/pt-barrier.c: Likewise.
19850 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
19851 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
19852 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
19853 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
19854 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
19855 * sysdeps/htl/pt-cond-destroy.c: Likewise.
19856 * sysdeps/htl/pt-cond-init.c: Likewise.
19857 * sysdeps/htl/pt-cond-signal.c: Likewise.
19858 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
19859 * sysdeps/htl/pt-cond-wait.c: Likewise.
19860 * sysdeps/htl/pt-cond.c: Likewise.
19861 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
19862 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
19863 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
19864 * sysdeps/htl/pt-condattr-init.c: Likewise.
19865 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
19866 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
19867 * sysdeps/htl/pt-destroy-specific.c: Likewise.
19868 * sysdeps/htl/pt-equal.c: Likewise.
19869 * sysdeps/htl/pt-getconcurrency.c: Likewise.
19870 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
19871 * sysdeps/htl/pt-getschedparam.c: Likewise.
19872 * sysdeps/htl/pt-getspecific.c: Likewise.
19873 * sysdeps/htl/pt-init-specific.c: Likewise.
19874 * sysdeps/htl/pt-key-create.c: Likewise.
19875 * sysdeps/htl/pt-key-delete.c: Likewise.
19876 * sysdeps/htl/pt-key.h: Likewise.
19877 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
19878 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
19879 * sysdeps/htl/pt-mutex-init.c: Likewise.
19880 * sysdeps/htl/pt-mutex-lock.c: Likewise.
19881 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
19882 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
19883 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
19884 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
19885 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
19886 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
19887 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
19888 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
19889 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
19890 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
19891 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
19892 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
19893 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
19894 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
19895 * sysdeps/htl/pt-mutexattr.c: Likewise.
19896 * sysdeps/htl/pt-once.c: Likewise.
19897 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
19898 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
19899 * sysdeps/htl/pt-rwlock-init.c: Likewise.
19900 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
19901 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
19902 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
19903 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
19904 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
19905 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
19906 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
19907 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
19908 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
19909 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
19910 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
19911 * sysdeps/htl/pt-setconcurrency.c: Likewise.
19912 * sysdeps/htl/pt-setschedparam.c: Likewise.
19913 * sysdeps/htl/pt-setschedprio.c: Likewise.
19914 * sysdeps/htl/pt-setspecific.c: Likewise.
19915 * sysdeps/htl/pt-spin.c: Likewise.
19916 * sysdeps/htl/pt-startup.c: Likewise.
19917 * sysdeps/htl/pthread.h: Likewise.
19918 * sysdeps/htl/sem-close.c: Likewise.
19919 * sysdeps/htl/sem-destroy.c: Likewise.
19920 * sysdeps/htl/sem-getvalue.c: Likewise.
19921 * sysdeps/htl/sem-init.c: Likewise.
19922 * sysdeps/htl/sem-open.c: Likewise.
19923 * sysdeps/htl/sem-post.c: Likewise.
19924 * sysdeps/htl/sem-timedwait.c: Likewise.
19925 * sysdeps/htl/sem-trywait.c: Likewise.
19926 * sysdeps/htl/sem-unlink.c: Likewise.
19927 * sysdeps/htl/sem-wait.c: Likewise.
19928 * sysdeps/hurd/htl/pt-kill.c: Likewise.
19929 * sysdeps/i386/htl/pt-machdep.h: Likewise.
19930 * sysdeps/mach/htl/pt-block.c: Likewise.
19931 * sysdeps/mach/htl/pt-spin.c: Likewise.
19932 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19933 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19934 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19935 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19936 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19937 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19938 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19939 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19940 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19941 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19942 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19943 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19944 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19945 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19946 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19947 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19948 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19949 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19950 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19951 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19952 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19953 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19954 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19955 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19956 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19957 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19958 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19959 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19960 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19961 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19962 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19963 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19964 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19965 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19966 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19967 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19968 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19969 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19970 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19971 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19972 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19973 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19974 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19975
19976 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19977 * README: Remove the mention of out-of-tree patches needed for
19978 GNU/Hurd.
19979
19980 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19981 (UTIME_NOW, UTIME_OMIT): Define macros.
19982
19983 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19984 instead of pthread_detach.
19985 (__cthread_fork): Call __pthread_create instead of pthread_create.
19986 (__cthread_keycreate): Call __pthread_key_create instead of
19987 pthread_key_create.
19988 (__cthread_getspecific): Call __pthread_getspecific instead of
19989 pthread_getspecific.
19990 (__cthread_setspecific): Call __pthread_setspecific instead of
19991 pthread_setspecific.
19992 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19993 __pthread_mutex_unlock instead of pthread_mutex_lock and
19994 pthread_mutex_unlock.
19995 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
19996 ___pthread_get_cleanup_stack.
19997 (__pthread_get_cleanup_stack): New strong alias.
19998 * htl/pt-create.c: Include <pthreadP.h>.
19999 (entry_point): Call __pthread_exit instead of pthread_exit.
20000 (pthread_create): Rename to __pthread_create.
20001 (pthread_create): New strong alias.
20002 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
20003 (pthread_detach): New strong alias.
20004 (__pthread_detach): Call __pthread_cond_broadcast instead of
20005 pthread_cond_broadcast.
20006 * htl/pt-exit.c: Include <pthreadP.h>.
20007 (__pthread_exit): Call __pthread_setcancelstate and
20008 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
20009 __pthread_get_cleanup_stack.
20010 * htl/pt-testcancel.c: Include <pthreadP.h>.
20011 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
20012 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
20013 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
20014 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
20015 pthread_attr_getstacksize.
20016 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
20017 Rename to __pthread_attr_getstackaddr.
20018 (pthread_attr_getstackaddr): New strong alias.
20019 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
20020 Rename to __pthread_attr_getstacksize.
20021 (pthread_attr_getstacksize): New strong alias.
20022 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
20023 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
20024 (pthread_attr_setstack): New strong alias.
20025 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
20026 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
20027 pthread_attr_getstacksize, pthread_attr_setstacksize and
20028 pthread_attr_setstackaddr.
20029 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
20030 Rename to __pthread_attr_setstackaddr.
20031 (pthread_attr_setstackaddr): New strong alias.
20032 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
20033 Rename to __pthread_attr_setstacksize.
20034 (pthread_attr_setstacksize): New strong alias.
20035 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
20036 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
20037 pthread_exit.
20038 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
20039 (__pthread_key_create): New hidden def.
20040 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
20041 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
20042 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
20043 __pthread_exit, __pthread_key_create, __pthread_getspecific,
20044 __pthread_setspecific, __pthread_setcancelstate,
20045 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
20046 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
20047 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
20048 declarations.
20049 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
20050 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
20051 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
20052 (pthread_attr_setstackaddr): New strong alias.
20053 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
20054 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
20055 (pthread_attr_setstacksize): New strong alias.
20056 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
20057 (call_exit): Call __pthread_exit instead of pthread_exit.
20058 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
20059 (_pthread_mutex_init): New hidden definition.
20060 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
20061 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
20062 instead of pthread_attr_init and pthread_attr_setstack.
20063
20064 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
20065 __vm_deallocate instead of vm_allocate and vm_deallocate.
20066 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
20067 setenv.
20068 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
20069 of geteuid.
20070 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
20071 strdup.
20072 * hurd/siginfo.c: Include <libioP.h>.
20073 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
20074 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
20075 munmap.
20076 * mach/devstream.c: Include <libioP.h>.
20077 (dealloc_ref): Call __mach_port_deallocate instead of
20078 mach_port_deallocate.
20079 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
20080 Call __mach_port_deallocate instead of mach_port_deallocate.
20081 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
20082 pathconf.
20083 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
20084 munmap.
20085 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
20086 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
20087 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
20088 of munmap.
20089 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
20090 of close.
20091 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
20092 instead of sysconf.
20093 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
20094 __clock_gettime instead of clock_gettime.
20095 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
20096 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
20097 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
20098 * sysdeps/unix/bsd/stty.c (stty): Likewise.
20099 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
20100 tcgetattr.
20101 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
20102 __clock_gettime and __nanosleep instead of clock_gettime and
20103 nanosleep.
20104 * hurd/catch-signal.c (hurd_catch_signal): Rename to
20105 __hurd_catch_signal.
20106 (hurd_catch_signal): New strong alias.
20107 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
20108 __hurd_catch_signal instead of hurd_catch_signal.
20109 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
20110 * hurd/hurdexec.c (_hurd_init): Add hidden def.
20111 * hurd/hurdinit.c (_hurd_init): Add hidden def.
20112 * hurd/hurdsig.c: Include <mach/mig_support.h>.
20113 (_hurd_thread_sigstate): Add hidden def.
20114 (_hurd_internal_post_signal): Use __mutex_unlock instead of
20115 mutex_unlock.
20116 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
20117 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
20118 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
20119 __hurd_file_name_path_lookup.
20120 (hurd_file_name_path_lookup): New strong alias.
20121 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
20122 hurd_file_name_path_lookup.
20123 * mach/errstring.c (mach_error_type): Add hidden def.
20124 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
20125 * mach/mutex-init.c (__mutex_init): Add hidden def.
20126 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
20127 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
20128 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
20129 * sysdeps/mach/hurd/getcwd.c
20130 (_hurd_canonicalize_directory_name_internal): Rename to
20131 __hurd_canonicalize_directory_name_internal.
20132 (_hurd_canonicalize_directory_name_internal): New strong alias.
20133 (__canonicalize_directory_name_internal, __getcwd): Call
20134 __hurd_canonicalize_directory_name_internal instead of
20135 _hurd_canonicalize_directory_name_internal.
20136 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
20137 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
20138 hidden defs.
20139 * sysdeps/hurd/include/hurd.h: New file.
20140 * sysdeps/hurd/include/hurd/fd.h: New file.
20141 * sysdeps/hurd/include/hurd/signal.h: New file.
20142 * sysdeps/mach/include/lock-intern.h: New file.
20143 * sysdeps/mach/include/mach.h: New file.
20144 * sysdeps/mach/include/mach/mig_support.h: New file.
20145 * sysdeps/mach/include/mach_error.h: New file.
20146 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
20147 prototype.
20148 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
20149 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
20150 _HEADER_H_HIDDEN_DEF macro.
20151 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
20152 _hurd_fd_error_signal): Add hidden prototype.
20153 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
20154 hidden def.
20155 * libio/iolibio.h (_IO_puts): New hidden prototype.
20156 * libio/ioputs.c (_IO_puts): New hidden def.
20157 * sysdeps/mach/hurd/localplt.data: New file.
20158
20159 2018-04-02 Agustina Arzille <avarzille@riseup.net>
20160 Amos Jeffries <squid3@treenet.co.nz>
20161 David Michael <fedora.dm0@gmail.com>
20162 Marco Gerards <marco@gnu.org>
20163 Marcus Brinkmann <marcus@gnu.org>
20164 Neal H. Walfield <neal@gnu.org>
20165 Pino Toscano <toscano.pino@tiscali.it>
20166 Richard Braun <rbraun@sceen.net>
20167 Roland McGrath <roland@gnu.org>
20168 Samuel Thibault <samuel.thibault@ens-lyon.org>
20169 Thomas DiModica <ricinwich@yahoo.com>
20170 Thomas Schwinge <tschwinge@gnu.org>
20171
20172 * htl: New directory.
20173 * sysdeps/htl: New directory.
20174 * sysdeps/hurd/htl: New directory.
20175 * sysdeps/i386/htl: New directory.
20176 * sysdeps/mach/htl: New directory.
20177 * sysdeps/mach/hurd/htl: New directory.
20178 * sysdeps/mach/hurd/i386/htl: New directory.
20179 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
20180 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
20181 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
20182
20183 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20184
20185 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
20186 signals in thread created for runing timers.
20187
20188 2018-04-01 Florian Weimer <fweimer@redhat.com>
20189
20190 * support/support_format_addrinfo.c (support_format_addrinfo):
20191 Include unknown error number in formatted result.
20192
20193 2018-03-29 Florian Weimer <fweimer@redhat.com>
20194
20195 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
20196 capture SIGBUS.
20197
20198 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20199
20200 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
20201 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
20202 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
20203 (__ASSUME_CLONE_BACKWARDS): Define.
20204
20205 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
20206
20207 [BZ #23024]
20208 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
20209 early when linux sentinel value is set.
20210
20211 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20212
20213 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
20214
20215 2018-03-27 Andreas Schwab <schwab@suse.de>
20216
20217 [BZ #23005]
20218 * resolv/res_send.c (__res_context_send): Return ENOMEM if
20219 allocation of private copy of nsaddr_list fails.
20220
20221 2018-03-26 Joseph Myers <joseph@codesourcery.com>
20222
20223 [BZ #16552]
20224 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
20225 * sysdeps/unix/sysv/linux/umount.c: ... here.
20226 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
20227 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
20228 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
20229 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
20230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
20231 * sysdeps/unix/sysv/linux/umount.S: Likewise.
20232 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
20233
20234 2018-03-26 Andreas Schwab <schwab@suse.de>
20235
20236 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
20237 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
20238 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
20239 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
20240 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
20241 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
20242 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
20243 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
20244 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
20245 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
20246 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
20247 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
20248 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
20249 (R_RISCV_NUM): Define.
20250
20251 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
20252
20253 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
20254 TLS declaration of errno.
20255 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
20256 __libc_setup_tls.
20257 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
20258 (ARCH_SETUP_TLS): Likewise.
20259 * sysdeps/mach/hurd/libc-start.h: New file copied from
20260 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
20261 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
20262 instead of __libc_setup_tls.
20263 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
20264 __libc_setup_tls before initializing libpthread and running _hurd_init
20265 which starts the signal thread.
20266 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
20267 Declare function.
20268 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
20269
20270 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
20271
20272 [BZ #22998]
20273 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
20274 after it is defined.
20275
20276 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
20277 Max Horn <max@quendi.de>
20278
20279 [BZ #22644]
20280 CVE-2017-18269
20281 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
20282 branch conditions.
20283 * string/test-memmove.c (do_test2): New testcase.
20284
20285 2018-03-22 Joseph Myers <joseph@codesourcery.com>
20286
20287 * sysdeps/generic/frame.h: Remove file.
20288 * sysdeps/arm/frame.h: Likewise.
20289 * sysdeps/hppa/frame.h: Likewise.
20290 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
20291 macro.
20292 (GET_FRAME): Likewise.
20293 (GET_STACK): Likewise.
20294 (CALL_SIGHANDLER): Likewise.
20295 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
20296 Likewise.
20297 (GET_FRAME): Likewise.
20298 (GET_STACK): Likewise.
20299 (CALL_SIGHANDLER): Likewise.
20300 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
20301 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20302 (GET_FRAME): Likewise.
20303 (GET_STACK): Likewise.
20304 (CALL_SIGHANDLER): Likewise.
20305 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
20306 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20307 (GET_FRAME): Likewise.
20308 (GET_STACK): Likewise.
20309 (ADVANCE_STACK_FRAME): Likewise.
20310 (CALL_SIGHANDLER): Likewise.
20311 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
20312 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20313 (GET_FRAME): Likewise.
20314 (GET_STACK): Likewise.
20315 (CALL_SIGHANDLER): Likewise.
20316 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
20317 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20318 (GET_FRAME): Likewise.
20319 (GET_STACK): Likewise.
20320 (CALL_SIGHANDLER): Likewise.
20321 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
20322 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20323 (GET_FRAME): Likewise.
20324 (GET_STACK): Likewise.
20325 (CALL_SIGHANDLER): Likewise.
20326 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
20327 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20328 (GET_FRAME): Likewise.
20329 (GET_STACK): Likewise.
20330 (CALL_SIGHANDLER): Likewise.
20331 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
20332 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20333 (GET_FRAME): Likewise.
20334 (GET_STACK): Likewise.
20335 (CALL_SIGHANDLER): Likewise.
20336 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
20337 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20338 (GET_FRAME): Likewise.
20339 (GET_STACK): Likewise.
20340 (CALL_SIGHANDLER): Likewise.
20341 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
20342 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20343 (GET_FRAME): Likewise.
20344 (GET_STACK): Likewise.
20345 (CALL_SIGHANDLER): Likewise.
20346 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
20347 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20348 (GET_FRAME): Likewise.
20349 (GET_STACK): Likewise.
20350 (CALL_SIGHANDLER): Likewise.
20351 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
20352 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20353 (GET_FRAME): Likewise.
20354 (GET_STACK): Likewise.
20355 (CALL_SIGHANDLER): Likewise.
20356 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
20357 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20358 (FIRST_FRAME_POINTER): Likewise.
20359 (ADVANCE_STACK_FRAME): Likewise.
20360 (GET_STACK): Likewise.
20361 (GET_FRAME): Likewise.
20362 (CALL_SIGHANDLER): Likewise.
20363 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
20364 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20365 (ADVANCE_STACK_FRAME): Likewise.
20366 (GET_STACK): Likewise.
20367 (GET_FRAME): Likewise.
20368 (CALL_SIGHANDLER): Likewise.
20369 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
20370 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20371 (GET_FRAME): Likewise.
20372 (GET_STACK): Likewise.
20373 (CALL_SIGHANDLER): Likewise.
20374 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
20375 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20376 (GET_FRAME): Likewise.
20377 (GET_STACK): Likewise.
20378 (CALL_SIGHANDLER): Likewise.
20379
20380 2018-03-21 Joseph Myers <joseph@codesourcery.com>
20381
20382 * sysdeps/x86_64/backtrace.c: Move to ....
20383 * debug/backtrace.c: ... here.
20384 * sysdeps/aarch64/backtrace.c: Remove file.
20385 * sysdeps/alpha/backtrace.c: Likewise.
20386 * sysdeps/hppa/backtrace.c: Likewise.
20387 * sysdeps/ia64/backtrace.c: Likewise.
20388 * sysdeps/mips/backtrace.c: Likewise.
20389 * sysdeps/nios2/backtrace.c: Likewise.
20390 * sysdeps/riscv/backtrace.c: Likewise.
20391 * sysdeps/sh/backtrace.c: Likewise.
20392 * sysdeps/tile/backtrace.c: Likewise.
20393
20394 2018-03-20 Joseph Myers <joseph@codesourcery.com>
20395
20396 [BZ #22987]
20397 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
20398 function.
20399 (fdimf): Likewise.
20400 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
20401
20402 [BZ #17343]
20403 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
20404 possibly overflowing computations.
20405
20406 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
20407
20408 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
20409 values from Linux-specific section now that it is in the GNU section.
20410 * sysdeps/gnu/errlist.c: Regenerate.
20411
20412 2018-03-20 Joseph Myers <joseph@codesourcery.com>
20413
20414 * math/Makefile (libm-narrow-fns): Add sub.
20415 (libm-test-funcs-narrow): Likewise.
20416 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
20417 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
20418 * math/gen-auto-libm-tests.c (test_functions): Add sub.
20419 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
20420 (NARROW_SUB_ROUND_TO_ODD): Likewise.
20421 (NARROW_SUB_TRIVIAL): Likewise.
20422 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
20423 macro.
20424 (__dsubl): Likewise.
20425 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
20426 dsub.
20427 (CFLAGS-nldbl-dsub.c): New variable.
20428 (CFLAGS-nldbl-fsub.c): Likewise.
20429 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
20430 __nldbl_dsubl.
20431 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
20432 prototype.
20433 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
20434 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
20435 * math/auto-libm-test-in: Add tests of sub.
20436 * math/auto-libm-test-out-narrow-sub: New generated file.
20437 * math/libm-test-narrow-sub.inc: New file.
20438 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
20439 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
20440 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
20441 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
20442 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
20443 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
20444 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
20445 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
20446 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
20447 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
20448 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
20449 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
20450 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
20451 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
20452 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
20453 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
20454 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
20455 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
20456 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20457 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
20458 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20459 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20460 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20461 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20462 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20463 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20464 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20465 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20466 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20467 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20468 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20469 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
20471 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
20472 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
20473 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
20474 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
20475 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20476 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20477 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20478 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20479 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20480 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
20481 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
20482 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20483 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20484
20485 2018-03-19 Joseph Myers <joseph@codesourcery.com>
20486
20487 [BZ #20079]
20488 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
20489
20490 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
20491
20492 * benchtests/bench-timing.h (attribute_hidden): Undefine.
20493
20494 2018-03-18 Richard Braun <rbraun@sceen.net>
20495
20496 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
20497 thread reference.
20498
20499 2018-03-18 Agustina Arzille <avarzille@riseup.net>
20500
20501 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
20502 (__libc_cleanup_fct): Define function.
20503 (__libc_cleanup_region_start, __libc_cleanup_region_end,
20504 __libc_cleanup_end): Rewrite implementation using
20505 __attribute__ ((__cleanup__)).
20506 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
20507 * hurd/Makefile (routines): Add hurdlock.
20508 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
20509 interface.
20510 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
20511 * hurd/hurdpid.c: Include <lowlevellock.h>
20512 (_S_msg_proc_newids): Use lll_wait to synchronize.
20513 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
20514 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
20515 * mach/Makefile (lock-headers): Remove machine-lock.h.
20516 * mach/lock-intern.h: Include <lowlevellock.h> instead of
20517 <machine-lock.h>.
20518 (__spin_lock_t): New type.
20519 (__SPIN_LOCK_INITIALIZER): New macro.
20520 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
20521 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
20522 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
20523 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
20524 (__mutex_init): Initialize with lll.
20525 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
20526 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
20527 needing lll.
20528 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
20529 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
20530 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
20531 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
20532 (__setpgid): Use lll for synchronization.
20533 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
20534 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
20535 instead of <cthreads.h>.
20536 (_IO_lock_inexpensive): New macro
20537 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
20538 (__libc_lock_self0): New declaration.
20539 (__libc_lock_owner_self): New macro.
20540 (__libc_key_t): Remove type.
20541 (_LIBC_LOCK_INITIALIZER): New macro.
20542 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
20543 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
20544 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
20545 __libc_lock_define_initialized_recursive,
20546 __rtld_lock_define_initialized_recursive,
20547 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
20548 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
20549 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
20550 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
20551 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
20552 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
20553 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
20554 New macros.
20555 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
20556 * hurd/hurdlock.c: New file.
20557 * hurd/hurdlock.h: New file.
20558 * mach/lowlevellock.h: New file
20559
20560 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
20561
20562 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
20563 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
20564 when opening a symlink with O_NOFOLLOW.
20565 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
20566 path when flags contains O_NOFOLLOW.
20567 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
20568 if flags contains O_DIRECTORY and the result is a directory.
20569 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
20570 oneself when the pointer given in D is nul (as set by ext2fs).
20571 * sysdeps/mach/hurd/mlockall.c: New file.
20572 * sysdeps/mach/hurd/munlockall.c: New file.
20573
20574 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
20575
20576 * hurd/hurdsig.c: Include <pthread.h>.
20577 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
20578 get the signal thread stack layout.
20579 * hurd/Makefile (headers): Remove threadvar.h.
20580 (inline-headers): Remove threadvar.h.
20581 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
20582 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
20583 __hurd_threadvar_max, __hurd_errno_location.
20584 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
20585 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
20586 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
20587 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
20588 unless TLS is not initialized yet, in which case we do not need a
20589 critical section yet anyway.
20590 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
20591 <machine-sp.h>.
20592 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
20593 declarations.
20594 (__hurd_threadvar_index): Remove enum.
20595 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
20596 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
20597 inlines.
20598 (__hurd_reply_port0): New variable declaration.
20599 (__hurd_local_reply_port): New macro.
20600 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
20601 (interrupted_reply_port_location): Add thread_t parameter. Use it
20602 with THREAD_TCB to access thread-local variables.
20603 (_hurdsig_abort_rpcs): Pass ss->thread to
20604 interrupted_reply_port_location.
20605 (_hurd_internal_post_signal): Likewise.
20606 (_hurdsig_init): Use presence of cthread_fork instead of
20607 __hurd_threadvar_stack_mask to start signal thread by hand.
20608 Remove signal thread threadvar initialization.
20609 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
20610 * hurd/sigunwind.c: Include <hurd/threadvar.h>
20611 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
20612 of threadvar.
20613 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
20614 __libc_lock_self0.
20615 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
20616 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
20617 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
20618 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
20619 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
20620 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
20621 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
20622 define variables.
20623 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
20624 <hurd/threadvar.h>.
20625 [IS_IN(rtld)] (rtld_errno): New variable.
20626 [IS_IN(rtld)] (__errno_location): New weak function.
20627 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
20628 * sysdeps/mach/hurd/errno.c: Remove file.
20629 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
20630 (__fork): Remove THREADVAR_SPACE macro and its use.
20631 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
20632 variable.
20633 (init): Do not initialize threadvar.
20634 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
20635 symbol.
20636 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
20637 __hurd_local_reply_port instead of threadvar.
20638 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
20639 _hurd_sigstate fields.
20640 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
20641 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
20642 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
20643 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
20644 instead of threadvar.
20645 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
20646 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
20647 (use_threadvar, global_reply_port): Remove variables.
20648 (__hurd_reply_port0): New variable.
20649 (__mig_get_reply_port): Use __hurd_local_reply_port and
20650 __hurd_reply_port0 instead of threadvar.
20651 (__mig_dealloc_reply_port): Likewise.
20652 (__mig_init): Do not initialize threadvar.
20653 * sysdeps/mach/hurd/profil.c: Fix comment.
20654 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
20655 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
20656 cthread_keycreate, cthread_getspecific, cthread_setspecific to
20657 __cthread_fork, __cthread_detach, __pthread_getattr_np,
20658 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
20659 __cthread_setspecific.
20660 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
20661 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
20662 __cthread_t instead of cthread_fork, cthread_detach,
20663 pthread_getattr_np, pthread_attr_getstack.
20664 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
20665 __cthread_keycreate.
20666 (cthread_getspecific): Rename to __cthread_getspecific.
20667 (cthread_setspecific): Rename to __cthread_setspecific.
20668 (__libc_getspecific): Use __cthread_getspecific instead of
20669 cthread_getspecific.
20670 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
20671 __cthread_keycreate instead of cthread_keycreate.
20672 (__libc_setspecific): Use __cthread_setspecific instead of
20673 cthread_setspecific.
20674 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
20675 Likewise.
20676 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
20677 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
20678 testing whether it is defined.
20679
20680 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
20681
20682 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
20683 Define macro.
20684 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
20685 * sysdeps/mach/i386/thread_state.h
20686 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
20687 i386_THREAD_STATE.
20688 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
20689 i386_THREAD_STATE.
20690 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
20691
20692 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
20693 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
20694
20695 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
20696 macros.
20697 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
20698 descriptor instead of creating a new one.
20699 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
20700
20701 * mach/setup-thread.c: Include <ldsodefs.h>.
20702 (__mach_setup_thread): Call _dl_allocate_tls, pass
20703 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
20704 MACHINE_THREAD_STATE_FLAVOR, before getting
20705 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
20706 MACHINE_THREAD_STATE_FLAVOR with the result.
20707 * hurd/hurdfault.c (_hurdsig_fault_init): Call
20708 MACHINE_THREAD_STATE_FIX_NEW.
20709 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
20710 too. Add original thread parameter.
20711
20712 2018-03-16 Joseph Myers <joseph@codesourcery.com>
20713
20714 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
20715 Remove inline function.
20716
20717 * sysdeps/i386/fpu/libm-test-ulps: Update.
20718 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20719
20720 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
20721
20722 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
20723 commit.
20724
20725 2018-03-15 Joseph Myers <joseph@codesourcery.com>
20726
20727 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
20728 (__sincos_code): Remove define and undefine.
20729 [__FAST_MATH__] (__sincos): Remove inline function.
20730 [__FAST_MATH__] (__sincosf): Remove inline function.
20731 [__FAST_MATH__] (__sincosl): Remove inline function.
20732 (__atan2l): Remove inline functions.
20733 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
20734 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
20735 function.
20736 (floor): Remove inline function.
20737 (ceil): Likewise.
20738 [__FAST_MATH__] (__ldexp_code): Remove macro.
20739 [__FAST_MATH__] (ldexp): Remove inline function.
20740 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
20741 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
20742 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
20743 [__USE_ISOC99] (__lrint_code): Remove macro.
20744 [__USE_ISOC99] (__llrint_code): Likewise.
20745 [__USE_ISOC99] (lrintf): Remove inline function.
20746 [__USE_ISOC99] (lrint): Likewise.
20747 [__USE_ISOC99] (lrintl): Likewise.
20748 [__USE_ISOC99] (llrint): Likewise.
20749 [__USE_ISOC99] (llrintf): Likewise.
20750 [__USE_ISOC99] (llrintl): Likewise.
20751
20752 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20753
20754 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
20755 (__ieee754_sqrtf): Remove.
20756 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
20757 (__ieee754_sqrtf): Remove.
20758 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
20759 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20760 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
20761 (__ieee754_sqrtf): Remove.
20762 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
20763 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
20764 (sqrtf): Remove.
20765 (sqrtl): Remove.
20766 (__ieee754_sqrt): Remove.
20767 (__ieee754_sqrtf): Remove.
20768 (__ieee754_sqrtl): Remove.
20769 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20770 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
20771 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
20772 (__ieee754_sqrtf): Remove.
20773 (__ieee754_sqrtl): Remove.
20774
20775 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20776
20777 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
20778 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
20779 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
20780 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
20781 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
20782 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
20783 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
20784 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
20785 Likewise.
20786 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
20787 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
20788 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
20789 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
20790 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
20791 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
20792 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
20793 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
20794 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
20795 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20796 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
20797 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
20798 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
20799 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
20800 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
20801 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20802 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
20803 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
20804 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
20805 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
20806 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
20807 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20808 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
20809 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
20810 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
20811 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
20812 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20813 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
20814 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
20815 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20816 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
20817 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
20818 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
20819 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
20820 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20821 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
20822 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
20823 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
20824 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
20825 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
20826
20827 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20828
20829 * include/math.h (sqrt): Declare with asm redirect.
20830 (sqrtf): Likewise.
20831 (sqrtl): Likewise.
20832 (sqrtf128): Likewise.
20833 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
20834 nonlib and libnldbl with -fmath-errno.
20835 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
20836 * math/w_sqrt_template.c: Likewise.
20837 * math/w_sqrtf_compat.c: Likewise.
20838 * math/w_sqrtl_compat.c: Likewise.
20839 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
20840 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
20841 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
20842 complex.h.
20843
20844 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20845
20846 * benchtests/Makefile: Define _ISOMAC.
20847 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
20848 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
20849 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
20850 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
20851 * benchtests/bench-timing.h: Define attribute_hidden.
20852
20853 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
20854
20855 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
20856 mov + lsr.
20857
20858 2018-03-15 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
20859
20860 [BZ #22963]
20861 * localedata/locales/cs_CZ (mon): Rename to...
20862 (alt_mon): This.
20863 (mon): Import from CLDR (genitive case).
20864
20865 2018-03-15 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
20866
20867 [BZ #22937]
20868 * localedata/locales/el_CY (abmon): Rename to...
20869 (ab_alt_mon): This.
20870 (abmon): Import from CLDR (abbreviated genitive case).
20871 * localedata/locales/el_GR (abmon): Rename to...
20872 (ab_alt_mon): This.
20873 (abmon): Import from CLDR (abbreviated genitive case).
20874
20875 2018-03-15 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
20876
20877 [BZ #22932]
20878 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
20879
20880 2018-03-15 Robert Buj <robert.buj@gmail.com>
20881
20882 [BZ #22848]
20883 * localedata/locales/ca_ES (abmon): Rename to...
20884 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20885 (mon): Rename to...
20886 (alt_mon): This.
20887 (abmon): Import from CLDR (genitive case, month names preceded by
20888 "de" or "d’").
20889 (mon): Likewise.
20890 (abday): Synchronize with CLDR.
20891 (d_t_fmt): Likewise.
20892 (d_fmt): Likewise.
20893 (am_pm): Likewise.
20894
20895 (LC_TIME): Improve indentation.
20896 (LC_TELEPHONE): Likewise.
20897 (LC_NAME): Likewise.
20898 (LC_ADDRESS): Likewise.
20899
20900 2018-03-14 Joseph Myers <joseph@codesourcery.com>
20901
20902 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
20903 (lrintf): Remove definitions used only with old GCC.
20904 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
20905 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
20906 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
20907 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
20908 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
20909 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
20910 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
20911 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
20912 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
20913 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
20914 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
20915 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
20916 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
20917 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
20918 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20919 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20920 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20921 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20922 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20923 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20924 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20925 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20926 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20927 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20928 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20929 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20930 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20931 [__FAST_MATH__] (__M_SQRT2): Remove macro.
20932
20933 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20934
20935 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20936 instruction to unbreak builds with binutils 2.26 and older.
20937
20938 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20939
20940 * sysdeps/aarch64/strncmp.S (count): New macro.
20941 (strncmp): Store misaligned length in SRC1 in COUNT.
20942 (mutual_align): Adjust.
20943 (misaligned8): Load dword at a time when it is safe.
20944
20945 2018-03-12 Zack Weinberg <zackw@panix.com>
20946
20947 [BZ #1190]
20948 [BZ #19476]
20949 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20950 if the _IO_EOF_SEEN bit is already set; update commentary.
20951 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20952 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20953
20954 * support/support_openpty.c, support/tty.h: New files.
20955 * support/Makefile (libsupport-routines): Add support_openpty.
20956
20957 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20958 New test cases.
20959 * libio/Makefile (tests): Add tst-fgetc-after-eof.
20960 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20961
20962 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
20963
20964 * po/pt_BR.po: Update translations.
20965
20966 2018-03-12 David Michael <fedora.dm0@gmail.com>
20967
20968 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20969 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20970 get a port to the startup server.
20971
20972 2018-03-11 Zack Weinberg <zackw@panix.com>
20973
20974 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20975 before nldbl-compat.h.
20976
20977 2018-03-10 Zack Weinberg <zackw@panix.com>
20978
20979 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20980 math.h or math_private.h.
20981
20982 * sysdeps/alpha/fpu/s_isnan.c
20983 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20984 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20985 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20986 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20987 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20988 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20989 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20990 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20991 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20992 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20993 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20994 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20995 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
20996 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
20997 Include math_private.h.
20998
20999 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
21000 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
21001 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
21002 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
21003 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
21004 * sysdeps/powerpc/power7/fpu/s_logb.c:
21005 Include math.h and math_private.h.
21006
21007 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
21008 uses of $at in .set noat / .set at.
21009
21010 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
21011
21012 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
21013 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
21014 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
21015 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
21016 Likewise.
21017
21018 2018-03-09 Florian Weimer <fweimer@redhat.com>
21019
21020 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
21021 in comment.
21022
21023 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
21024
21025 [BZ #22919]
21026 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
21027 Add nop before __startcontext, add explaining comments.
21028
21029 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21030
21031 [BZ #22926]
21032 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
21033 empty for __SPE__.
21034 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
21035 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
21036 Do not build hardware transactional code for __SPE__.
21037 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
21038 (__lll_trylock_elision): Likewise.
21039 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
21040 (__lll_unlock_elision): Likewise.
21041
21042 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
21043 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
21044 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
21045 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
21046 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
21047 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
21048 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
21049 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
21050 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
21051 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
21052 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
21053 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
21054 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
21055 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
21056 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
21057 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
21058 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
21059 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
21060 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
21061 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
21062 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
21063 * sysdeps/unix/sysv/linux/arm/kernel-features.h
21064 (__ASSUME_CLONE_BACKWARDS): Define.
21065 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
21066 __clone2 if __NR_clone2 is defined.
21067 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
21068 (__ASSUME_CLONE_BACKWARDS): Likewise.
21069 * sysdeps/unix/sysv/linux/i386/kernel-features.h
21070 (__ASSUME_CLONE_BACKWARDS): Likewise.
21071 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
21072 (__ASSUME_CLONE2): Likewise.
21073 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
21074 (__ASSUME_CLONE_BACKWARDS3): Likewise.
21075 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
21076 variants and the define architecture can use.
21077 (__ASSUME_CLONE_DEFAULT): Define as default.
21078 * sysdeps/unix/sysv/linux/mips/kernel-features.h
21079 (__ASSUME_CLONE_BACKWARDS): Likewise.
21080 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
21081 (__ASSUME_CLONE_BACKWARDS): Likewise.
21082 * sysdeps/unix/sysv/linux/s390/kernel-features.h
21083 (__ASSUME_CLONE_BACKWARDS2): Likewise.
21084
21085 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
21086
21087 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
21088
21089 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
21090 time.
21091
21092 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
21093 (do_test_limit): Likewise.
21094
21095 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
21096 for every implementation.
21097 (do_test): Likewise.
21098
21099 * benchtests/bench-strncmp.c: Convert output to json.
21100
21101 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
21102
21103 * io/futimens.c: Add missing start-of-file descriptive comment.
21104 * io/utime.c: Likewise.
21105 * misc/futimesat.c: Likewise.
21106 * misc/utimes.c: Likewise.
21107 * sysdeps/mach/hurd/futimesat.c: Likewise.
21108 * sysdeps/mach/hurd/utimes.c: Likewise.
21109 * sysdeps/posix/utime.c: Likewise.
21110 * sysdeps/posix/utimes.c: Likewise.
21111 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
21112 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
21113 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
21114 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
21115
21116 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
21117
21118 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
21119 hurd_futimes.
21120 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
21121 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
21122 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
21123 (__futimens): Move implementation to...
21124 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
21125 utime_tvalue_from_tspec): ... new helper functions.
21126 (hurd_futimens): New function.
21127 * sysdeps/mach/hurd/futimesat.c: New file.
21128 * sysdeps/mach/hurd/utimensat.c: New file.
21129
21130 2018-03-05 FlĂĄvio Cruz <flaviocruz@gmail.com>
21131
21132 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
21133 UTIME_OMIT): New macros.
21134 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
21135 before reverting to converting time spec to time value and calling
21136 __file_utimes.
21137 * sysdeps/mach/hurd/utime-helper.c: New file.
21138 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
21139 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
21140 reverting to utime_tvalue_from_tval and __file_utimes.
21141 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
21142 (__lutimes): Just call hurd_futimens after lookup.
21143 * sysdeps/mach/hurd/utimes.c: Likewise.
21144
21145 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
21146
21147 * bits/sigaction.h: Add include guard.
21148 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
21149 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
21150 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
21151 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
21152 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
21153 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
21154 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
21155 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
21156 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
21157
21158 2018-03-05 Joseph Myers <joseph@codesourcery.com>
21159
21160 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
21161 -Wmaybe-uninitialized for -Os.
21162 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
21163 this disabling.
21164
21165 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21166
21167 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
21168 __INO_T_MATCHES_INO64_T is defined.
21169 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
21170 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
21171 of definition.
21172 * dirent/alphasort64.c: Likewise.
21173 * dirent/scandir.c: Likewise.
21174 * dirent/scandir64-tail.c: Likewise.
21175 * dirent/scandir64.c: Likewise.
21176 * dirent/scandirat.c: Likewise.
21177 * dirent/scandirat64.c: Likewise.
21178 * dirent/versionsort.c: Likewise.
21179 * dirent/versionsort64.c: Likewise.
21180 * include/dirent.h: Likewise.
21181
21182 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
21183 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
21184 for socketpair endpoint.
21185 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
21186 WRITE_BUFFER_SIZE as buffer size for sending socket.
21187 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
21188 issue on system where send is implemented with sendto syscall.
21189 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
21190 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
21191 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
21192 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
21193
21194 [BZ #21269]
21195 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
21196 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
21197 sa_restorer for vDSO case.
21198 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
21199
21200 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
21201
21202 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
21203 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
21204 * hurd/hurd/ioctl.h: Include <mach/port.h>
21205 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
21206 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
21207 <mach/mach_types.h> and <mach/message.h>.
21208 (headers): Move mach/param.h to bits/mach/param.h.
21209 * sysdeps/mach/i386/mach/param.h: Move file to ...
21210 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
21211 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
21212 of <mach/param.h>.
21213 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
21214 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
21215 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
21216 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
21217 trivial, for C++ conformity.
21218 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
21219 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
21220 Process mig output through $(migheadersed).
21221 * hurd/Makefile (migheadersed): Define variable.
21222 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
21223 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
21224 headers.
21225 * hurd/hurd.h: Include <bits/types/sigset_t.h>
21226 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
21227 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
21228 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
21229 <bits/types/sigset_t.h>.
21230 [!defined __USE_GNU]: Do not #error out.
21231 (struct hurd_sigstate): Use _NSIG instead of NSIG.
21232 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
21233 Include <stddef.h> and <bits/types/sigset_t.h>
21234 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
21235 instead of sighandler_t.
21236 * stdlib/errno.h (error_t): Move definition to...
21237 * bits/types/error_t.h: ... new header.
21238 * stdlib/Makefile (headers): Add bits/types/error_t.h.
21239 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
21240 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
21241 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
21242 * hurd/hurd.h: Include <bits/types/error_t.h>
21243 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
21244 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
21245 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
21246 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
21247 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
21248 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
21249 * sysdeps/mach/hurd/futimens.c: New file.
21250
21251 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
21252
21253 [BZ #22918]
21254 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
21255 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
21256 * nscd/gai.c (__nss_hosts_database): Readd definition.
21257 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
21258 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
21259 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
21260
21261 2018-03-02 Joseph Myers <joseph@codesourcery.com>
21262
21263 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
21264 (ifunc_one): Likewise.
21265
21266 2018-03-01 DJ Delorie <dj@delorie.com>
21267
21268 [BZ #22342]
21269 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
21270 key value.
21271
21272 2018-03-01 Maciej W. Rozycki <macro@mips.com>
21273
21274 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
21275 `match_pid' parameter.
21276 (td_ta_thr_iter): Update accordingly.
21277
21278 2018-03-01 Florian Weimer <fweimer@redhat.com>
21279
21280 * nptl/Makefile (install-lib-ldscripts): Remove.
21281 (install): Remove rule.
21282 ($(inst_libdir)/libpthread.so): Likewise.
21283
21284 2018-03-01 Mike FABIAN <mfabian@redhat.com>
21285
21286 [BZ #22896]
21287 * localedata/locales/an_ES: update month and day names,
21288 improve d_fmt, improve postal_fmt, add country_post,
21289 add country_isbn
21290
21291 2018-03-01 Mike FABIAN <mfabian@redhat.com>
21292
21293 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
21294 Ukrainian instead of Bulgarian.
21295
21296 2018-03-01 Florian Weimer <fweimer@redhat.com>
21297
21298 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
21299 reference.
21300
21301 2018-03-01 Florian Weimer <fweimer@redhat.com>
21302
21303 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
21304 * nptl/Makefile (routines): Add pthread_atfork.
21305 (static-only-routines): Set to pthread_atfork.
21306 (libpthread-routines): Remove pthread_atfork.
21307 (libpthread-static-only-routines): Remove.
21308 (install): Update comment.
21309 (libpthread.so): Do not install libpthread_nonshared.a.
21310 (tests): Do not link with libpthread_nonshared.a.
21311 (generated): Remove libpthread_nonshared.a.
21312 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
21313 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
21314 with libpthread_nonshared.a.
21315
21316 2018-02-28 Joseph Myers <joseph@codesourcery.com>
21317
21318 [BZ #22902]
21319 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
21320 (libc_feholdexcept_setroundf128): New macro.
21321 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
21322
21323 [BZ #15105]
21324 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
21325 libc_hidden_def.
21326 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
21327 * include/inttypes.h: New file.
21328
21329 2018-02-27 Joseph Myers <joseph@codesourcery.com>
21330
21331 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
21332 -Os in two more places.
21333
21334 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21335
21336 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
21337 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
21338 be sorted correctly at the moment because of a bug.
21339
21340 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21341
21342 [BZ #22550] - es_ES locale (and other es_* locales): collation should
21343 treat ñ as a primary different character, sync the collation
21344 for Spanish with CLDR.
21345 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
21346 * localedata/Makefile: Add new test files.
21347 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
21348 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
21349 collation order.
21350 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
21351 * localedata/am_ET.UTF-8.in: New test file.
21352 * localedata/az_AZ.UTF-8.in: Likewise.
21353 * localedata/be_BY.UTF-8.in: Likewise.
21354 * localedata/ber_DZ.UTF-8.in: Likewise.
21355 * localedata/ber_MA.UTF-8.in: Likewise.
21356 * localedata/bg_BG.UTF-8.in: Likewise.
21357 * localedata/br_FR.UTF-8.in: Likewise.
21358 * localedata/cmn_TW.UTF-8.in: Likewise.
21359 * localedata/crh_UA.UTF-8.in: Likewise.
21360 * localedata/csb_PL.UTF-8.in: Likewise.
21361 * localedata/cv_RU.UTF-8.in: Likewise.
21362 * localedata/cy_GB.UTF-8.in: Likewise.
21363 * localedata/dz_BT.UTF-8.in: Likewise.
21364 * localedata/eo.UTF-8.in: Likewise.
21365 * localedata/es_ES.UTF-8.in: Likewise.
21366 * localedata/fa_IR.UTF-8.in: Likewise.
21367 * localedata/fi_FI.UTF-8.in: Likewise.
21368 * localedata/fil_PH.UTF-8.in: Likewise.
21369 * localedata/fur_IT.UTF-8.in: Likewise.
21370 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
21371 * localedata/ha_NG.UTF-8.in: Likewise.
21372 * localedata/ig_NG.UTF-8.in: Likewise.
21373 * localedata/ik_CA.UTF-8.in: Likewise.
21374 * localedata/kk_KZ.UTF-8.in: Likewise.
21375 * localedata/ku_TR.UTF-8.in: Likewise.
21376 * localedata/ky_KG.UTF-8.in: Likewise.
21377 * localedata/ln_CD.UTF-8.in: Likewise.
21378 * localedata/mi_NZ.UTF-8.in: Likewise.
21379 * localedata/ml_IN.UTF-8.in: Likewise.
21380 * localedata/mn_MN.UTF-8.in: Likewise.
21381 * localedata/mr_IN.UTF-8.in: Likewise.
21382 * localedata/mt_MT.UTF-8.in: Likewise.
21383 * localedata/nb_NO.UTF-8.in: Likewise.
21384 * localedata/om_KE.UTF-8.in: Likewise.
21385 * localedata/os_RU.UTF-8.in: Likewise.
21386 * localedata/ps_AF.UTF-8.in: Likewise.
21387 * localedata/ro_RO.UTF-8.in: Likewise.
21388 * localedata/ru_RU.UTF-8.in: Likewise.
21389 * localedata/sc_IT.UTF-8.in: Likewise.
21390 * localedata/se_NO.UTF-8.in: Likewise.
21391 * localedata/sq_AL.UTF-8.in: Likewise.
21392 * localedata/sv_SE.UTF-8.in: Likewise.
21393 * localedata/szl_PL.UTF-8.in: Likewise.
21394 * localedata/tg_TJ.UTF-8.in: Likewise.
21395 * localedata/tk_TM.UTF-8.in: Likewise.
21396 * localedata/tt_RU.UTF-8.in: Likewise.
21397 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
21398 * localedata/ug_CN.UTF-8.in: Likewise.
21399 * localedata/uz_UZ.UTF-8.in: Likewise.
21400 * localedata/vi_VN.UTF-8.in: Likewise.
21401 * localedata/yi_US.UTF-8.in: Likewise.
21402 * localedata/yo_NG.UTF-8.in: Likewise.
21403 * localedata/zh_CN.UTF-8.in: Likewise.
21404 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
21405 file and fix bugs in the collation.
21406 * localedata/locales/az_AZ: Likewise.
21407 * localedata/locales/be_BY: Likewise.
21408 * localedata/locales/ber_DZ: Likewise.
21409 * localedata/locales/ber_MA: Likewise.
21410 * localedata/locales/bg_BG: Likewise.
21411 * localedata/locales/br_FR: Likewise.
21412 * localedata/locales/br_FR@euro: Likewise.
21413 * localedata/locales/ca_ES: Likewise.
21414 * localedata/locales/cns11643_stroke: Likewise.
21415 * localedata/locales/crh_UA: Likewise.
21416 * localedata/locales/cs_CZ: Likewise.
21417 * localedata/locales/csb_PL: Likewise.
21418 * localedata/locales/cv_RU: Likewise.
21419 * localedata/locales/cy_GB: Likewise.
21420 * localedata/locales/da_DK: Likewise.
21421 * localedata/locales/dz_BT: Likewise.
21422 * localedata/locales/en_CA: Likewise.
21423 * localedata/locales/eo: Likewise.
21424 * localedata/locales/es_CU: Likewise.
21425 * localedata/locales/es_EC: Likewise.
21426 * localedata/locales/es_ES: Likewise.
21427 * localedata/locales/es_US: Likewise.
21428 * localedata/locales/et_EE: Likewise.
21429 * localedata/locales/fa_IR: Likewise.
21430 * localedata/locales/fi_FI: Likewise.
21431 * localedata/locales/fil_PH: Likewise.
21432 * localedata/locales/fur_IT: Likewise.
21433 * localedata/locales/gez_ER@abegede: Likewise.
21434 * localedata/locales/ha_NG: Likewise.
21435 * localedata/locales/hr_HR: Likewise.
21436 * localedata/locales/hsb_DE: Likewise.
21437 * localedata/locales/hu_HU: Likewise.
21438 * localedata/locales/ig_NG: Likewise.
21439 * localedata/locales/ik_CA: Likewise.
21440 * localedata/locales/is_IS: Likewise.
21441 * localedata/locales/iso14651_t1_pinyin: Likewise.
21442 * localedata/locales/kk_KZ: Likewise.
21443 * localedata/locales/ku_TR: Likewise.
21444 * localedata/locales/ky_KG: Likewise.
21445 * localedata/locales/ln_CD: Likewise.
21446 * localedata/locales/lt_LT: Likewise.
21447 * localedata/locales/lv_LV: Likewise.
21448 * localedata/locales/mi_NZ: Likewise.
21449 * localedata/locales/ml_IN: Likewise.
21450 * localedata/locales/mn_MN: Likewise.
21451 * localedata/locales/mr_IN: Likewise.
21452 * localedata/locales/mt_MT: Likewise.
21453 * localedata/locales/nb_NO: Likewise.
21454 * localedata/locales/om_KE: Likewise.
21455 * localedata/locales/os_RU: Likewise.
21456 * localedata/locales/pl_PL: Likewise.
21457 * localedata/locales/ps_AF: Likewise.
21458 * localedata/locales/ro_RO: Likewise.
21459 * localedata/locales/ru_RU: Likewise.
21460 * localedata/locales/ru_UA: Likewise.
21461 * localedata/locales/sc_IT: Likewise.
21462 * localedata/locales/se_NO: Likewise.
21463 * localedata/locales/si_LK: Likewise.
21464 * localedata/locales/sq_AL: Likewise.
21465 * localedata/locales/sv_FI: Likewise.
21466 * localedata/locales/sv_FI@euro: Likewise.
21467 * localedata/locales/sv_SE: Likewise.
21468 * localedata/locales/szl_PL: Likewise.
21469 * localedata/locales/tg_TJ: Likewise.
21470 * localedata/locales/ti_ER: Likewise.
21471 * localedata/locales/tk_TM: Likewise.
21472 * localedata/locales/tl_PH: Likewise.
21473 * localedata/locales/tr_TR: Likewise.
21474 * localedata/locales/tt_RU: Likewise.
21475 * localedata/locales/tt_RU@iqtelif: Likewise.
21476 * localedata/locales/ug_CN: Likewise.
21477 * localedata/locales/uk_UA: Likewise.
21478 * localedata/locales/uz_UZ: Likewise.
21479 * localedata/locales/uz_UZ@cyrillic: Likewise.
21480 * localedata/locales/vi_VN: Likewise.
21481 * localedata/locales/yi_US: Likewise.
21482 * localedata/locales/yo_NG: Likewise.
21483
21484 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21485
21486 * gen-locales.mk: Make test files which contain @ modifiers in their
21487 name work.
21488 * localedata/gen-locale.sh: Likewise.
21489
21490 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21491
21492 * posix/tst-fnmatch.input: Fix results for range expressions
21493 for non C locales.
21494 * posix/tst-regexloc.c: Do not use a range expression for
21495 de_DE.ISO-8859-1 locale.
21496
21497 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21498
21499 * posix/bug-regex5.c: Fix test case because with the new
21500 iso14651_t1_common file, the da_DK locale now has 6 collating elements
21501 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
21502 file.
21503
21504 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21505
21506 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
21507 downloaded from ISO, the collation order of @-. and space has changed.
21508 Therefore, this test file needed to be adapted.
21509 * localedata/fr_CA.UTF-8.in: Likewise.
21510 * localedata/fr_FR.UTF-8.in: Likewise.
21511 * localedata/uk_UA.UTF-8.in: Likewise.
21512
21513 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21514
21515 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
21516 order of È„ in the new iso14651_t1_common file.
21517 * localedata/pl_PL.UTF-8.in: Likewise.
21518
21519 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21520
21521 * localedata/locales/iso14651_t1_common: Add sections for various
21522 scripts to the iso14651_t1_common file.
21523
21524 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21525
21526 * localedata/locales/iso14651_t1_common: Use the code point of a
21527 character in the fourth collation level instead of IGNORE for all
21528 entries which have IGNORE on all 4 levels.
21529
21530 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21531
21532 * localedata/locales/iso14651_t1_common: Add some convenient collation
21533 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
21534 rules similar to those in CLDR.
21535
21536 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21537
21538 * localedata/locales/iso14651_t1_common: The new version of this
21539 file downloaded from ISO contained several syntax errors which
21540 are fixed by this patch.
21541
21542 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21543
21544 * localedata/locales/iso14651_t1_common: replace all <U.....>
21545 with <U000.....> because glibc understands only 4 digit or 8 digit
21546
21547 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21548
21549 * localedata/locales/iso14651_t1_common: Necessary changes
21550 to make the file downloaded from ISO usable by glibc.
21551
21552 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21553
21554 [BZ #14095]
21555 * localedata/locales/iso14651_t1_common: Update file to
21556 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
21557
21558 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
21559
21560 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
21561 of <nptl/pthreadP.h>
21562 (thread_attr_compare): Move function to...
21563 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
21564 * sysdeps/nptl/timer_routines.h: ... new header.
21565 * sysdeps/mach/hurd/gai_misc.h: New file.
21566
21567 2018-02-26 Joseph Myers <joseph@codesourcery.com>
21568
21569 * string/strcoll_l.c: Include <libc-diag.h>.
21570 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
21571 declarations of seq1 and seq2.
21572
21573 [BZ #15105]
21574 * stdlib/atoi.c (atoi): Use libc_hidden_def.
21575 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
21576
21577 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
21578
21579 [BZ #22433]
21580 [BZ #22807]
21581 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
21582 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
21583 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
21584 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
21585 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
21586 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
21587
21588 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21589
21590 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
21591 macros used in __ptrace_request.
21592
21593 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
21594
21595 [BZ #22792]
21596 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
21597 to $(CC).
21598 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
21599 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
21600 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
21601 <tcb-offsets.h>.
21602
21603 2018-02-23 Joseph Myers <joseph@codesourcery.com>
21604
21605 [BZ #15105]
21606 * ctype/ctype.c (tolower): Use libc_hidden_def.
21607 (toupper): Likewise.
21608 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
21609 [!_ISOMAC] (toupper): Likewise.
21610
21611 2018-02-23 Mike FABIAN <mfabian@redhat.com>
21612
21613 * localedata/Makefile: Remove --quiet argument when
21614 installing locales
21615
21616 2018-02-23 Mike FABIAN <mfabian@redhat.com>
21617
21618 [BZ #17438]
21619 * localedata/locales/pt_BR (LC_TIME): use / instead of -
21620 in d_fmt.
21621 * localedata/locales/pt_PT (LC_TIME): likewise
21622
21623 2018-02-23 Mike FABIAN <mfabian@redhat.com>
21624
21625 [BZ #22646]
21626 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
21627 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
21628 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
21629
21630 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21631
21632 * sysdeps/sparc/fpu/libm-test-ulps: Update.
21633
21634 * nptl/Makefile (routines): Remove unregister-atfork.
21635 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
21636 (fork_handler_alloc): Remove function.
21637 (fork_handlers, fork_handler_init): New variables.
21638 (__fork_lock): Rename to atfork_lock.
21639 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
21640 to use a dynamic array to add/remove atfork handlers.
21641 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
21642 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
21643 Remove declaration.
21644 (fork_handler): Remove next, refcntr, and need_signal member.
21645 (__run_fork_handler_type): New enum.
21646 (__run_fork_handlers): New prototype.
21647 * nptl/register-atfork.c: Remove file.
21648 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
21649
21650 * sysdeps/nptl/nptl-signals.h: Move to ...
21651 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
21652 comments.
21653 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
21654 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
21655 unnecessary check for SIGTIMER.
21656 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
21657 remove unnecessary removal of SIGTIMER.
21658 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
21659 include-signals.h rename.
21660 * nptl/pthreadP.h: Likewise.
21661 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
21662 __is_internal_signal instead of __nptl_is_internal_signal.
21663
21664 2018-02-22 Andrew Waterman <andrew@sifive.com>
21665
21666 [BZ # 22884]
21667 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
21668 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
21669 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
21670 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
21671
21672 2018-02-22 DJ Delorie <dj@delorie.com>
21673
21674 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
21675
21676 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
21677
21678 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
21679 do_misaligned, not misaligned8.
21680
21681 2018-02-22 Steve Ellcey <sellcey@cavium.com>
21682
21683 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21684 Add memcpy_thunderx2.
21685 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
21686 Increment to 4.
21687 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
21688 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
21689 and IS_THUNDERX2PA checks.
21690 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
21691 Use macro to set name appropriately.
21692 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
21693 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
21694 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
21695 New macro.
21696 (IS_THUNDERX2): New macro.
21697
21698 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
21699
21700 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21701
21702 2018-02-21 Zack Weinberg <zackw@panix.com>
21703
21704 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
21705 Define here, unconditionally.
21706 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
21707 * libio/libioP.h: Remove #if 0 blocks.
21708 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
21709 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
21710 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
21711
21712 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
21713 Assume weak_alias is always defined.
21714
21715 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
21716 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
21717 Remove #if 0 and #ifdef TODO blocks.
21718 Assume text_set_element is always defined.
21719
21720 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
21721 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
21722 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
21723
21724 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
21725 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
21726 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
21727 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
21728 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
21729 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
21730 Reformat bit flags for _flags field to make occupancy clearer.
21731 Update commentary.
21732 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
21733 Keep definitions consistent with those in libio/libio.h.
21734
21735 * libio/libio.h (_IO_file_flags): Remove macro.
21736 All uses changed to _flags.
21737
21738 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
21739 (__HAVE_COLUMN, _IO_BE): Don't define.
21740 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
21741 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
21742 * libio/libioP.h (EOF): Don't define.
21743 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
21744 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
21745 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
21746 testing _IO_UNIFIED_JUMPTABLES.
21747
21748 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
21749 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
21750 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
21751 (_IO_size_t): Delete; all uses changed to size_t.
21752 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
21753 (_IO_off_t): Delete; all uses changed to off_t.
21754 (_IO_off64_t): Delete; all uses changed to off64_t.
21755 (_IO_pid_t): Delete; all uses changed to pid_t.
21756 (_IO_uid_t): Delete; all uses changed to uid_t.
21757 (_IO_wint_t): Delete; all uses changed to wint_t.
21758 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
21759 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
21760 (_IO_cookie_io_functions_t): Delete; all uses changed to
21761 cookie_io_functions_t.
21762 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
21763 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
21764 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
21765 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
21766
21767 * libio/iofopncook.c: Remove unnecessary forward declarations.
21768 * libio/iolibio.h: Correct outdated commentary.
21769 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
21770 * stdio-common/fxprintf.c (__fxprintf_nocancel):
21771 Remove unnecessary casts.
21772 * stdio-common/getline.c: Use _IO_getdelim directly.
21773 Don't redefine ssize_t.
21774 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
21775 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
21776 Remove outdated comments.
21777 * stdio-common/vfscanf.c: Don't redefine va_list.
21778
21779 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
21780 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
21781 Remove preprocessor conditionals on _LIBC and __USE_GNU,
21782 which are always true, and __cplusplus, which is always false.
21783
21784 2018-02-21 Joseph Myers <joseph@codesourcery.com>
21785
21786 [BZ #15105]
21787 [BZ #19463]
21788 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
21789 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
21790 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
21791 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
21792 libc_hidden_proto.
21793 [!_ISOMAC] (putc_unlocked): Likewise.
21794 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
21795 define inline if [__USE_EXTERN_INLINES].
21796 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
21797 putc_unlocked.
21798
21799 [BZ #15105]
21800 [BZ #19463]
21801 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
21802 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
21803 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
21804 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
21805 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
21806 getc_unlocked.
21807 * time/tzfile.c (__tzfile_read): Likewise.
21808
21809 2018-02-21 Mike FABIAN <mfabian@redhat.com>
21810
21811 [BZ #22517]
21812 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
21813
21814 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21815
21816 * io/fcntl.h: Fix a typo in a comment.
21817
21818 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21819
21820 [BZ #22862]
21821 * include/features.h: Add _ISOC11_SOURCE to test for whether to
21822 define _DEFAULT_SOURCE.
21823 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
21824
21825 2018-02-21 Florian Weimer <fweimer@redhat.com>
21826
21827 [BZ #20890]
21828 * elf/cache.c (save_cache): Call fsync on temporary file before
21829 renaming it.
21830 (save_aux_cache): Call fdatasync on temporary file before renaming
21831 it.
21832
21833 2018-02-21 Florian Weimer <fweimer@redhat.com>
21834
21835 [BZ #22787]
21836 * include/caller.h: Remove file.
21837 * elf/dl-caller.c: Likewise.
21838 * elf/Makefile (dl-routines): Remove dl-caller.
21839 (shared-only-routines): Do not add dl-caller.
21840 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
21841 __check_caller.
21842 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
21843 member.
21844 (dl_open_worker): Do not call __check_caller.
21845 (_dl_open): Do not set caller_dl_open member.
21846 * elf/rtld.c (_rtld_global_ro): Do not initialize
21847 _dl_check_caller member.
21848 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
21849 _dl_check_caller member.
21850 (_dl_check_caller): Remove declaration.
21851 * sysdeps/unix/sysv/linux/dl-execstack.c
21852 (_dl_make_stack_executable): Do not call __check_caller.
21853
21854 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21855
21856 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
21857 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
21858
21859 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21860
21861 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
21862 description.
21863
21864 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21865
21866 [BZ #16335]
21867 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
21868 of 199606L, 200112L, and 200809L.
21869 (_XOPEN_SOURCE): Document special values of 600 and 700.
21870 (_ISOC11_SOURCE): Document macro.
21871 (_ATFILE_SOURCE): Likewise.
21872 (_FORTIFY_SOURCE): Likewise.
21873
21874 2018-02-19 Joseph Myers <joseph@codesourcery.com>
21875
21876 [BZ #15105]
21877 [BZ #19463]
21878 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
21879 and define as weak alias of __ferror_unlocked. Use
21880 libc_hidden_weak.
21881 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
21882 libc_hidden_proto.
21883 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
21884 function if [__USE_EXTERN_INLINES].
21885 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
21886 ferror_unlocked.
21887
21888 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
21889
21890 [BZ #6889]
21891 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
21892
21893 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21894
21895 [BZ #22818]
21896 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
21897 the GLIBC_2.1 version.
21898
21899 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21900
21901 [BZ #21508]
21902 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
21903 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
21904 intl/tst-gettext-de.po from po/de.po by removing the
21905 POT-Creation-Date line.
21906 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
21907 ../po/de.po.
21908 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
21909 ../po/de.po.
21910
21911 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
21912
21913 * mach/Makefile (headers): Add mach/param.h.
21914 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
21915 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
21916 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
21917 (__ptsname_r): Move implementation to...
21918 (__ptsname_internal): ... new function. Add filling the STP
21919 structure.
21920
21921 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
21922
21923 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21924 idouble to 1 ULP.
21925
21926 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
21927
21928 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21929 syntax.
21930
21931 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
21932
21933 * nptl/Makefile (tst-mutex8-ENV): Delete.
21934 * nptl/tst-mutex8.c (check_type):
21935 Add runtime check if mutex will be elided.
21936
21937 2018-02-15 Joseph Myers <joseph@codesourcery.com>
21938
21939 [BZ #20980]
21940 [BZ #21234]
21941 * manual/install.texi (Configuring and compiling): Describe
21942 passing CC and CFLAGS on configure command line, not as
21943 environment variables. Use @code markup on those variables.
21944 Specify what options go in CC and what go in CFLAGS. Note the
21945 requirement to compile with optimization.
21946 * INSTALL: Regenerated.
21947
21948 [BZ #18124]
21949 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21950 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21951 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21952 __sigprocmask instead of sigprocmask.
21953 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21954 Likewise.
21955 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21956 __sigsetjmp and sigprocmask.
21957
21958 [BZ #15105]
21959 * include/argz.h (argz_next): Use libc_hidden_proto.
21960 (__argz_next): Likewise.
21961 * string-argz-next.c (__argz_next): Use libc_hidden_def.
21962 (argz_next): Use libc_hidden_weak.
21963
21964 [BZ #15105]
21965 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21966 libc_hidden_proto.
21967 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21968 libc_hidden_def.
21969
21970 [BZ #15105]
21971 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21972 libc_hidden_proto.
21973 * libio/iofputs.c (fputs): Use libc_hidden_weak.
21974
21975 [BZ #15105]
21976 [BZ #19463]
21977 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21978 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
21979 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21980 (__feof_unlocked): New declaration, and inline function if
21981 [__USE_EXTERN_INLINES].
21982 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21983 instead of feof_unlocked.
21984 * intl/localealias.c [_LIBC] (FEOF): Likewise.
21985 * nss/nsswitch.c (nss_parse_file): Likewise.
21986 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21987 Likewise.
21988 * time/getdate.c (__getdate_r): Likewise.
21989 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21990 Define as macro to call __feof_unlocked.
21991
21992 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21993
21994 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
21995
21996 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21997
21998 * math/Makefile: Remove mpexp.c and mplog.c
21999 * sysdeps/i386/fpu/mpexp.c: Delete file.
22000 * sysdeps/i386/fpu/mplog.c: Likewise.
22001 * sysdeps/ia64/fpu/mpexp.c: Likewise.
22002 * sysdeps/ia64/fpu/mplog.c: Likewise.
22003 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
22004 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
22005 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
22006 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
22007 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
22008 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
22009 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
22010 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
22011 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
22012 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
22013 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
22014 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
22015 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
22016 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
22017 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
22018 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
22019
22020 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
22021
22022 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22023
22024 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22025
22026 * sysdeps/sh/libm-test-ulps: Update.
22027
22028 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22029
22030 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
22031 idouble to 1 ULP.
22032
22033 2018-02-12 Zack Weinberg <zackw@panix.com>
22034
22035 [BZ #19239]
22036 * posix/sys/types.h: Don't include sys/sysmacros.h.
22037 * misc/sys/sysmacros.h: Remove the conditional deprecation
22038 warnings for the macros defined by this header.
22039
22040 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
22041
22042 * manual/probes.texi: Remove slowexp probes.
22043 * math/Makefile: Remove slowexp.
22044 * sysdeps/generic/math_private.h (__slowexp): Remove.
22045 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
22046 document error bounds.
22047 * sysdeps/i386/fpu/slowexp.c: Remove.
22048 * sysdeps/ia64/fpu/slowexp.c: Remove.
22049 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
22050 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
22051 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
22052 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
22053 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
22054 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
22055 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
22056 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
22057 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
22058 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
22059 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
22060
22061 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
22062
22063 [BZ #13932]
22064 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
22065 * benchtests/pow-inputs: Update comment for slow path cases.
22066 * manual/probes.texi (slowpow_p10): Delete removed probe.
22067 (slowpow_p10): Likewise.
22068 * math/Makefile: Remove halfulp.c and slowpow.c.
22069 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
22070 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
22071 (__halfulp): Remove.
22072 (__slowpow): Remove.
22073 * sysdeps/i386/fpu/halfulp.c: Delete file.
22074 * sysdeps/i386/fpu/slowpow.c: Likewise.
22075 * sysdeps/ia64/fpu/halfulp.c: Likewise.
22076 * sysdeps/ia64/fpu/slowpow.c: Likewise.
22077 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
22078 improve comments and add error analysis.
22079 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
22080 (power1): Remove function:
22081 (log1): Remove error argument, add error analysis.
22082 (my_log2): Remove function.
22083 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
22084 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
22085 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
22086 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
22087 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
22088 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
22089 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
22090 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
22091 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
22092 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
22093 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
22094 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
22095 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
22096 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
22097
22098 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
22099
22100 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
22101 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
22102
22103 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
22104
22105 [BZ #22433]
22106 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
22107 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
22108 and PTRACE_SETHBPREGS.
22109
22110 2018-02-10 Zack Weinberg <zackw@panix.com>
22111
22112 [BZ #22830]
22113 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
22114 correctly.
22115 * malloc/tst-malloc-stats-cancellation.c: New test case.
22116 * malloc/Makefile: Add new test case.
22117
22118 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
22119
22120 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
22121
22122 2018-02-10 Joseph Myers <joseph@codesourcery.com>
22123
22124 * math/Makefile (libm-narrow-fns): Add add.
22125 (libm-test-funcs-narrow): Likewise.
22126 * math/Versions (GLIBC_2.28): Add narrowing add functions.
22127 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
22128 * math/gen-auto-libm-tests.c (test_functions): Add add.
22129 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
22130 (NARROW_ADD_ROUND_TO_ODD): Likewise.
22131 (NARROW_ADD_TRIVIAL): Likewise.
22132 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
22133 macro.
22134 (__daddl): Likewise.
22135 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
22136 dadd.
22137 (CFLAGS-nldbl-dadd.c): New variable.
22138 (CFLAGS-nldbl-fadd.c): Likewise.
22139 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
22140 __nldbl_daddl.
22141 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
22142 prototype.
22143 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
22144 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
22145 * math/auto-libm-test-in: Add tests of add.
22146 * math/auto-libm-test-out-narrow-add: New generated file.
22147 * math/libm-test-narrow-add.inc: New file.
22148 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
22149 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
22150 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
22151 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
22152 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
22153 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
22154 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
22155 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
22156 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
22157 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
22158 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
22159 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
22160 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
22161 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
22162 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
22163 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
22164 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
22165 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
22166 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22167 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
22168 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22169 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22170 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22171 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22172 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22173 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22174 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22175 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22176 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22177 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22178 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22179 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
22181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
22182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
22183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
22184 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22185 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22186 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22187 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22188 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22189 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22190 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
22191 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
22192 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22193 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22194
22195 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
22196 (f128-pairs): New variable.
22197 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
22198 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
22199 to CFLAGS.
22200 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
22201 Also make tests add $(f128-loader-link) to gnulib-tests.
22202
22203 2018-02-09 DJ Delorie <dj@redhat.com>
22204
22205 [BZ #22827]
22206 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
22207 64-bit ELF type for 64-bit ELF objects.
22208
22209 2018-02-09 Joseph Myers <joseph@codesourcery.com>
22210
22211 * math/libm-test-driver.c (snan_tests_arg): New variable.
22212 * math/libm-test-support.h (snan_tests_arg): New declaration.
22213 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
22214
22215 * math/Makefile (test-type-pairs): New variable.
22216 (test-type-pairs-f64xf128-yes): Likewise.
22217 (tests): Add test-narrow-macros.
22218 (libm-test-funcs-narrow): New variable.
22219 (libm-test-c-narrow): Likewise.
22220 (generated): Add $(libm-test-c-narrow).
22221 (libm-tests-base-narrow): New variable.
22222 (libm-tests-narrow): Likewise.
22223 (libm-tests): Add $(libm-tests-narrow).
22224 (libm-tests-for-type): Handle $(libm-tests-narrow).
22225 (libm-test-c-narrow-obj): New variable.
22226 ($(libm-test-c-narrow-obj)): New rule.
22227 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
22228 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
22229 $(o-iterator) to set dependencies and CFLAGS.
22230 * math/gen-auto-libm-tests.c: Document use for narrowing
22231 functions.
22232 (output_for_one_input_case): Take argument NARROW.
22233 (generate_output): Likewise. Update call to
22234 output_for_one_input_case.
22235 (main): Take --narrow option. Update call to generate_output.
22236 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
22237 (apply_lit): Update call to _apply_lit.
22238 (apply_arglit): New function.
22239 (parse_args): Handle "a" arguments.
22240 (parse_auto_input): Handle format names using ":".
22241 * math/README.libm-test: Document "a" parameter type.
22242 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
22243 (ARG_TYPE_TRUE_MIN): Likewise.
22244 (ARG_TYPE_MAX): Likwise.
22245 (ARG_MIN_EXP): Likewise.
22246 (ARG_MAX_EXP): Likewise.
22247 (ARG_MANT_DIG): Likewise.
22248 (TEST_COND_arg_ibm128): Likewise.
22249 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
22250 (TEST_COND_arg_fmt): New macro.
22251 (init_max_error): Update prototype.
22252 * math/libm-test-support.c (test_ibm128): New variable.
22253 (init_max_error): Take argument testing_ibm128 and set test_ibm128
22254 instead of using [TEST_COND_ibm128] conditional.
22255 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
22256 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
22257 [TEST_NARROW] (TEST_MSG): New definition.
22258 (arg_plus_zero): New macro.
22259 (arg_minus_zero): Likewise.
22260 (arg_plus_infty): Likewise.
22261 (arg_minus_infty): Likewise.
22262 (arg_qnan_value_pl): Likewise.
22263 (arg_qnan_value): Likewise.
22264 (arg_snan_value_pl): Likewise.
22265 (arg_snan_value): Likewise.
22266 (arg_max_value): Likewise.
22267 (arg_min_value): Likewise.
22268 (arg_min_subnorm_value): Likewise.
22269 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
22270 (RUN_TEST_LOOP_aa_f): New macro.
22271 (TEST_SUFF): New macro.
22272 (TEST_SUFF_STR): Likewise.
22273 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
22274 (TEST_COND_any_ibm128): New macro.
22275 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
22276 this_func. Update call to init_max_error.
22277 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
22278 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
22279 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
22280 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
22281 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
22282 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
22283 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
22284 * math/test-math-scalar.h (TEST_NARROW): Likewise.
22285 * math/test-math-vector.h (TEST_NARROW): Likewise.
22286 * math/test-arg-double.h: New file.
22287 * math/test-arg-float128.h: Likewise.
22288 * math/test-arg-float32x.h: Likewise.
22289 * math/test-arg-float64.h: Likewise.
22290 * math/test-arg-float64x.h: Likewise.
22291 * math/test-arg-ldouble.h: Likewise.
22292 * math/test-math-narrow.h: Likewise.
22293 * math/test-narrow-macros.c: Likewise.
22294 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
22295 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
22296 test-narrow-macros-ldbl-64.
22297 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
22298
22299 * math/bits/mathcalls-narrow.h: New file.
22300 * include/bits/mathcalls-narrow.h: Likewise.
22301 * math/math-narrow.h: Likewise.
22302 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
22303 (__MATHCALL_NARROW_ARGS_2): Likewise.
22304 (__MATHCALL_NARROW_ARGS_3): Likewise.
22305 (__MATHCALL_NARROW_NORMAL): Likewise.
22306 (__MATHCALL_NARROW_REDIR): Likewise.
22307 (__MATHCALL_NARROW): Likewise.
22308 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
22309 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
22310 defined.
22311 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22312 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
22313 (libm-narrow-fns): New variable.
22314 (libm-narrow-types-basic): Likewise.
22315 (libm-narrow-types-ldouble-yes): Likewise.
22316 (libm-narrow-types-float128-yes): Likewise.
22317 (libm-narrow-types-float128-alias-yes): Likewise.
22318 (libm-narrow-types): Likewise.
22319 (libm-routines): Add narrowing functions.
22320 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
22321 (libc_feholdexcept_setroundf128): New macro.
22322 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
22323 * sysdeps/ieee754/float128/float128_private.h: Include
22324 <math/math-narrow.h>.
22325 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
22326 Undefine and redefine.
22327 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
22328 (libm_alias_float_ldouble): Undefine and redefine.
22329 (libm_alias_double_ldouble): Likewise.
22330
22331 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
22332
22333 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
22334
22335 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
22336 FPCR/FPSR.
22337
22338 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
22339
22340 * manual/creature.texi: Convert references to gcc.info to gcc.
22341 * manual/stdio.texi: Likewise.
22342 * manual/string.texi: Likewise.
22343
22344 2018-02-07 Joseph Myers <joseph@codesourcery.com>
22345
22346 [BZ #17979]
22347 * posix/bits/types.h (__int_least8_t): New typedef.
22348 (__uint_least8_t): Likewise.
22349 (__int_least16_t): Likewise.
22350 (__uint_least16_t): Likewise.
22351 (__int_least32_t): Likewise.
22352 (__uint_least32_t): Likewise.
22353 (__int_least64_t): Likewise.
22354 (__uint_least64_t): Likewise.
22355 * sysdeps/generic/stdint.h (int_least8_t): Define using
22356 __int_least8_t.
22357 (int_least16_t): Define using __int_least16_t.
22358 (int_least32_t): Define using __int_least32_t.
22359 (int_least64_t): Define using __int_least64_t.
22360 (uint_least8_t): Define using __uint_least8_t.
22361 (uint_least16_t): Define using __uint_least16_t.
22362 (uint_least32_t): Define using __uint_least32_t.
22363 (uint_least64_t): Define using __uint_least64_t.
22364 * wcsmbs/uchar.h: Include <bits/types.h>.
22365 (char16_t): Define using __uint_least16_t conditional only on
22366 [!__USE_ISOCXX11].
22367 (char32_t): Define using __uint_least32_t conditional only on
22368 [!__USE_ISOCXX11].
22369 * wcsmbs/test-char-types.c: New file.
22370 * wcsmbs/Makefile (tests): Add test-char-types.
22371
22372 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
22373 version to 4.0.1.
22374
22375 2018-02-07 Zack Weinberg <zackw@panix.com>
22376
22377 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
22378 Delete all contents except for definitions of _G_HAVE_MMAP and
22379 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
22380 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
22381 sysdeps/unix/sysv/linux/_G_config.h. Make same content
22382 change as above.
22383
22384 * libio/libio.h: Don't include bits/_G_config.h here.
22385 Include stddef.h with __need_wchar_t defined. Include
22386 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
22387 Define _IO_iconv_t here, directly.
22388 Don't define _IO_HAVE_ST_BLKSIZE.
22389 * libio/libioP.h: Include _G_config.h here. Move include of
22390 shlib-compat.h up with rest of includes. Simplify conditionals
22391 controlling definition of _IO_JUMPS_OFFSET.
22392
22393 * csu/init.c: Remove always-true #if around entire file.
22394 Don't include stdio.h. Set _IO_stdin_used to hardwired
22395 constant 0x20001, and update commentary.
22396 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
22397 Replace all uses of _G_va_list with __gnuc_va_list.
22398 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
22399 instead of #if _IO_HAVE_ST_BLKSIZE.
22400 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
22401 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
22402 not #ifdef.
22403
22404 * libio/bits/libio.h: Move back to libio/libio.h and adjust
22405 multiple-include guard to match.
22406 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
22407 into this file.
22408 Remove preprocessor conditionals that are always true and/or
22409 redundant to other preprocessor conditionals in the same nest.
22410 Include shlib-compat.h unconditionally.
22411 Error out if _LIBC is not defined, or if _ISOMAC is defined,
22412 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
22413 defined after including stdio.h.
22414 Use __BEGIN_DECLS/__END_DECLS.
22415
22416 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
22417 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
22418 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
22419
22420 2018-02-07 Zack Weinberg <zackw@panix.com>
22421
22422 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
22423 New single-type headers split from _G_config.h.
22424 * libio/bits/types/cookie_io_functions_t.h
22425 * libio/bits/types/struct_FILE.h
22426 New single-type headers split from libio.h.
22427
22428 * libio/Makefile: Install the above new headers. Don't install
22429 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
22430 bits/libio-ldbl.h.
22431 * libio/_G_config.h, libio/libio.h: Delete file.
22432
22433 * libio/bits/libio.h: Remove improper-inclusion guard.
22434 Include stdio.h and don't repeat anything that it does.
22435 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
22436 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
22437 __io_read_fn as cookie_read_function_t,
22438 __io_write_fn as cookie_write_function_t,
22439 __io_seek_fn as cookie_seek_function_t,
22440 __io_close_fn as cookie_close_function_t,
22441 and _IO_cookie_io_functions_t as cookie_io_functions_t.
22442 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
22443 here, in the "compatibility defines" section. Remove an #if 0
22444 block. Use the "body" macros from bits/types/struct_FILE.h to
22445 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
22446 and _IO_ferror_unlocked.
22447 Move prototypes of __uflow and __overflow...
22448
22449 * libio/stdio.h: ...here. Don't include bits/libio.h.
22450 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
22451 directly from stdarg.h. Include bits/types/__fpos_t.h,
22452 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
22453 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
22454 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
22455 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
22456 cookie_io_functions_t, not _IO_cookie_io_functions_t;
22457 __ssize_t, not _IO_ssize_t. Unconditionally define
22458 BUFSIZ as 8192 and EOF as (-1).
22459
22460 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
22461 macros from bits/types/struct_FILE.h instead of _IO_* macros
22462 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
22463 instead of _IO_ssize_t.
22464 * libio/bits/stdio2.h: Similarly.
22465
22466 * libio/iolibio.h: Add multiple-include guard.
22467 Include bits/libio.h after stdio.h.
22468 * libio/libioP.h: Add multiple-include guard.
22469 Include stdio.h and bits/libio.h before iolibio.h.
22470
22471 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
22472 * include/bits/types/cookie_io_functions_t.h
22473 * include/bits/types/struct_FILE.h: New wrappers.
22474
22475 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
22476 Get definitions of _G_fpos_t and _G_fpos64_t from
22477 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
22478 respectively. Remove improper-inclusion guards.
22479
22480 * conform/data/stdio.h-data: Update expectations of va_list.
22481 * scripts/check-installed-headers.sh: Remove special case for
22482 libio.h and _G_config.h.
22483
22484 2018-02-07 Joseph Myers <joseph@codesourcery.com>
22485
22486 [BZ #15105]
22487 [BZ #19463]
22488 * include/sys/sysmacros.h [!_ISOMAC]
22489 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
22490 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
22491 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
22492 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
22493 libc_hidden_proto.
22494 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
22495 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
22496 Likewise.
22497 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
22498 Undefine and redefine to add use __gnu_dev_ prefix.
22499 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
22500 Likewise.
22501 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
22502 and define as hidden inline function.
22503 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
22504 Likewise.
22505 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
22506 Likewise.
22507 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
22508 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
22509 (gnu_dev_minor): Likewise.
22510 (gnu_dev_makedev): Likewise.
22511 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
22512 makedev.
22513 * posix/wordexp.c (exec_comm_child): Likewise.
22514 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
22515 instead of minor and __gnu_dev_major instead of major.
22516 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
22517 __gnu_dev_major instead of major.
22518 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
22519 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
22520 instead of gnu_dev_minor.
22521 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
22522 (SLAVE_P): Likewise.
22523 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
22524 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
22525 instead of major.
22526
22527 [BZ #21313]
22528 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
22529 in another place.
22530 * locale/weightwc.h (findidx): Likewise.
22531
22532 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
22533
22534 * manual/probes.texi (slowlog): Delete documentation of removed probe.
22535 (slowlog_inexact): Likewise
22536 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
22537 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
22538
22539 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
22540
22541 [BZ #22797]
22542 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
22543 missing second underscore to parameter name.
22544
22545 2018-02-06 Joseph Myers <joseph@codesourcery.com>
22546
22547 [BZ #14508]
22548 [BZ #15512]
22549 [BZ #17082]
22550 [BZ #20530]
22551 * bits/byteswap.h: Update file comment. Do not include
22552 <bits/byteswap-16.h>.
22553 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
22554 constant.
22555 (__bswap_16): Define as inline function.
22556 (__bswap_constant_32): Reformat definition.
22557 (__bswap_32): Always define as inline function, not macro, using
22558 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
22559 otherwise __bswap_constant_32.
22560 (__bswap_constant_64): Reformat definition. Do not use
22561 __extension__ here.
22562 (__bswap_64): Always define as inline function, not macro. Use
22563 __extension__ on function definition. Use __builtin_bswap64 if
22564 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
22565 * string/test-endian-file-scope.c: New file.
22566 * string/test-endian-sign-conversion.c: Likewise.
22567 * string/Makefile (headers): Remove bits/byteswap-16.h.
22568 (tests): Add test-endian-file-scope and
22569 test-endian-sign-conversion.
22570 (CFLAGS-test-endian-sign-conversion.c): New variable.
22571 * bits/byteswap-16.h: Remove file.
22572 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
22573 * sysdeps/ia64/bits/byteswap.h: Likewise.
22574 * sysdeps/m68k/bits/byteswap.h: Likewise.
22575 * sysdeps/s390/bits/byteswap-16.h: Likewise.
22576 * sysdeps/s390/bits/byteswap.h: Likewise.
22577 * sysdeps/tile/bits/byteswap.h: Likewise.
22578 * sysdeps/x86/bits/byteswap-16.h: Likewise.
22579 * sysdeps/x86/bits/byteswap.h: Likewise.
22580
22581 [BZ #17721]
22582 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
22583 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
22584 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
22585 199901L] (__restrict): Define to restrict.
22586
22587 [BZ #19667]
22588 * string/testcopy.c: Include <support/support.h>. Do not include
22589 <malloc.h>. Use <support/test-driver.c>.
22590 (main): Rename to do_test. Make static. Use xmalloc instead of
22591 malloc.
22592
22593 [BZ #13575]
22594 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
22595 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
22596 (SSIZE_MAX): Define to INT_MAX.
22597 * posix/test-ssize-max.c: New file.
22598 * posix/Makefile (tests): Add test-ssize-max.
22599
22600 [BZ #19668]
22601 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
22602 <support/support.h>. Do not include <malloc.h>.
22603 (query_auxv): Use xmalloc instead of malloc.
22604
22605 [BZ #14553]
22606 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
22607 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
22608 instead of loff_t.
22609
22610 2018-02-06 Florian Weimer <fweimer@redhat.com>
22611
22612 [BZ #18023]
22613 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22614 Use scratch_buffer instead of extend_alloca.
22615
22616 2018-02-06 Zack Weinberg <zackw@panix.com>
22617
22618 * libio/stdio.h: Don't define getc or putc as macros.
22619 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
22620 not _IO_getc and _IO_putc.
22621
22622 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
22623 * stdio-common/tstgetln.c: Don't redefine ssize_t.
22624
22625 2018-02-06 Joseph Myers <joseph@codesourcery.com>
22626
22627 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
22628 (TCP_FASTOPEN_NO_COOKIE): Likewise.
22629
22630 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
22631
22632 [BZ #14890]
22633 * elf/elf.h (NT_PRFPREG): New macro.
22634 (NT_S390_VXRS_LOW): Likewise.
22635 (NT_S390_VXRS_HIGH): Likewise.
22636 (NT_S390_GS_CB): Likewise.
22637 (NT_S390_GS_BC): Likewise.
22638 (NT_S390_RI_CB): Likewise.
22639
22640 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
22641 (MAP_SYNC): New macro.
22642 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
22643 Likewise.
22644 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
22645 (MAP_SYNC): Likewise.
22646 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
22647 (MAP_SYNC): Likewise.
22648 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
22649 (MAP_SYNC): Likewise.
22650 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
22651 (MAP_SYNC): Likewise.
22652 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
22653 (MAP_SYNC): Likewise.
22654 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
22655 (MAP_SYNC): Likewise.
22656 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
22657 Likewise.
22658 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
22659 Likewise.
22660
22661 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
22662 (MAP_SHARED_VALIDATE): New macro.
22663 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
22664 (MAP_SHARED_VALIDATE): Likewise.
22665
22666 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22667
22668 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
22669 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
22670 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
22671
22672 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22673
22674 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
22675 (DT_NUM): Updated to 35.
22676
22677 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22678
22679 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
22680 __builtin_expect with __glibc_likely and __glibc_unlikely.
22681 (elf_machine_rela): Likewise.
22682 (elf_machine_lazy_rel): Likewise.
22683
22684 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22685
22686 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
22687 __builtin_expect with __glibc_likely and __glibc_unlikely.
22688 (elf_machine_lazy_rel): Likewise.
22689
22690 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22691
22692 [BZ #22638]
22693 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
22694 SHARED.
22695 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
22696
22697 2018-02-05 Andreas Schwab <schwab@suse.de>
22698
22699 [BZ #22761]
22700 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
22701 string.
22702
22703 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
22704
22705 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
22706 not check against PTHREAD_STACK_MIN.
22707
22708 2018-02-02 Sean McKean <smckean83@gmail.com>
22709
22710 [BZ #22735]
22711 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
22712
22713 2018-02-02 Florian Weimer <fweimer@redhat.com>
22714
22715 [BZ #22753]
22716 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
22717 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
22718 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
22719 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
22720 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
22721 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
22722 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
22723 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
22724 * manual/llio.texi (Scatter-Gather): Mention offset -1.
22725 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
22726 * misc/tst-preadvwritev2.c (do_test): Call it.
22727 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
22728
22729 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
22730
22731 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
22732
22733 * benchtests/bench-memcmp.c: Print json instead of plain text.
22734
22735 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
22736 every test run.
22737
22738 2018-02-01 Joseph Myers <joseph@codesourcery.com>
22739
22740 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22741 version to 4.15.
22742 (s390_sthyi): New syscall.
22743
22744 * sysdeps/generic/ldbl-classify-compat.h: New file.
22745 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
22746 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
22747 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
22748 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
22749 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
22750 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
22751 * sysdeps/ieee754/dbl-64/s_finite.c: Include
22752 <ldbl-classify-compat.h>.
22753 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22754 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
22755 <ldbl-classify-compat.h>.
22756 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22757 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
22758 <ldbl-classify-compat.h>.
22759 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22760 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
22761 <ldbl-classify-compat.h>.
22762 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22763 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
22764 <ldbl-classify-compat.h>.
22765 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22766 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
22767 <ldbl-classify-compat.h>.
22768 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22769 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
22770 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
22771 * sysdeps/m68k/coldfire/math_private.h: Remove file.
22772 * sysdeps/microblaze/math_private.h: Likewise.
22773 * sysdeps/nios2/math_private.h: Likewise.
22774 * sysdeps/sh/math_private.h: Likewise.
22775
22776 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
22777 * sysdeps/m68k/coldfire/math_private.h: ... here.
22778 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
22779 * sysdeps/tile/math_private.h: Likewise.
22780 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
22781 Remove macro.
22782 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
22783 Likewise.
22784
22785 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
22786 Remove macro.
22787 (libc_fetestexcept): Likewise.
22788 (libc_feupdateenv_test): Likewise.
22789 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
22790 (libc_fetestexcept): Likewise.
22791 (libc_feupdateenv_test): Likewise.
22792 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
22793 (libc_fetestexcept): Likewise.
22794 (libc_feupdateenv_test): Likewise.
22795 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
22796 (libc_fetestexcept): Likewise.
22797 (libc_feupdateenv_test): Likewise.
22798
22799 * sysdeps/generic/math_private.h
22800 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
22801 New inline function.
22802 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
22803 Likewise.
22804
22805 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
22806 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
22807 * sysdeps/generic/math_private.h
22808 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
22809 inline function.
22810 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
22811 Likewise.
22812 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
22813 Likewise.
22814 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
22815 Likewise.
22816 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
22817 Likewise.
22818 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
22819 Likewise.
22820 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
22821 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
22822 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
22823 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
22824 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
22825 (__fegetenv): Likewise.
22826 (fesetenv): Likewise.
22827 (__fesetenv): Likewise.
22828 (feupdateenv): Likewise.
22829 (__feupdateenv): Likewise.
22830 (fegetround): Likewise.
22831 (__fegetround): Likewise.
22832 (fesetround): Likewise.
22833 (__fesetround): Likewise.
22834
22835 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
22836 (feraiseexcept): New macro.
22837 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
22838 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
22839 Remove macro.
22840 (__feraiseexcept): Likewise.
22841 (feclearexcept): Likewise.
22842 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
22843 (__feraiseexcept): Likewise.
22844 (feclearexcept): Likewise.
22845 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
22846 (__feraiseexcept): Likewise.
22847 (feclearexcept): Likewise.
22848 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
22849 (__feraiseexcept): Likewise.
22850 (feclearexcept): Likewise.
22851 (fetestexcept): Likewise.
22852
22853 * sysdeps/m68k/coldfire/math-tests.h: New file.
22854
22855 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
22856 * sysdeps/m68k/bits/fenv.h: ... here.
22857 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
22858 not define.
22859 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
22860 Likewise.
22861 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
22862 Likewise.
22863 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
22864 Likewise.
22865 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
22866 Likewise.
22867 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
22868 Define to 0.
22869 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
22870 (__FE_UNDEFINED): New enum constant.
22871 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
22872 Do not define.
22873 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
22874 Likewise.
22875 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
22876 Likewise.
22877 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
22878 to match generic bits/fenv.h.
22879 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
22880 Do not define.
22881
22882 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
22883 packed on bits.
22884 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
22885 * soft-fp/half.h (union _FP_UNION_H): Likewise.
22886 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
22887 * soft-fp/single.h (union _FP_UNION_S): Likewise.
22888
22889 2018-02-01 Carlos O'Donell <carlos@redhat.com>
22890 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
22891 Joseph Myers <joseph@codesourcery.com>
22892
22893 [BZ #21314]
22894 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
22895 (__log1p): Disable -Wmaybe-uninitialized for -Os around
22896 computation using c.
22897 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
22898 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
22899 computation using c.
22900
22901 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22902
22903 * version.h (RELEASE): Set to "development".
22904 (VERSION): Set to "2.27.9000".
22905 * NEWS (2.28): New section.
22906
22907 * version.h (RELEASE): Set to "stable".
22908 (VERSION): Set to "2.27".
22909 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
22910
22911 * NEWS: Add the list of bugs fixed in 2.27.
22912
22913 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22914
22915 * stdlib/test-atexit-race-common.c (do_test): Check stack size
22916 against PTHREAD_STACK_MIN.
22917
22918 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22919
22920 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22921 New entries.
22922 (RafaƂ LuĆŒyƄski, Andreas Schwab): Update.
22923
22924 2018-02-01 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
22925
22926 [BZ #10871]
22927 * NEWS: List the languages which actually use the alternative
22928 months feature in this release. Also explain that "alt_mon" and
22929 "ab_alt_mon" are optional.
22930
22931 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
22932
22933 [BZ #22765]
22934 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22935
22936 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
22937
22938 * manual/install.texi (Tools for Compilation): Update the newest
22939 versions of gcc, binutils, texinfo, gawk, bison, and sed.
22940 * INSTALL: Regenerated.
22941
22942 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
22943
22944 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22945 instead of __builtin_expect.
22946
22947 2018-01-30 Florian Weimer <fweimer@redhat.com>
22948
22949 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22950 data.
22951 * nss/tst-nss-getpwent.c (do_test): Likewise.
22952
22953 2018-01-30 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
22954
22955 [BZ #10871]
22956 * localedata/locales/hr_HR (mon): Rename to...
22957 (alt_mon): This.
22958 (mon): Import from CLDR (genitive case).
22959 (d_t_fmt): Update the comment.
22960
22961 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
22962
22963 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22964 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22965 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22966
22967 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22968
22969 * mach/Versions: Fix version when __mach_host_self_ was added.
22970 * hurd/Versions: Fix version when _hurd_exec_paths was added.
22971 * sysdeps/mach/hurd/i386/ld.abilist: New file.
22972 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22973 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22974 * sysdeps/mach/hurd/i386/libc.abilist: New file.
22975 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22976 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22977 * sysdeps/mach/hurd/i386/libm.abilist: New file.
22978 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22979 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22980 * sysdeps/mach/hurd/i386/librt.abilist: New file.
22981 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
22982 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22983 || to respect codestyle.
22984 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22985 (do_test_bz20181): Rename accordingly.
22986 * malloc/malloc.c: Include <assert.h>.
22987 (assert): Do not define.
22988 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
22989 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22990 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
22991 * sysdeps/mach/hurd/hp-timing.h: New file.
22992 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
22993
22994 2018-01-29 Darius Rad <darius@bluespec.com>
22995
22996 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
22997
22998 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
22999
23000 * sysdeps/init_array/crti.S (.section .init_array): Add
23001 PREINIT_FUNCTION when defined.
23002 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
23003 * config.h.in: Regenerate.
23004 * manual/platform.texi: Add RISC-V documenation for
23005 __riscv_flush_icache.
23006 * sysdeps/riscv/__longjmp.S: New file.
23007 * sysdeps/riscv/backtrace.c: Likewise.
23008 * sysdeps/riscv/bits/endian.h: Likewise.
23009 * sysdeps/riscv/bits/setjmp.h: Likewise.
23010 * sysdeps/riscv/bits/wordsize.h: Likewise.
23011 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
23012 * sysdeps/riscv/bsd-setjmp.c: Likewise.
23013 * sysdeps/riscv/dl-trampoline.S: Likewise.
23014 * sysdeps/riscv/gccframe.h: Likewise.
23015 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
23016 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
23017 * sysdeps/riscv/machine-gmon.h: Likewise.
23018 * sysdeps/riscv/memusage.h: Likewise.
23019 * sysdeps/riscv/setjmp.S: Likewise.
23020 * sysdeps/riscv/sys/asm.h: Likewise.
23021 * sysdeps/riscv/tls-macros.h: Likewise.
23022 * sysdeps/riscv/dl-tls.h: New file.
23023 * sysdeps/riscv/libc-tls.c: Likewise.
23024 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
23025 * sysdeps/riscv/nptl/tls.h: Likewise.
23026 * sysdeps/riscv/stackinfo.h: Likewise.
23027 * sysdeps/riscv/bits/fenv.h: New file.
23028 * sysdeps/riscv/e_sqrtl.c: Likewise.
23029 * sysdeps/riscv/fpu_control.h: Likewise.
23030 * sysdeps/riscv/math-tests.h: Likewise.
23031 * sysdeps/riscv/nofpu/Implies: Likewise.
23032 * sysdeps/riscv/sfp-machine.h: Likewise.
23033 * sysdeps/riscv/tininess.h: Likewise.
23034 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
23035 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
23036 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
23037 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
23038 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
23039 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
23040 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
23041 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
23042 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
23043 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
23044 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
23045 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
23046 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
23047 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
23048 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
23049 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
23050 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
23051 * sysdeps/riscv/rvd/s_finite.c: Likewise.
23052 * sysdeps/riscv/rvd/s_fma.c: Likewise.
23053 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
23054 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
23055 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
23056 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
23057 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
23058 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
23059 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
23060 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
23061 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
23062 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
23063 * sysdeps/riscv/rvf/fegetround.c: Likewise.
23064 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
23065 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
23066 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
23067 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
23068 * sysdeps/riscv/rvf/fesetround.c: Likewise.
23069 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
23070 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
23071 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
23072 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
23073 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
23074 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
23075 * sysdeps/riscv/rvf/math_private.h: Likewise.
23076 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
23077 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
23078 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
23079 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
23080 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
23081 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
23082 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
23083 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
23084 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
23085 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
23086 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
23087 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
23088 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
23089 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
23090 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
23091 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
23092 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
23093 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
23094 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
23095 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
23096 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
23097 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
23098 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
23099 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
23100 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
23101 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
23102 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
23103 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
23104 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
23105 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
23106 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
23107 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
23108 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
23109 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
23110 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
23111 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
23112 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
23113 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
23114 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
23115 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
23116 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
23117 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
23118 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
23119 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
23120 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
23121 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
23122 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
23123 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
23124 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
23125 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
23126 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
23127 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
23128 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
23129 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
23130 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
23131 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
23132 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
23133 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
23134 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
23135 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
23136 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
23137 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
23138 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
23139 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
23140 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
23141 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
23142 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
23143 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
23144 * sysdeps/riscv/Implies: New file.
23145 * sysdeps/riscv/Makefile: Likewise.
23146 * sysdeps/riscv/configure: Likewise.
23147 * sysdeps/riscv/configure.ac: Likewise.
23148 * sysdeps/riscv/nptl/Makefile: Likewise.
23149 * sysdeps/riscv/preconfigure: Likewise.
23150 * sysdeps/riscv/rv64/Implies-after: Likewise.
23151 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
23152 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
23153 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
23154 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
23155 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
23156 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
23157 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
23158 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
23159 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
23160 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
23161 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
23162 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
23163 (Config): Likewise.
23164
23165 2018-01-29 Florian Weimer <fweimer@redhat.com>
23166
23167 [BZ #22701]
23168 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
23169 libnsl_hidden_proto.
23170 * include/rpcsvc/yp.h (yp_xdrall): Declare with
23171 libnsl_hidden_proto.
23172 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
23173 * nis/Makefile (libnsl-routines): Add nss-default only for
23174 build-obsolete-nsl.
23175 * nis/nis_defaults.c (__nis_default_ttl): Add
23176 libnsl_hidden_nolink_def.
23177 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
23178 declaration.
23179 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
23180 * nis/ypclnt.c (yp_maplist): Likewise.
23181
23182 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
23183
23184 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
23185 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
23186
23187 2018-01-29 Joseph Myers <joseph@codesourcery.com>
23188
23189 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
23190 clean -dxfq for git updates when replacing sources.
23191
23192 * scripts/build-many-glibcs.py (Config.build_gcc): Use
23193 --disable-libcilkrts unconditionally, not just for the final GCC
23194 build for Hurd.
23195
23196 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
23197 version to 4.15.
23198
23199 2018-01-29 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
23200
23201 [BZ #10871]
23202 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
23203 case).
23204
23205 2018-01-29 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
23206
23207 [BZ #10871]
23208 * localedata/locales/be_BY (mon): Rename to...
23209 (alt_mon): This, then synchronize with CLDR (nominative case).
23210 (abmon): Rename to...
23211 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
23212 (mon): Import from CLDR (genitive case).
23213 (abmon): Likewise.
23214 * localedata/locales/be_BY@latin (mon): Rename to...
23215 (alt_mon): This.
23216 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
23217
23218 * localedata/locales/be_BY@latin (lang_name): Reworded to
23219 "bieƂaruskaja mova".
23220
23221 2018-01-29 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
23222
23223 [BZ #10871]
23224 * localedata/locales/el_CY (mon): Renamed to...
23225 (alt_mon): This.
23226 (mon): Import from CLDR (genitive case).
23227 * localedata/locales/el_GR: Likewise.
23228
23229 2018-01-29 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
23230
23231 [BZ #10871]
23232 * localedata/locales/ru_RU (mon): Rename to...
23233 (alt_mon): This.
23234 (abmon): Rename to...
23235 (ab_alt_mon): This.
23236 (mon): Import from CLDR (genitive case).
23237 (abmon): Copy from the old content except the 5th month which is
23238 now in the genitive case, even when abbreviated.
23239 * localedata/locales/ru_UA: Likewise.
23240 * time/tst-strptime.c (day_tests): Add an actual example of
23241 a difference between %b and %Ob in Russian.
23242
23243 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
23244
23245 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
23246 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
23247 a `c' variable.
23248 * resolv/res-close.c: Include <stdlib.h>.
23249 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
23250 <sys/wait.h>, <time.h>, <sys/uio.h>.
23251 (NOT_CANCEL_H): Add inclusion guard.
23252 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
23253 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
23254 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
23255 return 0.
23256 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
23257 vm_address_t * to ElfW(Addr) * for dl_main parameter.
23258 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
23259 instead of void *.
23260 * sysdeps/pthread/timer_create.c (timer_create): Do not use
23261 timer_ptr2id to cast struct timer_node * to void *.
23262 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
23263 --disable-libcilkrts to gcc configure.
23264 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
23265 and make them the default for now.
23266 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
23267 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
23268 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
23269 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
23270 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
23271 MACH_IPC_COMPAT.
23272 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
23273 __task_terminate would ever return successfully.
23274 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
23275 to global scope.
23276 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
23277 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
23278 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
23279 critical section to make code simpler and avoid warning.
23280 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
23281 critical section to make code simpler and avoid warning.
23282 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
23283 const char * instead of char *.
23284 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
23285 __hurd_file_name_split, hurd_file_name_split,
23286 __hurd_directory_name_split, hurd_directory_name_split,
23287 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
23288 hurd_file_name_path_lookup): Make lookup function parameter take a
23289 const char *name instead of char *name.
23290 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
23291 __hurd_directory_name_split): Likewise.
23292 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
23293 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
23294 * sysdeps/mach/hurd/check_native.c: New file.
23295 * sysdeps/mach/hurd/check_pf.c: New file.
23296 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
23297 (__freeifaddrs): Define macro to freeifaddrs.
23298 * sysdeps/mach/hurd/libhurduser.abilist: New file.
23299 * sysdeps/mach/libmachuser.abilist: New file.
23300 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
23301 (do_test_bz20181): Rename accordingly.
23302 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
23303 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
23304 <sys/mount.h>.
23305 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
23306 version only if __USE_EXTERN_INLINES is defined.
23307 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
23308 __hurd_sockfail): Likewise.
23309 (_hurd_fd_get): Always declare functions, and provide inline versions
23310 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
23311 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
23312 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
23313 _hurd_port_set): Always declare functions, and provide inline versions
23314 only if __USE_EXTERN_INLINES and _LIBC are defined and
23315 IS_IN(libc).
23316 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
23317 _hurd_critical_section_unlock): Likewise.
23318 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
23319 * __hurd_threadvar_location): Likewise.
23320 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
23321 _hurd_userlink_clear): Likewise.
23322 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
23323 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
23324 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
23325 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
23326 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
23327 __spin_lock_locked): Likewise.
23328 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
23329 __spin_lock_locked): Likewise.
23330 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
23331 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
23332 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
23333 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
23334 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
23335 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
23336 _POSIX_NO_TRUNC): Define to 0.
23337 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
23338 check size against PTHREAD_STACK_MIN.
23339 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
23340 IS_IN(libpthread)]: Include <sigsetops.h>.
23341 * mach/Makefile (user-interfaces): Add mach/gnumach.
23342 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
23343 * sysdeps/mach/configure (mach_interface_list): Regenerate.
23344 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
23345 instead of invalid -1.
23346 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
23347 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
23348 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
23349 <net/ppp_defs.h>.
23350
23351 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
23352
23353 * hurd/fcntl-internal.h: New file.
23354
23355 2018-01-27 James Clarke <jrtc27@jrtc27.com>
23356
23357 * sysdeps/hppa/fpu/libm-test-ulps: Update.
23358
23359 * sysdeps/alpha/fpu/libm-test-ulps: Update.
23360
23361 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
23362
23363 [BZ #22701]
23364 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
23365 Build only shared objects.
23366
23367 2018-01-26 Carlos O'Donell <carlos@redhat.com>
23368
23369 * README: Update for hppa.
23370
23371 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23372
23373 * sysdeps/sparc/fpu/libm-test-ulps: Update
23374 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
23375
23376 2018-01-26 Carlos O'Donell <carlos@redhat.com>
23377
23378 Revert:
23379
23380 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23381
23382 [BZ #22563]
23383 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23384 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23385 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23386 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23387 to feature_1.
23388
23389 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23390
23391 [BZ #22563]
23392 * bits/types/__cancel_jmp_buf_tag.h: New file.
23393 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23394 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23395 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23396 * nptl/Makefile (headers): Add
23397 bits/types/__cancel_jmp_buf_tag.h.
23398 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23399 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23400 * sysdeps/nptl/pthread.h: Include
23401 <bits/types/__cancel_jmp_buf_tag.h>.
23402 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23403 __cancel_jmp_buf.
23404 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23405
23406 2018-01-25 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
23407
23408 [BZ #10871]
23409 * localedata/locales/uk_UA (mon): Renamed to...
23410 (alt_mon): This.
23411 (alt_digits): "0" removed and then renamed to...
23412 (mon): This.
23413 (date_fmt): Definition changed not to use the alternative
23414 digits hack.
23415
23416 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
23417
23418 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
23419 FLAG_RISCV_FLOAT_ABI_DOUBLE.
23420 * elf/elf.h (EF_RISCV_RVC): New define.
23421 (EF_RISCV_FLOAT_ABI): Likewise.
23422 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
23423 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
23424 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
23425 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
23426 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
23427 define.
23428 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
23429
23430 2018-01-25 Andreas Schwab <schwab@suse.de>
23431
23432 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
23433 single quotes.
23434 * sysdeps/gnu/configure: Regenerate.
23435 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
23436 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
23437 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
23438 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
23439 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
23440 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
23441 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
23442 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
23443
23444 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
23445
23446 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
23447 URL, and run autoconf, make it the default for now.
23448
23449 2018-01-24 Joseph Myers <joseph@codesourcery.com>
23450
23451 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23452 soft-float ColdFire configuration.
23453
23454 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
23455 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
23456 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
23457
23458 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
23459 MicroBlaze file.
23460
23461 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
23462 ....
23463 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
23464 ... here.
23465 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
23466 New file.
23467
23468 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
23469 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
23470 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
23471 file.
23472
23473 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
23474
23475 [BZ #22742]
23476 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
23477 Rename to __reserved and add comment.
23478 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
23479 Rename to __reserved.
23480
23481 2018-01-24 Joseph Myers <joseph@codesourcery.com>
23482
23483 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23484 i686-gnu configurations.
23485 (Context.run_builds): Include mig, gnumach and hurd in components
23486 considered.
23487 (Context.checkout): Add mig, gnumach and hurd to components.
23488 (Context.checkout_tar): Add URL mappings for mig, gnumach and
23489 hurd.
23490 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
23491 (Config.build): Install gnumach headers, build mig and install
23492 hurd headers for 'gnu' OS.
23493 (Config.install_gnumach_headers): New function.
23494 (Config.install_hurd_headers): Likewise.
23495 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
23496 when building for 'gnu' OS.
23497
23498 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
23499
23500 * manual/tunables.texi (Hardware Capability Tunables): Fix
23501 spelling.
23502
23503 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
23504
23505 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
23506 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
23507 (ALTMON_11, ALTMON_12): Improve documentation.
23508 * manual/time.texi (strftime): Likewise.
23509
23510 2018-01-22 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
23511
23512 [BZ #10871]
23513 * localedata/locales/pl_PL: Alternative month names added,
23514 primary month names are genitive now.
23515 * time/tst-strptime.c (day_tests): Actually use a genitive case
23516 of a month name in Polish language.
23517
23518 2018-01-22 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
23519
23520 [BZ #10871]
23521 * manual/locale.texi: Document ALTMON_1..12 constants for
23522 nl_langinfo. Specify when to use ALTMON instead of MON.
23523 * manual/time.texi (strftime, strptime): Document GNU extension
23524 permitting O modifier with %B and %b. Specify when to use
23525 %OB instead of %B.
23526
23527 2018-01-22 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
23528
23529 [BZ #10871]
23530 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
23531 names, define them as the same as abbreviated month names explicitly.
23532 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
23533 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
23534 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
23535 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
23536 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
23537 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
23538 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
23539 _NL_WABALTMON_12): New enum constants.
23540 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
23541 wab_alt_mon, and ab_alt_mon_defined members.
23542 (time_output): Output ab_alt_mon and wab_alt_mon members.
23543 (time_read): Read them, initialize them as copies of abmon and wabmon
23544 respectively if they are missing, initialize ab_alt_mon_defined.
23545 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
23546 * locale/programs/locfile-kw.h: Regenerate.
23547 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
23548 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
23549 and ru_RU.UTF-8.
23550 * time/strftime_l.c (a_altmonth, aam_len): New macros.
23551 [!COMPILE_WIDE] (ABALTMON_1): New macro.
23552 (__strftime_internal): Handle %Ob and %Oh formats.
23553 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
23554 (__strptime_internal): Handle %Ob and %Oh formats.
23555 * time/tst-strptime.c (day_tests): Add more tests to parse different
23556 forms of month names including the new %Ob format specifier.
23557
23558 2018-01-22 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
23559
23560 [BZ #10871]
23561 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
23562 define them as the same as primary full month names explicitly.
23563 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
23564 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
23565 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
23566 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
23567 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
23568 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
23569 _NL_WALTMON_12): New enum constants.
23570 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
23571 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
23572 macros.
23573 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
23574 walt_mon, and alt_mon_defined members.
23575 (time_output): Output alt_mon and walt_mon members.
23576 (time_read): Read them, initialize them as copies of mon and wmon
23577 respectively if they are missing, initialize alt_mon_defined.
23578 * locale/programs/locfile-kw.gperf (alt_mon): Define.
23579 * locale/programs/locfile-kw.h: Regenerate.
23580 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
23581 * localedata/tst-langinfo.c (map): Add tests for the new constants
23582 ALTMON_1 .. ALTMON_12.
23583 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
23584 and pl_PL.UTF-8.
23585 * time/strftime_l.c (f_altmonth): New macro.
23586 (__strftime_internal): Handle %OB format.
23587 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
23588 (__strptime_internal): Handle %OB format.
23589 * time/tst-strptime.c (day_tests): Add tests to parse different forms
23590 of month names including the new %OB format specifier.
23591
23592 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23593
23594 [BZ #22685]
23595 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
23596 from ABORT_TRANSACTION.
23597 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
23598 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
23599 ABORT_TRANSACTION_IMPL): Likewise.
23600 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
23601 Linux code, but remove the code that aborts transactions.
23602
23603 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
23604
23605 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
23606
23607 2018-01-19 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
23608
23609 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
23610 in date: "2004-14-09" should be "2004-09-14".
23611 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
23612 "2003-15-09" should be "2003-09-15".
23613
23614 2018-01-18 Arjun Shankar <arjun@redhat.com>
23615
23616 [BZ #22343]
23617 [BZ #22774]
23618 CVE-2018-6485
23619 CVE-2018-6551
23620 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
23621 after padding.
23622 (_int_memalign): check for integer overflow before calling
23623 _int_malloc.
23624 * malloc/tst-malloc-too-large.c: New test.
23625 * malloc/Makefile: Add tst-malloc-too-large.
23626
23627 2018-01-18 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
23628
23629 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
23630 in date: "2017-24-07" should be "2017-07-24".
23631 * localedata/locales/mai_IN: Likewise.
23632 * localedata/locales/mai_NP: Likewise.
23633
23634 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
23635
23636 * po/ru.po: Update translations.
23637
23638 2018-01-17 Joseph Myers <joseph@codesourcery.com>
23639
23640 [BZ #22719]
23641 * sysdeps/hppa/backtrace.c: New file.
23642
23643 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
23644
23645 [BZ #22715]
23646 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
23647 align La_x86_64_retval to VEC_SIZE.
23648
23649 2018-01-16 Joseph Myers <joseph@codesourcery.com>
23650
23651 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
23652 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
23653
23654 2018-01-16 Florian Weimer <fweimer@redhat.com>
23655
23656 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
23657 Move tst-thread-exit-clobber ...
23658 [$(CXX)] (tests-unsupported): ... to here.
23659
23660 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
23661
23662 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
23663 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
23664 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
23665 (_dl_aarch64_cap_flags): Update.
23666 (_DL_HWCAP_COUNT): Update.
23667
23668 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
23669
23670 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
23671 (_DL_HWCAP_LAST): Remove.
23672 (_DL_HWCAP_COUNT): Move to ...
23673 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
23674 (_DL_HWCAP_COUNT): ... here.
23675
23676 2018-01-16 Florian Weimer <fweimer@redhat.com>
23677
23678 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
23679 mode with GNU extensions.
23680
23681 2018-01-15 Alan Hayward <alan.hayward@arm.com>
23682
23683 * elf/elf.h (NT_ARM_SVE): Define.
23684
23685 2018-01-15 Florian Weimer <fweimer@redhat.com>
23686
23687 [BZ #22636]
23688 * nptl/tst-minstack-throw.cc: New file.
23689 * nptl/Makefile (tests): Add tst-minstack-throw.
23690 (LDLIBS-tst-minstack-throw): Link with libstdc++.
23691 [!CXX] (tests-unsupported): Add tst-minstack-throw.
23692
23693 2018-01-15 Joseph Myers <joseph@codesourcery.com>
23694
23695 * scripts/build-many-glibcs.py (Context.checkout): Default
23696 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
23697 version to 1.1.0.
23698
23699 2018-01-13 Carlos O'Donell <carlos@redhat.com>
23700
23701 [BZ #22707]
23702 * elf/elf.h (DF_1_STUB): Define.
23703 (DF_1_PIE): Define.
23704
23705 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23706
23707 [BZ #22697]
23708 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
23709 Do not add 0.5 to integer or out-of-range arguments.
23710
23711 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23712
23713 * po/bg.po: Update translations.
23714 * po/cs.po: Likewise.
23715 * po/de.po: Likewise.
23716 * po/ko.po: Likewise.
23717 * po/pl.po: Likewise.
23718 * po/sv.po: Likewise.
23719 * po/uk.po: Likewise.
23720 * po/vi.po: Likewise.
23721
23722 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
23723
23724 * aarch64/start.S (_start): Use __wrap_main.
23725 (__wrap_main): New local symbol.
23726
23727 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23728
23729 [BZ #22679]
23730 CVE-2018-1000001
23731 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
23732 generic_getcwd if the path returned by getcwd syscall is not absolute.
23733 * io/tst-getcwd-abspath.c: New test.
23734 * io/Makefile (tests): Add tst-getcwd-abspath.
23735
23736 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
23737
23738 * malloc/malloc.c (malloc_consolidate): Add size check.
23739
23740 2018-01-12 Florian Weimer <fweimer@redhat.com>
23741
23742 * support/write_message.c (write_message): Preserve errno.
23743 * support/check.c (print_failure): Likewise.
23744 * support/support_test_verify_impl.c (support_test_verify_impl):
23745 Likewise.
23746 * support/support_test_compare_failure.c
23747 (support_test_compare_failure): Likewise.
23748
23749 2018-01-12 Florian Weimer <fweimer@redhat.com>
23750
23751 [BZ #22701]
23752 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
23753 Prevent installation of libnsl.so.
23754 (libnsl-inhibit-o): Do not build (or install) static libraries.
23755
23756 2018-01-12 Egmont Koblinger <egmont@gmail.com>
23757
23758 [BZ #22657]
23759 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
23760 before the day number which may produce a double space.
23761 (date_fmt): Likewise.
23762
23763 2018-01-12 Joseph Myers <joseph@codesourcery.com>
23764
23765 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
23766 instead of fegetenv.
23767
23768 2018-01-11 Joseph Myers <joseph@codesourcery.com>
23769
23770 [BZ #22702]
23771 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
23772 comment to say exceptions are discarded.
23773 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
23774 __fegetenv.
23775 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
23776 be enabled.
23777
23778 2018-01-11 Florian Weimer <fweimer@redhat.com>
23779
23780 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
23781 and error message.
23782
23783 2018-01-11 Florian Weimer <fweimer@redhat.com>
23784
23785 [BZ #22636]
23786 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
23787 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
23788
23789 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23790
23791 [BZ #22693]
23792 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
23793 negative arguments in test for NaN or infinity argument.
23794
23795 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
23796
23797 * po/libc.pot: Regenerate.
23798
23799 2018-01-10 Florian Weimer <fweimer@redhat.com>
23800
23801 [BZ #22636]
23802 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
23803 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
23804
23805 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
23806
23807 * hurd/hurd/fd.h: Include <fcntl.h>
23808 (__hurd_at_flags): New function.
23809 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
23810 with call to __hurd_at_flags.
23811 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
23812 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
23813 __faccessat
23814 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
23815 (__access_noerrno): Use __faccessat_common instead of access_common.
23816 (__access): Likewise.
23817 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
23818 with a call to __faccessat.
23819 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
23820 (__faccessat_common): ... this. Move implementation of __access into it when
23821 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
23822 reauthenticate_cwdir_at helper to implement AT mechanism.
23823 (__faccessat_noerrno): New function, just calls __faccessat_common.
23824 (__faccessat): New function, just calls __faccessat_common.
23825 (faccessat): Define weak alias.
23826
23827 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23828
23829 [BZ #22691]
23830 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23831 (CFLAGS-s_fmaxmagl.c): New variable.
23832 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
23833
23834 [BZ #22690]
23835 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
23836 long int for arguments of possibly overflowing addition or
23837 subtraction.
23838 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
23839
23840 2018-01-09 Joseph Myers <joseph@codesourcery.com>
23841
23842 [BZ #22688]
23843 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23844 (CFLAGS-e_remainderl.c): New variable.
23845
23846 [BZ #22687]
23847 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
23848 variable.
23849 (CFLAGS-s_cacoshl.c): Likewise.
23850 (CFLAGS-s_casinhl.c): Likewise.
23851 (CFLAGS-s_catanl.c): Likewise.
23852 (CFLAGS-s_catanhl.c): Likewise.
23853 (CFLAGS-s_cexpl.c): Likewise.
23854 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
23855 (CFLAGS-s_csinhl.c): Likewise.
23856 (CFLAGS-s_clogl.c): Likewise.
23857 (CFLAGS-s_clog10l.c): Likewise.
23858 (CFLAGS-s_csinl.c): Likewise.
23859 (CFLAGS-s_csqrtl.c): Likewise.
23860
23861 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
23862 2017-01-09 Svante Signell <svante.signell@gmail.com>
23863
23864 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
23865 (_hurd_exec_paths): New function.
23866 * hurd/hurd.h (_hurd_exec): Deprecate function.
23867 (_hurd_exec_paths): Declare function.
23868 * hurd/Versions: Export _hurd_exec_paths.
23869 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
23870 (__execve): Use __getcwd to build absolute path, and use
23871 _hurd_exec_paths instead of _hurd_exec.
23872 * sysdeps/mach/hurd/spawni.c: Likewise.
23873 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
23874 _hurd_exec.
23875
23876 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
23877
23878 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
23879 test instead of failing in case of ENOENT returned by posix_openpt.
23880
23881 2018-01-08 Florian Weimer <fweimer@redhat.com>
23882
23883 resolv: Support binary labels in test framework.
23884 * support/resolv_test.c (struct to_be_freed): Remove.
23885 (struct compressed_name): New.
23886 (allocate_compressed_name, ascii_tolower)
23887 (compare_compressed_name): New functions.
23888 (struct resolv_response_builder): Update type of
23889 compression_offsets for use with tsearch. Rempve to_be_freed.
23890 (response_push_pointer_to_free): Remove function.
23891 (resolv_response_add_name): Rewrite using struct compressed_name
23892 and tsearch instead of hsearch_r.
23893 (response_builder_allocate): Remove initialization of
23894 compression_offsets.
23895 (response_builder_free): Update for removal of to_be_freed. Use
23896 tdestroy instead of hdestroy_r.
23897 * resolv/Makefile (tests): Add tst-resolv-binary.
23898 (tst-resolv-binary): Link with -lresolv -lpthread.
23899
23900 2018-01-08 Florian Weimer <fweimer@redhat.com>
23901
23902 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
23903 time. Pass positive flag instead of negative flag to
23904 support_test_compare_failure.
23905 (support_test_compare_failure): Change negative parameter to
23906 positive.
23907 * support/support_test_compare_failure.c (report)
23908 (support_test_compare_failure): Likewise.
23909 * support/tst-test_compare.c (return_ssize_t, return_int): New.
23910 (do_test): Check int/size_t, ssize_t/size_t comparisons.
23911
23912 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23913
23914 [BZ #22637]
23915 * nptl/descr.h (stackblock, stackblock_size): Update comments.
23916 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
23917 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
23918 stacksize.
23919 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23920
23921 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
23922
23923 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23924 Add s_sincosf-sse2 and s_sincosf-fma.
23925 (CFLAGS-s_sincosf-fma.c): New.
23926 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23927 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23928 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23929 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23930 __sincosf is defined.
23931
23932 2018-01-08 Florian Weimer <fweimer@redhat.com>
23933
23934 * nptl/tst-thread-exit-clobber.cc: New file.
23935 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23936 C++11 mode.
23937 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23938 (tests): Add tst-thread-exit-clobber.
23939 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23940
23941 2018-01-08 Florian Weimer <fweimer@redhat.com>
23942
23943 * support/check.h (support_static_assert): Define.
23944 (TEST_COMPARE): Use it.
23945
23946 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
23947
23948 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23949 [!__RLIM_T_MATCHES_RLIM64_T]
23950 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23951 __getrlimit64. Add libc_hidden_weak.
23952
23953 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
23954
23955 * elf/elf.h (R_RISCV_NONE): New define.
23956 (R_RISCV_32): Likewise.
23957 (R_RISCV_64): Likewise.
23958 (R_RISCV_RELATIVE): Likewise.
23959 (R_RISCV_COPY): Likewise.
23960 (R_RISCV_JUMP_SLOT): Likewise.
23961 (R_RISCV_TLS_DTPMOD32): Likewise.
23962 (R_RISCV_TLS_DTPMOD64): Likewise.
23963 (R_RISCV_TLS_DTPREL32): Likewise.
23964 (R_RISCV_TLS_DTPREL64): Likewise.
23965 (R_RISCV_TLS_TPREL32): Likewise.
23966 (R_RISCV_TLS_TPREL64): Likewise.
23967 * Makerules (make-link-multidir): Make directories before linking into
23968 them.
23969 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23970 define.
23971 (VDSO_HASH_LINUX_4_15): Likewise.
23972 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23973 in subdirectories of lib.
23974 * nptl/Makefile (/librt.so): Always depend on
23975 "$(shared-thread-library)".
23976
23977 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
23978
23979 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
23980 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23981 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23982 (___tls_get_addr).
23983 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
23984 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23985 "-O2 -march=i686".
23986 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
23987 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23988 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23989 * sysdeps/gnu/glob-lstat-compat.c: New file.
23990 * sysdeps/gnu/glob64-lstat-compat.c: New file.
23991 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
23992
23993 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23994
23995 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
23996 Reserve 16 chars to reloc_addr before calling _itoa_word.
23997
23998 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23999
24000 [BZ #22678]
24001 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
24002 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
24003
24004 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
24005 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
24006
24007 * resource/tst-getrlimit.c: Add copyright header.
24008
24009 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
24010 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24011
24012 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
24013 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
24014 Define __GI_getrlimit64 as weak alias of __getrlimit64.
24015 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
24016 instead.
24017 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
24018 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
24019 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
24020 RLIM64_INFINITY): Fix values to match the kernel ones.
24021 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
24022 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
24023 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
24024 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
24025 getrlimit64@@GLIBC_2_27.
24026 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
24027 and setrlimit64.
24028 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
24029 getrlimit, setrlimit, getrlimit64 and setrlimit64.
24030 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
24031 setrlimit, getrlimit64 and setrlimit64.
24032
24033 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
24034
24035 [BZ #22648]
24036 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
24037 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
24038
24039 2018-01-04 Joseph Myers <joseph@codesourcery.com>
24040
24041 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
24042 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
24043 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
24044
24045 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24046
24047 [BZ #15479]
24048 [BZ #22666]
24049 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
24050 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
24051
24052 [BZ #15479]
24053 [BZ #22665]
24054 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
24055 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
24056 * sysdeps/alpha/fpu/s_floor.c: Likewise.
24057 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
24058
24059 2018-01-04 Florian Weimer <fweimer@redhat.com>
24060
24061 [BZ #22667]
24062 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
24063 Align the stack before calling exit.
24064 * stdlib/tst-makecontext-align.c: New file.
24065 * stdlib/Makefile (tests): Add tst-makecontext-align.
24066
24067 2018-01-04 Florian Weimer <fweimer@redhat.com>
24068
24069 Add support for calling dlvsym from libc.so.
24070 * include/dlfcn.h (__libc_dlvsym): Declare.
24071 * elf/Makefile (tests-static-internal): Add
24072 tst-libc_dlvsym-static.
24073 (tests-internal): Add tst-libc_dlvsym.
24074 (modules-names): Add tst-libc_dlvsym-dso.
24075 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
24076 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
24077 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
24078 object tst-libc_dlvsym-dso.so needs to be built before running
24079 these tests.
24080 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
24081 * elf/Versions: Export __libc_dlvsym.
24082 * elf/dl-libc.c (struct do_dlvsym_args): New.
24083 (do_dlvsym, __libc_dlvsym): New functions.
24084 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
24085 (_dl_open_hook2): New variable.
24086 (__libc_register_dl_open_hook): Set it.
24087 * elf/tst-libc_dlvsym-dso.c: New file.
24088 * elf/tst-libc_dlvsym-static.c: Likewise.
24089 * elf/tst-libc_dlvsym.c: Likewise.
24090 * elf/tst-libc_dlvsym.h: Likewise.
24091
24092 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
24093
24094 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
24095 include <sys/mount.h>.
24096
24097 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
24098
24099 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
24100 Add __NO_MATH_ERRNO__ check.
24101
24102 2018-01-02 Joseph Myers <joseph@codesourcery.com>
24103
24104 * sysdeps/mips/mips32/libm-test-ulps: Update.
24105 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
24106
24107 2018-01-02 Florian Weimer <fweimer@redhat.com>
24108
24109 * misc/tst-pselect.c: Add copyright header.
24110
24111 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
24112
24113 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
24114 comment.
24115 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
24116 comment.
24117 (settrlimit): Rename into setrlimit.
24118 (__sttrlimit): Rename into __setrlimit.
24119
24120 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
24121 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
24122 never defined in that case.
24123
24124 2018-01-02 Joseph Myers <joseph@codesourcery.com>
24125
24126 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
24127
24128 * sysdeps/arm/libm-test-ulps: Update.
24129
24130 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
24131 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
24132
24133 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24134
24135 * NEWS: Add cosf and sincosf to list of optimized functions.
24136
24137 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
24138
24139 [BZ #22660]
24140 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
24141 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
24142 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
24143 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
24144
24145 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
24146
24147 [BZ #22433]
24148 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
24149
24150 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
24151 making a copy of it.
24152
24153 2018-01-01 Joseph Myers <joseph@codesourcery.com>
24154
24155 * manual/texinfo.tex: Update to version 2017-12-26.21 with
24156 trailing whitespace removed.
24157 * scripts/config.guess: Update to version 2018-01-01.
24158 * scripts/config.sub: Update to version 2018-01-01.
24159 * scripts/move-if-change: Update from gnulib.
24160
24161 * NEWS: Update copyright dates.
24162 * catgets/gencat.c (print_version): Likewise.
24163 * csu/version.c (banner): Likewise.
24164 * debug/catchsegv.sh: Likewise.
24165 * debug/pcprofiledump.c (print_version): Likewise.
24166 * debug/xtrace.sh (do_version): Likewise.
24167 * elf/ldconfig.c (print_version): Likewise.
24168 * elf/ldd.bash.in: Likewise.
24169 * elf/pldd.c (print_version): Likewise.
24170 * elf/sotruss.sh: Likewise.
24171 * elf/sprof.c (print_version): Likewise.
24172 * iconv/iconv_prog.c (print_version): Likewise.
24173 * iconv/iconvconfig.c (print_version): Likewise.
24174 * locale/programs/locale.c (print_version): Likewise.
24175 * locale/programs/localedef.c (print_version): Likewise.
24176 * login/programs/pt_chown.c (print_version): Likewise.
24177 * malloc/memusage.sh (do_version): Likewise.
24178 * malloc/memusagestat.c (print_version): Likewise.
24179 * malloc/mtrace.pl: Likewise.
24180 * manual/libc.texinfo: Likewise.
24181 * nptl/version.c (banner): Likewise.
24182 * nscd/nscd.c (print_version): Likewise.
24183 * nss/getent.c (print_version): Likewise.
24184 * nss/makedb.c (print_version): Likewise.
24185 * posix/getconf.c (main): Likewise.
24186 * scripts/test-installation.pl: Likewise.
24187 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
24188
24189 * All files with FSF copyright notices: Update copyright dates
24190 using scripts/update-copyrights.
24191 * locale/programs/charmap-kw.h: Regenerated.
24192 * locale/programs/locfile-kw.h: Likewise.
24193
24194 2017-12-31 Zack Weinberg <zackw@panix.com>
24195
24196 * libio/bits/libio-ldbl.h: Correct check for improper
24197 inclusion. Add own multiple include guard.
24198
24199 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
24200 Dmitry V. Levin <ldv@altlinux.org>
24201
24202 [BZ #22625]
24203 CVE-2017-16997
24204 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
24205 string token expansion. Check for NULL pointer or empty string possibly
24206 returned by expand_dynamic_string_token.
24207 (decompose_rpath): Check for empty path after dynamic string
24208 token expansion.
24209
24210 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
24211
24212 [BZ #22433]
24213 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
24214
24215 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
24216 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
24217 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
24218 and PTRACE_SYSCALL.
24219 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
24220 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24221 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24222 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24223 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24224 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
24225
24226 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
24227 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
24228 __ptrace_peeksiginfo_flags, ptrace): Move to ...
24229 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
24230 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24231 bits/ptrace-shared.h.
24232 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
24233 <bits/ptrace-shared.h>.
24234 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
24235 __ptrace_peeksiginfo_flags, ptrace): Remove.
24236 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24237 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24238 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24239 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24240 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
24241
24242 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
24243
24244 [BZ #17804]
24245 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
24246 end of the loop. Improve comments.
24247
24248 2017-12-29 Zack Weinberg <zackw@panix.com>
24249
24250 [BZ #22615]
24251 * manual/errno.texi (Checking for Errors): Explicitly say that errno
24252 might be set on success.
24253
24254 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
24255
24256 [BZ #22611]
24257 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
24258 is unchanged on success.
24259
24260 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
24261
24262 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
24263 updated.
24264 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
24265 expand_dynamic_string_token): Likewise.
24266 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
24267 is_path argument.
24268
24269 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
24270 contains ':'.
24271
24272 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
24273 is set and name contains ':', and all code depending on these checks.
24274
24275 2017-12-24 Zack Weinberg <zackw@panix.com>
24276
24277 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
24278 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
24279 respectively.
24280 * libio/libio.h: Rename the original version of this file to
24281 libio/bits/libio.h. Error out if not included by stdio.h or the
24282 stub libio.h.
24283 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
24284 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
24285 if not included by bits/libio.h or the stub _G_config.h.
24286 * sysdeps/unix/sysv/linux/_G_config.h: Move to
24287 sysdeps/unix/sysv/linux/bits. Error out if not included by
24288 bits/libio.h or the stub _G_config.h.
24289 * libio/stdio.h: Include bits/libio.h, not libio.h.
24290 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
24291 well as libio.h and _G_config.h.
24292
24293 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
24294 * libio/strfile.h, stdio-common/vfscanf.c
24295 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
24296 Include stdio.h, not _G_config.h nor libio.h.
24297 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
24298 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
24299
24300 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
24301
24302 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
24303
24304 [BZ #22347]
24305 * stdlib/getrandom.c (getrandom): Fix comment.
24306 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
24307
24308 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
24309
24310 [BZ #21161]
24311 * manual/arith.texi (strtoul): Fix a typo.
24312
24313 [BZ #22596]
24314 * manual/arith.texi (finite): Fix the description of the return
24315 value.
24316
24317 2017-12-22 Eric Blake <ebb9@byu.net>
24318
24319 Avoid gcc warnings on cygwin
24320 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24321 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24322 Avoid unused variable.
24323
24324 2017-12-22 Florian Weimer <fweimer@redhat.com>
24325
24326 * io/Makefile (routines): Add copy_file_range.
24327 (tests): Add tst-copy_file_range.
24328 (tests-static, tests-internal): Add tst-copy_file_range-compat.
24329 * io/Versions (GLIBC_2.27): Export copy_file_range.
24330 * io/copy_file_range-compat.c: New file.
24331 * io/copy_file_range.c: Likewise.
24332 * io/tst-copy_file_range-compat.c: Likewise.
24333 * io/tst-copy_file_range.c: Likewise.
24334 * manual/llio.texi (Copying File Data): New section.
24335 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
24336 * support/Makefile (libsupport-routines): Add support-xfstat,
24337 xftruncate, xlseek.
24338 * support/support-xfstat.c: New file.
24339 * support/xftruncate.c: Likewise.
24340 * support/xlseek.c: Likewise.
24341 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
24342 * sysdeps/unix/sysv/linux/**.abilist: Update.
24343 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
24344
24345 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
24346
24347 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
24348 disable-multi-arch variant to aarch64-linux-gnu.
24349
24350 2017-12-20 Joseph Myers <joseph@codesourcery.com>
24351
24352 * manual/texinfo.tex: Update to version 2017-12-18.20 with
24353 trailing whitespace removed.
24354 * scripts/config.guess: Update to version 2017-12-17.
24355 * scripts/config.sub: Update to version 2017-11-23.
24356 * scripts/install-sh: Update to version 2017-09-23.17.
24357 * scripts/move-if-change: Update to version 2017-09-13 06:45.
24358
24359 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24360
24361 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
24362 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
24363 * sysdeps/tile/_mcount.S (__mcount): Likewise.
24364 * sysdeps/tile/crti.S (_init, _fini): Likewise.
24365 * sysdeps/tile/crtn.S: Likewise.
24366 * sysdeps/tile/dl-start.S (_start): Likewise.
24367 * sysdeps/tile/dl-trampoline.S: Likewise.
24368 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
24369 * sysdeps/tile/start.S (_start): Likewise.
24370 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
24371 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
24372 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
24373 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
24374 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
24375 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
24376 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
24377
24378 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
24379 comment.
24380 * sysdeps/tile/preconfigure: Remove tilegx folder.
24381 * sysdeps/tile/tilegx/Implies: Move definitions to ...
24382 * sysdeps/tile/Implies: ... here.
24383 * sysdeps/tile/tilegx/Makefile: Move rules to ...
24384 * sysdeps/tile/Makefile: ... here.
24385 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
24386 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
24387 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
24388 * sysdeps/tile/bits/wordsize.h: ... here.
24389 * sysdeps/tile/tilegx/*: Move to ...
24390 * sysdeps/tile/*: ... here.
24391 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
24392 * sysdeps/tile/tilegx32/Implies: ... here.
24393 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
24394 * sysdeps/tile/tilegx64/Implies: ... here.
24395 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
24396 to ...
24397 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
24398 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
24399 * sysdeps/unix/sysv/linux/tile/*: ... here.
24400 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
24401 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
24402 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
24403 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
24404
24405 * README: Remove tilepro-*-linux-gnu from supported architecture.
24406 * scripts/build-many-glibcs.py: Likewise.
24407 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
24408 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
24409 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
24410 elf_machine_matches_host, elf_machine_dynamic,
24411 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
24412 howto, elf_machine_rela): Likewise.
24413 * sysdeps/tile/dl-start.S (_start): Likewise.
24414 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
24415 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
24416 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
24417 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
24418 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
24419 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
24420 Likewise.
24421 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
24422 * sysdeps/tile/preconfigure: Likewise.
24423 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
24424 POINTER_CHK_GUARD): Likewise.
24425 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
24426 * sysdeps/tile/start.S (_start): Likewise.
24427 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
24428 Likewise.
24429 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
24430 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
24431 CMOVNEZ): Remove.
24432 * sysdeps/unix/sysv/linux/tile/bits/environments.h
24433 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
24434 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
24435 Likewise.
24436 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
24437 * sysdeps/tile/tilepro/Implies: Remove file.
24438 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
24439 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
24440 * sysdeps/tile/tilepro/memchr.c: Likewise.
24441 * sysdeps/tile/tilepro/memcpy.S: Likewise.
24442 * sysdeps/tile/tilepro/memset.c: Likewise.
24443 * sysdeps/tile/tilepro/memusage.h: Likewise.
24444 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
24445 * sysdeps/tile/tilepro/strchr.c: Likewise.
24446 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
24447 * sysdeps/tile/tilepro/strlen.c: Likewise.
24448 * sysdeps/tile/tilepro/strrchr.c: Likewise.
24449 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
24450 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
24451 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24452 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
24453 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
24454 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
24455 Likewise.
24456 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
24457 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24458 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
24459 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
24460 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24461 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
24462 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
24463 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
24464 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
24465 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
24466 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
24467 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
24468 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
24469 tilepro mention in comment.
24470
24471 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
24472 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
24473 * nptl/pthread_join_common.c: New file: common function used on
24474 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
24475 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
24476 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
24477 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
24478 (cleanup): Move definition to pthread_join_common.c.
24479 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
24480 Remove superflous checks.
24481 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
24482 Likewise.
24483
24484 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
24485
24486 * sysdeps/aarch64/libm-test-ulps: Update.
24487
24488 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24489
24490 * sysdeps/aarch64/memset.S (MEMSET): Define.
24491
24492 2017-12-20 Florian Weimer <fweimer@redhat.com>
24493
24494 [BZ #22635]
24495 nptl: Provide full implementation of pthread_self in libc.so.
24496 * nptl/Makefile (routines): Add pthread_self.
24497 (libpthread-routines): Replace pthread_self with
24498 compat-pthread_self.
24499 * nptl/forward.c (pthread_self): Remove.
24500 * nptl/nptl-init.c (pthread_functions): Do not initialize
24501 ptr_pthread_self.
24502 * nptl/pthread_self.c (pthread_self): Remove weak alias.
24503 * nptl/compat-pthread_self.c: New file.
24504 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
24505 Remove ptr_pthread_self.
24506
24507 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
24508
24509 * posix/regcomp.c: Fix spelling in comments.
24510 * posix/regex.h: Likewise.
24511 * posix/regex_internal.c: Likewise.
24512 * posix/regexec.c: Likewise.
24513
24514 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24515
24516 [BZ #22377]
24517 * math/Makefile [C++] (tests): Add test for iseqsig.
24518 * math/math.h [C++] (iseqsig): New implementation, which does
24519 not rely on __MATH_TG/__builtin_types_compatible_p.
24520 * math/test-math-iseqsig.cc: New file.
24521 * sysdeps/powerpc/powerpc64le/Makefile
24522 (CFLAGS-test-math-iseqsig.cc): New variable.
24523
24524 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
24525
24526 * elf/dl-load.c (is_trusted_path): Remove.
24527 (fillin_rpath): Remove check_trusted argument and its use,
24528 all callers changed.
24529
24530 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24531
24532 [BZ #22630]
24533 * Makeconfig (link-pie-before-libc): Replace -pie with
24534 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
24535 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
24536 (tst-dlopen-aout-no-pie): New.
24537 (LDFLAGS-tst-prelink): Removed.
24538 (tst-prelink-no-pie): New.
24539 (LDFLAGS-tst-main1): Removed.
24540 (tst-main1-no-pie): New.
24541 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
24542 (tst-gmon-no-pie): New.
24543
24544 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24545
24546 * manual/install.texi: Document that --enable-static-pie
24547 implies PIE.
24548 * INSTALL: Regenerated.
24549
24550 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
24551
24552 [BZ #21309]
24553 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
24554 unsigned.
24555
24556 2017-12-19 Joseph Myers <joseph@codesourcery.com>
24557
24558 Revert:
24559
24560 2017-12-19 Joseph Myers <joseph@codesourcery.com>
24561
24562 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24563
24564 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24565
24566 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
24567 <errno.h>. Include "eexp.tbl".
24568 (half): New constant.
24569 (one): Likewise.
24570 (__ieee754_exp): Rewrite.
24571 (__slowexp): Remove prototype.
24572 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
24573 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
24574 * sysdeps/i386/fpu/slowexp.c: Likewise.
24575 * sysdeps/ia64/fpu/slowexp.c: Likewise.
24576 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
24577 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
24578 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24579 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
24580 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
24581 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
24582 comment.
24583 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
24584 (CPPFLAGS-slowexp.c): Remove variable.
24585 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24586 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
24587 (CFLAGS-slowexp-fma.c): Remove variable.
24588 (CFLAGS-slowexp-fma4.c): Likewise.
24589 (CFLAGS-slowexp-avx.c): Likewise.
24590 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
24591 define as macro.
24592 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
24593 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
24594 * math/Makefile (type-double-routines): Remove slowexp.
24595 * manual/probes.texi (slowexp_p6): Remove.
24596 (slowexp_p32): Likewise.
24597
24598 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24599
24600 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
24601 arithmetic.
24602
24603 * lib/glob.c (glob): Do not pass NULL to mempcpy.
24604
24605 2017-12-19 Joseph Myers <joseph@codesourcery.com>
24606
24607 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24608
24609 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24610
24611 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
24612 <errno.h>. Include "eexp.tbl".
24613 (half): New constant.
24614 (one): Likewise.
24615 (__ieee754_exp): Rewrite.
24616 (__slowexp): Remove prototype.
24617 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
24618 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
24619 * sysdeps/i386/fpu/slowexp.c: Likewise.
24620 * sysdeps/ia64/fpu/slowexp.c: Likewise.
24621 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
24622 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
24623 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24624 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
24625 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
24626 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
24627 comment.
24628 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
24629 (CPPFLAGS-slowexp.c): Remove variable.
24630 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24631 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
24632 (CFLAGS-slowexp-fma.c): Remove variable.
24633 (CFLAGS-slowexp-fma4.c): Likewise.
24634 (CFLAGS-slowexp-avx.c): Likewise.
24635 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
24636 define as macro.
24637 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
24638 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
24639 * math/Makefile (type-double-routines): Remove slowexp.
24640 * manual/probes.texi (slowexp_p6): Remove.
24641 (slowexp_p32): Likewise.
24642
24643 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24644 James Clarke <jrtc27@jrtc27.com>
24645
24646 [BZ #22603]
24647 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
24648 addition.
24649
24650 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24651
24652 [BZ #22605]
24653 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
24654 code.
24655
24656 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24657
24658 [BZ #22563]
24659 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
24660 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
24661 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
24662 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
24663 to feature_1.
24664
24665 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24666
24667 [BZ #22563]
24668 * bits/types/__cancel_jmp_buf_tag.h: New file.
24669 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
24670 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
24671 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
24672 * nptl/Makefile (headers): Add
24673 bits/types/__cancel_jmp_buf_tag.h.
24674 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
24675 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
24676 * sysdeps/nptl/pthread.h: Include
24677 <bits/types/__cancel_jmp_buf_tag.h>.
24678 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
24679 __cancel_jmp_buf.
24680 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
24681
24682 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24683
24684 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
24685 --enable-static-pie variants to x86_64, x32 and i686.
24686
24687 2017-12-19 Joseph Myers <joseph@codesourcery.com>
24688
24689 [BZ #22631]
24690 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
24691 argument for attrubutes. All callers changed.
24692 (__inline_mathop1): Likewise. All callers changed.
24693 (__inline_mathop): Likewise. All callers changed.
24694 [__USE_MISC] (scalbn): Use __inline_forward instead of
24695 __inline_forward_c.
24696 [__USE_ISOC99] (scalbln): Likewise.
24697 [__USE_ISOC99] (nearbyint): Likewise.
24698 [__USE_ISOC99] (lrint): Likewise.
24699 [__USE_MISC] (scalbnf): Likewise.
24700 [__USE_ISOC99] (scalblnf): Likewise.
24701 [__USE_ISOC99] (nearbyintf): Likewise.
24702 [__USE_ISOC99] (lrintf): Likewise.
24703 [__USE_MISC] (scalbnl): Likewise.
24704 [__USE_ISOC99] (scalblnl): Likewise.
24705 [__USE_ISOC99] (nearbyintl): Likewise.
24706 [__USE_ISOC99] (lrintl): Likewise.
24707 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
24708 __inline_mathop and __m81_defun changed.
24709
24710 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
24711 CPU or FPU for ARM hard-float configurations.
24712
24713 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24714
24715 * nptl/tst-attr3.c: Include <libc-diag.h>.
24716 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
24717
24718 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
24719
24720 * string/tester.c (test_strncat): Also disable -Warray-bounds
24721 warnings for two tests.
24722
24723 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24724
24725 [BZ #22614]
24726 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
24727 $(cc-pie-default) == yes.
24728 * config.make.in (cc-pie-default): New.
24729 * configure.ac (libc_cv_pie_default): Renamed to ...
24730 (libc_cv_cc_pie_default): This.
24731 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
24732 * configure: Regenerated.
24733
24734 2017-12-18 Florian Weimer <fweimer@redhat.com>
24735
24736 [BZ #20204]
24737 ld.so: Harden dl-libc/libdl hooks.
24738 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
24739 (rtld_active): New function.
24740 * dlfcn/dladdr.c (__dladdr): Call it.
24741 * dlfcn/dladdr1.c (__dladdr1): Likewise.
24742 * dlfcn/dlclose.c (__dlcose): Likewise.
24743 * dlfcn/dlerror.c (__dlerror): Likewise.
24744 * dlfcn/dlinfo.c (__dlinfo): Likewise.
24745 * dlfcn/dlmopen.c (__dlmopen): Likewise.
24746 * dlfcn/dlopen.c (__dlopen): Likewise.
24747 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
24748 * dlfcn/dlsym.c (__dlsym): Likewise.
24749 * dlfcn/dlvsym.c (__dlvsym): Likewise.
24750 * libio/vtables.c (_IO_vtable_check): Likewise.
24751 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
24752 (__libc_dlclose): Likewise.
24753 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
24754 assignment.
24755
24756 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24757
24758 [BZ #22446]
24759 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
24760 buffers for readlink input and output.
24761
24762 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
24763
24764 [BZ #22624]
24765 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
24766 inhibit_stack_protector.
24767
24768 [BZ #22624]
24769 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
24770 inhibit_stack_protector.
24771
24772 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
24773
24774 [BZ #22627]
24775 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
24776 code and invocation.
24777
24778 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
24779
24780 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
24781
24782 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
24783
24784 [BZ #22505]
24785 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
24786
24787 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24788
24789 * sysdeps/s390/fpu/libm-test-ulps: Update.
24790
24791 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24792
24793 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24794
24795 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24796
24797 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
24798 constants to s_sincosf.h file.
24799 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24800 * sysdeps/ieee754/flt-32/s_sincosf.c: New
24801 implementation.
24802 * sysdeps/ieee754/flt-32/s_sincosf.h:
24803 New file.
24804
24805 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24806
24807 [BZ #14681]
24808 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
24809 before mtrace.
24810
24811 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
24812
24813 [BZ #19574]
24814 * INSTALL: Regenerated.
24815 * Makeconfig (real-static-start-installed-name): New.
24816 (pic-default): Updated for --enable-static-pie.
24817 (pie-default): New for --enable-static-pie.
24818 (default-pie-ldflag): Likewise.
24819 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
24820 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
24821 Replace $(static-start-installed-name) with
24822 $(real-static-start-installed-name).
24823 (+prectorT): Updated for --enable-static-pie.
24824 (+postctorT): Likewise.
24825 (CFLAGS-.o): Add $(pie-default).
24826 (CFLAGS-.op): Likewise.
24827 * NEWS: Mention --enable-static-pie.
24828 * config.h.in (ENABLE_STATIC_PIE): New.
24829 * configure.ac (--enable-static-pie): New configure option.
24830 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
24831 (have-static-pie): Likewise.
24832 Enable static PIE if linker supports --no-dynamic-linker.
24833 (ENABLE_STATIC_PIE): New AC_DEFINE.
24834 (enable-static-pie): New LIBC_CONFIG_VAR.
24835 * configure: Regenerated.
24836 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
24837 gr$(start-installed-name) for --enable-static-pie.
24838 (extra-objs): Likewise.
24839 (install-lib): Likewise.
24840 (extra-objs): Add static-reloc.o and static-reloc.os
24841 ($(objpfx)$(start-installed-name)): Also depend on
24842 $(objpfx)static-reloc.o.
24843 ($(objpfx)r$(start-installed-name)): New.
24844 ($(objpfx)g$(start-installed-name)): Also depend on
24845 $(objpfx)static-reloc.os.
24846 ($(objpfx)gr$(start-installed-name)): New.
24847 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
24848 in libc.a.
24849 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
24850 initimage.
24851 * csu/static-reloc.c: New file.
24852 * elf/Makefile (routines): Add dl-reloc-static-pie.
24853 (elide-routines.os): Likewise.
24854 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
24855 (tst-tls1-static-non-pie-no-pie): New.
24856 * elf/dl-reloc-static-pie.c: New file.
24857 * elf/dl-support.c (_dl_get_dl_main_map): New function.
24858 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
24859 STATIC_PIE_BOOTSTRAP.
24860 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
24861 * gmon/Makefile (tests): Add tst-gmon-static-pie.
24862 (tests-static): Likewise.
24863 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
24864 (tst-gmon-static-no-pie): New.
24865 (CFLAGS-tst-gmon-static-pie.c): Likewise.
24866 (CRT-tst-gmon-static-pie): Likewise.
24867 (tst-gmon-static-pie-ENV): Likewise.
24868 (tests-special): Likewise.
24869 ($(objpfx)tst-gmon-static-pie.out): Likewise.
24870 (clean-tst-gmon-static-pie-data): Likewise.
24871 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
24872 * gmon/tst-gmon-static-pie.c: New file.
24873 * manual/install.texi: Document --enable-static-pie.
24874 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
24875 (_dl_get_dl_main_map): Likewise.
24876 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
24877 * sysdeps/x86_64/configure.ac: Likewise.
24878 * sysdeps/i386/configure: Regenerated.
24879 * sysdeps/x86_64/configure: Likewise.
24880 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
24881 (ASFLAGS-.op): Likewise.
24882
24883 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24884
24885 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
24886 * posix/tst-mmap-offset.c (fname): Use /tmp.
24887 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
24888
24889 2017-12-15 Steve Ellcey <sellcey@cavium.com>
24890
24891 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
24892
24893 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
24894
24895 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
24896 errno.
24897
24898 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24899
24900 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
24901 --with-float=hard for arm-linux-gnueabihf configurations.
24902
24903 [BZ #14121]
24904 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
24905 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
24906 ($(mo-installed)): Use $(objpfx)%.mo.
24907 (realclean): Remove rule.
24908
24909 * po/Makefile (linguas): Remove rule and dependencies.
24910 (linguas.mo): Likewise.
24911 (.PHONY): Do not depend on linguas and linguas.mo.
24912 (podir): Remove variable.
24913 (pofiles): Likewise.
24914 [$(pofiles)] (%.po): Remove rule.
24915
24916 * sysdeps/sparc/sparc32/Makefile
24917 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
24918 start-of-line whitespace in argument of echo.
24919 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24920 with whitespace. Generate __wrap_.udiv alias.
24921 * sysdeps/sparc/sparc32/rem.S: Regenerated.
24922 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24923 * sysdeps/sparc/sparc32/udiv.S: Likewise.
24924 * sysdeps/sparc/sparc32/urem.S: Likewise.
24925
24926 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24927
24928 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24929 for aligned inputs.
24930
24931 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24932
24933 * benchtests/bench-strcmp.c: Print output in JSON format.
24934
24935 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24936
24937 2017-12-14 Florian Weimer <fweimer@redhat.com>
24938
24939 [BZ #22607]
24940 CVE-2017-1000409
24941 * elf/dl-load.c (_dl_init_paths): Compute number of components in
24942 the expanded path string.
24943
24944 2017-12-14 Florian Weimer <fweimer@redhat.com>
24945
24946 [BZ #22606]
24947 CVE-2017-1000408
24948 * elf/dl-load.c (system_dirs): Update comment.
24949 (nsystem_dirs_len): Use array_length.
24950 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24951
24952 2017-12-14 Florian Weimer <fweimer@redhat.com>
24953
24954 Simplify compiling most of support/ outside of glibc.
24955 * support/check_addrinfo.c: Include <string.h>.
24956 * support/check_dns_packet.c: Likewise.
24957 * support/check_hostent.c: Likewise.
24958 * support/support_can_chroot.c: Include <support/xunistd.h>.
24959 * support/support_format_addrinfo.c: Include <stdlib.h>
24960 * support/support_format_dns_packet.c: Include <stdbool.h>.
24961 * support/support_format_hostent.c: Include <stdlib.h>.
24962 * support/support_format_netent.c: Likewise.
24963 * support/support_write_string.c: Include <support/xunistd.h>.
24964 * support/xdlfcn.c: Include <stddef.h>.
24965
24966 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
24967
24968 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24969
24970 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24971 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24972
24973 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24974 (sysdeps_routines): Add memset-niagara7.
24975 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24976 Likewise.
24977 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24978 file.
24979 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24980 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24981 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24982 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24983 Add niagara7 option.
24984 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24985 memset.
24986
24987 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24988 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24989 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24990 Likewise.
24991 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24992 New file.
24993 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24994 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24995 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24996 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
24997 and __memmove_niagara7.
24998 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
24999 Add niagara7 option.
25000 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
25001 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
25002 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
25003 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
25004 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
25005
25006 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
25007
25008 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
25009 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
25010 * sysdeps/sparc/sparc64/memmove.S: Likewise.
25011 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
25012
25013 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
25014 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
25015 _dl_sparc_cap_flags array.
25016 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
25017
25018 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
25019
25020 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
25021 time whenever possible.
25022
25023 2017-12-12 Carlos O'Donell <carlos@redhat.com>
25024
25025 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
25026 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
25027
25028 2017-12-12 Joseph Myers <joseph@codesourcery.com>
25029
25030 * soft-fp/fmadf4.c: Move to ....
25031 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
25032 * soft-fp/fmasf4.c: Move to ....
25033 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
25034 * soft-fp/fmatf4.c: Move to ....
25035 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
25036 * sysdeps/ieee754/soft-fp/Makefile: New file.
25037 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
25038 * sysdeps/arm/preconfigure: Regenerated.
25039 * sysdeps/arm/nofpu/Implies: New file.
25040 * sysdeps/arm/s_fma.c: Remove file.
25041 * sysdeps/arm/s_fmaf.c: Likewise.
25042 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
25043 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
25044 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
25045 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
25046 * sysdeps/microblaze/s_fma.c: Remove file.
25047 * sysdeps/microblaze/s_fmaf.c: Likewise.
25048 * sysdeps/mips/mips32/nofpu/Implies: New file.
25049 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
25050 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
25051 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
25052 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
25053 * sysdeps/mips/ieee754/s_fma.c: Remove file.
25054 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
25055 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
25056 implementation.
25057 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
25058 * sysdeps/nios2/s_fma.c: Remove file.
25059 * sysdeps/nios2/s_fmaf.c: Likewise.
25060 * sysdeps/sh/nofpu/Implies: New file.
25061 * sysdeps/sh/s_fma.c: Remove file.
25062 * sysdeps/sh/s_fmaf.c: Likewise.
25063 * sysdeps/tile/Implies: Add ieee754/soft-fp.
25064 * sysdeps/tile/s_fma.c: Remove file.
25065 * sysdeps/tile/s_fmaf.c: Likewise.
25066
25067 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
25068
25069 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25070 Add s_cosf-sse2 and s_cosf-fma.
25071 (CFLAGS-s_cosf-fma.c): New.
25072 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
25073 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
25074 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
25075
25076 2017-12-12 Steve Ellcey <sellcey@cavium.com>
25077
25078 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
25079
25080 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25081
25082 * libio/Makefile (tests): Add tst-bz22415.
25083 (tst-bz22415-ENV): New rule.
25084 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
25085 (tests-special): Add tst-bz22415-mem.out.
25086 ($(objpfx)tst-bz22415-mem.out): New rule.
25087 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
25088 in case of a successful seek operation.
25089 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
25090 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
25091 buffer is required.
25092 * libio/tst-bz22415.c: New test.
25093
25094 * sysdeps/ia64/fpu/libm-test-ulps: Update.
25095
25096 2017-12-12 James Clarke <jrtc27@jrtc27.com>
25097
25098 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
25099 __IPC_64 to 0 to avoid IPC_64 being set.
25100
25101 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25102
25103 [BZ #22593]
25104 * math/bits/mathcalls.h (nextafter): Remove const.
25105 (nexttoward): Likewise.
25106
25107 2017-12-12 Joseph Myers <joseph@codesourcery.com>
25108
25109 * configure.ac (--with-fp): Remove configure option.
25110 (with_fp_cond): New variable.
25111 (libc_cv_with_fp): New configure test. Use this variable instead
25112 of with_fp.
25113 * configure: Regenerated.
25114 * config.make.in (with-fp): Use @libc_cv_with_fp@.
25115 * manual/install.texi (Configuring and compiling): Remove
25116 --without-fp.
25117 * INSTALL: Regenerated.
25118 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
25119 * sysdeps/mips/preconfigure (with_fp_cond): Define.
25120 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
25121 * sysdeps/sh/preconfigure (with_fp_cond): Define.
25122 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
25123 use --without-fp to configure glibc.
25124
25125 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
25126
25127 * manual/locale.texi (nl_langinfo): Fix a typo.
25128
25129 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
25130
25131 [BZ #22588]
25132 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
25133
25134 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
25135
25136 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
25137 (CFLAGS-argp-parse.c): Likewise.
25138 (CFLAGS-argp-fmtstream.c): Likewise.
25139 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
25140 (CPPFLAGS-sha512-crypt.c): Likewise.
25141 (CPPFLAGS-md5-crypt.c): Likewise.
25142 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
25143 (CFLAGS-stack_chk_fail_local.c): Likewise.
25144 (CFLAGS-backtrace.c): Likewise.
25145 (CFLAGS-sprintf_chk.c): Likewise.
25146 (CFLAGS-snprintf_chk.c): Likewise.
25147 (CFLAGS-vsprintf_chk.c): Likewise.
25148 (CFLAGS-vsnprintf_chk.c): Likewise.
25149 (CFLAGS-asprintf_chk.c): Likewise.
25150 (CFLAGS-vasprintf_chk.c): Likewise.
25151 (CFLAGS-obprintf_chk.c): Likewise.
25152 (CFLAGS-dprintf_chk.c): Likewise.
25153 (CFLAGS-vdprintf_chk.c): Likewise.
25154 (CFLAGS-printf_chk.c): Likewise.
25155 (CFLAGS-fprintf_chk.c): Likewise.
25156 (CFLAGS-vprintf_chk.c): Likewise.
25157 (CFLAGS-vfprintf_chk.c): Likewise.
25158 (CFLAGS-gets_chk.c): Likewise.
25159 (CFLAGS-fgets_chk.c): Likewise.
25160 (CFLAGS-fgets_u_chk.c): Likewise.
25161 (CFLAGS-fread_chk.c): Likewise.
25162 (CFLAGS-fread_u_chk.c): Likewise.
25163 (CFLAGS-swprintf_chk.c): Likewise.
25164 (CFLAGS-vswprintf_chk.c): Likewise.
25165 (CFLAGS-wprintf_chk.c): Likewise.
25166 (CFLAGS-fwprintf_chk.c): Likewise.
25167 (CFLAGS-vwprintf_chk.c): Likewise.
25168 (CFLAGS-vfwprintf_chk.c): Likewise.
25169 (CFLAGS-fgetws_chk.c): Likewise.
25170 (CFLAGS-fgetws_u_chk.c): Likewise.
25171 (CFLAGS-read_chk.c): Likewise.
25172 (CFLAGS-pread_chk.c): Likewise.
25173 (CFLAGS-pread64_chk.c): Likewise.
25174 (CFLAGS-recv_chk.c): Likewise.
25175 (CFLAGS-recvfrom_chk.c): Likewise.
25176 (CFLAGS-tst-longjmp_chk.c): Likewise.
25177 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
25178 (CFLAGS-tst-longjmp_chk2.c): Likewise.
25179 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
25180 (CFLAGS-tst-longjmp_chk3.c): Likewise.
25181 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
25182 (CFLAGS-tst-chk1.c): Likewise.
25183 (CFLAGS-tst-chk2.c): Likewise.
25184 (CFLAGS-tst-chk3.c): Likewise.
25185 (CFLAGS-tst-chk4.cc): Likewise.
25186 (CFLAGS-tst-chk5.cc): Likewise.
25187 (CFLAGS-tst-chk6.cc): Likewise.
25188 (CFLAGS-tst-lfschk1.c): Likewise.
25189 (CFLAGS-tst-lfschk2.c): Likewise.
25190 (CFLAGS-tst-lfschk3.c): Likewise.
25191 (CFLAGS-tst-lfschk4.cc): Likewise.
25192 (CFLAGS-tst-lfschk5.cc): Likewise.
25193 (CFLAGS-tst-lfschk6.cc): Likewise.
25194 (CFLAGS-tst-ssp-1.c): Likewise.
25195 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
25196 (CFLAGS-scandir64.c): Likewise.
25197 (CFLAGS-scandir-tail.c): Likewise.
25198 (CFLAGS-scandir64-tail.c): Likewise.
25199 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
25200 (CFLAGS-dl-tunables.c): Likewise.
25201 (CFLAGS-dl-runtime.c): Likewise.
25202 (CFLAGS-dl-lookup.c): Likewise.
25203 (CFLAGS-dl-iterate-phdr.c): Likewise.
25204 (CFLAGS-vismain.c): Likewise.
25205 (CFLAGS-tst-linkall-static.c): Likewise.
25206 (CFLAGS-tst-linkall-static.c): Likewise.
25207 (CPPFLAGS-dl-load.c): Likewise.
25208 (CFLAGS-ldconfig.c): Likewise.
25209 (CFLAGS-dl-cache.c): Likewise.
25210 (CFLAGS-cache.c): Likewise.
25211 (CFLAGS-rtld.c): Likewise.
25212 (CFLAGS-multiload.c): Likewise.
25213 (CFLAGS-filtmod1.c): Likewise.
25214 (CFLAGS-tst-align.c): Likewise.
25215 (CFLAGS-tst-align2.c): Likewise.
25216 (CFLAGS-tst-alignmod.c): Likewise.
25217 (CFLAGS-tst-alignmod2.c): Likewise.
25218 (CPPFLAGS-tst-execstack.c): Likewise.
25219 (CFLAGS-tst-ptrguard1-static.c): Likewise.
25220 (CFLAGS-tst-latepthreadmod.c): Likewise.
25221 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
25222 (CFLAGS-getgrnam_r.c): Likewise.
25223 (CFLAGS-getgrent_r.c): Likewise.
25224 (CFLAGS-getgrent.c): Likewise.
25225 (CFLAGS-fgetgrent.c): Likewise.
25226 (CFLAGS-fgetgrent_r.c): Likewise.
25227 (CFLAGS-putgrent.c): Likewise.
25228 (CFLAGS-initgroups.c): Likewise.
25229 (CFLAGS-getgrgid.c): Likewise.
25230 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
25231 (CFLAGS-getsgent.c): Likewise.
25232 (CFLAGS-fgetsgent.c): Likewise.
25233 (CFLAGS-fgetsgent_r.c): Likewise.
25234 (CFLAGS-putsgent.c): Likewise.
25235 (CFLAGS-getsgnam.c): Likewise.
25236 (CFLAGS-getsgnam_r.c): Likewise.
25237 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
25238 (CFLAGS-iconv_charmap.c): Likewise.
25239 (CFLAGS-dummy-repertoire.c): Likewise.
25240 (CFLAGS-charmap.c): Likewise.
25241 (CFLAGS-linereader.c): Likewise.
25242 (CFLAGS-simple-hash.c): Likewise.
25243 (CFLAGS-gconv_conf.c): Likewise.
25244 (CFLAGS-iconvconfig.c): Likewise.
25245 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
25246 (CFLAGS-gethstbyad.c): Likewise.
25247 (CFLAGS-gethstbynm_r.c): Likewise.
25248 (CFLAGS-gethstbynm.c): Likewise.
25249 (CFLAGS-gethstbynm2_r.c): Likewise.
25250 (CFLAGS-gethstbynm2.c): Likewise.
25251 (CFLAGS-gethstent_r.c): Likewise.
25252 (CFLAGS-gethstent.c): Likewise.
25253 (CFLAGS-rcmd.c): Likewise.
25254 (CFLAGS-getnetbynm_r.c): Likewise.
25255 (CFLAGS-getnetbynm.c): Likewise.
25256 (CFLAGS-getnetbyad_r.c): Likewise.
25257 (CFLAGS-getnetbyad.c): Likewise.
25258 (CFLAGS-getnetent_r.c): Likewise.
25259 (CFLAGS-getnetent.c): Likewise.
25260 (CFLAGS-getaliasent_r.c): Likewise.
25261 (CFLAGS-getaliasent.c): Likewise.
25262 (CFLAGS-getrpcent_r.c): Likewise.
25263 (CFLAGS-getrpcent.c): Likewise.
25264 (CFLAGS-getservent_r.c): Likewise.
25265 (CFLAGS-getservent.c): Likewise.
25266 (CFLAGS-getprtent_r.c): Likewise.
25267 (CFLAGS-getprtent.c): Likewise.
25268 (CFLAGS-either_ntoh.c): Likewise.
25269 (CFLAGS-either_hton.c): Likewise.
25270 (CFLAGS-getnetgrent.c): Likewise.
25271 (CFLAGS-getnetgrent_r.c): Likewise.
25272 (CFLAGS-tst-checks-posix.c): Likewise.
25273 (CFLAGS-tst-sockaddr.c): Likewise.
25274 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
25275 (CFLAGS-tst-translit.c): Likewise.
25276 (CFLAGS-tst-gettext2.c): Likewise.
25277 (CFLAGS-tst-codeset.c): Likewise.
25278 (CFLAGS-tst-gettext3.c): Likewise.
25279 (CFLAGS-tst-gettext4.c): Likewise.
25280 (CFLAGS-tst-gettext5.c): Likewise.
25281 (CFLAGS-tst-gettext6.c): Likewise.
25282 * io/Makefile (CFLAGS-open.c): Likewise.
25283 (CFLAGS-open64.c): Likewise.
25284 (CFLAGS-creat.c): Likewise.
25285 (CFLAGS-creat64.c): Likewise.
25286 (CFLAGS-fcntl.c): Likewise.
25287 (CFLAGS-poll.c): Likewise.
25288 (CFLAGS-ppoll.c): Likewise.
25289 (CFLAGS-lockf.c): Likewise.
25290 (CFLAGS-statfs.c): Likewise.
25291 (CFLAGS-fstatfs.c): Likewise.
25292 (CFLAGS-statvfs.c): Likewise.
25293 (CFLAGS-fstatvfs.c): Likewise.
25294 (CFLAGS-fts.c): Likewise.
25295 (CFLAGS-fts64.c): Likewise.
25296 (CFLAGS-ftw.c): Likewise.
25297 (CFLAGS-ftw64.c): Likewise.
25298 (CFLAGS-lockf.c): Likewise.
25299 (CFLAGS-posix_fallocate.c): Likewise.
25300 (CFLAGS-posix_fallocate64.c): Likewise.
25301 (CFLAGS-fallocate.c): Likewise.
25302 (CFLAGS-fallocate64.c): Likewise.
25303 (CFLAGS-read.c): Likewise.
25304 (CFLAGS-write.c): Likewise.
25305 (CFLAGS-test-stat.c): Likewise.
25306 (CFLAGS-test-lfs.c): Likewise.
25307 * libio/Makefile (CFLAGS-fileops.c): Likewise.
25308 (CFLAGS-fputc.c): Likewise.
25309 (CFLAGS-fputwc.c): Likewise.
25310 (CFLAGS-freopen64.c): Likewise.
25311 (CFLAGS-freopen.c): Likewise.
25312 (CFLAGS-fseek.c): Likewise.
25313 (CFLAGS-fseeko64.c): Likewise.
25314 (CFLAGS-fseeko.c): Likewise.
25315 (CFLAGS-ftello64.c): Likewise.
25316 (CFLAGS-ftello.c): Likewise.
25317 (CFLAGS-fwide.c): Likewise.
25318 (CFLAGS-genops.c): Likewise.
25319 (CFLAGS-getc.c): Likewise.
25320 (CFLAGS-getchar.c): Likewise.
25321 (CFLAGS-getwc.c): Likewise.
25322 (CFLAGS-getwchar.c): Likewise.
25323 (CFLAGS-iofclose.c): Likewise.
25324 (CFLAGS-iofflush.c): Likewise.
25325 (CFLAGS-iofgetpos64.c): Likewise.
25326 (CFLAGS-iofgetpos.c): Likewise.
25327 (CFLAGS-iofgets.c): Likewise.
25328 (CFLAGS-iofgetws.c): Likewise.
25329 (CFLAGS-iofputs.c): Likewise.
25330 (CFLAGS-iofputws.c): Likewise.
25331 (CFLAGS-iofread.c): Likewise.
25332 (CFLAGS-iofsetpos64.c): Likewise.
25333 (CFLAGS-iofsetpos.c): Likewise.
25334 (CFLAGS-ioftell.c): Likewise.
25335 (CFLAGS-iofwrite.c): Likewise.
25336 (CFLAGS-iogetdelim.c): Likewise.
25337 (CFLAGS-iogetline.c): Likewise.
25338 (CFLAGS-iogets.c): Likewise.
25339 (CFLAGS-iogetwline.c): Likewise.
25340 (CFLAGS-ioputs.c): Likewise.
25341 (CFLAGS-ioseekoff.c): Likewise.
25342 (CFLAGS-ioseekpos.c): Likewise.
25343 (CFLAGS-iosetbuffer.c): Likewise.
25344 (CFLAGS-iosetvbuf.c): Likewise.
25345 (CFLAGS-ioungetc.c): Likewise.
25346 (CFLAGS-ioungetwc.c): Likewise.
25347 (CFLAGS-oldfileops.c): Likewise.
25348 (CFLAGS-oldiofclose.c): Likewise.
25349 (CFLAGS-oldiofgetpos64.c): Likewise.
25350 (CFLAGS-oldiofgetpos.c): Likewise.
25351 (CFLAGS-oldiofsetpos64.c): Likewise.
25352 (CFLAGS-oldiofsetpos.c): Likewise.
25353 (CFLAGS-peekc.c): Likewise.
25354 (CFLAGS-putc.c): Likewise.
25355 (CFLAGS-putchar.c): Likewise.
25356 (CFLAGS-putwc.c): Likewise.
25357 (CFLAGS-putwchar.c): Likewise.
25358 (CFLAGS-rewind.c): Likewise.
25359 (CFLAGS-wfileops.c): Likewise.
25360 (CFLAGS-wgenops.c): Likewise.
25361 (CFLAGS-oldiofopen.c): Likewise.
25362 (CFLAGS-iofopen.c): Likewise.
25363 (CFLAGS-iofopen64.c): Likewise.
25364 (CFLAGS-oldtmpfile.c): Likewise.
25365 (CFLAGS-tst_putwc.c): Likewise.
25366 * locale/Makefile (CFLAGS-md5.c): Likewise.
25367 (CFLAGS-charmap.c): Likewise.
25368 (CFLAGS-locfile.c): Likewise.
25369 (CFLAGS-charmap-dir.c): Likewise.
25370 * login/Makefile (CFLAGS-grantpt.c): Likewise.
25371 (CFLAGS-getpt.c): Likewise.
25372 (CFLAGS-pt_chown.c): Likewise.
25373 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
25374 (CFLAGS-obstack.c): Likewise.
25375 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
25376 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
25377 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
25378 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
25379 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
25380 (CFLAGS-test-tgmath.c): Likewise.
25381 (CFLAGS-test-tgmath2.c): Likewise.
25382 (CFLAGS-test-tgmath-ret.c): Likewise.
25383 (CFLAGS-test-powl.c): Likewise.
25384 (CFLAGS-test-snan.c): Likewise.
25385 (CFLAGS-test-signgam-finite.c): Likewise.
25386 (CFLAGS-test-signgam-finite-c99.c): Likewise.
25387 (CFLAGS-test-signgam-finite-c11.c): Likewise.
25388 (CFLAGS-test-signgam-uchar.c): Likewise.
25389 (CFLAGS-test-signgam-uchar-init.c): Likewise.
25390 (CFLAGS-test-signgam-uchar-static.c): Likewise.
25391 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
25392 (CFLAGS-test-signgam-uint.c): Likewise.
25393 (CFLAGS-test-signgam-uint-init.c): Likewise.
25394 (CFLAGS-test-signgam-uint-static.c): Likewise.
25395 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
25396 (CFLAGS-test-signgam-ullong.c): Likewise.
25397 (CFLAGS-test-signgam-ullong-init.c): Likewise.
25398 (CFLAGS-test-signgam-ullong-static.c): Likewise.
25399 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
25400 (CFLAGS-test-math-cxx11.cc): Likewise.
25401 (CFLAGS-test-math-isinff.cc): Likewise.
25402 (CFLAGS-test-math-iszero.cc): Likewise.
25403 (CFLAGS-test-math-issignaling.cc): Likewise.
25404 (CFLAGS-test-math-iscanonical.cc): Likewise.
25405 (CFLAGS-test-iszero-excess-precision.c): Likewise.
25406 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
25407 (CFLAGS-test-flt-eval-method.c): Likewise.
25408 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
25409 (CFLAGS-test-finite-macros.c): Likewise.
25410 * misc/Makefile (CFLAGS-select.c): Likewise.
25411 (CFLAGS-tsearch.c): Likewise.
25412 (CFLAGS-lsearch.c): Likewise.
25413 (CFLAGS-pselect.c): Likewise.
25414 (CFLAGS-readv.c): Likewise.
25415 (CFLAGS-writev.c): Likewise.
25416 (CFLAGS-preadv.c): Likewise.
25417 (CFLAGS-preadv64.c): Likewise.
25418 (CFLAGS-pwritev.c): Likewise.
25419 (CFLAGS-pwritev64.c): Likewise.
25420 (CFLAGS-preadv2.c): Likewise.
25421 (CFLAGS-preadv64v2.c): Likewise.
25422 (CFLAGS-pwritev2.c): Likewise.
25423 (CFLAGS-pwritev64v2.c): Likewise.
25424 (CFLAGS-usleep.c): Likewise.
25425 (CFLAGS-syslog.c): Likewise.
25426 (CFLAGS-error.c): Likewise.
25427 (CFLAGS-getpass.c): Likewise.
25428 (CFLAGS-mkstemp.c): Likewise.
25429 (CFLAGS-mkstemp64.c): Likewise.
25430 (CFLAGS-getsysstats.c): Likewise.
25431 (CFLAGS-getusershell.c): Likewise.
25432 (CFLAGS-err.c): Likewise.
25433 (CFLAGS-tst-tsearch.c): Likewise.
25434 (CFLAGS-msync.c): Likewise.
25435 (CFLAGS-fdatasync.c): Likewise.
25436 (CFLAGS-fsync.c): Likewise.
25437 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
25438 (CFLAGS-unwind.c): Likewise.
25439 (CFLAGS-unwind-forcedunwind.c): Likewise.
25440 (CFLAGS-pthread_cancel.c): Likewise.
25441 (CFLAGS-pthread_setcancelstate.c): Likewise.
25442 (CFLAGS-pthread_setcanceltype.c): Likewise.
25443 (CFLAGS-cancellation.c): Likewise.
25444 (CFLAGS-libc-cancellation.c): Likewise.
25445 (CFLAGS-pthread_exit.c): Likewise.
25446 (CFLAGS-forward.c): Likewise.
25447 (CFLAGS-pthread_testcancel.c): Likewise.
25448 (CFLAGS-pthread_join.c): Likewise.
25449 (CFLAGS-pthread_timedjoin.c): Likewise.
25450 (CFLAGS-pthread_once.c): Likewise.
25451 (CFLAGS-pthread_cond_wait.c): Likewise.
25452 (CFLAGS-sem_wait.c): Likewise.
25453 (CFLAGS-sem_timedwait.c): Likewise.
25454 (CFLAGS-fcntl.c): Likewise.
25455 (CFLAGS-lockf.c): Likewise.
25456 (CFLAGS-pread.c): Likewise.
25457 (CFLAGS-pread64.c): Likewise.
25458 (CFLAGS-pwrite.c): Likewise.
25459 (CFLAGS-pwrite64.c): Likewise.
25460 (CFLAGS-wait.c): Likewise.
25461 (CFLAGS-waitpid.c): Likewise.
25462 (CFLAGS-sigwait.c): Likewise.
25463 (CFLAGS-msgrcv.c): Likewise.
25464 (CFLAGS-msgsnd.c): Likewise.
25465 (CFLAGS-tcdrain.c): Likewise.
25466 (CFLAGS-open.c): Likewise.
25467 (CFLAGS-open64.c): Likewise.
25468 (CFLAGS-pause.c): Likewise.
25469 (CFLAGS-recv.c): Likewise.
25470 (CFLAGS-send.c): Likewise.
25471 (CFLAGS-accept.c): Likewise.
25472 (CFLAGS-sendto.c): Likewise.
25473 (CFLAGS-connect.c): Likewise.
25474 (CFLAGS-recvfrom.c): Likewise.
25475 (CFLAGS-recvmsg.c): Likewise.
25476 (CFLAGS-sendmsg.c): Likewise.
25477 (CFLAGS-close.c): Likewise.
25478 (CFLAGS-read.c): Likewise.
25479 (CFLAGS-write.c): Likewise.
25480 (CFLAGS-nanosleep.c): Likewise.
25481 (CFLAGS-sigsuspend.c): Likewise.
25482 (CFLAGS-msync.c): Likewise.
25483 (CFLAGS-fdatasync.c): Likewise.
25484 (CFLAGS-fsync.c): Likewise.
25485 (CFLAGS-pt-system.c): Likewise.
25486 (CFLAGS-tst-cleanup2.c): Likewise.
25487 (CFLAGS-tst-cleanupx2.c): Likewise.
25488 (CFLAGS-flockfile.c): Likewise.
25489 (CFLAGS-ftrylockfile.c): Likewise.
25490 (CFLAGS-funlockfile.c): Likewise.
25491 (CFLAGS-tst-initializers1.c): Likewise.
25492 (CFLAGS-tst-initializers1-c89.c): Likewise.
25493 (CFLAGS-tst-initializers1-c99.c): Likewise.
25494 (CFLAGS-tst-initializers1-c11.c): Likewise.
25495 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
25496 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
25497 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
25498 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
25499 (CFLAGS-nscd_getgr_r.c): Likewise.
25500 (CFLAGS-nscd_gethst_r.c): Likewise.
25501 (CFLAGS-nscd_getai.c): Likewise.
25502 (CFLAGS-nscd_initgroups.c): Likewise.
25503 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
25504 (CFLAGS-pause.c): Likewise.
25505 (CFLAGS-pread.c): Likewise.
25506 (CFLAGS-pread64.c): Likewise.
25507 (CFLAGS-pwrite.c): Likewise.
25508 (CFLAGS-pwrite64.c): Likewise.
25509 (CFLAGS-sleep.c): Likewise.
25510 (CFLAGS-wait.c): Likewise.
25511 (CFLAGS-waitid.c): Likewise.
25512 (CFLAGS-waitpid.c): Likewise.
25513 (CFLAGS-getopt.c): Likewise.
25514 (CFLAGS-wordexp.c): Likewise.
25515 (CFLAGS-sysconf.c): Likewise.
25516 (CFLAGS-pathconf.c): Likewise.
25517 (CFLAGS-fpathconf.c): Likewise.
25518 (CFLAGS-spawn.c): Likewise.
25519 (CFLAGS-spawnp.c): Likewise.
25520 (CFLAGS-spawni.c): Likewise.
25521 (CFLAGS-glob.c): Likewise.
25522 (CFLAGS-glob64.c): Likewise.
25523 (CFLAGS-getconf.c): Likewise.
25524 (CFLAGS-nanosleep.c): Likewise.
25525 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
25526 (CFLAGS-getpwent.c): Likewise.
25527 (CFLAGS-getpw.c): Likewise.
25528 (CFLAGS-fgetpwent_r.c): Likewise.
25529 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
25530 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
25531 (CFLAGS-mq_timedreceive.c): Likewise.
25532 (CFLAGS-mq_timedsend.c): Likewise.
25533 (CFLAGS-clock_nanosleep.c): Likewise.
25534 (CFLAGS-librt-cancellation.c): Likewise.
25535 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
25536 (CFLAGS-getspent.c): Likewise.
25537 (CFLAGS-fgetspent.c): Likewise.
25538 (CFLAGS-fgetspent_r.c): Likewise.
25539 (CFLAGS-putspent.c): Likewise.
25540 (CFLAGS-getspnam.c): Likewise.
25541 (CFLAGS-getspnam_r.c): Likewise.
25542 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
25543 (CFLAGS-sigsuspend.c): Likewise.
25544 (CFLAGS-sigtimedwait.c): Likewise.
25545 (CFLAGS-sigwait.c): Likewise.
25546 (CFLAGS-sigwaitinfo.c): Likewise.
25547 (CFLAGS-sigreturn.c): Likewise.
25548 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
25549 (CFLAGS-vfwprintf.c): Likewise.
25550 (CFLAGS-tmpfile.c): Likewise.
25551 (CFLAGS-tmpfile64.c): Likewise.
25552 (CFLAGS-tempname.c): Likewise.
25553 (CFLAGS-psignal.c): Likewise.
25554 (CFLAGS-vprintf.c): Likewise.
25555 (CFLAGS-cuserid.c): Likewise.
25556 (CFLAGS-errlist.c): Likewise.
25557 (CFLAGS-siglist.c): Likewise.
25558 (CFLAGS-scanf15.c): Likewise.
25559 (CFLAGS-scanf17.c): Likewise.
25560 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
25561 (CFLAGS-msort.c): Likewise.
25562 (CFLAGS-qsort.c): Likewise.
25563 (CFLAGS-system.c): Likewise.
25564 (CFLAGS-fmtmsg.c): Likewise.
25565 (CFLAGS-strfmon.c): Likewise.
25566 (CFLAGS-strfmon_l.c): Likewise.
25567 (CFLAGS-strfromd.c): Likewise.
25568 (CFLAGS-strfromf.c): Likewise.
25569 (CFLAGS-strfroml.c): Likewise.
25570 (CFLAGS-tst-bsearch.c): Likewise.
25571 (CFLAGS-tst-qsort.c): Likewise.
25572 (CFLAGS-tst-makecontext2.c): Likewise.
25573 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
25574 (CFLAGS-xnlm_prot.c): Likewise.
25575 (CFLAGS-xrstat.c): Likewise.
25576 (CFLAGS-xyppasswd.c): Likewise.
25577 (CFLAGS-xklm_prot.c): Likewise.
25578 (CFLAGS-xrex.c): Likewise.
25579 (CFLAGS-xsm_inter.c): Likewise.
25580 (CFLAGS-xmount.c): Likewise.
25581 (CFLAGS-xrusers.c): Likewise.
25582 (CFLAGS-xspray.c): Likewise.
25583 (CFLAGS-xnfs_prot.c): Likewise.
25584 (CFLAGS-xrquota.c): Likewise.
25585 (CFLAGS-xkey_prot.c): Likewise.
25586 (CFLAGS-auth_unix.c): Likewise.
25587 (CFLAGS-key_call.c): Likewise.
25588 (CFLAGS-pmap_rmt.c): Likewise.
25589 (CFLAGS-clnt_perr.c): Likewise.
25590 (CFLAGS-openchild.c): Likewise.
25591 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
25592 (CFLAGS-msgsnd.c): Likewise.
25593 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
25594 * time/Makefile (CFLAGS-tzfile.c): Likewise.
25595 (CFLAGS-tzset.c): Likewise.
25596 (CFLAGS-getdate.c): Likewise.
25597 (CFLAGS-test_time.c): Likewise.
25598 (CPPFLAGS-tst-tzname.c): Likewise.
25599 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
25600 (CFLAGS-zic.c): Likewise.
25601 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
25602 (CFLAGS-wcswidth.c): Likewise.
25603 (CFLAGS-wcstol.c): Likewise.
25604 (CFLAGS-wcstoul.c): Likewise.
25605 (CFLAGS-wcstoll.c): Likewise.
25606 (CFLAGS-wcstoull.c): Likewise.
25607 (CFLAGS-wcstod.c): Likewise.
25608 (CFLAGS-wcstold.c): Likewise.
25609 (CFLAGS-wcstof128.c): Likewise.
25610 (CFLAGS-wcstof.c): Likewise.
25611 (CFLAGS-wcstol_l.c): Likewise.
25612 (CFLAGS-wcstoul_l.c): Likewise.
25613 (CFLAGS-wcstoll_l.c): Likewise.
25614 (CFLAGS-wcstoull_l.c): Likewise.
25615 (CFLAGS-wcstod_l.c): Likewise.
25616 (CFLAGS-wcstold_l.c): Likewise.
25617 (CFLAGS-wcstof128_l.c): Likewise.
25618 (CFLAGS-wcstof_l.c): Likewise.
25619 (CPPFLAGS-tst-wchar-h.c): Likewise.
25620 (CPPFLAGS-wcstold_l.c): Likewise.
25621
25622 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
25623
25624 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
25625
25626 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
25627 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25628
25629 * manual/tunables.texi (Hardware Capability Tunables): Document
25630 glibc.tune.cached_memopt.
25631 * sysdeps/powerpc/cpu-features.c: New file.
25632 * sysdeps/powerpc/cpu-features.h: New file.
25633 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
25634 _dl_powerpc_cpu_features.
25635 * sysdeps/powerpc/dl-tunables.list: New file.
25636 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
25637 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
25638 (INIT_ARCH): Initialize use_aligned_memopt.
25639 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
25640 IS_IN(rtld))]: Restrict dl_platform_init availability and
25641 initialize CPU features used by tunables.
25642 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
25643 Add memcpy-power8-cached.
25644 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
25645 __memcpy_power8_cached.
25646 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
25647 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
25648 New file.
25649
25650 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
25651
25652 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
25653 (CFLAGS-noinl-tester.c): Likewise.
25654 (CFLAGS-tst-strlen.c): Likewise.
25655 (CFLAGS-stratcliff.c): Likewise.
25656 (CFLAGS-test-ffs.c): Likewise.
25657 (CFLAGS-tst-inlcall.c): Likewise.
25658 (CFLAGS-tst-xbzero-opt.c): Likewise.
25659 (CFLAGS-memcpy.c): Likewise.
25660 (CFLAGS-wordcopy.c): Likewise.
25661
25662 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
25663
25664 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
25665 Store r15 on stack and add cfi rule.
25666 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
25667 Likewise.
25668
25669 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
25670
25671 [BZ #22577]
25672 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
25673 call.
25674
25675 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
25676
25677 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25678 Add s_sinf-sse2 and s_sinf-fma.
25679 (CFLAGS-s_sinf-fma.c): New.
25680 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
25681 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
25682 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
25683
25684 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
25685
25686 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
25687
25688 2017-12-07 Joseph Myers <joseph@codesourcery.com>
25689
25690 [BZ #22568]
25691 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
25692 part of result to imaginary part of argument if it is zero and the
25693 real part of the argument is not finite.
25694 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
25695 of result to real part of argument if it is zero and the imaginary
25696 part of the argument is not finite.
25697
25698 2017-12-07 Mike FABIAN <mfabian@redhat.com>
25699
25700 [BZ #22524]
25701 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
25702 and to the list of locales to be built for testing.
25703 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
25704 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
25705 and build the collation rules upon that.
25706
25707 2017-12-07 Joseph Myers <joseph@codesourcery.com>
25708
25709 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
25710 * manual/math.texi (Mathematics): Document support for _Float32.
25711 * math/Makefile (test-types): Add float32.
25712 * math/Versions (GLIBC_2.27): Add _Float32 functions.
25713 * stdlib/Versions (GLIBC_2.27): Likewise.
25714 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25715 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25716 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25717 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25718 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25719 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25720 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25721 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25722 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25723 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25724 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25725 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25726 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25727 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25728 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25729 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25730 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25731 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25732 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25733 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25734 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25735 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25736 Likewise.
25737 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25738 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25739 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25740 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25741 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25742 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25743 Likewise.
25744 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25745 Likewise.
25746 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25747 Likewise.
25748 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25749 Likewise.
25750
25751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25752 Likewise.
25753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25754 Likewise.
25755 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25756 Likewise.
25757 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25758 Likewise.
25759 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25760 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25761 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25762 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25763 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25764 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25765 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25766 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25767 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25768 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25769 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25770 Likewise.
25771 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25772 Likewise.
25773 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25774 Likewise.
25775 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25776 Likewise.
25777 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25778 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25779 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25780 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25781 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25782 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25783 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25784 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25785
25786 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25787
25788 * stdlib/strtof.c: Include <bits/floatn.h>
25789 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
25790 and later undefine as macro. Define as weak alias if
25791 [!USE_WIDE_CHAR].
25792 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
25793 and later undefine as macro. Define as weak alias if
25794 [USE_WIDE_CHAR].
25795 * stdlib/strtof_l.c: Include <bits/floatn.h>
25796 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
25797 and later undefine as macro. Define as weak alias if
25798 [!USE_WIDE_CHAR].
25799 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
25800 and later undefine as macro. Define as weak alias if
25801 [USE_WIDE_CHAR].
25802
25803 * stdlib/strfromf.c: Include <bits/floatn.h>.
25804 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
25805 and later undefine as macro and define as weak alias.
25806
25807 * math/test-float32.h: New file.
25808
25809 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
25810 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
25811 (libm_alias_float_other_r): Create f32 alias.
25812 (libm_alias_float_r): Use semicolon before call to
25813 libm_alias_float_other_r.
25814
25815 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
25816 second argument to libm_alias_float_other.
25817 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
25818 second argument to libm_alias_float_other.
25819 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
25820 argument to libm_alias_float_other.
25821
25822 [BZ #22561]
25823 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
25824 real part of result for argument 0 + i * NaN.
25825 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
25826 results for tests of 0 + i * NaN.
25827
25828 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25829
25830 * sysdeps/alpha/fpu/libm-test-ulps: Update.
25831
25832 2017-12-06 David S. Miller <davem@davemloft.net>
25833
25834 * sysdeps/sparc/fpu/libm-test-ulps: Update
25835 exp_{downward,towardzero,upward} ulps.
25836
25837 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25838
25839 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
25840 variables static.
25841
25842 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
25843 (Y0_2D): Likewise.
25844 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
25845 (Y0_2D): Likewise.
25846 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
25847 (Y0_2D): Likewise.
25848 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
25849 (Y0_2D): Likewise.
25850
25851 2017-12-06 Mike FABIAN <mfabian@redhat.com>
25852
25853 [BZ #22515]
25854 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
25855 and to the list of locales to be built for testing.
25856 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
25857 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
25858 and build the collation rules upon that.
25859
25860 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25861
25862 * NEWS: Add sinf to list of optimized functions.
25863
25864 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25865
25866 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
25867 (__HAVE_FLOAT32X): Likewise.
25868 * manual/math.texi (Mathematics): Document support for _Float64
25869 and _Float32x.
25870 * math/Makefile (test-types): Add float64 and float32x.
25871 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
25872 functions.
25873 * stdlib/Versions (GLIBC_2.27): Likewise.
25874 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25875 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25876 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25877 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25878 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25879 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25880 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25881 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25882 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25883 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25884 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25885 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25886 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25887 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25888 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25889 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25890 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25891 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25892 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25893 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25894 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25895 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25896 Likewise.
25897 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25898 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25899 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25900 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25901 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25902 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25903 Likewise.
25904 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25905 Likewise.
25906 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25907 Likewise.
25908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25909 Likewise.
25910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25911 Likewise.
25912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25913 Likewise.
25914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25915 Likewise.
25916 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25917 Likewise.
25918 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25919 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25920 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25921 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25922 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25923 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25924 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25925 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25926 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25927 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25928 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25929 Likewise.
25930 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25931 Likewise.
25932 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25933 Likewise.
25934 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25935 Likewise.
25936 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25937 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25938 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25939 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25940 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25941 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25942 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25943 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25944
25945 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25946
25947 * bits/floatn-common.h: Include <bits/long-double.h>.
25948 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25949 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25950 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25951 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25952 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25953 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25954 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25955 (__builtin_huge_valf64): Use __builtin_huge_vall.
25956 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25957 (__builtin_inff64): Use __builtin_infl.
25958 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25959 (__builtin_nanf64): Use __builtin_nanl.
25960 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25961 (__builtin_nansf64): Use __builtin_nansl.
25962
25963 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
25964 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
25965 Carlos O'Donell <carlos@redhat.com>
25966
25967 * elf/dl-tunables.list: Add elision parameters.
25968 * manual/tunables.texi: Add entries about elision tunable.
25969 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25970 Add callback functions to dynamically enable/disable elision.
25971 Add multiple callbacks functions to set elision parameters.
25972 Deleted __libc_enable_secure check.
25973 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25974 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25975 * configure: Regenerated.
25976 * configure.ac: Option enable_lock_elision was deleted.
25977 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25978 * config.make.in: Remove references to enable_lock_elision.
25979 * manual/install.texi: Elision configure option was removed.
25980 * INSTALL: Regenerated to remove enable_lock_elision.
25981 * nptl/Makefile:
25982 Disable elision so it can verify error case for destroying a mutex.
25983 * sysdeps/powerpc/nptl/elide.h:
25984 Cleanup ENABLE_LOCK_ELISION check.
25985 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25986 * sysdeps/s390/configure: Regenerated.
25987 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25988 * nptl/tst-mutex8.c:
25989 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25990 * sysdeps/powerpc/powerpc32/sysdep.h:
25991 Deleted all ENABLE_LOCK_ELISION checks.
25992 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25993 * sysdeps/powerpc/sysdep.h: Likewise.
25994 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25995 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
25996 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
25997 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
25998 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
25999 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
26000 enable-lock-elision.
26001
26002 2017-12-05 Joseph Myers <joseph@codesourcery.com>
26003
26004 * stdlib/strtod.c: Include <bits/floatn.h>.
26005 (BUILD_DOUBLE): New macro.
26006 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
26007 (strtof64): Define and later undefine as macro. Define as weak
26008 alias if [!USE_WIDE_CHAR].
26009 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
26010 (wcstof64): Define and later undefine as macro. Define as weak
26011 alias if [USE_WIDE_CHAR].
26012 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
26013 (strtof32x): Define and later undefine as macro. Define as weak
26014 alias if [!USE_WIDE_CHAR].
26015 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
26016 (wcstof32x): Define and later undefine as macro. Define as weak
26017 alias if [USE_WIDE_CHAR].
26018 * stdlib/strtod_l.c: Include <bits/floatn.h>.
26019 (BUILD_DOUBLE): New macro.
26020 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
26021 (strtof64_l): Define and later undefine as macro. Define as weak
26022 alias if [!USE_WIDE_CHAR].
26023 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
26024 (wcstof64_l): Define and later undefine as macro. Define as weak
26025 alias if [USE_WIDE_CHAR].
26026 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
26027 (strtof32x_l): Define and later undefine as macro. Define as weak
26028 alias if [!USE_WIDE_CHAR].
26029 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
26030 (wcstof32x_l): Define and later undefine as macro. Define as weak
26031 alias if [USE_WIDE_CHAR].
26032
26033 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26034
26035 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
26036 (reduced): Use ones as double instead of integer.
26037
26038 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
26039
26040 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
26041
26042 2017-12-05 Joseph Myers <joseph@codesourcery.com>
26043
26044 * stdlib/strfromd.c: Include <bits/floatn.h>.
26045 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
26046 and later undefine as macro and define as weak alias.
26047 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
26048 Likewise.
26049
26050 * math/test-float32x.h: New file.
26051 * math/test-float64.h: Likewise.
26052
26053 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
26054 (libm_alias_double_other_r_f64): New macro.
26055 (libm_alias_double_other_r_f32x): Likewise.
26056 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
26057 libm_alias_double_other_r_f32x.
26058 (libm_alias_double_r): Use semicolon before call to
26059 libm_alias_double_other_r.
26060 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
26061 <bits/floatn.h>.
26062 (libm_alias_double_other_r_f64): New macro.
26063 (libm_alias_double_other_r_f32x): Likewise.
26064 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
26065 libm_alias_double_other_r_f32x.
26066
26067 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
26068
26069 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
26070 int.
26071 (SINF_FUNC): Likewise. Replace floor with simple casts.
26072
26073 2017-12-05 Mike FABIAN <mfabian@redhat.com>
26074
26075 [BZ #22517]
26076 * localedata/Makefile: Add et_EE.UTF-8 to test-input
26077 and to the list of locales to be built for testing.
26078 * localedata/et_EE.UTF-8.in: New file for testing the collation.
26079 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
26080 and build the collation rules upon that.
26081
26082 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
26083
26084 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
26085 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
26086 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
26087 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
26088 instead of __insn__xxx.
26089 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
26090 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
26091 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
26092 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
26093 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
26094 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
26095
26096 2017-12-05 Florian Weimer <fweimer@redhat.com>
26097
26098 Linux: Implement interfaces for memory protection keys
26099 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
26100 xsignal, xsysconf.
26101 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
26102 * support/xunistd.h (xsysconf): Declare.
26103 * support/xraise.c: New file.
26104 * support/xsigaction.c: Likewise.
26105 * support/xsignal.c: Likewise.
26106 * support/xsysconf.c: Likewise.
26107 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
26108 pkey_set, pkey_get, pkey_mprotect.
26109 [misc] (tests): Add tst-pkey.
26110 (tst-pkey): Link with -lpthread.
26111 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
26112 pkey_free, pkey_set, pkey_get, pkey_mprotect.
26113 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
26114 (PKEY_DISABLE_WRITE): Define.
26115 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
26116 Declare.
26117 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
26118 (SEGV_PKUERR): Add.
26119 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
26120 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
26121 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
26122 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
26123 Add.
26124 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
26125 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
26126 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
26127 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
26128 * sysdeps/unix/sysv/linux/**.abilist: Update.
26129
26130 2017-12-05 Florian Weimer <fweimer@redhat.com>
26131
26132 * support/tst-test_compare.c (subprocess): Use long long instead
26133 of long argument for consistent type width across 32-bit and
26134 64-bit architectures.
26135 (do_test): Adjust expected output.
26136
26137 2017-12-05 Joseph Myers <joseph@codesourcery.com>
26138
26139 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
26140 (cosf): Define using libm_alias_float.
26141 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
26142 (fabsf): Define using libm_alias_float.
26143 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
26144 (fmaf): Define using libm_alias_float.
26145 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
26146 (rintf): Define using libm_alias_float.
26147 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
26148 (sinf): Define using libm_alias_float.
26149 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
26150 <libm-alias-float.h>.
26151 (modff): Define using libm_alias_float.
26152 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
26153 <libm-alias-float.h>.
26154 (logbf): Define using libm_alias_float.
26155 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
26156 <libm-alias-float.h>.
26157 (ceilf): Define using libm_alias_float.
26158 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
26159 <libm-alias-float.h>.
26160 (copysignf): Define using libm_alias_float.
26161 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
26162 <libm-alias-float.h>.
26163 (floorf): Define using libm_alias_float.
26164 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
26165 <libm-alias-float.h>.
26166 (llrintf): Define using libm_alias_float.
26167 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
26168 <libm-alias-float.h>.
26169 (llroundf): Define using libm_alias_float.
26170 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
26171 <libm-alias-float.h>.
26172 (lrintf): Define using libm_alias_float.
26173 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
26174 <libm-alias-float.h>.
26175 (lroundf): Define using libm_alias_float.
26176 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
26177 <libm-alias-float.h>.
26178 (nearbyintf): Define using libm_alias_float.
26179 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
26180 <libm-alias-float.h>.
26181 (rintf): Define using libm_alias_float.
26182 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
26183 <libm-alias-float.h>.
26184 (roundf): Define using libm_alias_float.
26185 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
26186 <libm-alias-float.h>.
26187 (truncf): Define using libm_alias_float.
26188 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
26189 Include <libm-alias-float.h>.
26190 (ceilf): Define using libm_alias_float.
26191 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
26192 Include <libm-alias-float.h>.
26193 (copysignf): Define using libm_alias_float.
26194 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
26195 Include <libm-alias-float.h>.
26196 (floorf): Define using libm_alias_float.
26197 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
26198 Include <libm-alias-float.h>.
26199 (llrintf): Define using libm_alias_float.
26200 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
26201 Include <libm-alias-float.h>.
26202 (llroundf): Define using libm_alias_float.
26203 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
26204 Include <libm-alias-float.h>.
26205 (logbf): Define using libm_alias_float.
26206 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
26207 Include <libm-alias-float.h>.
26208 (lrintf): Define using libm_alias_float.
26209 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
26210 Include <libm-alias-float.h>.
26211 (lroundf): Define using libm_alias_float.
26212 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
26213 Include <libm-alias-float.h>.
26214 (modff): Define using libm_alias_float.
26215 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
26216 Include <libm-alias-float.h>.
26217 (roundf): Define using libm_alias_float.
26218 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
26219 Include <libm-alias-float.h>.
26220 (truncf): Define using libm_alias_float.
26221 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
26222 <libm-alias-float.h>.
26223 (llrintf): Define using libm_alias_float.
26224 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
26225 <libm-alias-float.h>.
26226 (llroundf): Define using libm_alias_float.
26227 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
26228 <libm-alias-float.h>.
26229 (ceilf): Define using libm_alias_float.
26230 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
26231 <libm-alias-float.h>.
26232 (floorf): Define using libm_alias_float.
26233 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
26234 <libm-alias-float.h>.
26235 (llroundf): Define using libm_alias_float.
26236 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
26237 <libm-alias-float.h>.
26238 (lroundf): Define using libm_alias_float.
26239 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
26240 <libm-alias-float.h>.
26241 (roundf): Define using libm_alias_float.
26242 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
26243 <libm-alias-float.h>.
26244 (truncf): Define using libm_alias_float.
26245 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
26246 <libm-alias-float.h>.
26247 (copysignf): Define using libm_alias_float.
26248 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
26249 <libm-alias-float.h>.
26250 (llrintf): Define using libm_alias_float.
26251 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
26252 <libm-alias-float.h>.
26253 (llroundf): Define using libm_alias_float.
26254 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
26255 <libm-alias-float.h>.
26256 (lrintf): Define using libm_alias_float.
26257 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
26258 <libm-alias-float.h>.
26259 (lroundf): Define using libm_alias_float.
26260 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
26261 <libm-alias-float.h>.
26262 (ceilf): Define using libm_alias_float.
26263 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
26264 <libm-alias-float.h>.
26265 (copysignf): Define using libm_alias_float.
26266 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
26267 <libm-alias-float.h>.
26268 (cosf): Define using libm_alias_float.
26269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
26270 <libm-alias-float.h>.
26271 (floorf): Define using libm_alias_float.
26272 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
26273 <libm-alias-float.h>.
26274 (llrintf): Define using libm_alias_float.
26275 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
26276 <libm-alias-float.h>.
26277 (llroundf): Define using libm_alias_float.
26278 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
26279 <libm-alias-float.h>.
26280 (logbf): Define using libm_alias_float.
26281 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
26282 <libm-alias-float.h>.
26283 (modff): Define using libm_alias_float.
26284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
26285 <libm-alias-float.h>.
26286 (roundf): Define using libm_alias_float.
26287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
26288 <libm-alias-float.h>.
26289 (sinf): Define using libm_alias_float.
26290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
26291 <libm-alias-float.h>.
26292 (truncf): Define using libm_alias_float.
26293 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
26294 <libm-alias-float.h>.
26295 (ceilf): Define using libm_alias_float.
26296 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
26297 <libm-alias-float.h>.
26298 (copysignf): Define using libm_alias_float.
26299 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
26300 <libm-alias-float.h>.
26301 (floorf): Define using libm_alias_float.
26302 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
26303 <libm-alias-float.h>.
26304 (llrintf): Define using libm_alias_float.
26305 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
26306 <libm-alias-float.h>.
26307 (llroundf): Define using libm_alias_float.
26308 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
26309 <libm-alias-float.h>.
26310 (nearbyintf): Define using libm_alias_float.
26311 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
26312 <libm-alias-float.h>.
26313 (rintf): Define using libm_alias_float.
26314 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
26315 <libm-alias-float.h>.
26316 (roundf): Define using libm_alias_float.
26317 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
26318 <libm-alias-float.h>.
26319 (truncf): Define using libm_alias_float.
26320 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
26321 <libm-alias-float.h>.
26322 (ceilf): Define using libm_alias_float.
26323 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
26324 <libm-alias-float.h>.
26325 (floorf): Define using libm_alias_float.
26326 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
26327 <libm-alias-float.h>.
26328 (llroundf): Define using libm_alias_float.
26329 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
26330 <libm-alias-float.h>.
26331 (roundf): Define using libm_alias_float.
26332 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
26333 <libm-alias-float.h>.
26334 (truncf): Define using libm_alias_float.
26335 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
26336 <libm-alias-float.h>.
26337 (copysignf): Define using libm_alias_float.
26338 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
26339 <libm-alias-float.h>.
26340 (llrintf): Define using libm_alias_float.
26341 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
26342 <libm-alias-float.h>.
26343 (llroundf): Define using libm_alias_float.
26344 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
26345 <libm-alias-float.h>.
26346 (cosf): Define using libm_alias_float.
26347 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
26348 <libm-alias-float.h>.
26349 (llrintf): Define using libm_alias_float.
26350 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
26351 <libm-alias-float.h>.
26352 (llroundf): Define using libm_alias_float.
26353 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
26354 <libm-alias-float.h>.
26355 (sinf): Define using libm_alias_float.
26356
26357 2017-12-04 Florian Weimer <fweimer@redhat.com>
26358
26359 * support/check.h (TEST_COMPARE): Define.
26360 (support_test_compare_failure): Declare.
26361 * support/Makefile (libsupport-routines): Add
26362 support_test_compare_failure.
26363 (tests): Add tst-test_compare.
26364 * support /support_test_compare_failure.c: New file.
26365 * support/tst-test_compare.c: Likewise.
26366
26367 2017-12-04 Mike FABIAN <mfabian@redhat.com>
26368
26369 [BZ #22527]
26370 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
26371 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
26372 available, this rewrite of the collation rules does reproduce
26373 the test file in the same order.
26374
26375 2017-12-04 Mike FABIAN <mfabian@redhat.com>
26376
26377 [BZ #10580]
26378 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
26379 digraphs in the month and day names. Using single code points for
26380 digraphs is deprecated. While there are dedicated Unicode
26381 codepoints, for the digraphs, these are included for backwards
26382 compatibility and modern texts use a sequence of Basic Latin
26383 characters. See: https://www.unicode.org/faq/ligature_digraph.html
26384 This makes the month and day names agree exactly with CLDR now,
26385 CLDR does not use the single code points for the digraphs either.
26386
26387 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
26388
26389 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
26390
26391 2017-12-04 Joseph Myers <joseph@codesourcery.com>
26392
26393 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
26394 of floor.
26395
26396 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
26397
26398 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
26399 Define only for libc.so.
26400
26401 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
26402
26403 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26404 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
26405 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
26406 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
26407 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
26408
26409 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26410
26411 [BZ #5997]
26412 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
26413
26414 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
26415
26416 [BZ libc/19170]
26417 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
26418 PREINIT_FUNCTION_WEAK is nonzero.
26419 (gmon_initializer): New function. Put procedure label for it in
26420 .init_array section.
26421 (_init): Don't call PREINIT_FUNCTION.
26422 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
26423 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
26424 value when map argument is null.
26425
26426 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
26427 depi instruction from PIC pc-relative sequence.
26428 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
26429 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
26430 (elf_machine_load_address): Likewise.
26431 (elf_machine_runtime_setup): Likewise.
26432
26433 2017-12-02 Joseph Myers <joseph@codesourcery.com>
26434
26435 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
26436 <libm-alias-double.h>.
26437 (logb): Define using libm_alias_double.
26438 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
26439 <libm-alias-double.h>.
26440 (copysign): Define using libm_alias_double.
26441 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
26442 <libm-alias-double.h>.
26443 (llrint): Define using libm_alias_double.
26444 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
26445 <libm-alias-double.h>.
26446 (llround): Define using libm_alias_double.
26447 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
26448 <libm-alias-double.h>.
26449 (lrint): Define using libm_alias_double.
26450 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
26451 <libm-alias-double.h>.
26452 (lround): Define using libm_alias_double.
26453 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
26454 Include <libm-alias-double.h>.
26455 (copysign): Define using libm_alias_double.
26456 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
26457 Include <libm-alias-double.h>.
26458 (llrint): Define using libm_alias_double.
26459 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
26460 Include <libm-alias-double.h>.
26461 (llround): Define using libm_alias_double.
26462 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
26463 <libm-alias-double.h>.
26464 (logb): Define using libm_alias_double.
26465 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
26466 Include <libm-alias-double.h>.
26467 (lrint): Define using libm_alias_double.
26468 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
26469 Include <libm-alias-double.h>.
26470 (lround): Define using libm_alias_double.
26471 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
26472 <libm-alias-double.h>.
26473 (llrint): Define using libm_alias_double.
26474 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
26475 <libm-alias-double.h>.
26476 (llround): Define using libm_alias_double.
26477 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
26478 <libm-alias-double.h>.
26479 (llround): Define using libm_alias_double.
26480 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
26481 <libm-alias-double.h>.
26482 (lround): Define using libm_alias_double.
26483 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
26484 <libm-alias-double.h>.
26485 (copysign): Define using libm_alias_double.
26486 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
26487 <libm-alias-double.h>.
26488 (llrint): Define using libm_alias_double.
26489 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
26490 <libm-alias-double.h>.
26491 (llround): Define using libm_alias_double.
26492 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
26493 <libm-alias-double.h>.
26494 (lrint): Define using libm_alias_double.
26495 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
26496 <libm-alias-double.h>.
26497 (lround): Define using libm_alias_double.
26498 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
26499 <libm-alias-double.h>.
26500 (copysign): Define using libm_alias_double.
26501 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
26502 <libm-alias-double.h>.
26503 (llrint): Define using libm_alias_double.
26504 (lrint): Likewise.
26505 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
26506 <libm-alias-double.h>.
26507 (llround): Define using libm_alias_double.
26508 (lround): Likewise.
26509 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
26510 <libm-alias-double.h>.
26511 (logb): Define using libm_alias_double.
26512 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
26513 <libm-alias-double.h>.
26514 (copysign): Define using libm_alias_double.
26515 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
26516 <libm-alias-double.h>.
26517 (llrint): Define using libm_alias_double.
26518 (lrint): Likewise.
26519 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
26520 <libm-alias-double.h>.
26521 (llround): Define using libm_alias_double.
26522 (lround): Likewise.
26523 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
26524 <libm-alias-double.h>.
26525 (llround): Define using libm_alias_double.
26526 (lround): Likewise.
26527 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
26528 <libm-alias-double.h>.
26529 (copysign): Define using libm_alias_double.
26530 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
26531 <libm-alias-double.h>.
26532 (llrint): Define using libm_alias_double.
26533 (lrint): Likewise.
26534 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
26535 <libm-alias-double.h>.
26536 (llround): Define using libm_alias_double.
26537 (lround): Likewise.
26538 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
26539 <libm-alias-double.h>.
26540 (llrint): Define using libm_alias_double.
26541 (lrint): Likewise.
26542 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
26543 <libm-alias-double.h>.
26544 (llround): Define using libm_alias_double.
26545 (lround): Likewise.
26546
26547 2017-12-01 Joseph Myers <joseph@codesourcery.com>
26548
26549 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
26550 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
26551 compat symbol based on llround.
26552
26553 * sysdeps/powerpc/power7/fpu/s_logb.c
26554 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
26555 symbol based on __logb, not on logb.
26556 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
26557 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
26558 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
26559 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
26560
26561 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
26562 (rint): Define using libm_alias_double.
26563 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
26564 <libm-alias-double.h>.
26565 (modf): Define using libm_alias_double.
26566 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
26567 <libm-alias-double.h>.
26568 (ceil): Define using libm_alias_double.
26569 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
26570 <libm-alias-double.h>.
26571 (floor): Define using libm_alias_double.
26572 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
26573 <libm-alias-double.h>.
26574 (nearbyint): Define using libm_alias_double.
26575 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
26576 <libm-alias-double.h>.
26577 (rint): Define using libm_alias_double.
26578 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
26579 <libm-alias-double.h>.
26580 (round): Define using libm_alias_double.
26581 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
26582 <libm-alias-double.h>.
26583 (trunc): Define using libm_alias_double.
26584 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
26585 <libm-alias-double.h>.
26586 (ceil): Define using libm_alias_double.
26587 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
26588 Include <libm-alias-double.h>.
26589 (floor): Define using libm_alias_double.
26590 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
26591 <libm-alias-double.h>.
26592 (modf): Define using libm_alias_double.
26593 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
26594 Include <libm-alias-double.h>.
26595 (round): Define using libm_alias_double.
26596 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
26597 Include <libm-alias-double.h>.
26598 (trunc): Define using libm_alias_double.
26599 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
26600 <libm-alias-double.h>.
26601 (ceil): Define using libm_alias_double.
26602 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
26603 <libm-alias-double.h>.
26604 (floor): Define using libm_alias_double.
26605 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
26606 <libm-alias-double.h>.
26607 (round): Define using libm_alias_double.
26608 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
26609 <libm-alias-double.h>.
26610 (trunc): Define using libm_alias_double.
26611 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
26612 <libm-alias-double.h>.
26613 (ceil): Define using libm_alias_double.
26614 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
26615 <libm-alias-double.h>.
26616 (floor): Define using libm_alias_double.
26617 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
26618 <libm-alias-double.h>.
26619 (modf): Define using libm_alias_double.
26620 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
26621 <libm-alias-double.h>.
26622 (round): Define using libm_alias_double.
26623 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
26624 <libm-alias-double.h>.
26625 (trunc): Define using libm_alias_double.
26626 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
26627 <libm-alias-double.h>.
26628 (ceil): Define using libm_alias_double.
26629 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
26630 <libm-alias-double.h>.
26631 (floor): Define using libm_alias_double.
26632 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
26633 <libm-alias-double.h>.
26634 (nearbyint): Define using libm_alias_double.
26635 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
26636 <libm-alias-double.h>.
26637 (rint): Define using libm_alias_double.
26638 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
26639 <libm-alias-double.h>.
26640 (round): Define using libm_alias_double.
26641 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
26642 <libm-alias-double.h>.
26643 (trunc): Define using libm_alias_double.
26644 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
26645 <libm-alias-double.h>.
26646 (ceil): Define using libm_alias_double.
26647 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
26648 <libm-alias-double.h>.
26649 (floor): Define using libm_alias_double.
26650 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
26651 <libm-alias-double.h>.
26652 (round): Define using libm_alias_double.
26653 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
26654 <libm-alias-double.h>.
26655 (trunc): Define using libm_alias_double.
26656
26657 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
26658 (fabs): Define using libm_alias_double.
26659 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
26660 (fma): Define using libm_alias_double.
26661 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
26662 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
26663 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
26664 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
26665
26666 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26667
26668 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
26669
26670 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
26671 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
26672 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26673
26674 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
26675 due redirect macro.
26676
26677 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
26678
26679 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
26680
26681 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26682
26683 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
26684 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
26685 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
26686 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
26687
26688 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26689 (libm-sysdep_routines): Add s_nearbyintf-generic and
26690 s_nearbyint-generic.
26691 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
26692 New file.
26693 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
26694 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
26695 Likewise.
26696 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
26697 Likewise.
26698 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
26699 file.
26700 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26701 Likewise.
26702
26703 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26704 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
26705 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
26706 file.
26707 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
26708 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
26709 Likewise.
26710 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
26711 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
26712 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
26713
26714 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26715 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
26716 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
26717 file.
26718 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
26719 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
26720 Likewise.
26721 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
26722 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
26723 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
26724
26725 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26726 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
26727 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
26728 file.
26729 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
26730 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
26731 Likewise.
26732 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
26733 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
26734 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
26735
26736 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26737 (sysdep_calls): New rule.
26738 (sysdep_routines): Use sysdep_calls as base.
26739 (libm-sysdep_routines): Add generic rule for symbols shared with
26740 libc. Add s_copysign-generic and s_copysign-generic objects.
26741 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
26742 New file.
26743 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
26744 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
26745 Likewise.
26746 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
26747 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
26748 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
26749
26750 2017-12-01 Mike FABIAN <mfabian@redhat.com>
26751
26752 [BZ #22519]
26753 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
26754 the list of locales to be built for testing.
26755 * localedata/is_IS.UTF-8.in: New file.
26756 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
26757 on iso14651_t1.
26758
26759 2017-12-01 Joseph Myers <joseph@codesourcery.com>
26760
26761 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
26762 <libm-alias-float.h>.
26763 (fabsf): Define using libm_alias_float.
26764
26765 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26766
26767 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
26768
26769 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26770
26771 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
26772 <libm-alias-float.h>.
26773 (fabsf): Define using libm_alias_float.
26774 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
26775 <libm-alias-float.h>.
26776 (lrintf): Define using libm_alias_float.
26777 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
26778 <libm-alias-float.h>.
26779 (rintf): Define using libm_alias_float.
26780
26781 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
26782 <libm-alias-double.h>.
26783 (fabs): Define using libm_alias_double.
26784 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
26785 <libm-alias-double.h>.
26786 (lrint): Define using libm_alias_double.
26787 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
26788 <libm-alias-double.h>.
26789 (rint): Define using libm_alias_double.
26790
26791 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
26792 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
26793 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
26794 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
26795 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
26796 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
26797 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
26798 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
26799 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
26800 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
26801 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
26802 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
26803 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
26804 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
26805 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
26806 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
26807 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
26808 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
26809 s_atan_template.c.
26810 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
26811 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
26812 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
26813 s_ceil_template.c.
26814 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
26815 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
26816 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
26817 s_cos_template.c.
26818 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
26819 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
26820 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
26821 s_expm1_template.c.
26822 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
26823 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
26824 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
26825 s_fabs_template.c.
26826 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
26827 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
26828 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
26829 s_floor_template.c.
26830 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
26831 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
26832 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
26833 s_frexp_template.c.
26834 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
26835 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
26836 s_lrint_template.c.
26837 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
26838 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
26839 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
26840 s_modf_template.c.
26841 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
26842 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
26843 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
26844 s_nearbyint_template.c.
26845 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
26846 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
26847 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
26848 s_remquo_template.c.
26849 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
26850 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
26851 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
26852 s_rint_template.c.
26853 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
26854 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
26855 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
26856 s_sin_template.c.
26857 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
26858 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
26859 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
26860 s_sincos_template.c.
26861 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
26862 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
26863 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
26864 s_tan_template.c.
26865 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
26866 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
26867 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
26868 s_tanh_template.c.
26869 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
26870 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
26871 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
26872 s_trunc_template.c.
26873 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
26874 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
26875 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
26876 s_atan.c instead of including s_atan.c.
26877 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
26878 s_atanf.c instead of including s_atanf.c.
26879 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
26880 s_atanl.c instead of including s_atanl.c.
26881 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
26882 instead of s_atan.c.
26883 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
26884 instead of s_atanf.c.
26885 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
26886 instead of s_atanl.c.
26887
26888 * scripts/update-copyrights: Do not handle intl/plural.c
26889 specially.
26890
26891 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
26892
26893 [BZ #22432]
26894 * configure.ac (BISON): Require to be present.
26895 * configure: Regenerated.
26896 * intl/Makefile (generated): Add plural.c.
26897 [$(BISON) != no]: Make code unconditional.
26898 (plural.c): Change rule to $(objpfx)plural.c.
26899 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
26900 * intl/plural.c: Remove.
26901 * manual/install.texi (Tools for Compilation): Document bison as
26902 required.
26903 * INSTALL: Regenerated.
26904
26905 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26906
26907 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
26908 <libm-alias-double.h>.
26909 (llrint): Define using libm_alias_double.
26910 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
26911 <libm-alias-float.h>.
26912 (llrintf): Define using libm_alias_float.
26913 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
26914 <libm-alias-ldouble.h>.
26915 (llrintl): Define using libm_alias_ldouble.
26916
26917 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
26918 declare_mgen_alias instead of weak_alias.
26919 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26920 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26921 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26922
26923 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26924
26925 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26926 Add add_n-generic.
26927 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26928 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26929 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26930
26931 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26932 Add submul_1-generic.
26933 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26934 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26935 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26936
26937 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26938 Add addmul_1-generic.
26939 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26940 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26941 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26942
26943 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26944 Add sub_n-generic.
26945 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26946 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26947 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26948
26949 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26950 Add mul_1-generic.
26951 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26952 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26953 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26954
26955 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26956
26957 According to CLDR, collation rules for Serbian and Bosnian
26958 should be the same as for Croatian.
26959
26960 [BZ #22534]
26961 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26962 and to the list of locales to be built for testing.
26963 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26964 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26965 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
26966 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
26967
26968 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26969
26970 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26971 to make test case pass.
26972 * localedata/hr_HR.UTF-8.in: Add more test strings.
26973
26974 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26975
26976 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26977
26978 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26979
26980 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26981 the list of locales to built for testing.
26982 * localedata/hr_HR.UTF-8.in: New file.
26983
26984 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26985
26986 [BZ #10580]
26987 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26988 iso14651_t1.
26989 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26990 CLDR (except use ligatures for the digraphs, CLDR does not use
26991 the ligatures), add first_workday, some fixes in the date and time
26992 formats.
26993 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26994 for Đ and đ.
26995 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
26996 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
26997 Add int_p_cs_precedes and int_n_cs_precedes.
26998 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
26999 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
27000 LC_MONETARY now).
27001 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
27002 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
27003 name_miss.
27004 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
27005 and lang_lib. Change postal_fmt.
27006
27007 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
27008
27009 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
27010 <setjmp.h>.
27011 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
27012 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
27013 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
27014 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
27015 * sysdeps/generic/setjmpP.h: New file.
27016 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
27017 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
27018 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
27019 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
27020 Add jmp_buf-ssp.sym.
27021 (tests): Add tst-saved_mask-1.
27022
27023 2017-11-30 Arjun Shankar <arjun@redhat.com>
27024
27025 [BZ #22375]
27026 CVE-2017-17426
27027 * malloc/malloc.c (__libc_malloc): Use checked_request2size
27028 instead of request2size.
27029
27030 2017-11-30 Joseph Myers <joseph@codesourcery.com>
27031
27032 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
27033 (__lllrint): Remove alias.
27034 (lllrint): Likewise.
27035 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
27036 (__lllrintf): Likewise.
27037 (lllrintf): Likewise.
27038
27039 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
27040 <libm-alias-float.h>.
27041 (copysignf): Define using libm_alias_float.
27042 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
27043 <libm-alias-float.h>.
27044 (fabsf): Define using libm_alias_float.
27045 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
27046 Include <libm-alias-float.h>.
27047 (copysignf): Define using libm_alias_float.
27048 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
27049 <libm-alias-float.h>.
27050 (fabsf): Define using libm_alias_float.
27051 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
27052 <libm-alias-float.h>.
27053 (fdimf): Define using libm_alias_float.
27054 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
27055 <libm-alias-float.h>.
27056 (fmaf): Define using libm_alias_float.
27057 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
27058 <libm-alias-float.h>.
27059 (llrintf): Define using libm_alias_float.
27060 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
27061 Include <libm-alias-float.h>.
27062 (nearbyintf): Define using libm_alias_float.
27063 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
27064 <libm-alias-float.h>.
27065 (rintf): Define using libm_alias_float.
27066 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
27067 <libm-alias-float.h>.
27068 (llrintf): Define using libm_alias_float.
27069 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
27070 <libm-alias-float.h>.
27071 (lrintf): Define using libm_alias_float.
27072 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
27073 <libm-alias-float.h>.
27074 (nearbyintf): Define using libm_alias_float.
27075 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
27076 <libm-alias-float.h>.
27077 (rintf): Define using libm_alias_float.
27078 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
27079 <libm-alias-float.h>.
27080 (ceilf): Define using libm_alias_float.
27081 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
27082 <libm-alias-float.h>.
27083 (floorf): Define using libm_alias_float.
27084 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
27085 <libm-alias-float.h>.
27086 (fmaf): Define using libm_alias_float.
27087 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
27088 <libm-alias-float.h>.
27089 (lrintf): Define using libm_alias_float.
27090 (llrintf): Likewise.
27091 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
27092 <libm-alias-float.h>.
27093 (nearbyintf): Define using libm_alias_float.
27094 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
27095 <libm-alias-float.h>.
27096 (rintf): Define using libm_alias_float.
27097 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
27098 <libm-alias-float.h>.
27099 (truncf): Define using libm_alias_float.
27100 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
27101 <libm-alias-float.h>.
27102 (copysignf): Define using libm_alias_float.
27103 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
27104 <libm-alias-float.h>.
27105 (fabsf): Define using libm_alias_float.
27106 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
27107 <libm-alias-float.h>.
27108 (lrintf): Define using libm_alias_float.
27109 (llrintf): Likewise.
27110 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
27111 <libm-alias-float.h>.
27112 (nearbyintf): Define using libm_alias_float.
27113 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
27114 <libm-alias-float.h>.
27115 (rintf): Define using libm_alias_float.
27116
27117 2017-11-29 Joseph Myers <joseph@codesourcery.com>
27118
27119 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27120 <libm-alias-double.h>.
27121 (copysign): Define using libm_alias_double.
27122 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
27123 <libm-alias-double.h>.
27124 (fabs): Define using libm_alias_double.
27125 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27126 Include <libm-alias-double.h>.
27127 (copysign): Define using libm_alias_double.
27128 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27129 <libm-alias-double.h>.
27130 (fabs): Define using libm_alias_double.
27131 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
27132 <libm-alias-double.h>.
27133 (fdim): Define using libm_alias_double.
27134 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
27135 <libm-alias-double.h>.
27136 (fma): Define using libm_alias_double.
27137 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
27138 <libm-alias-double.h>.
27139 (llrint): Define using libm_alias_double.
27140 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
27141 Include <libm-alias-double.h>.
27142 (nearbyint): Define using libm_alias_double.
27143 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
27144 <libm-alias-double.h>.
27145 (rint): Define using libm_alias_double.
27146 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
27147 <libm-alias-double.h>.
27148 (fabs): Define using libm_alias_double.
27149 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
27150 <libm-alias-double.h>.
27151 (llrint): Define using libm_alias_double.
27152 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
27153 <libm-alias-double.h>.
27154 (nearbyint): Define using libm_alias_double.
27155 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
27156 <libm-alias-double.h>.
27157 (rint): Define using libm_alias_double.
27158 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
27159 <libm-alias-double.h>.
27160 (ceil): Define using libm_alias_double.
27161 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
27162 <libm-alias-double.h>.
27163 (floor): Define using libm_alias_double.
27164 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
27165 <libm-alias-double.h>.
27166 (fma): Define using libm_alias_double.
27167 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
27168 <libm-alias-double.h>.
27169 (lrint): Define using libm_alias_double.
27170 (llrint): Likewise.
27171 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
27172 <libm-alias-double.h>.
27173 (nearbyint): Define using libm_alias_double.
27174 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
27175 <libm-alias-double.h>.
27176 (rint): Define using libm_alias_double.
27177 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
27178 <libm-alias-double.h>.
27179 (trunc): Define using libm_alias_double.
27180 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
27181 <libm-alias-double.h>.
27182 (copysign): Define using libm_alias_double.
27183 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
27184 <libm-alias-double.h>.
27185 (fabs): Define using libm_alias_double.
27186 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
27187 <libm-alias-double.h>.
27188 (lrint): Define using libm_alias_double.
27189 (llrint): Likewise.
27190 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
27191 <libm-alias-double.h>.
27192 (nearbyint): Define using libm_alias_double.
27193 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
27194 <libm-alias-double.h>.
27195 (rint): Define using libm_alias_double.
27196
27197 [BZ #22229]
27198 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
27199 <math_ldbl_opt.h>.
27200 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27201
27202 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
27203 SPARC --disable-multi-arch glibc variants.
27204
27205 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
27206 <libm-alias-float.h>.
27207 (exp2f): Define using libm_alias_float, or libm_alias_float_other
27208 if [SHARED].
27209 * sysdeps/x86_64/fpu/multiarch/e_expf.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_log2f.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_logf.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_powf.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/s_ceilf.c: Include
27226 <libm-alias-float.h>.
27227 (ceilf): Define using libm_alias_float.
27228 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
27229 <libm-alias-float.h>.
27230 (floorf): Define using libm_alias_float.
27231 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
27232 <libm-alias-float.h>.
27233 (fmaf): Define using libm_alias_float.
27234 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
27235 <libm-alias-float.h>.
27236 (nearbyintf): Define using libm_alias_float.
27237 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
27238 <libm-alias-float.h>.
27239 (rintf): Define using libm_alias_float.
27240 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
27241 <libm-alias-float.h>.
27242 (truncf): Define using libm_alias_float.
27243 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
27244 (copysignf): Define using libm_alias_float.
27245 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
27246 (cosf): Define using libm_alias_float.
27247 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27248 (fabsf): Define using libm_alias_float.
27249 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
27250 (fmaxf): Define using libm_alias_float.
27251 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
27252 (fminf): Define using libm_alias_float.
27253 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
27254 (llrintf): Define using libm_alias_float.
27255 [!__ILP32__] (lrintf): Likewise.
27256 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
27257 (sincosf): Define using libm_alias_float.
27258 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
27259 (sinf): Define using libm_alias_float.
27260 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
27261 (lrintf): Define using libm_alias_float.
27262
27263 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
27264 <libm-alias-double.h>.
27265 (atan): Define using libm_alias_double.
27266 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
27267 <libm-alias-double.h>.
27268 (ceil): Define using libm_alias_double.
27269 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
27270 <libm-alias-double.h>.
27271 (floor): Define using libm_alias_double.
27272 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
27273 <libm-alias-double.h>.
27274 (fma): Define using libm_alias_double.
27275 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
27276 <libm-alias-double.h>.
27277 (nearbyint): Define using libm_alias_double.
27278 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
27279 <libm-alias-double.h>.
27280 (rint): Define using libm_alias_double.
27281 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
27282 <libm-alias-double.h>.
27283 (sin): Define using libm_alias_double.
27284 (cos): Likewise.
27285 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
27286 <libm-alias-double.h>.
27287 (tan): Define using libm_alias_double.
27288 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
27289 <libm-alias-double.h>.
27290 (trunc): Define using libm_alias_double.
27291 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
27292 (copysign): Define using libm_alias_double.
27293 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
27294 (fabs): Define using libm_alias_double.
27295 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
27296 (fmax): Define using libm_alias_double.
27297 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
27298 (fmin): Define using libm_alias_double.
27299 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
27300 (llrint): Define using libm_alias_double.
27301 [!__ILP32__] (lrint): Likewise.
27302 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
27303 (lrint): Define using libm_alias_double.
27304
27305 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27306
27307 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
27308 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
27309 objects.
27310 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
27311 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
27312 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
27313 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
27314 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
27315 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
27316
27317 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
27318 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
27319 objects.
27320 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
27321 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
27322 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
27323 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
27324 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
27325 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
27326
27327 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
27328 (libm-sysdep_routines): Add s_nearbyint-generic and
27329 s_nearbyintf-generic objects.
27330 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
27331 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
27332 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
27333 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
27334 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
27335 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
27336
27337 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
27338 Add s_finitef-generic and s_finite-generic objects.
27339 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
27340 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
27341 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
27342 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
27343 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
27344 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
27345
27346 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
27347 Add s_isinff-generic and s_isinf-generic objects.
27348 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
27349 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
27350 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
27351 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
27352 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
27353 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
27354
27355 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
27356 Add s_isnanf-generic and s_isnan-generic objects.
27357 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
27358 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
27359 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
27360 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
27361 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
27362 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
27363
27364 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
27365 macro.
27366 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
27367 rule.
27368 (sysdep_routines): Use sysdep_calls as base.
27369 (libm-sysdep_routines): Add generic rule for symbols shared with
27370 libc. Add s_signbit-generic and s_signbitf-generic objects.
27371 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
27372 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
27373 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
27374 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
27375 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
27376 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
27377
27378 2017-11-29 Joseph Myers <joseph@codesourcery.com>
27379
27380 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
27381 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
27382 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
27383 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
27384 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
27385 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
27386 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
27387 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
27388 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
27389 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
27390 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
27391 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
27392 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
27393 libm_alias_float_r.
27394 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
27395 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
27396 (logf): Likewise.
27397 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
27398 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
27399 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
27400 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
27401 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
27402 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
27403 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
27404 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
27405 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
27406 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
27407 libm_alias_float.
27408 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
27409 (cosf): Likewise.
27410 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
27411 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
27412 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
27413 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
27414 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
27415 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
27416 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
27417 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
27418 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
27419 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
27420 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
27421 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
27422 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
27423 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
27424 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
27425 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
27426 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
27427 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
27428 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
27429 libm_alias_float.
27430 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
27431 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
27432 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
27433 * sysdeps/ia64/fpu/w_lgammaf_main.c
27434 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
27435 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
27436
27437 2017-11-28 Mike FABIAN <mfabian@redhat.com>
27438 Alexandre Oliva <aoliva@redhat.com>
27439
27440 [BZ #17750]
27441 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
27442 * localedata/fr_CA.UTF-8.in: New file with test data for backward
27443 accents sorting.
27444 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
27445 sorting.
27446 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
27447 * localedata/locales/de_DE (LC_COLLATE): Likewise.
27448 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
27449 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
27450 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
27451 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
27452 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
27453 instead of “ifdef DIACRIT_BACKWARD”.
27454
27455 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27456
27457 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
27458 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
27459 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
27460 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
27461 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
27462 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
27463 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
27464 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
27465 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
27466 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
27467 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
27468 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
27469 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
27470 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
27471 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
27472 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
27473 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
27474 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
27475 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
27476 ($(have-as-vis3) == yes): Remove conditional.
27477 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
27478 Likewise.
27479 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
27480 file.
27481 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
27482 file.
27483 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
27484 file.
27485 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
27486 file.
27487 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
27488 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
27489 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
27490 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
27491 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
27492 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
27493 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
27494 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
27495
27496 2017-11-29 Joseph Myers <joseph@codesourcery.com>
27497
27498 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
27499 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
27500 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
27501 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
27502 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
27503 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
27504 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
27505 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
27506 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
27507 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
27508 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
27509 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
27510 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
27511 libm_alias_double_r.
27512 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
27513 (log): Likewise.
27514 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
27515 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
27516 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
27517 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
27518 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
27519 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
27520 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
27521 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
27522 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
27523 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
27524 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
27525 libm_alias_double.
27526 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
27527 (cos): Likewise.
27528 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
27529 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
27530 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
27531 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
27532 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
27533 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
27534 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
27535 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
27536 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
27537 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
27538 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
27539 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
27540 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
27541 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
27542 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
27543 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
27544 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
27545 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
27546 libm_alias_double.
27547 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
27548 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
27549 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
27550 * sysdeps/ia64/fpu/w_lgamma_main.c
27551 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
27552 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
27553
27554 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
27555
27556 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
27557 address of $global$ into %dp register earlier. Use pc-relative
27558 instruction sequence for PIC case.
27559
27560 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27561
27562 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
27563 (asinhf): Define using libm_alias_float.
27564 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
27565 (atanf): Define using libm_alias_float.
27566 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
27567 (cbrtf): Define using libm_alias_float.
27568 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
27569 (ceilf): Define using libm_alias_float.
27570 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
27571 (copysignf): Define using libm_alias_float.
27572 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
27573 (expm1f): Define using libm_alias_float.
27574 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
27575 (fabsf): Define using libm_alias_float.
27576 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
27577 (floorf): Define using libm_alias_float.
27578 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
27579 (fmaxf): Define using libm_alias_float.
27580 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
27581 (fminf): Define using libm_alias_float.
27582 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
27583 (frexpf): Define using libm_alias_float.
27584 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
27585 (llrintf): Define using libm_alias_float.
27586 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
27587 (logbf): Define using libm_alias_float.
27588 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
27589 (lrintf): Define using libm_alias_float.
27590 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
27591 (nearbyintf): Define using libm_alias_float.
27592 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
27593 (remquof): Define using libm_alias_float.
27594 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
27595 (rintf): Define using libm_alias_float.
27596 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
27597 (truncf): Define using libm_alias_float.
27598 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
27599 <libm-alias-float.h>.
27600 (exp2f): Define using libm_alias_float, or libm_alias_float_other
27601 if [SHARED].
27602 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
27603 <libm-alias-float.h>.
27604 (expf): Define using libm_alias_float, or libm_alias_float_other
27605 if [SHARED].
27606 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
27607 <libm-alias-float.h>.
27608 (log2f): Define using libm_alias_float, or libm_alias_float_other
27609 if [SHARED].
27610 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
27611 <libm-alias-float.h>.
27612 (logf): Define using libm_alias_float, or libm_alias_float_other
27613 if [SHARED].
27614 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
27615 <libm-alias-float.h>.
27616 (powf): Define using libm_alias_float, or libm_alias_float_other
27617 if [SHARED].
27618 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
27619 <libm-alias-float.h>.
27620 (cosf): Define using libm_alias_float.
27621 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
27622 <libm-alias-float.h>.
27623 (sincosf): Define using libm_alias_float.
27624 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
27625 <libm-alias-float.h>.
27626 (sinf): Define using libm_alias_float.
27627 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
27628 (fmaxf): Define using libm_alias_float.
27629 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
27630 (fminf): Define using libm_alias_float.
27631 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
27632 <libm-alias-float.h>.
27633 (fmaf): Define using libm_alias_float.
27634
27635 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
27636 (asinh): Define using libm_alias_double.
27637 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
27638 (atan): Define using libm_alias_double.
27639 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
27640 (cbrt): Define using libm_alias_double.
27641 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
27642 (ceil): Define using libm_alias_double.
27643 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
27644 (copysign): Define using libm_alias_double.
27645 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
27646 (expm1): Define using libm_alias_double.
27647 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
27648 (fabs): Define using libm_alias_double.
27649 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
27650 (fdim): Define using libm_alias_double.
27651 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
27652 (floor): Define using libm_alias_double.
27653 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
27654 (fmax): Define using libm_alias_double.
27655 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
27656 (fmin): Define using libm_alias_double.
27657 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
27658 (frexp): Define using libm_alias_double.
27659 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
27660 (llrint): Define using libm_alias_double.
27661 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
27662 (logb): Define using libm_alias_double.
27663 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
27664 (lrint): Define using libm_alias_double.
27665 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
27666 (nearbyint): Define using libm_alias_double.
27667 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
27668 (remquo): Define using libm_alias_double.
27669 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
27670 (rint): Define using libm_alias_double.
27671 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
27672 (trunc): Define using libm_alias_double.
27673 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
27674 (fmax): Define using libm_alias_double.
27675 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
27676 (fmin): Define using libm_alias_double.
27677 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
27678 (fma): Define using libm_alias_double.
27679
27680 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
27681
27682 [BZ #22370]
27683 * elf/dl-hwcaps.c (ROUND): Removed.
27684 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
27685 and ELF_NOTE_NEXT_OFFSET.
27686 * elf/dl-load.c (ROUND): Removed.
27687 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27688 * elf/readelflib.c (ROUND): Removed.
27689 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27690 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
27691 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
27692 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
27693
27694 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27695
27696 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27697 [!__fmaf] (fmaf): Define using libm_alias_float.
27698
27699 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
27700 [!__fma] (fma): Define using libm_alias_double.
27701 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
27702
27703 2017-11-28 Mike FABIAN <mfabian@redhat.com>
27704
27705 [BZ #22336]
27706 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
27707 and implement the collation rules for cs from CLDR on top of that.
27708 * Makefile: Add cs_CZ.UTF-8 to test-input.
27709 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
27710
27711 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
27712
27713 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
27714
27715 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27716 Icarus Sparry <icarus.w.sparry@intel.com>
27717
27718 * benchtests/Makefile:Add BENCHSET to allow subsets of
27719 benchmarks to be run.
27720 * benchtests/README: Add documentation for: Running subsets of
27721 benchmarks.
27722
27723 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27724
27725 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
27726 range of tests names.
27727
27728 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
27729 result from property and remove "max", min" and "mean" from
27730 required properties based on benchtests/bench-skeleton.c.
27731
27732 2017-11-28 Florian Weimer <fweimer@redhat.com>
27733
27734 [BZ #20826]
27735 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
27736 due to Internet requirement.
27737 * posix/Makefile (tests): Remove tst-getaddrinfo4,
27738 tst-getaddrinfo5.
27739 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
27740
27741 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27742
27743 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27744 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
27745 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27746 (sysdep_routines): Add memset-ultra1.
27747 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
27748 file.
27749 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
27750 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
27751 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
27752 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
27753 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
27754 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
27755 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
27756 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27757
27758 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
27759 file.
27760 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
27761 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
27762 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
27763 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
27764 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
27765 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
27766 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
27767 macro.
27768 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27769 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
27770 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27771 (sysdep_routines): Add memcpy-ultra1.
27772 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
27773 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
27774
27775 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27776
27777 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
27778 (cfloat_versions): Take function argument without trailing 'f'.
27779 Call libm_alias_float_other.
27780 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
27781 * sysdeps/alpha/fpu/cargf.c: Likewise.
27782 * sysdeps/alpha/fpu/cimagf.c: Likewise.
27783 * sysdeps/alpha/fpu/conjf.c: Likewise.
27784 * sysdeps/alpha/fpu/crealf.c: Likewise.
27785 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
27786 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
27787 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
27788 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
27789 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
27790 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
27791 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
27792 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
27793 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
27794 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
27795 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
27796 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
27797 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
27798 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
27799 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
27800 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
27801 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
27802 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
27803 (clog10f): Use libm_alias_float_other.
27804 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27805 (ceilf): Define using libm_alias_float.
27806 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
27807 (copysignf): Define using libm_alias_float.
27808 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27809 (fabsf): Define using libm_alias_float.
27810 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
27811 (floorf): Define using libm_alias_float.
27812 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
27813 (fmaxf): Define using libm_alias_float.
27814 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
27815 (fminf): Define using libm_alias_float.
27816 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27817 (lrintf): Define using libm_alias_float.
27818 (llrintf): Likewise.
27819 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27820 (lroundf): Define using libm_alias_float.
27821 (llroundf): Likewise.
27822 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
27823 (rintf): Define using libm_alias_float.
27824 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
27825 (truncf): Define using libm_alias_float.
27826
27827 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27828 (ceilf): Define using libm_alias_float.
27829 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
27830 (floorf): Define using libm_alias_float.
27831 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27832 (fmaf): Define using libm_alias_float.
27833 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
27834 (fmaxf): Define using libm_alias_float.
27835 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
27836 (fminf): Define using libm_alias_float.
27837 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
27838 (llrintf): Define using libm_alias_float.
27839 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
27840 (llroundf): Define using libm_alias_float.
27841 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27842 (lrintf): Define using libm_alias_float.
27843 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27844 (lroundf): Define using libm_alias_float.
27845 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
27846 <libm-alias-float.h>.
27847 (nearbyintf): Define using libm_alias_float.
27848 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
27849 (rintf): Define using libm_alias_float.
27850 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
27851 (roundf): Define using libm_alias_float.
27852 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
27853 (truncf): Define using libm_alias_float.
27854
27855 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
27856 (ceil): Define using libm_alias_double.
27857 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
27858 (copysign): Define using libm_alias_double.
27859 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
27860 (fabs): Define using libm_alias_double.
27861 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
27862 (floor): Define using libm_alias_double.
27863 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
27864 (fmax): Define using libm_alias_double.
27865 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
27866 (fmin): Define using libm_alias_double.
27867 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
27868 (lrint): Define using libm_alias_double.
27869 (llrint): Likewise.
27870 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
27871 (lround): Define using libm_alias_double.
27872 (llround): Likewise.
27873 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
27874 (rint): Define using libm_alias_double.
27875 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
27876 (trunc): Define using libm_alias_double.
27877
27878 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27879 (libm_alias_double_r): Add semicolon after weak_alias call.
27880
27881 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27882
27883 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
27884 (ceil): Define using libm_alias_double.
27885 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
27886 (floor): Define using libm_alias_double.
27887 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
27888 (fma): Define using libm_alias_double.
27889 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
27890 (fmax): Define using libm_alias_double.
27891 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
27892 (fmin): Define using libm_alias_double.
27893 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
27894 (llrint): Define using libm_alias_double.
27895 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
27896 (llround): Define using libm_alias_double.
27897 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
27898 (lrint): Define using libm_alias_double.
27899 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
27900 (lround): Define using libm_alias_double.
27901 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
27902 (nearbyint): Define using libm_alias_double.
27903 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
27904 (rint): Define using libm_alias_double.
27905 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
27906 (round): Define using libm_alias_double.
27907 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
27908 (trunc): Define using libm_alias_double.
27909
27910 2017-11-27 Florian Weimer <fweimer@redhat.com>
27911
27912 * sysdeps/unix/sysv/linux/mlock2.c: New file.
27913 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
27914 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
27915 (tests): Add tst-mlock2.
27916 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
27917 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
27918 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27919 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27920 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27921 for mlock. Document mlock2.
27922
27923 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27924
27925 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27926 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27927 Likewise.
27928 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27929 Likewise.
27930 * sysdeps/x86/Makeconfig: New file.
27931 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27932 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27933 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27934 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27935 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27936 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27937 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27938 Likewise.
27939 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27940 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27941 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27942 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27943 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27944 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27945 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27946 * manual/math.texi (Mathematics): Document support for _Float64x.
27947 * math/Versions (GLIBC_2.27): Add _Float64x functions.
27948 * stdlib/Versions (GLIBC_2.27): Likewise.
27949 * wcsmbs/Versions (GLIBC_2.27): Likewise.
27950 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27951 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27952 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27953 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27954 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27955 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27956 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27957 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27958 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27959 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27960 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27962 Likewise.
27963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27964 Likewise.
27965 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27966 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27967 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27968 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27969 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27970 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27971 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27972 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27973 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27974 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27975 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27976 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27977 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27978 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27979
27980 2017-11-27 Andreas Schwab <schwab@suse.de>
27981
27982 * elf/Makefile (dl-routines): Add dl-sort-maps.
27983 * elf/dl-sort-maps.c: New file.
27984 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27985 (_dl_sort_maps): Declare.
27986 * elf/dl-fini.c (_dl_sort_fini): Remove.
27987 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27988 * elf/dl-close.c (_dl_close_worker): Likewise.
27989 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27990 open-coding it.
27991 * elf/dl-open.c (dl_open_worker): Likewise.
27992
27993 2017-11-24 Joseph Myers <joseph@codesourcery.com>
27994
27995 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
27996 using libm_alias_float128.
27997 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
27998 Likewise.
27999 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
28000 Likewise.
28001 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
28002 (setpayloadsigf128): Likewise.
28003 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
28004 Likewise.
28005 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
28006 Likewise.
28007
28008 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
28009 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
28010 -mfloat128 to CFLAGS.
28011 ($(foreach
28012 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
28013 Likewise.
28014 (CFLAGS-libm-test-support-float64x.c): New variable.
28015 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
28016 $(f128-loader-link) to gnulib-tests.
28017
28018 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
28019 (libm_alias_float128_other_r): If
28020 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
28021 alias.
28022 (libm_alias_float128_r): Add semicolon after weak_alias call.
28023 * sysdeps/generic/libm-alias-ldouble.h
28024 (libm_alias_ldouble_other_r_f128): New macro.
28025 (libm_alias_ldouble_other_r_f64x): Likewise.
28026 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
28027 and libm_alias_ldouble_other_r_f64x.
28028 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
28029 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
28030 (libm_alias_ldouble_other_r_f128): New macro.
28031 (libm_alias_ldouble_other_r_f64x): Likewise.
28032 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
28033 and libm_alias_ldouble_other_r_f64x.
28034
28035 * stdlib/strfroml.c: Always include <stdlib.h>.
28036 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
28037 undefine as macro and define as weak alias.
28038 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
28039 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
28040 <stdlib.h>.
28041 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
28042 Define and later undefine as macro and define as weak alias.
28043
28044 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
28045 Define and later undefine as macro. Define as weak alias if
28046 [!USE_WIDE_CHAR].
28047 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
28048 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
28049 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
28050 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
28051 Define and later undefine as macro. Define as weak alias if
28052 [!USE_WIDE_CHAR].
28053 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
28054 Define and later undefine as macro. Define as weak alias if
28055 [USE_WIDE_CHAR].
28056 * sysdeps/ieee754/float128/strtof128_l.c
28057 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
28058 Define and later undefine as macro. Define as weak alias if
28059 [!USE_WIDE_CHAR].
28060 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
28061 Define and later undefine as macro. Define as weak alias if
28062 [USE_WIDE_CHAR].
28063 * sysdeps/ieee754/ldbl-128/strtold_l.c
28064 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
28065 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
28066 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
28067 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
28068 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
28069 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
28070 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
28071 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
28072 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
28073 * sysdeps/ieee754/ldbl-96/strtold_l.c
28074 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
28075 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
28076 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
28077 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
28078
28079 * math/test-float64x.h: New file.
28080 * math/Makefile (type-float64x-yes): New variable.
28081 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
28082
28083 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
28084 function-like macro.
28085 (min_of_type_): Likewise.
28086 (min_of_type_l): Likewise.
28087 (min_of_type_f128): Likewise.
28088 (min_of_type): Pass () as last argument of __MATH_TG.
28089
28090 * stdlib/tst-strtod-round-skeleton.c
28091 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
28092 headers.
28093
28094 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
28095 for combinations of long double with _Float64 and _Float64x.
28096
28097 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
28098 (__DECL_SIMD_cosf32): Likewise.
28099 (__DECL_SIMD_cosf64): Likewise.
28100 (__DECL_SIMD_cosf32x): Likewise.
28101 (__DECL_SIMD_cosf64x): Likewise.
28102 (__DECL_SIMD_cosf128x): Likewise.
28103 (__DECL_SIMD_sinf16): Likewise.
28104 (__DECL_SIMD_sinf32): Likewise.
28105 (__DECL_SIMD_sinf64): Likewise.
28106 (__DECL_SIMD_sinf32x): Likewise.
28107 (__DECL_SIMD_sinf64x): Likewise.
28108 (__DECL_SIMD_sinf128x): Likewise.
28109 (__DECL_SIMD_sincosf16): Likewise.
28110 (__DECL_SIMD_sincosf32): Likewise.
28111 (__DECL_SIMD_sincosf64): Likewise.
28112 (__DECL_SIMD_sincosf32x): Likewise.
28113 (__DECL_SIMD_sincosf64x): Likewise.
28114 (__DECL_SIMD_sincosf128x): Likewise.
28115 (__DECL_SIMD_logf16): Likewise.
28116 (__DECL_SIMD_logf32): Likewise.
28117 (__DECL_SIMD_logf64): Likewise.
28118 (__DECL_SIMD_logf32x): Likewise.
28119 (__DECL_SIMD_logf64x): Likewise.
28120 (__DECL_SIMD_logf128x): Likewise.
28121 (__DECL_SIMD_expf16): Likewise.
28122 (__DECL_SIMD_expf32): Likewise.
28123 (__DECL_SIMD_expf64): Likewise.
28124 (__DECL_SIMD_expf32x): Likewise.
28125 (__DECL_SIMD_expf64x): Likewise.
28126 (__DECL_SIMD_expf128x): Likewise.
28127 (__DECL_SIMD_powf16): Likewise.
28128 (__DECL_SIMD_powf32): Likewise.
28129 (__DECL_SIMD_powf64): Likewise.
28130 (__DECL_SIMD_powf32x): Likewise.
28131 (__DECL_SIMD_powf64x): Likewise.
28132 (__DECL_SIMD_powf128x): Likewise.
28133
28134 * stdlib/Versions (libc): Move entries for wcstof128 and
28135 wcstof128_l to ....
28136 * wcsmbs/Versions (libc): ... here.
28137 Include <float128-abi.h>.
28138
28139 2017-11-24 Florian Weimer <fweimer@redhat.com>
28140
28141 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28142 bits/mman-shared.h.
28143 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
28144 <bits/mman-shared.h>.
28145 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
28146 to ...
28147 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
28148 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
28149 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
28150 <bits/mman-shared.h>.
28151
28152 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28153
28154 [BZ #22457]
28155 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
28156 posix_memalign/free.
28157 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
28158
28159 2017-11-22 Mike FABIAN <mfabian@redhat.com>
28160
28161 [BZ #22469]
28162 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
28163 and implement the collation rules for pl from CLDR on top of that.
28164 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
28165 of locales to be built for testing.
28166 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
28167
28168 2017-11-23 Joseph Myers <joseph@codesourcery.com>
28169
28170 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
28171 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
28172 libm_alias_ldouble_other.
28173 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
28174 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
28175 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
28176 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
28177 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
28178 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
28179 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
28180 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
28181 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
28182 libm_alias_ldouble_r.
28183 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
28184 libm_alias_ldouble_other.
28185 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
28186 (log10l): Likewise.
28187 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
28188 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
28189 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
28190 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
28191 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
28192 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
28193 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
28194 (atan2l): Likewise.
28195 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
28196 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
28197 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
28198 libm_alias_ldouble.
28199 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
28200 (cosl): Likewise.
28201 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
28202 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
28203 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
28204 (expl): Likewise.
28205 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
28206 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
28207 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
28208 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
28209 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
28210 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
28211 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
28212 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
28213 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
28214 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
28215 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
28216 libm_alias_ldouble.
28217 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
28218 libm_alias_ldouble_other.
28219 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
28220 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
28221 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
28222 libm_alias_ldouble.
28223 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
28224 libm_alias_ldouble_other.
28225 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
28226 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
28227 * sysdeps/ia64/fpu/w_lgammal_main.c
28228 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
28229 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
28230
28231 2017-11-23 Florian Weimer <fweimer@redhat.com>
28232
28233 * malloc/malloc.c (tcache_thread_shutdown): Rename from
28234 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
28235 alike. Remove freeres marker.
28236 * malloc/arena.c (arena_thread_freeres): Call
28237 tcache_thread_shutdown.
28238
28239 2017-11-23 Florian Weimer <fweimer@redhat.com>
28240
28241 [BZ #22459]
28242 Export nscd hash function as __nss_hash.
28243 * include/nss.h (__nss_hash): Declare.
28244 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
28245 symbol.
28246 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
28247 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
28248 of __nscd_hash.
28249 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
28250 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
28251 * nss/Makefiles (routines): Add nss_hash.
28252 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
28253 * nss/nss_hash.c: Rename from nis/nis_hash.c.
28254 (__nss_hash): Rename from __nis_hash. Define hidden alias.
28255 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
28256
28257 2017-11-23 Florian Weimer <fweimer@redhat.com>
28258
28259 [BZ #22478]
28260 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
28261 Return error code, not -1.
28262 * signal/tst-sigwait-eintr.c: New file.
28263 * signal/Makefile (tests): Add tst-sigwait-eintr.
28264
28265 2017-11-23 Florian Weimer <fweimer@redhat.com>
28266
28267 Linux: Add memfd_create system call wrapper
28268 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
28269 tst-memfd_create.
28270 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
28271 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
28272 [__USE_GNU] (memfd_create): Declare.
28273 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
28274 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
28275 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
28276 * sysdeps/unix/sysv/linux/**.abilist: Update.
28277 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
28278
28279 2017-11-22 Joseph Myers <joseph@codesourcery.com>
28280
28281 * localedata/gen-locale.sh: Fix typo in variable name.
28282
28283 * resolv/res_debug.c (p_secstodate): Condition definition on
28284 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
28285 directly as __p_secstodate, and as a compat symbol. Do not use
28286 libresolv_hidden_def.
28287 * resolv/resolv.h (p_secstodate): Remove macro and function
28288 declaration.
28289 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
28290 using p_secstodate.
28291 * include/resolv.h (__p_secstodate): Do not use
28292 libresolv_hidden_proto.
28293 * resolv/Makefile (tests): Move tst-p_secstodate to ....
28294 (tests-internal): ... here.
28295 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
28296 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
28297 and declare and use __p_secstodate and use compat_symbol_reference
28298 in that case.
28299 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
28300 implementation returning 77.
28301
28302 [BZ #22463]
28303 * resolv/res_debug.c: Include <libc-diag.h>.
28304 (p_secstodate): Assert time_t at least as wide as u_long. On
28305 overflow, use integer seconds since the epoch as output, or use
28306 "<overflow>" as output and set errno to EOVERFLOW if integer
28307 seconds since the epoch would be 14 or more characters.
28308 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
28309 for sprintf call.
28310 * resolv/tst-p_secstodate.c: New file.
28311 * resolv/Makefile (tests): Add tst-p_secstodate.
28312 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
28313
28314 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
28315 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
28316 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
28317
28318 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
28319
28320 * posix/regcomp.c (init_word_char): Add comments.
28321
28322 2017-11-22 Joseph Myers <joseph@codesourcery.com>
28323
28324 [BZ #22447]
28325 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
28326 strlen to compute length of ut_user and set trailing NUL byte of
28327 result explicitly.
28328
28329 2017-11-21 Mike FABIAN <mfabian@redhat.com>
28330
28331 [BZ #15537]
28332 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
28333 using “copy "iso14651_t1"” and then implementing the
28334 collation rules for lv from CLDR on top of that.
28335 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
28336 of locales to be built for testing.
28337 * lv_LV.UTF-8.in: New file with test data to test the Latvian
28338 sorting.
28339
28340 2017-11-21 Joseph Myers <joseph@codesourcery.com>
28341
28342 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
28343 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
28344 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
28345 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
28346 [__USE_MISC] (MADV_HWPOISON): New macro.
28347 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
28348
28349 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28350
28351 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
28352 -Wmissing-braces on GCC 4.9.
28353
28354 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
28355
28356 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
28357 * sysdeps/s390/s390-32/start.S (_start): Likewise
28358 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
28359 (thread_start): Likewise.
28360 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
28361 (thread_start): Likewise.
28362 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
28363 (__makecontext_ret): Likewise.
28364 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
28365 (__makecontext_ret): Likewise.
28366
28367 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
28368
28369 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
28370 __wcschrnul): Remove attribute_hidden.
28371
28372 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
28373
28374 regex: don't assume uint64_t or uint32_t
28375 This avoids -Werror=overflow errors for 32-bit systems in
28376 the 64-bit case. Problem reported by Joseph Myers in:
28377 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
28378 Also, when this code is used in Gnulib it ports to platforms
28379 that lack uint64_t and uint32_t. The C standard doesn't guarantee
28380 them, and on some 32-bit compilers there is no uint64_t.
28381 Problem reported by Gianluigi Tiesi in:
28382 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
28383 * posix/regcomp.c (init_word_char): Don't assume that the types
28384 uint64_t and uint32_t exist. Adapted from Gnulib patch
28385 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
28386 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
28387
28388 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
28389
28390 * sysdeps/aarch64/memset-reg.h: New file.
28391 * sysdeps/aarch64/memset.S: Use it.
28392 (__memset): Rename to MEMSET macro.
28393 [ZVA_MACRO]: Use zva_macro.
28394 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
28395 Add memset_generic and memset_falkor.
28396 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28397 (__libc_ifunc_impl_list): Add memset ifuncs.
28398 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
28399 local variable zva_size.
28400 * sysdeps/aarch64/multiarch/memset.c: New file.
28401 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
28402 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
28403 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
28404 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
28405 (DCZID_DZP_MASK): New macro.
28406 (DCZID_BS_MASK): Likewise.
28407 (init_cpu_features): Read and set zva_size.
28408 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
28409 (struct cpu_features): New member zva_size.
28410
28411 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
28412 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
28413 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
28414
28415 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
28416 backwards. Fix timing computation.
28417 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
28418 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
28419 on memset by N at a time. Fix timing computation.
28420
28421 2017-11-20 Florian Weimer <fweimer@redhat.com>
28422
28423 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
28424 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
28425
28426 2017-11-19 Florian Weimer <fweimer@redhat.com>
28427
28428 manual: Document mprotect
28429 * manual/memory.texi (Memory Protection): New section.
28430 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
28431 documentation of PROT_* flags and reference the Memory Protection
28432 section instead.
28433
28434 2017-11-19 Florian Weimer <fweimer@redhat.com>
28435
28436 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
28437 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
28438 (Scatter-Gather): ... to here. Remove misleading comment.
28439
28440 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
28441
28442 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
28443 style.
28444
28445 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
28446 when /proc/<pid>/setgroups does not exist.
28447
28448 2017-11-18 Florian Weimer <fweimer@redhat.com>
28449
28450 * sysdeps/unix/sysv/linux/tst-ttyname.c
28451 (become_root_in_mount_ns): Remove.
28452 (do_in_chroot_1): Call support_enter_mount_namespace.
28453 (do_in_chroot_2): Likewise.
28454 (do_test): Call support_become_root early.
28455
28456 2017-11-18 Florian Weimer <fweimer@redhat.com>
28457
28458 * support/namespace.h (support_enter_mount_namespace): Declare.
28459 * support/support_enter_mount_namespace.c: New file.
28460 * support/Makefile (libsupport-routines): Add
28461 support_enter_mount_namespace.
28462
28463 2017-11-18 Florian Weimer <fweimer@redhat.com>
28464
28465 * support/temp_file.c (support_create_temp_directory): Use
28466 test_dir and do not rely on the presence of the XXXXXX suffix.
28467 * support/temp_file.h (support_create_temp_directory): Update
28468 comment.
28469 * support/tst-xreadlink.c (do_test): Adjust.
28470 * support/support_chroot.c (support_chroot_create): Likewise.
28471
28472 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28473
28474 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
28475 macro.
28476 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
28477 htm-no-suspend.
28478
28479 2017-11-17 Joseph Myers <joseph@codesourcery.com>
28480
28481 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
28482 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
28483 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
28484 (ceill): Define using libm_alias_ldouble.
28485 * sysdeps/x86_64/fpu/s_copysignl.S: Include
28486 <libm-alias-ldouble.h>.
28487 (copysignl): Define using libm_alias_ldouble.
28488 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
28489 (fabsl): Define using libm_alias_ldouble.
28490 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
28491 (floorl): Define using libm_alias_ldouble.
28492 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
28493 (fmaxl): Define using libm_alias_ldouble.
28494 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
28495 (fminl): Define using libm_alias_ldouble.
28496 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
28497 (llrintl): Define using libm_alias_ldouble.
28498 (lrintl): Likewise.
28499 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
28500 <libm-alias-ldouble.h>.
28501 (nearbyintl): Define using libm_alias_ldouble.
28502 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
28503 (truncl): Define using libm_alias_ldouble.
28504 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
28505 <libm-alias-ldouble.h>.
28506 (lrintl): Define using libm_alias_ldouble.
28507
28508 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
28509 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
28510 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
28511 (asinhl): Define using libm_alias_ldouble.
28512 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
28513 (atanl): Define using libm_alias_ldouble.
28514 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
28515 (cbrtl): Define using libm_alias_ldouble.
28516 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
28517 (ceill): Define using libm_alias_ldouble.
28518 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
28519 (copysignl): Define using libm_alias_ldouble.
28520 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
28521 (fabsl): Define using libm_alias_ldouble.
28522 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
28523 (floorl): Define using libm_alias_ldouble.
28524 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
28525 (fmaxl): Define using libm_alias_ldouble.
28526 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
28527 (fminl): Define using libm_alias_ldouble.
28528 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
28529 (frexpl): Define using libm_alias_ldouble.
28530 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
28531 (llrintl): Define using libm_alias_ldouble.
28532 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
28533 (logbl): Define using libm_alias_ldouble.
28534 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
28535 (lrintl): Define using libm_alias_ldouble.
28536 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
28537 (nearbyintl): Define using libm_alias_ldouble.
28538 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
28539 (nextafterl): Define using libm_alias_ldouble.
28540 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
28541 (remquol): Define using libm_alias_ldouble.
28542 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
28543 (rintl): Define using libm_alias_ldouble.
28544 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
28545 (truncl): Define using libm_alias_ldouble.
28546 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
28547 (fmaxl): Define using libm_alias_ldouble.
28548 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
28549 (fminl): Define using libm_alias_ldouble.
28550
28551 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
28552 to C syntax instead of availability and properties of types.
28553 * bits/floatn.h [!__ASSEMBLER]: Likewise.
28554 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
28555 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
28556 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
28557 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
28558 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
28559
28560 2017-11-17 Florian Weimer <fweimer@redhat.com>
28561
28562 support_become_root: Enable file creation in namespaces.
28563 * support/support_become_root.c (setup_mapping): New function.
28564 (support_become_root): Call it.
28565
28566 2017-11-17 Joseph Myers <joseph@codesourcery.com>
28567
28568 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
28569 macro.
28570
28571 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28572
28573 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
28574 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
28575
28576 2017-11-16 Joseph Myers <joseph@codesourcery.com>
28577
28578 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
28579
28580 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28581 version to 4.14.
28582
28583 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28584
28585 * INSTALL: Fix botched up regeneration.
28586
28587 * NEWS: Update sourceare link to https.
28588 * configure.ac: Likewise.
28589 * crypt/md5test-giant.c: Likewise.
28590 * dlfcn/bug-atexit1.c: Likewise.
28591 * dlfcn/bug-atexit2.c: Likewise.
28592 * localedata/README: Likewise.
28593 * malloc/tst-mallocfork.c: Likewise.
28594 * manual/install.texi: Likewise.
28595 * nptl/tst-pthread-getattr.c: Likewise.
28596 * stdio-common/tst-fgets.c: Likewise.
28597 * stdio-common/tst-fwrite.c: Likewise.
28598 * sunrpc/Makefile: Likewise.
28599 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
28600 * wcsmbs/tst-mbrtowc2.c: Likewise.
28601 * configure: Regenerate.
28602 * INSTALL: Regenerate.
28603
28604 2017-11-15 Martin Sebor <msebor@redhat.com>
28605
28606 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
28607 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
28608 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
28609
28610 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
28611
28612 [BZ #22145]
28613 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
28614 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
28615
28616 [BZ #22145]
28617 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
28618 Defer is_pty check until end of the function.
28619 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
28620
28621 [BZ #22145]
28622 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
28623 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
28624 (ttyname): Likewise.
28625 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28626 (__ttyname_r): Likewise.
28627
28628 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
28629 int to bool.
28630
28631 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
28632
28633 * manual/terminal.texi (Is It a Terminal):
28634 Mention ENODEV for ttyname and ttyname_r.
28635
28636 2017-11-15 Joseph Myers <joseph@codesourcery.com>
28637
28638 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
28639 constant and macro.
28640
28641 * sysdeps/unix/sysv/linux/bits/mman-linux.h
28642 [__USE_MISC] (MADV_WIPEONFORK): New macro.
28643 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
28644 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
28645 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
28646 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
28647
28648 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28649
28650 * signal/sigrelse.c (sigrelse): Optimize implementation.
28651
28652 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
28653 (__sigpause): Rely on __sigsuspend to implement single thread
28654 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
28655
28656 2017-11-15 Joseph Myers <joseph@codesourcery.com>
28657
28658 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28659 kernel version to 4.14.
28660
28661 2017-11-15 Steve Ellcey <sellcey@cavium.com>
28662
28663 [BZ #22442]
28664 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
28665 Check if ifname is too long.
28666
28667 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
28668
28669 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
28670
28671 2017-11-15 Mike FABIAN <mfabian@redhat.com>
28672
28673 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
28674 was accidentally lost.
28675
28676 2017-11-15 Mike FABIAN <mfabian@redhat.com>
28677
28678 * localedata/locales/az_IR: Add standard copyright header.
28679
28680 2017-11-15 Florian Weimer <fweimer@redhat.com>
28681
28682 [BZ #22439]
28683 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
28684 not just the top one. Output a new "subheaps" statistic.
28685
28686 2017-11-15 Florian Weimer <fweimer@redhat.com>
28687
28688 [BZ #22408]
28689 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
28690 under the per-arena lock.
28691 * malloc/Makefile (tests): Add tst-malloc_info.
28692 (tst-malloc_info): Link with libpthread.
28693 * malloc/tst-malloc_info.c: New file.
28694
28695 2017-11-15 Joseph Myers <joseph@codesourcery.com>
28696
28697 [BZ #21660]
28698 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
28699 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
28700 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
28701 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
28702 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
28703 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
28704 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
28705 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
28706 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
28707 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
28708 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
28709 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
28710 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
28711 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
28712 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
28713 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
28714 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
28715 (__floating_type): Likewise.
28716 (__real_integer_type): Likewise.
28717 (__complex_integer_type): Likewise.
28718 (__expr_is_real): Likewise.
28719 (__tgmath_real_type_sub): Likewise.
28720 (__tgmath_real_type): Likewise.
28721 (__tgmath_complex_type_sub): Likewise.
28722 (__tgmath_complex_type): Likewise.
28723 (__TGMATH_F128): Likewise.
28724 (__TGMATH_CF128): Likewise.
28725 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
28726 new macros.
28727 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
28728 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
28729 Likewise.
28730 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
28731 Likewise.
28732 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
28733 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
28734 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
28735 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
28736 Likewise.
28737 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
28738 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
28739 Likewise.
28740 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
28741 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
28742 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
28743 Likewise.
28744 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
28745 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
28746 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
28747 (cimag): Likewise.
28748 (creal): Likewise.
28749
28750 2017-11-14 Joseph Myers <joseph@codesourcery.com>
28751
28752 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
28753 for stpncpy calls for GCC 8.
28754 (test_strncat): Disable -Wstringop-truncation warning for strncat
28755 calls for GCC 8. Disable -Wstringop-overflow= warning for one
28756 strncat call for GCC 7.
28757 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
28758 calls for GCC 8.
28759 (test_memcmp): Use memcpy instead of strncpy for calls not copying
28760 trailing NUL.
28761
28762 * string/bug-strncat1.c: Include <libc-diag.h>.
28763 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
28764
28765 2017-11-13 Claude Paroz <claude@2xlibre.net>
28766
28767 [BZ #22387]
28768 * localedata/locales/aa_DJ: Improved readibility by replacing
28769 <Uxxxx> sequences in the ASCII printable range by their ASCII
28770 character equivalents.
28771 * localedata/locales/aa_ER: Likewise.
28772 * localedata/locales/aa_ER@saaho: Likewise.
28773 * localedata/locales/aa_ET: Likewise.
28774 * localedata/locales/af_ZA: Likewise.
28775 * localedata/locales/agr_PE: Likewise.
28776 * localedata/locales/ak_GH: Likewise.
28777 * localedata/locales/am_ET: Likewise.
28778 * localedata/locales/anp_IN: Likewise.
28779 * localedata/locales/ar_AE: Likewise.
28780 * localedata/locales/ar_BH: Likewise.
28781 * localedata/locales/ar_DZ: Likewise.
28782 * localedata/locales/ar_EG: Likewise.
28783 * localedata/locales/ar_IN: Likewise.
28784 * localedata/locales/ar_IQ: Likewise.
28785 * localedata/locales/ar_JO: Likewise.
28786 * localedata/locales/ar_KW: Likewise.
28787 * localedata/locales/ar_LB: Likewise.
28788 * localedata/locales/ar_LY: Likewise.
28789 * localedata/locales/ar_MA: Likewise.
28790 * localedata/locales/ar_OM: Likewise.
28791 * localedata/locales/ar_QA: Likewise.
28792 * localedata/locales/ar_SA: Likewise.
28793 * localedata/locales/ar_SD: Likewise.
28794 * localedata/locales/ar_SS: Likewise.
28795 * localedata/locales/ar_SY: Likewise.
28796 * localedata/locales/ar_TN: Likewise.
28797 * localedata/locales/ar_YE: Likewise.
28798 * localedata/locales/as_IN: Likewise.
28799 * localedata/locales/ast_ES: Likewise.
28800 * localedata/locales/ayc_PE: Likewise.
28801 * localedata/locales/az_AZ: Likewise.
28802 * localedata/locales/az_IR: Likewise.
28803 * localedata/locales/be_BY: Likewise.
28804 * localedata/locales/be_BY@latin: Likewise.
28805 * localedata/locales/bem_ZM: Likewise.
28806 * localedata/locales/ber_DZ: Likewise.
28807 * localedata/locales/ber_MA: Likewise.
28808 * localedata/locales/bg_BG: Likewise.
28809 * localedata/locales/bhb_IN: Likewise.
28810 * localedata/locales/bho_IN: Likewise.
28811 * localedata/locales/bi_VU: Likewise.
28812 * localedata/locales/bn_BD: Likewise.
28813 * localedata/locales/bn_IN: Likewise.
28814 * localedata/locales/bo_CN: Likewise.
28815 * localedata/locales/bo_IN: Likewise.
28816 * localedata/locales/br_FR: Likewise.
28817 * localedata/locales/brx_IN: Likewise.
28818 * localedata/locales/bs_BA: Likewise.
28819 * localedata/locales/byn_ER: Likewise.
28820 * localedata/locales/ca_AD: Likewise.
28821 * localedata/locales/ca_ES: Likewise.
28822 * localedata/locales/ca_FR: Likewise.
28823 * localedata/locales/ca_IT: Likewise.
28824 * localedata/locales/ce_RU: Likewise.
28825 * localedata/locales/chr_US: Likewise.
28826 * localedata/locales/cmn_TW: Likewise.
28827 * localedata/locales/crh_UA: Likewise.
28828 * localedata/locales/cs_CZ: Likewise.
28829 * localedata/locales/csb_PL: Likewise.
28830 * localedata/locales/cv_RU: Likewise.
28831 * localedata/locales/cy_GB: Likewise.
28832 * localedata/locales/da_DK: Likewise.
28833 * localedata/locales/de_AT: Likewise.
28834 * localedata/locales/de_BE: Likewise.
28835 * localedata/locales/de_CH: Likewise.
28836 * localedata/locales/de_DE: Likewise.
28837 * localedata/locales/de_IT: Likewise.
28838 * localedata/locales/de_LI: Likewise.
28839 * localedata/locales/de_LU: Likewise.
28840 * localedata/locales/doi_IN: Likewise.
28841 * localedata/locales/dv_MV: Likewise.
28842 * localedata/locales/dz_BT: Likewise.
28843 * localedata/locales/el_CY: Likewise.
28844 * localedata/locales/el_GR: Likewise.
28845 * localedata/locales/en_AG: Likewise.
28846 * localedata/locales/en_AU: Likewise.
28847 * localedata/locales/en_BW: Likewise.
28848 * localedata/locales/en_CA: Likewise.
28849 * localedata/locales/en_DK: Likewise.
28850 * localedata/locales/en_GB: Likewise.
28851 * localedata/locales/en_HK: Likewise.
28852 * localedata/locales/en_IE: Likewise.
28853 * localedata/locales/en_IL: Likewise.
28854 * localedata/locales/en_IN: Likewise.
28855 * localedata/locales/en_NG: Likewise.
28856 * localedata/locales/en_NZ: Likewise.
28857 * localedata/locales/en_PH: Likewise.
28858 * localedata/locales/en_SG: Likewise.
28859 * localedata/locales/en_US: Likewise.
28860 * localedata/locales/en_ZA: Likewise.
28861 * localedata/locales/en_ZM: Likewise.
28862 * localedata/locales/en_ZW: Likewise.
28863 * localedata/locales/eo: Likewise.
28864 * localedata/locales/es_AR: Likewise.
28865 * localedata/locales/es_BO: Likewise.
28866 * localedata/locales/es_CL: Likewise.
28867 * localedata/locales/es_CO: Likewise.
28868 * localedata/locales/es_CR: Likewise.
28869 * localedata/locales/es_CU: Likewise.
28870 * localedata/locales/es_DO: Likewise.
28871 * localedata/locales/es_EC: Likewise.
28872 * localedata/locales/es_ES: Likewise.
28873 * localedata/locales/es_GT: Likewise.
28874 * localedata/locales/es_HN: Likewise.
28875 * localedata/locales/es_MX: Likewise.
28876 * localedata/locales/es_NI: Likewise.
28877 * localedata/locales/es_PA: Likewise.
28878 * localedata/locales/es_PE: Likewise.
28879 * localedata/locales/es_PR: Likewise.
28880 * localedata/locales/es_PY: Likewise.
28881 * localedata/locales/es_SV: Likewise.
28882 * localedata/locales/es_US: Likewise.
28883 * localedata/locales/es_UY: Likewise.
28884 * localedata/locales/es_VE: Likewise.
28885 * localedata/locales/et_EE: Likewise.
28886 * localedata/locales/eu_ES: Likewise.
28887 * localedata/locales/eu_ES@euro: Likewise.
28888 * localedata/locales/fa_IR: Likewise.
28889 * localedata/locales/ff_SN: Likewise.
28890 * localedata/locales/fi_FI: Likewise.
28891 * localedata/locales/fil_PH: Likewise.
28892 * localedata/locales/fo_FO: Likewise.
28893 * localedata/locales/fr_BE: Likewise.
28894 * localedata/locales/fr_CA: Likewise.
28895 * localedata/locales/fr_CH: Likewise.
28896 * localedata/locales/fr_FR: Likewise.
28897 * localedata/locales/fr_LU: Likewise.
28898 * localedata/locales/fur_IT: Likewise.
28899 * localedata/locales/fy_DE: Likewise.
28900 * localedata/locales/fy_NL: Likewise.
28901 * localedata/locales/ga_IE: Likewise.
28902 * localedata/locales/gd_GB: Likewise.
28903 * localedata/locales/gez_ER: Likewise.
28904 * localedata/locales/gez_ET: Likewise.
28905 * localedata/locales/gl_ES: Likewise.
28906 * localedata/locales/gu_IN: Likewise.
28907 * localedata/locales/gv_GB: Likewise.
28908 * localedata/locales/ha_NG: Likewise.
28909 * localedata/locales/hak_TW: Likewise.
28910 * localedata/locales/he_IL: Likewise.
28911 * localedata/locales/hi_IN: Likewise.
28912 * localedata/locales/hif_FJ: Likewise.
28913 * localedata/locales/hne_IN: Likewise.
28914 * localedata/locales/hr_HR: Likewise.
28915 * localedata/locales/hsb_DE: Likewise.
28916 * localedata/locales/ht_HT: Likewise.
28917 * localedata/locales/hu_HU: Likewise.
28918 * localedata/locales/hy_AM: Likewise.
28919 * localedata/locales/i18n: Likewise.
28920 * localedata/locales/ia_FR: Likewise.
28921 * localedata/locales/id_ID: Likewise.
28922 * localedata/locales/ig_NG: Likewise.
28923 * localedata/locales/ik_CA: Likewise.
28924 * localedata/locales/is_IS: Likewise.
28925 * localedata/locales/it_CH: Likewise.
28926 * localedata/locales/it_IT: Likewise.
28927 * localedata/locales/iu_CA: Likewise.
28928 * localedata/locales/ja_JP: Likewise.
28929 * localedata/locales/ka_GE: Likewise.
28930 * localedata/locales/kk_KZ: Likewise.
28931 * localedata/locales/kl_GL: Likewise.
28932 * localedata/locales/kn_IN: Likewise.
28933 * localedata/locales/ko_KR: Likewise.
28934 * localedata/locales/kok_IN: Likewise.
28935 * localedata/locales/ks_IN: Likewise.
28936 * localedata/locales/ks_IN@devanagari: Likewise.
28937 * localedata/locales/ku_TR: Likewise.
28938 * localedata/locales/kw_GB: Likewise.
28939 * localedata/locales/ky_KG: Likewise.
28940 * localedata/locales/lb_LU: Likewise.
28941 * localedata/locales/lg_UG: Likewise.
28942 * localedata/locales/li_BE: Likewise.
28943 * localedata/locales/li_NL: Likewise.
28944 * localedata/locales/lij_IT: Likewise.
28945 * localedata/locales/ln_CD: Likewise.
28946 * localedata/locales/lo_LA: Likewise.
28947 * localedata/locales/lt_LT: Likewise.
28948 * localedata/locales/lv_LV: Likewise.
28949 * localedata/locales/lzh_TW: Likewise.
28950 * localedata/locales/mag_IN: Likewise.
28951 * localedata/locales/mai_IN: Likewise.
28952 * localedata/locales/mg_MG: Likewise.
28953 * localedata/locales/mhr_RU: Likewise.
28954 * localedata/locales/mi_NZ: Likewise.
28955 * localedata/locales/mk_MK: Likewise.
28956 * localedata/locales/ml_IN: Likewise.
28957 * localedata/locales/mn_MN: Likewise.
28958 * localedata/locales/mni_IN: Likewise.
28959 * localedata/locales/mr_IN: Likewise.
28960 * localedata/locales/ms_MY: Likewise.
28961 * localedata/locales/mt_MT: Likewise.
28962 * localedata/locales/my_MM: Likewise.
28963 * localedata/locales/nan_TW: Likewise.
28964 * localedata/locales/nan_TW@latin: Likewise.
28965 * localedata/locales/nb_NO: Likewise.
28966 * localedata/locales/nds_DE: Likewise.
28967 * localedata/locales/nds_NL: Likewise.
28968 * localedata/locales/ne_NP: Likewise.
28969 * localedata/locales/nhn_MX: Likewise.
28970 * localedata/locales/niu_NU: Likewise.
28971 * localedata/locales/niu_NZ: Likewise.
28972 * localedata/locales/nl_AW: Likewise.
28973 * localedata/locales/nl_BE: Likewise.
28974 * localedata/locales/nl_NL: Likewise.
28975 * localedata/locales/nn_NO: Likewise.
28976 * localedata/locales/nr_ZA: Likewise.
28977 * localedata/locales/nso_ZA: Likewise.
28978 * localedata/locales/oc_FR: Likewise.
28979 * localedata/locales/om_ET: Likewise.
28980 * localedata/locales/om_KE: Likewise.
28981 * localedata/locales/or_IN: Likewise.
28982 * localedata/locales/os_RU: Likewise.
28983 * localedata/locales/pa_IN: Likewise.
28984 * localedata/locales/pa_PK: Likewise.
28985 * localedata/locales/pap_AW: Likewise.
28986 * localedata/locales/pap_CW: Likewise.
28987 * localedata/locales/pl_PL: Likewise.
28988 * localedata/locales/ps_AF: Likewise.
28989 * localedata/locales/pt_BR: Likewise.
28990 * localedata/locales/pt_PT: Likewise.
28991 * localedata/locales/quz_PE: Likewise.
28992 * localedata/locales/raj_IN: Likewise.
28993 * localedata/locales/ro_RO: Likewise.
28994 * localedata/locales/ru_RU: Likewise.
28995 * localedata/locales/ru_UA: Likewise.
28996 * localedata/locales/rw_RW: Likewise.
28997 * localedata/locales/sa_IN: Likewise.
28998 * localedata/locales/sat_IN: Likewise.
28999 * localedata/locales/sc_IT: Likewise.
29000 * localedata/locales/sd_IN: Likewise.
29001 * localedata/locales/sd_IN@devanagari: Likewise.
29002 * localedata/locales/se_NO: Likewise.
29003 * localedata/locales/sgs_LT: Likewise.
29004 * localedata/locales/shs_CA: Likewise.
29005 * localedata/locales/si_LK: Likewise.
29006 * localedata/locales/sid_ET: Likewise.
29007 * localedata/locales/sk_SK: Likewise.
29008 * localedata/locales/sl_SI: Likewise.
29009 * localedata/locales/sm_WS: Likewise.
29010 * localedata/locales/so_DJ: Likewise.
29011 * localedata/locales/so_ET: Likewise.
29012 * localedata/locales/so_KE: Likewise.
29013 * localedata/locales/so_SO: Likewise.
29014 * localedata/locales/sq_AL: Likewise.
29015 * localedata/locales/sq_MK: Likewise.
29016 * localedata/locales/sr_ME: Likewise.
29017 * localedata/locales/sr_RS: Likewise.
29018 * localedata/locales/sr_RS@latin: Likewise.
29019 * localedata/locales/ss_ZA: Likewise.
29020 * localedata/locales/st_ZA: Likewise.
29021 * localedata/locales/sv_FI: Likewise.
29022 * localedata/locales/sv_SE: Likewise.
29023 * localedata/locales/sw_KE: Likewise.
29024 * localedata/locales/sw_TZ: Likewise.
29025 * localedata/locales/szl_PL: Likewise.
29026 * localedata/locales/ta_IN: Likewise.
29027 * localedata/locales/ta_LK: Likewise.
29028 * localedata/locales/tcy_IN: Likewise.
29029 * localedata/locales/te_IN: Likewise.
29030 * localedata/locales/tg_TJ: Likewise.
29031 * localedata/locales/th_TH: Likewise.
29032 * localedata/locales/the_NP: Likewise.
29033 * localedata/locales/ti_ER: Likewise.
29034 * localedata/locales/ti_ET: Likewise.
29035 * localedata/locales/tig_ER: Likewise.
29036 * localedata/locales/tk_TM: Likewise.
29037 * localedata/locales/tl_PH: Likewise.
29038 * localedata/locales/tn_ZA: Likewise.
29039 * localedata/locales/to_TO: Likewise.
29040 * localedata/locales/tpi_PG: Likewise.
29041 * localedata/locales/tr_CY: Likewise.
29042 * localedata/locales/tr_TR: Likewise.
29043 * localedata/locales/ts_ZA: Likewise.
29044 * localedata/locales/tt_RU: Likewise.
29045 * localedata/locales/tt_RU@iqtelif: Likewise.
29046 * localedata/locales/ug_CN: Likewise.
29047 * localedata/locales/uk_UA: Likewise.
29048 * localedata/locales/unm_US: Likewise.
29049 * localedata/locales/ur_IN: Likewise.
29050 * localedata/locales/ur_PK: Likewise.
29051 * localedata/locales/uz_UZ: Likewise.
29052 * localedata/locales/uz_UZ@cyrillic: Likewise.
29053 * localedata/locales/ve_ZA: Likewise.
29054 * localedata/locales/vi_VN: Likewise.
29055 * localedata/locales/wa_BE: Likewise.
29056 * localedata/locales/wae_CH: Likewise.
29057 * localedata/locales/wal_ET: Likewise.
29058 * localedata/locales/wo_SN: Likewise.
29059 * localedata/locales/xh_ZA: Likewise.
29060 * localedata/locales/yi_US: Likewise.
29061 * localedata/locales/yo_NG: Likewise.
29062 * localedata/locales/yue_HK: Likewise.
29063 * localedata/locales/yuw_PG: Likewise.
29064 * localedata/locales/zh_CN: Likewise.
29065 * localedata/locales/zh_HK: Likewise.
29066 * localedata/locales/zh_SG: Likewise.
29067 * localedata/locales/zh_TW: Likewise.
29068 * localedata/locales/zu_ZA: Likewise.
29069
29070 2017-11-13 Florian Weimer <fweimer@redhat.com>
29071
29072 * support/next_to_fault.h, support/next_to_fault.c: New files.
29073 * support/Makefile (libsupport-routines): Add next_to_fault.
29074 * resolv/tst-inet_pton.c (struct next_to_fault)
29075 (next_to_fault_allocate, next_to_fault_free): Remove.
29076 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
29077
29078 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
29079
29080 * elf/dl-support.c: Include <dl-procruntime.c>.
29081 * include/link.h: Include <link_map.h>.
29082 * sysdeps/generic/dl-procruntime.c: New file.
29083 * sysdeps/generic/link_map.h: Likewise.
29084 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
29085 the writable ld.so namespace.
29086
29087 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
29088
29089 timezone: pacify GCC -Wstringop-truncation
29090 Problem reported by Martin Sebor in:
29091 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
29092 * timezone/zic.c (writezone): Use memcpy, not strncpy.
29093
29094 2017-11-12 Florian Weimer <fweimer@redhat.com>
29095
29096 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
29097 tst-xreadlink.
29098 (tests): Add tst-xreadlink.
29099 * support/support.h (xstrndup): Declare.
29100 * support/xunistd.h (xunlink, xreadlink): Declare.
29101 * support/temp_file.h (support_create_temp_directory): Declare.
29102 * support/temp_file.c (support_create_temp_directory): New function.
29103 * support/support_chroot.c (support_chroot_create): Use it.
29104 * support/xreadlink.c: New file.
29105 * support/xstrndup.c: Likewise.
29106 * support/xunlink.c: Likewise.
29107 * support/tst-xreadlink.c: Likewise.
29108
29109 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
29110
29111 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
29112
29113 2017-11-11 Florian Weimer <fweimer@redhat.com>
29114
29115 [BZ #22409]
29116 [BZ #22412]
29117 * resolv/res_comp.c (printable_string, binary_hnok)
29118 (binary_leading_dash): New functions.
29119 (res_hnok): Reimplement using these functions and ns_name_pton.
29120 (res_ownok): Likewise.
29121 (res_mailok): Reimplement using printable_string, ns_name_pton and
29122 binary_hnok.
29123 (res_dnok): Reimplement using printable_string and ns_name_pton.
29124 * resolv/tst-res_hnok.c (tests): Add additional tests.
29125 (LETTERDIGITS, PRINTABLE): Define.
29126 (do_test): Adjust one_char results.
29127
29128 2017-11-11 Florian Weimer <fweimer@redhat.com>
29129
29130 [BZ #22413]
29131 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
29132 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
29133
29134 2017-11-11 Florian Weimer <fweimer@redhat.com>
29135
29136 * resolv/tst-ns_name_pton.c: New file.
29137 * resolv/Makefile (tests): Add tst-ns_name_pton.
29138 (tst-ns_name_pton): Link against libresolv.
29139
29140 2017-11-11 Florian Weimer <fweimer@redhat.com>
29141
29142 * resolv/tst-res_hnok.c: New file.
29143 * resolv/Makefile (tests): Add tst-res_hnok.
29144 (tst-res_hnok): Link against libresolv.
29145
29146 2017-11-11 Florian Weimer <fweimer@redhat.com>
29147
29148 * resolv/tst-resolv-network.c: Use test framework instead explicit
29149 main function.
29150
29151 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
29152
29153 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
29154 <jmp_buf-macros.h>.
29155 [!_ISOMAC] (STR_HELPER): New.
29156 [!_ISOMAC] (STR): Likewise.
29157 [!_ISOMAC] (TEST_SIZE): Likewise.
29158 [!_ISOMAC] (TEST_ALIGN): Likewise.
29159 [!_ISOMAC] (TEST_OFFSET): Likewise.
29160 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
29161 field offsets of jmp_buf as well as sigjmp_buf.
29162 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
29163 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
29164 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
29165 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
29166 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
29167 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
29168 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
29169 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
29170 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
29171 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
29172 Likewise.
29173 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
29174 Likewise.
29175 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
29176 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
29177 Likewise.
29178 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
29179 Likewise.
29180 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
29181 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
29182 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
29183 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
29184 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
29185 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
29186 Likewise.
29187 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
29188 Likewise.
29189 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
29190 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
29191 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
29192
29193 2017-11-07 Joseph Myers <joseph@codesourcery.com>
29194
29195 * include/float.h
29196 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29197 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
29198 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29199 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
29200 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29201 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
29202 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29203 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
29204 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29205 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
29206 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29207 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
29208 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29209 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
29210 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29211 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
29212 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29213 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
29214 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29215 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
29216 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29217 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
29218 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29219 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
29220 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29221 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
29222 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29223 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
29224 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29225 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
29226 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29227 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
29228 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29229 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
29230 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29231 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
29232 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29233 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
29234 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29235 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
29236 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29237 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
29238 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29239 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
29240 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29241 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
29242 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29243 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
29244 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29245 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
29246 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29247 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
29248 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29249 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
29250 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29251 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
29252 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29253 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
29254 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29255 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
29256 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29257 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
29258 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29259 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
29260 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29261 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
29262 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29263 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
29264 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29265 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
29266 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29267 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
29268 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29269 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
29270 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29271 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
29272 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29273 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
29274 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29275 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
29276 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29277 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
29278 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29279 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
29280 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29281 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
29282 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29283 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
29284
29285 * stdlib/tst-strtod.h (F16): New macro.
29286 (F32): Likewise.
29287 (F64): Likewise.
29288 (F32X): Likewise.
29289 (F64X): Likewise.
29290 (F128X): Likewise.
29291 (IF_FLOAT16): Likewise.
29292 (IF_FLOAT32): Likewise.
29293 (IF_FLOAT64): Likewise.
29294 (IF_FLOAT32X): Likewise.
29295 (IF_FLOAT64X): Likewise.
29296 (IF_FLOAT128X): Likewise.
29297 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
29298 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
29299 (STRTOD_TEST_FOREACH): Likewise.
29300 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
29301 (CHOOSE_f64): Likewise.
29302 (CHOOSE_f32x): Likewise.
29303 (CHOOSE_f64x): Likewise.
29304
29305 2017-11-07 Andreas Schwab <schwab@suse.de>
29306
29307 * nptl/Makefile (tests-internal): Remove tst-typesizes.
29308
29309 2017-11-07 Mike FABIAN <mfabian@redhat.com>
29310
29311 [BZ #22403]
29312 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
29313 to be escaped.
29314 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
29315 to be escaped.
29316
29317 2017-11-07 Claude Paroz <claude@2xlibre.net>
29318
29319 [BZ #22403]
29320 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
29321 to be escaped.
29322 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
29323 to be escaped.
29324 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
29325 to be escaped.
29326
29327 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29328
29329 [BZ #22298]
29330 * nptl/allocatestack.c (allocate_stack): Check if
29331 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
29332 __PTHREAD_MUTEX_HAVE_PREV is defined.
29333 * nptl/descr.h (pthread): Likewise.
29334 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
29335 Likewise.
29336 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
29337 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
29338 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
29339 * sysdeps/nptl/bits/thread-shared-types.h
29340 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
29341 defines.
29342 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
29343 of __WORDSIZE for internal layout.
29344 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
29345 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
29346 instead of __WORDSIZE whether to use an union for __spins and __list
29347 fields.
29348 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
29349 case.
29350 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
29351 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
29352 defines.
29353 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
29354 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29355 Likewise.
29356 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
29357 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29358 Likewise.
29359 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
29360 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29361 Likewise.
29362 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
29363 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29364 Likewise.
29365 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
29366 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29367 Likewise.
29368 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
29369 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29370 Likewise.
29371 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
29372 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29373 Likewise.
29374 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
29375 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29376 Likewise.
29377 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
29378 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29379 Likewise.
29380 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
29381 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29382 Likewise.
29383 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
29384 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29385 Likewise.
29386 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
29387 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29388 Likewise.
29389 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
29390 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29391 Likewise.
29392 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
29393 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29394 Likewise.
29395
29396 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
29397 New macros.
29398 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
29399 checks for expected input type size.
29400 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
29401 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
29402 Likewise.
29403 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
29404 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
29405 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
29406 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
29407 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
29408 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
29409 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
29410 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
29411 superflous runtime assert check.
29412 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
29413 Likewise.
29414 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
29415 Likewise.
29416 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
29417 Likewise.
29418 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
29419 Likewise.
29420 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
29421 Likewise.
29422 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
29423 Likewise.
29424 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
29425 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
29426 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
29427 Likewise.
29428 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
29429 Likewise.
29430 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
29431 Likewise.
29432 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
29433 Likewise.
29434 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
29435 Likewise.
29436 * nptl/pthread_attr_setinheritsched.c
29437 (__pthread_attr_setinheritsched): Likewise.
29438 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
29439 Likewise.
29440 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
29441 Likewise.
29442 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
29443 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
29444 __old_pthread_attr_setstack): Likewise.
29445 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
29446 Likewise.
29447 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
29448 Likewise.
29449 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
29450 Likewise.
29451 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
29452 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
29453 Likewise.
29454 * nptl/tst-typesizes.c: Remove file.
29455
29456 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
29457 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
29458 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
29459 checks for internal pthread_mutex_t offsets.
29460 * sysdeps/aarch64/nptl/pthread-offsets.h
29461 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
29462 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
29463 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
29464 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
29465 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
29466 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
29467 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
29468 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
29469 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
29470 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
29471 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
29472 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
29473 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
29474 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
29475 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
29476 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
29477 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
29478 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
29479
29480 2017-11-07 Florian Weimer <fweimer@redhat.com>
29481
29482 * bits/mman-linux.h: Move ...
29483 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
29484 comment.
29485 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
29486 outdated comment.
29487
29488 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29489
29490 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
29491 Redefine STRNLEN as __strnlen_power8.
29492
29493 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29494
29495 * signal/sighold.c (sighold): Optimize implementation.
29496
29497 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
29498 __NR_rt_sigqueueinfo.
29499
29500 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
29501 __sigtimedwait.
29502 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
29503 assume __NR_rt_sigtimedwait.
29504 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
29505 and add LIBC_CANCEL_HANDLED for cancellation marking.
29506 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
29507
29508 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
29509 (sysdeps_routines): Add memchr_noneon.
29510 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
29511 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
29512 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
29513 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
29514 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
29515 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
29516 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
29517
29518 * sysdeps/arm/arm-ifunc.h: New file.
29519 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
29520 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
29521 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
29522 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
29523 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
29524 (__memcpy_neon): Avoid create hidden alias.
29525 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
29526 (__memcpy_vfp): Likewise.
29527 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
29528 (sysdep_routines): Add memcpy_arm.
29529 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
29530
29531 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
29532
29533 [BZ #22362]
29534 * Makerules (make-link-multidir): New.
29535 * config.make.in (multidir): New.
29536 * configure.ac (libc_cv_multidir): New. AC_SUBST.
29537 * configure: Regenerated.
29538 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
29539 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
29540 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
29541 New target.
29542
29543 2017-11-06 Joseph Myers <joseph@codesourcery.com>
29544
29545 [BZ #22402]
29546 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
29547 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
29548
29549 2017-11-04 Mike FABIAN <mfabian@redhat.com>
29550
29551 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
29552 to be escaped.
29553
29554 2017-11-04 Florian Weimer <fweimer@redhat.com>
29555
29556 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
29557
29558 2017-11-03 Joseph Myers <joseph@codesourcery.com>
29559
29560 * math/math.h [__HAVE_DISTINCT_FLOAT16
29561 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
29562 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
29563 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
29564 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
29565 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
29566 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
29567 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
29568 (__MATH_TG_F32): New macro.
29569 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
29570 (__MATH_TG_F64X): Likewise.
29571 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
29572 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
29573
29574 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
29575
29576 * po/de.po: Update translations.
29577 * po/ru.po: Likewise.
29578
29579 2017-11-03 Florian Weimer <fweimer@redhat.com>
29580
29581 * manual/filesys.texi (Hard Links): Document linkat.
29582
29583 2017-11-03 Joseph Myers <joseph@codesourcery.com>
29584
29585 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
29586 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
29587 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
29588 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
29589 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
29590 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
29591 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
29592 the same as _Float128.
29593 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
29594 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
29595 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
29596
29597 * stdlib/stdlib.h
29598 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
29599 Declare.
29600 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
29601 Likewise.
29602 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
29603 Likewise.
29604 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29605 (strtof32x): Likewise.
29606 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29607 (strtof64x): Likewise.
29608 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29609 (strtof128x): Likewise.
29610 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29611 (strfromf16): Likewise.
29612 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29613 (strfromf32): Likewise.
29614 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29615 (strfromf64): Likewise.
29616 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29617 (strfromf32x): Likewise.
29618 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29619 (strfromf64x): Likewise.
29620 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29621 (strfromf128x): Likewise.
29622 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
29623 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
29624 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
29625 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
29626 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
29627 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
29628
29629 2017-11-03 Richard Henderson <rth@twiddle.net>
29630
29631 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
29632
29633 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29634
29635 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
29636
29637 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29638
29639 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
29640 DT_TLSDESC_GOT initialization.
29641 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
29642 (_dl_tlsdesc_resolve_hold): Likewise.
29643 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
29644 (_dl_tlsdesc_resolve_hold): Likewise.
29645 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
29646 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
29647
29648 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29649
29650 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
29651
29652 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29653
29654 [BZ #18572]
29655 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
29656 non-lazily for R_ARM_TLS_DESC.
29657
29658 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29659
29660 [BZ #17078]
29661 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
29662 R_ARM_TLS_DESC case.
29663 (elf_machine_lazy_rel): Remove the prelink check.
29664
29665 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29666
29667 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
29668 DT_TLSDESC_GOT initialization.
29669 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
29670 (_dl_tlsdesc_resolve_rela): Likewise.
29671 (_dl_tlsdesc_resolve_hold): Likewise.
29672 (_dl_tlsdesc_undefweak): Remove ldar.
29673 (_dl_tlsdesc_dynamic): Likewise.
29674 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
29675 (_dl_tlsdesc_resolve_rela): Likewise.
29676 (_dl_tlsdesc_resolve_hold): Likewise.
29677 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
29678 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
29679 (_dl_tlsdesc_resolve_rela): Likewise.
29680 (_dl_tlsdesc_resolve_hold): Likewise.
29681
29682 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29683
29684 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
29685 binding and initialization non-lazily for R_AARCH64_TLSDESC.
29686
29687 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29688
29689 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
29690 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
29691
29692 2017-11-02 Joseph Myers <joseph@codesourcery.com>
29693
29694 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
29695 Declare.
29696 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
29697 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
29698 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
29699 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
29700 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
29701 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
29702 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
29703 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
29704 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
29705 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
29706 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
29707
29708 2017-11-02 Mike FABIAN <mfabian@redhat.com>
29709
29710 [BZ #22382]
29711 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
29712 * localedata/locales/tpi_PG: Add standard header.
29713
29714 2017-11-02 Florian Weimer <fweimer@redhat.com>
29715
29716 test-errno-linux: quotactl can fail with EPERM in containers.
29717 * sysdeps/unix/sysv/linux/test-errno-linux.c
29718 (LIST, LIST_FORWARD): New macros.
29719 (check_error_in_list): New function.
29720 (test_wrp_rv): Accept list of permitted error codes.
29721 (test_wrp_rv2): Remove.
29722 (test_wrp): Call test_wrp_rv with list of error codes.
29723 (test_wrp2): Accept list of error codes.
29724 (do_test): Adjust. Allow EPERM for quotactl.
29725
29726 2017-11-02 Florian Weimer <fweimer@redhat.com>
29727
29728 * stdio-common/bug16.c (do_test): Use array_length.
29729 * stdio-common/errlist.c (_sys_nerr): Likewise.
29730 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
29731 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
29732 * stdio-common/psiginfo.c (psiginfo): Use array_length.
29733 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
29734 (do_test): Use array_length.
29735 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
29736 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
29737 * stdio-common/tst-printf-round.c (do_test): Likewise.
29738 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
29739 (CHECK): Use array_length.
29740 * stdio-common/tstdiomisc.c (t3, F): Likewise.
29741 * stdio-common/tstscanf.c (main): Likewise.
29742 * stdio-common/vfprintf.c (process_string_arg): Likewise.
29743
29744 2017-11-02 Florian Weimer <fweimer@redhat.com>
29745
29746 Add array_length and array_end macros.
29747 * include/array_length.h: New file.
29748
29749 2017-11-02 Florian Weimer <fweimer@redhat.com>
29750
29751 [BZ #22332]
29752 * posix/tst-glob-tilde.c (do_noescape): New variable.
29753 (one_test): Process it.
29754 (do_test): Set do_noescape. Add unescaping test case.
29755
29756 2017-11-01 Joseph Myers <joseph@codesourcery.com>
29757
29758 * math/complex.h
29759 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
29760 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
29761 with appropriate macros defined and undefined.
29762 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
29763 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29764 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
29765 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29766 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
29767 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29768 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
29769 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29770 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
29771 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29772
29773 * math/complex.h
29774 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
29775 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
29776 that for long double. Do not condition define and undefine of
29777 _Mdouble_complex_ on [__CFLOAT128].
29778
29779 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
29780
29781 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29782 of <sysdeps/generic/sysdep.h>.
29783 (ALIGNARG): Removed.
29784 (ASM_SIZE_DIRECTIVE): Likewise.
29785 (ENTRY): Likewise.
29786 (END): Likewise.
29787 (ENTRY_CHK): Likewise.
29788 (END_CHK): Likewise.
29789 (syscall_error): Likewise.
29790 (mcount): Likewise.
29791 (PSEUDO_END): Likewise.
29792 (L): Likewise.
29793 (atom_text_section): Likewise.
29794 * sysdeps/x86/sysdep.h: New file.
29795 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29796 of <sysdeps/generic/sysdep.h>.
29797 (ALIGNARG): Removed.
29798 (ASM_SIZE_DIRECTIVE): Likewise.
29799 (ENTRY): Likewise.
29800 (END): Likewise.
29801 (ENTRY_CHK): Likewise.
29802 (END_CHK): Likewise.
29803 (syscall_error): Likewise.
29804 (mcount): Likewise.
29805 (PSEUDO_END): Likewise.
29806 (L): Likewise.
29807 (atom_text_section): Likewise.
29808
29809 2017-10-31 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
29810
29811 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
29812 category of LC_CTYPE set to "i18n:2012".
29813 * localedata/locales/i18n_ctype: Regenerate.
29814
29815 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
29816
29817 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
29818 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
29819 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
29820 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
29821
29822 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
29823 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
29824 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
29825 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
29826
29827 2017-10-31 Joseph Myers <joseph@codesourcery.com>
29828
29829 * math/complex.h
29830 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
29831 New macro.
29832 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
29833 Likewise.
29834 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
29835 Likewise.
29836 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29837 (CMPLXF32X): Likewise.
29838 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29839 (CMPLXF64X): Likewise.
29840 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29841 (CMPLXF128X): Likewise.
29842
29843 * math/math.h
29844 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
29845 (__MATH_EVAL_FMT2): Define to add 0.0f.
29846
29847 2017-10-31 Alan Modra <amodra@gmail.com>
29848
29849 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
29850 include sysdep.h.
29851 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
29852 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
29853 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
29854 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
29855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
29856 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
29857 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
29858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
29859 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
29860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
29861 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
29862 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
29863 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
29864 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
29865 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
29866 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
29867 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
29868 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
29869 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
29870 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
29871 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
29872 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
29873 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
29874 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
29875 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
29876 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
29877 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
29878 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
29879 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
29880 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
29881 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
29882 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
29883 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
29884 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
29885 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
29886 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
29887 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
29888 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
29889 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
29890 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
29891 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
29892 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
29893 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
29894 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
29895 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
29896 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
29897 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
29898 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
29899 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29900 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
29901 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
29902 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
29903 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
29904 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
29905 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
29906 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
29907 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
29908 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
29909 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29910 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29911 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
29912 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
29913 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
29914 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
29915 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
29916 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
29917 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
29918 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29919 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29920
29921 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29922 include sysdep.h and math_ldbl_opt.h.
29923
29924 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29925 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
29926 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29927 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29928 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29929 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29930 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29931 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29932 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29933 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29934 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29937 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29940 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29943 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29945 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29946 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29947 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29948 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29949 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29950
29951 2017-10-31 Alan Modra <amodra@gmail.com>
29952
29953 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29954 string/strncase_l.c, not string/strncase.c.
29955 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29956 (libc_hidden_def): Redefine.
29957
29958 2017-10-31 Alan Modra <amodra@gmail.com>
29959
29960 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29961 (__STRCMP, STRCMP, __strcasecmp_l): Define.
29962 (__strcasecmp): Don't define.
29963
29964 2017-10-31 Alan Modra <amodra@gmail.com>
29965
29966 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29967 IS_IN (libc).
29968 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29969 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29970 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29971
29972 2017-10-31 Alan Modra <amodra@gmail.com>
29973
29974 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29975 USE_AS_STPNCPY.
29976
29977 2017-10-31 Alan Modra <amodra@gmail.com>
29978
29979 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29980 Redefine only when SHARED.
29981
29982 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29983
29984 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29985 Include <bits/math-finite.h> with appropriate macros defined and
29986 undefined.
29987 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29988 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29989 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29990 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29991 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29992
29993 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29994 [!_Mlong_double_] (_Mlong_double_): Likewise.
29995 [!_Mfloat16_] (_Mfloat16_): Likewise.
29996 [!_Mfloat32_] (_Mfloat32_): Likewise.
29997 [!_Mfloat64_] (_Mfloat64_): Likewise.
29998 [!_Mfloat128_] (_Mfloat128_): Likewise.
29999 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
30000 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
30001 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
30002 (_Mdouble_): Define without indirection through those macros.
30003 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
30004 [!_Mfloat128_] (_Mfloat128_): Likewise.
30005 [_Mlong_double_] (_Mlong_double_): Likewise.
30006 (_Mdouble_): Define without indirection through those macros.
30007 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
30008 not add -D_Mlong_double_=double.
30009 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
30010 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
30011
30012 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
30013
30014 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
30015
30016 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
30017
30018 * sysdeps/x86/libc-start.c: Reformat.
30019
30020 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
30021
30022 [BZ #22353]
30023 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
30024 (1): Renamed to ...
30025 (L(Src0)): This.
30026 (L(Src1)): New.
30027 (L(Src2)): Likewise.
30028 (L(1)): Renamed to ...
30029 (L(Src3)): This.
30030
30031 2017-10-30 Joseph Myers <joseph@codesourcery.com>
30032
30033 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
30034 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
30035 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
30036 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
30037 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
30038 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
30039 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
30040 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
30041 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
30042 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
30043 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
30044 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
30045 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
30046 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
30047 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
30048 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
30049 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
30050 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
30051 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
30052 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
30053 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
30054 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
30055 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
30056 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
30057 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
30058 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
30059 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
30060 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
30061 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
30062 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
30063 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
30064 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
30065 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
30066 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
30067 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
30068 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
30069 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
30070 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
30071 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
30072 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
30073 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
30074 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
30075 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
30076 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
30077 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
30078 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
30079 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
30080 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
30081 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
30082 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
30083 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
30084 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
30085 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
30086 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
30087 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
30088 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
30089 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
30090 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
30091 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
30092 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
30093 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
30094 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
30095 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
30096 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
30097 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
30098 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
30099
30100 2017-10-30 Florian Weimer <fweimer@redhat.com>
30101
30102 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
30103 always defined.
30104 * io/tst-mkdirat.c (do_test): Likewise.
30105 * io/tst-mkfifoat.c (do_test): Likewise.
30106 * io/tst-mknodat.c (do_test): Likewise.
30107 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
30108 * locale/programs/locale.c (select_dirs): Likewise.
30109 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
30110 * posix/bug-glob2.c (my_readdir): Likewise.
30111 * posix/tst-dir.c (main): Likewise.
30112 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
30113 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
30114
30115 2017-10-30 Florian Weimer <fweimer@redhat.com>
30116
30117 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
30118 just __USE_GNU.
30119
30120 2017-10-30 Florian Weimer <fweimer@redhat.com>
30121
30122 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
30123 Convert to support/test-driver.c.
30124 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
30125 New macro parameters.
30126 (PRINTF): Remove macro. Use test_verbose conditionals instead.
30127 * posix/tst-gnuglob.c: New file.
30128 * posix/tst-gnuglob64.c: Likewise.
30129 * posix/Makefile (tests): Add tst-gnuglob64.
30130
30131 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
30132
30133 [BZ #19485]
30134 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
30135 and use a better translation for March in “mon”.
30136 * localedata/locales/csb_PL: Use more ASCII to improve the
30137 readability of the source.
30138
30139 2017-10-30 Mike FABIAN <mfabian@redhat.com>
30140
30141 [BZ #13953]
30142 * localedata/locales/km_KH: Use ASCII as much
30143 as possible for better readability of the source and
30144 remove useless comments.
30145 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
30146 was commented out and apparently wrong anyway because it was
30147 using Lao characters. If Buddhist era should be used
30148 for km_KH, a native speaker should write the correct formaat
30149 for Khmer.
30150 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
30151 (According to CLDR, the first weekday for Cambodia is Sunday).
30152 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
30153 (These were using Lao characters which must be wrong. If we get
30154 the correct data from a native speaker, we could add it back, until
30155 then it is better not to have name_mr and name_mrs at all than
30156 having it wrong).
30157
30158 2017-10-27 RafaƂ LuĆŒyƄski <digitalfreak@lingonborough.com>
30159
30160 * locale/loadlocale.c: Correct size of
30161 _nl_value_type_LC_<category> arrays.
30162
30163 2017-10-27 Joseph Myers <joseph@codesourcery.com>
30164
30165 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
30166 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
30167 with appropriate macros defined and undefined.
30168 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
30169 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
30170 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
30171 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
30172 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
30173
30174 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
30175
30176 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
30177 "-O2 -march=i586".
30178
30179 2017-10-27 Mike FABIAN <mfabian@redhat.com>
30180
30181 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
30182 with lowercase letters to make it agree with CLDR.
30183
30184 2017-10-27 Mike FABIAN <mfabian@redhat.com>
30185
30186 [BZ #15260]
30187 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
30188 first letters of yesstr and nostr in yesexpr and noexpr,
30189 not for the full words.
30190 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
30191 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
30192 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
30193 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
30194 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
30195 first letters of yesstr and nostr in yesexpr and noexpr,
30196 until now only English was matched in yesexpr and noexpr.
30197 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
30198 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
30199 fil but not for tl. As tl and fil are very similar, using fil
30200 is probably better than using English.
30201
30202 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
30203
30204 [BZ #21706]
30205 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
30206 in yesstr and nostr.
30207
30208 2017-10-26 Joseph Myers <joseph@codesourcery.com>
30209
30210 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
30211 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
30212 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
30213 Likewise.
30214 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
30215 Likewise.
30216 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
30217 Likewise.
30218 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
30219 Likewise.
30220 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30221 (SNANF128X): Likewise.
30222
30223 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
30224 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
30225 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30226 (HUGE_VAL_F32): Likewise.
30227 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30228 (HUGE_VAL_F64): Likewise.
30229 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30230 (HUGE_VAL_F32X): Likewise.
30231 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30232 (HUGE_VAL_F64X): Likewise.
30233 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30234 (HUGE_VAL_F128X): Likewise.
30235
30236 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
30237
30238 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
30239 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
30240 for the br_FR locale.
30241
30242 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
30243
30244 [BZ #21706]
30245 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
30246
30247 2017-10-25 Carlos O'Donell <carlos@redhat.com>
30248
30249 * locale/programs/record-status.h: Define globals, and function
30250 prototypes. Move function bodies...
30251 * locale/programs/record-status.c: ... to here. New file.
30252 * iconv/Makefile (iconv_prog-modules): Add record-status.
30253 * locale/Makefile (lib-modules): Likewise.
30254 * iconv/iconv_prog.c: Remove verbose.
30255 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
30256 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
30257 record a warning about ASCII compatibility.
30258 * locale/programs/ld-monetary.c (monetary_finish): If
30259 warn_int_curr_symbol is true then record a warning about the symbol
30260 not being in our ISO 4217 list.
30261 * locale/programs/locale.c: Include record-status.h. Remove verbose.
30262 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
30263 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
30264 (OPT_NO_WARN): Define.
30265 (OPT_WARN): Define.
30266 (options): Add entry for --no-warnings, and --warnings.
30267 (set_warnings): New function to enable/disable warnings.
30268 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
30269 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
30270 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
30271 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
30272 Pass flags to generate_locale.
30273 (generate_locale): Accept new flag argument and pass it to localedef
30274 invocation.
30275 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
30276 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
30277
30278 * localedata/Makefile (test-input-data): Use full file name.
30279 * localedata/da_DK.in: Rename to...
30280 * localedata/da_DK.ISO-8859-1.in: ...this.
30281 * localedata/de_DE.in: Rename to...
30282 * localedata/de_DE.ISO-8859-1.in: ...this.
30283 * localedata/en_US.in: Rename to...
30284 * localedata/en_US.ISO-8859-1.in: ...this.
30285 * localedata/fr_FR.in: Rename to...
30286 * localedata/fr_FR.UTF-8.in: ... this.
30287 * localedata/hr_HR.in: Rename to...
30288 * localedata/hr_HR.ISO-8859-2.in: ...this.
30289 * localedata/hu_HU.in: Rename to...
30290 * localedata/hu_HU.UTF-8.in: ...this.
30291 * localedata/si_LK.in: Rename to...
30292 * localedata/si_LK.UTF-8.in: ...this.
30293 * localedata/sv_SE.in: Rename to...
30294 * localedata/sv_SE.ISO-8859-1.in: ...this.
30295 * localedata/tr_TR.in: Rename to...
30296 * localedata/tr_TR.UTF-8.in: ...this.
30297 * localedata/uk_UA.in: Rename to...
30298 * localedata/uk_UA.UTF-8.in: ...this.
30299 * localedata/sort-test.sh: Test file is locale name with the
30300 suffix.
30301
30302 * localedata/unicode-gen/Makefile (check_i18n): Rename to
30303 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
30304 file.
30305 * localedata/locales/i18n_ctype: Regenerate.
30306 * localedata/locales/tr_TR: Likewise.
30307 * localedata/locales/translit_circle: Likewise.
30308 * localedata/locales/translit_cjk_compat: Likewise.
30309 * localedata/locales/translit_combining: Likewise.
30310 * localedata/locales/translit_compat: Likewise.
30311 * localedata/locales/translit_font: Likewise.
30312 * localedata/locales/translit_fraction: Likewise.
30313
30314 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30315
30316 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
30317 lxvd2x/stxvd2x with lvx/stvx.
30318 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
30319
30320 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
30321
30322 * include/alloc_buffer.h: Replace "if if " with "if " in
30323 comments.
30324 * sysdeps/mips/memcpy.S: Likkewise.
30325 * sysdeps/mips/memset.S: Likewise.
30326 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30327 Likewise.
30328 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
30329 Likewise.
30330 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
30331 Likewise.
30332
30333 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30334
30335 [BZ #15261]
30336 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
30337 yesexpr and noexpr.
30338 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
30339 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
30340 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
30341 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
30342 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
30343 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
30344 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
30345
30346 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30347
30348 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
30349 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
30350 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
30351 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
30352 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
30353 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
30354 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
30355 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
30356 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
30357 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
30358 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
30359 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
30360
30361 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30362
30363 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
30364 as possible for better readability of the source.
30365 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
30366 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
30367 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
30368 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
30369 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
30370 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
30371 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
30372 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
30373 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
30374 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
30375 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
30376 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
30377 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
30378 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
30379 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
30380 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
30381 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
30382 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
30383 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
30384 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
30385 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
30386 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
30387 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
30388 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
30389 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
30390 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
30391 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
30392 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
30393 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
30394 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
30395 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
30396 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
30397 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
30398 * localedata/locales/en_US (LC_MESSAGES): Likewise.
30399 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
30400 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
30401 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
30402 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
30403 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
30404 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
30405 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
30406 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
30407 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
30408 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
30409 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
30410 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
30411 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
30412 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
30413 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
30414 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
30415 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
30416 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
30417 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
30418 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
30419 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
30420 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
30421 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
30422 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
30423 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
30424 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
30425 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
30426 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
30427 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
30428 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
30429 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
30430 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
30431 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
30432 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
30433 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
30434 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
30435 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
30436 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
30437 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
30438 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
30439 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
30440 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
30441 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
30442 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
30443 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
30444 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
30445 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
30446 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
30447 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
30448 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
30449 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
30450 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
30451 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
30452 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
30453 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
30454 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
30455 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
30456 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
30457 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
30458 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
30459 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
30460 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
30461 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
30462 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
30463 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
30464 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
30465 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
30466 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
30467 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
30468 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
30469 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
30470 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
30471 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
30472 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
30473 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
30474 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
30475 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
30476 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
30477 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
30478 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
30479 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
30480 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
30481 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
30482 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
30483 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
30484 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
30485 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
30486 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
30487 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
30488 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
30489 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
30490 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
30491 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
30492 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
30493 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
30494 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
30495 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
30496 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
30497 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
30498 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
30499 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
30500 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
30501 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
30502 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
30503 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
30504 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
30505 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
30506 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
30507 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
30508 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
30509 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
30510 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
30511 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
30512 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
30513 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
30514 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
30515 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
30516 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
30517 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
30518 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
30519 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
30520 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
30521 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
30522 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
30523 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
30524 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
30525 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
30526 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
30527 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
30528 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
30529 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
30530 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
30531 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
30532 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
30533 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
30534 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
30535 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
30536 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
30537 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
30538 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
30539
30540 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30541
30542 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
30543 (Use first letters of yesstr and nostr correctly instead of using
30544 full words).
30545
30546 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30547
30548 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
30549 (Use first letters of yesstr and nostr correctly).
30550
30551 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30552
30553 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
30554 also check for the first characters of yesstr and nostr.
30555 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
30556 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
30557
30558 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30559
30560 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
30561 also check for Chinese characters.
30562
30563 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30564
30565 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
30566 match also for the contents of yesstr and nostr. As the first letter
30567 of yesstr and nostr is equal, checking only for the first letter
30568 is not enough.
30569
30570 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30571
30572 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
30573 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
30574
30575 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30576
30577 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
30578 of main contributor.
30579
30580 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30581
30582 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
30583 instead of using English.
30584
30585 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30586
30587 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
30588 by including the first letters of nostr and yesexpr in the regexp.
30589 Also make it more readable by using ASCII where possible.
30590
30591 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30592
30593 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
30594 the first letter of nostr in the regexp. It agrees with CLDR now.
30595 Also make it more readable by using ASCII where possible.
30596
30597 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30598
30599 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
30600 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
30601 these strings contain a U+17D6 (which somewhat looks like a colon)
30602 instead of a real colon to separate the full words for “yes”
30603 and “no” from the single letter responses.
30604
30605 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30606
30607 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
30608 it agree with CLDR (include the first letter of yesstr).
30609 Also make it more readable by using ASCII where possible.
30610
30611 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30612
30613 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
30614 and improve yesexpr and noexpr. The yesstr and nostr apparently
30615 came from CLDR. And CLDR has a bug there: these strings contain
30616 a U+0903 (which looks like a colon) instead of a real colon
30617 to separate the full words for “yes” and “no” from the single
30618 letter responses.
30619
30620 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30621
30622 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
30623 letters of the full yesstr and nostr in yesexpr and noexpr.
30624
30625 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30626
30627 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
30628 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
30629 * localedata/locales/an_ES: Make source more readable by using ASCII
30630 where possible.
30631
30632 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30633
30634 [BZ #20952]
30635 * localedata/locales/yuw_PG: New file.
30636 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
30637 * locale/iso-639.def: Add Yau (Uruwa).
30638
30639 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
30640
30641 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
30642
30643 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
30644
30645 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
30646 (__libc_realloc): Likewise.
30647 (_mid_memalign): Likewise.
30648 (__libc_calloc): Likewise.
30649
30650 2017-10-23 Mike FABIAN <mfabian@redhat.com>
30651
30652 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
30653 by adding the generic +1 and -0 as in all other locales.
30654 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
30655 day names and make it more readable by using ASCII where possible.
30656
30657 2017-10-24 Joseph Myers <joseph@codesourcery.com>
30658
30659 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
30660 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
30661
30662 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30663
30664 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
30665 WNOHANG in waitpid call.
30666
30667 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
30668
30669 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
30670 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
30671
30672 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
30673 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
30674 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
30675 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
30676 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
30677 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
30678 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
30679 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
30680 variables.
30681
30682 2017-10-23 Michael Collison <michael.collison@arm.com>
30683
30684 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
30685 with __builtin_sqrt.
30686 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
30687 with __builtin_sqrtf.
30688 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
30689 with __builtin_ceil.
30690 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
30691 with __builtin_ceilf.
30692 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
30693 with __builtin_floor.
30694 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
30695 with __builtin_floorf.
30696 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
30697 with __builtin_fma.
30698 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
30699 with __builtin_fmaf.
30700 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
30701 with __builtin_fmax.
30702 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
30703 with __builtin_fmaxf.
30704 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
30705 with __builtin_fmin.
30706 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
30707 with __builtin_fminf.
30708 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
30709 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
30710 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
30711 with builtin_rint and conversion to int.
30712 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
30713 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
30714 with builtin_llround.
30715 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
30716 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
30717 with builtin_rint and conversion to long int.
30718 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
30719 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
30720 with builtin_lround.
30721 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
30722 with builtin_lroundf.
30723 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
30724 statements with __builtin_nearbyint.
30725 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
30726 statements with __builtin_nearbyintf.
30727 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
30728 with __builtin_rint.
30729 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
30730 with __builtin_rintf.
30731 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
30732 with __builtin_round.
30733 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
30734 with __builtin_roundf.
30735 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
30736 with __builtin_trunc.
30737 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
30738 with __builtin_truncf.
30739 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
30740 and s_l[l]round[f].c too.
30741
30742 2017-10-23 Alan Modra <amodra@gmail.com>
30743
30744 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
30745 Adjust stack after restoring regs. Add missing LR cfi_restore.
30746
30747 2017-10-23 Alan Modra <amodra@gmail.com>
30748
30749 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
30750 Move LR save and frame setup/teardown and LR restore to
30751 immediately around memset call. Provide cfi.
30752
30753 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30754
30755 * sysdeps/i386/fpu/e_powf.S: Removed.
30756 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
30757 * sysdeps/i386/fpu/w_powf.c: Likewise.
30758 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
30759 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30760 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30761 Add e_powf-sse2.
30762 (CFLAGS-e_powf-sse2.c): New.
30763 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
30764 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
30765
30766 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30767
30768 * sysdeps/i386/fpu/e_log2f.S: Removed.
30769 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
30770 * sysdeps/i386/fpu/w_log2f.c: Likewise.
30771 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
30772 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30773 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30774 Add e_log2f-sse2.
30775 (CFLAGS-e_log2f-sse2.c): New.
30776 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
30777 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
30778
30779 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30780
30781 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30782 Add e_powf-fma.
30783 (CFLAGS-e_powf-fma.c): New.
30784 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
30785 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
30786
30787 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30788
30789 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30790 Add e_log2f-fma.
30791 (CFLAGS-e_log2f-fma.c): New.
30792 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
30793 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
30794
30795 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30796
30797 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30798 Add e_logf-fma.
30799 (CFLAGS-e_logf-fma.c): New.
30800 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
30801 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
30802
30803 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30804
30805 * sysdeps/i386/fpu/e_logf.S: Removed.
30806 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
30807 * sysdeps/i386/fpu/w_logf.c: Likewise.
30808 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
30809 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
30810 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30811 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30812 Add e_logf-sse2.
30813 (CFLAGS-e_logf-sse2.c): New.
30814 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
30815 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
30816
30817 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30818
30819 * sysdeps/i386/fpu/e_exp2f.S: Removed.
30820 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
30821 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
30822 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30823 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30824 Add e_exp2f-sse2.
30825 (CFLAGS-e_exp2f-sse2.c): New.
30826 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
30827 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
30828
30829 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30830
30831 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30832 Add e_exp2f-fma.
30833 (CFLAGS-e_exp2f-fma.c): New.
30834 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
30835 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
30836
30837 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30838
30839 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
30840 * sysdeps/i386/fpu/e_expf.S: Likewise.
30841 * sysdeps/i386/fpu/math_errf.c: Likewise.
30842 * sysdeps/i386/fpu/w_expf.c: Likewise.
30843 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
30844 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30845 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
30846 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
30847 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30848 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30849 Remove e_expf-ia32.
30850 (CFLAGS-e_expf-sse2.c): New.
30851 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
30852 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
30853
30854 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30855
30856 * sysdeps/x86_64/fpu/e_expf.S: Removed.
30857 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
30858 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
30859 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
30860 e_expf.c.
30861 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
30862 New.
30863 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
30864 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30865 Renamed to ...
30866 (__redirect_expf): This.
30867 (SYMBOL_NAME): Changed to expf.
30868 (__ieee754_expf): Renamed to ...
30869 (__expf): This.
30870 (__GI___expf): This.
30871 (__ieee754_expf): Add strong_alias.
30872 (__expf_finite): Likewise.
30873 (__expf): New.
30874 Include <sysdeps/ieee754/flt-32/e_expf.c>.
30875
30876 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
30877
30878 [BZ #22332]
30879 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
30880 unescaping.
30881
30882 2017-10-21 Florian Weimer <fweimer@redhat.com>
30883
30884 * posix/Makefile (tests): Add tst-glob-tilde.
30885 (tests-special): Add tst-glob-tilde-mem.out
30886 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
30887 (tst-glob-tilde-mem.out): Add mtrace check.
30888 * posix/tst-glob-tilde.c: New file.
30889
30890 2017-10-20 Joseph Myers <joseph@codesourcery.com>
30891
30892 * bits/floatn-common.h: New file.
30893 * math/Makefile (headers): Add bits/floatn-common.h.
30894 * bits/floatn.h: Include <bits/floatn-common.h>.
30895 * sysdeps/ia64/bits/floatn.h: Likewise.
30896 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30897 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
30898 * sysdeps/powerpc/bits/floatn.h: Likewise.
30899 * sysdeps/x86/bits/floatn.h: Likewise.
30900
30901 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30902
30903 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
30904 indicates whether compiler emits an warning for alias for
30905 functions with incompatible types.
30906
30907 [BZ #22273]
30908 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
30909 the auxiliary process is terminated by a signal before calling _exit
30910 or execve.
30911
30912 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30913
30914 [BZ #21265]
30915 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
30916 New.
30917 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
30918 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30919 and bit_arch_XSAVEC_Usable if needed.
30920 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30921 and bit_arch_Use_dl_runtime_resolve_opt.
30922 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30923 Removed.
30924 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30925 (bit_arch_Prefer_No_AVX512): Updated.
30926 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30927 (bit_arch_XSAVEC_Usable): New.
30928 (STATE_SAVE_OFFSET): Likewise.
30929 (STATE_SAVE_MASK): Likewise.
30930 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30931 (cpu_features): Add xsave_state_size and xsave_state_full_size.
30932 (index_arch_Use_dl_runtime_resolve_opt): Removed.
30933 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30934 (index_arch_XSAVEC_Usable): New.
30935 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30936 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
30937 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30938 is enabled.
30939 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30940 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30941 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30942 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30943 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30944 _dl_runtime_resolve_xsavec.
30945 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30946 Removed.
30947 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30948 instead of VEC_SIZE.
30949 (REGISTER_SAVE_BND0): Removed.
30950 (REGISTER_SAVE_BND1): Likewise.
30951 (REGISTER_SAVE_BND3): Likewise.
30952 (REGISTER_SAVE_RAX): Always defined to 0.
30953 (VMOV): Removed.
30954 (_dl_runtime_resolve_avx): Likewise.
30955 (_dl_runtime_resolve_avx_slow): Likewise.
30956 (_dl_runtime_resolve_avx_opt): Likewise.
30957 (_dl_runtime_resolve_avx512): Likewise.
30958 (_dl_runtime_resolve_avx512_opt): Likewise.
30959 (_dl_runtime_resolve_sse): Likewise.
30960 (_dl_runtime_resolve_sse_vex): Likewise.
30961 (USE_FXSAVE): New.
30962 (_dl_runtime_resolve_fxsave): Likewise.
30963 (USE_XSAVE): Likewise.
30964 (_dl_runtime_resolve_xsave): Likewise.
30965 (USE_XSAVEC): Likewise.
30966 (_dl_runtime_resolve_xsavec): Likewise.
30967 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30968 Removed.
30969 (_dl_runtime_resolve_avx512_opt): Likewise.
30970 (_dl_runtime_resolve_avx): Likewise.
30971 (_dl_runtime_resolve_avx_opt): Likewise.
30972 (_dl_runtime_resolve_sse): Likewise.
30973 (_dl_runtime_resolve_sse_vex): Likewise.
30974 (_dl_runtime_resolve_fxsave): New.
30975 (_dl_runtime_resolve_xsave): Likewise.
30976 (_dl_runtime_resolve_xsavec): Likewise.
30977
30978 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
30979
30980 [BZ #22320]
30981 CVE-2017-15670
30982 * posix/glob.c (__glob): Fix one-byte overflow.
30983
30984 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30985
30986 * malloc/malloc.c (sysdep-cancel.h): Add include.
30987
30988 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30989
30990 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30991
30992 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
30993
30994 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30995 (tests): Remove $(objpfx)ga_test depdendency.
30996 * resolv/ga_test.c: Remove file.
30997
30998 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30999
31000 [BZ #18812]
31001 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
31002 * localedata/locales/kab_DZ: New file.
31003
31004 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
31005
31006 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
31007 _dl_relocate_static_pie instead of _dl_start to compute load
31008 address in static PIE.
31009
31010 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
31011
31012 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
31013
31014 2017-10-20 Mike FABIAN <mfabian@redhat.com>
31015
31016 [BZ #13605]
31017 * localedata/SUPPORTED: Add shn_MM/UTF-8.
31018 * localedata/locales/shn_MM: New file.
31019
31020 2017-10-20 Florian Weimer <fweimer@redhat.com>
31021
31022 [BZ #22321]
31023 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
31024 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
31025 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
31026 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
31027 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
31028 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
31029
31030 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
31031
31032 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
31033
31034 2017-10-19 Joseph Myers <joseph@codesourcery.com>
31035
31036 * sysdeps/mips/ieee754/bits/floatn.h: New file.
31037
31038 [BZ #22322]
31039 * sysdeps/mips/bits/long-double.h: Move to ....
31040 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
31041
31042 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
31043
31044 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
31045
31046 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
31047 H.J. Lu <hongjiu.lu@intel.com>
31048
31049 [BZ #22299]
31050 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
31051 GLRO(dl_platform) to NULL.
31052 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
31053 (modules-names): Add tst-platformmod-1 and
31054 x86_64/tst-platformmod-2.
31055 (CFLAGS-tst-platform-1.c): New.
31056 (CFLAGS-tst-platformmod-1.c): Likewise.
31057 (CFLAGS-tst-platformmod-2.c): Likewise.
31058 (LDFLAGS-tst-platformmod-2.so): Likewise.
31059 ($(objpfx)tst-platform-1): Likewise.
31060 ($(objpfx)tst-platform-1.out): Likewise.
31061 (tst-platform-1-ENV): Likewise.
31062 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
31063 * sysdeps/x86_64/tst-platform-1.c: New file.
31064 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
31065 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
31066
31067 2017-10-19 Mike FABIAN <mfabian@redhat.com>
31068
31069 [BZ #13994]
31070 * locale/iso-639.def: Add Karbi.
31071 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
31072 * localedata/locales/mjw_IN: New file.
31073
31074 2017-10-18 Joseph Myers <joseph@codesourcery.com>
31075
31076 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
31077 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
31078 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
31079 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
31080 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
31081 (libm_alias_ldouble_other_r): Also create _Float128 alias.
31082 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
31083 <bits/floatn.h>.
31084 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
31085 (libm_alias_ldouble_other_r): Also create _Float128 alias.
31086 * manual/math.texi (Mathematics): Document additional architecture
31087 support for _Float128.
31088 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
31089 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
31090 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
31091 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31092 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31093 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
31094 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
31095 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
31096 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31097 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
31098 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31099 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
31100 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31101 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
31102 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31103
31104 2017-10-18 Renlin Li <renlin.li@arm.com>
31105
31106 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
31107 _DYNAMIC symbol to calculate load address.
31108
31109 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
31110
31111 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
31112 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
31113 summary bits.
31114 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
31115 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
31116
31117 2017-10-18 Mike FABIAN <mfabian@redhat.com>
31118
31119 [BZ #16777]
31120 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
31121 and improve readability by using more ASCII.
31122 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
31123 and improve readability by using more ASCII.
31124
31125 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
31126
31127 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
31128 not all targets support atomics on bool.
31129
31130 2017-10-17 Joseph Myers <joseph@codesourcery.com>
31131
31132 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
31133 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
31134 __f128.
31135 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
31136 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
31137 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
31138 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
31139 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
31140 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
31141
31142 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31143
31144 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
31145 defines.
31146
31147 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
31148
31149 [BZ #22159]
31150 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
31151 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
31152 (do_check_remalloced_chunk): Fix build bug.
31153 (do_check_malloc_state): Add assert that checks arena->top.
31154 (malloc_consolidate): Remove initialization.
31155 (int_mallinfo): Remove call to malloc_consolidate.
31156 (__libc_mallopt): Clarify why malloc_consolidate is needed.
31157
31158 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
31159
31160 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
31161 (have_fastchunks): Remove.
31162 (clear_fastchunks): Remove.
31163 (set_fastchunks): Remove.
31164 (malloc_state): Add have_fastchunks.
31165 (malloc_init_state): Use have_fastchunks.
31166 (do_check_malloc_state): Remove incorrect invariant checks.
31167 (_int_malloc): Use have_fastchunks.
31168 (_int_free): Likewise.
31169 (malloc_consolidate): Likewise.
31170
31171 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
31172
31173 * malloc/malloc.c (tcache_put): Inline.
31174 (tcache_get): Inline.
31175
31176 2017-10-17 Jordi Mallach <jordi@gnu.org>
31177
31178 Aurelien Jarno <aurelien@aurel32.net>
31179 [BZ #2522]
31180 * localedata/locales/ca_ES@valencia: New file.
31181 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
31182
31183 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
31184
31185 [BZ #22296]
31186 * math/math.h: Let signbit use the builtin in C++ mode with gcc
31187 < 6.x
31188
31189 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31190
31191 * scripts/build-many-glibcs.py (Context.add_all_configs):
31192 Add arm-linux-gnueabihf multiarch extra_glibcs.
31193
31194 * sysdeps/generic/ifunc-init.h: New file.
31195 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
31196
31197 2017-10-17 Mike FABIAN <mfabian@redhat.com>
31198
31199 [BZ #22019]
31200 * localedata/locales/el_GR: Set n_cs_precedes to 0.
31201 * localedata/locales/el_CY: copy "el_GR" because it is identical.
31202 * stdlib/tst-strfmon_l.c: adapt test case.
31203
31204 2017-10-16 Joseph Myers <joseph@codesourcery.com>
31205
31206 * sysdeps/generic/float128-abi.h: New file.
31207 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
31208 non-__prefixed symbols to ....
31209 * math/Versions: ... here. Include <float128-abi.h>.
31210 * stdlib/Versions ... and here. Include <float128-abi.h>
31211
31212 2017-10-16 Florian Weimer <fweimer@redhat.com>
31213
31214 * version.h (VERSION): Switch to ".9000" as the development
31215 version suffix.
31216
31217 2017-10-16 Florian Weimer <fweimer@redhat.com>
31218
31219 [BZ #22050]
31220 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
31221 compat_symbol_reference to access non-default version.
31222
31223 2017-10-16 Florian Weimer <fweimer@redhat.com>
31224
31225 * malloc/Makefile (others-extras): Set to mcheck-init.o.
31226
31227 2017-10-16 Carlos O'Donell <carlos@redhat.com>
31228
31229 * include/shlib-compat.h (compat_symbol_reference): Update
31230 comment.
31231
31232 2017-10-16 Joseph Myers <joseph@codesourcery.com>
31233
31234 * math/Makefile (test-types): Add
31235 $(type-float128-$(float128-alias-fcts)).
31236 * math/test-float128.h (TYPE_STR): Define conditional on
31237 [FLT128_MANT_DIG == LDBL_MANT_DIG].
31238 (ULP_IDX): Likewise.
31239 (ULP_I_IDX): Likewise.
31240
31241 * stdlib/strtold.c: Include <bits/floatn.h>
31242 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
31243 and later undefine as macro. Define as weak alias if
31244 [!USE_WIDE_CHAR].
31245 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
31246 and later undefine as macro. Define as weak alias if
31247 [USE_WIDE_CHAR].
31248 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
31249 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
31250 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
31251 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
31252 Define and later undefine as macro. Define as weak alias if
31253 [USE_WIDE_CHAR].
31254 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
31255 <bits/floatn.h>.
31256 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
31257 Define and later undefine as macro. Define as weak alias if
31258 [!USE_WIDE_CHAR].
31259 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
31260 Define and later undefine as macro. Define as weak alias if
31261 [USE_WIDE_CHAR].
31262
31263 2017-10-15 Carlos O'Donell <carlos@redhat.com>
31264
31265 * localedata/collate-test.c (allocate_arrays): Don't use \n in
31266 record_verbose messages.
31267
31268 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
31269
31270 [BZ #22052]
31271 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
31272 to silence -O3 -Wall warning with GCC 7.
31273
31274 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
31275
31276 * Makeconfig (+link-static-before-libc): Use the first of
31277 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
31278 * gmon/Makefile (tests): Add tst-gmon-static.
31279 (tests-static): Likewise.
31280 (CFLAGS-tst-gmon-static.c): New.
31281 (CRT-tst-gmon-static): Likewise.
31282 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
31283 (tst-gmon-static-ENV): Likewise.
31284 (tests-special): Likewise.
31285 ($(objpfx)tst-gmon-static.out): Likewise.
31286 (clean-tst-gmon-static-data): Likewise.
31287 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
31288 * gmon/tst-gmon-static-gprof.sh: New file.
31289 * gmon/tst-gmon-static.c: Likewise.
31290
31291 2017-10-13 Carlos O'Donell <carlos@redhat.com>
31292
31293 [BZ #22295]
31294 * locale/programs/linereader.c (get_string): Don't warn on
31295 non-symbolic character.
31296
31297 [BZ #22294]
31298 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
31299 int_curr_symbol.
31300
31301 [BZ #22292]
31302 * locale/programs/record-status.h: New file
31303 * locale/programs/locale.c: Add comment.
31304 * locale/programs/charmap-dir.c: Don't include error.h.
31305 (charmap_opendir): Use record_error.
31306 * locale/programs/charmap.c: Don't include error.h.
31307 (charmap_read): Use record_error, and record_warning.
31308 (parse_charmap): Likewise.
31309 * locale/programs/ld-address.c: Don't include error.h.
31310 (address_finish): Use record_error, and record_warning.
31311 * locale/programs/ld-collate.c: Don't include error.h.
31312 (collate_finish): Use record_error, and record_error_at_line.
31313 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
31314 (ctype_class_new): Likewise.
31315 (ctype_map_new): Likewise.
31316 (set_one_default): Likewise.
31317 (set_class_defaults): Likewise.
31318 (translit_flatten): Likewise.
31319 (allocate_arrays): Use record_error, and record_verbose.
31320 * locale/programs/ld-identification.c: Don't include error.h.
31321 (indentation_finish): Use record_error and record_warning.
31322 * locale/programs/ld-measurement.c: Don't include error.h.
31323 (measurement_finish): Use record_error.
31324 * locale/programs/ld-messages.c
31325 (message_finish): Likewise.
31326 * locale/programs/ld-monetary.c
31327 (monetary_finish): Likewise.
31328 * locale/programs/ld-name.c (name_finish): Use record_error
31329 and record_warning.
31330 * locale/programs/ld-numeric.c
31331 (numeric_finish): Use record_error.
31332 * locale/programs/ld-paper.c: Don't include error.h.
31333 (paper_finish): Use record_error.
31334 * locale/programs/ld-telephone.c: Don't include error.h.
31335 (telephone_finish): Use record_error.
31336 * locale/programs/ld-time.c (time_finish): Likewise.
31337 * locale/programs/linereader.h (lr_error): Make inline func.
31338 * locale/programs/localedef.c: Define recorded_warning_count,
31339 and recorded_error_count.
31340 (main): Use record_error. Use recorded_error_count and
31341 recorded_warning_count to issue correct error returns.
31342 (add_to_readlist): Use record_error.
31343 (find_locale): Likewise.
31344 (load_locale): Likewise.
31345 * locale/programs/localedef.h: Remove be_quiet
31346 and WITH_CUR_LOCALE.
31347 * locale/programs/locarchive.c (compare_from_file): Use
31348 record_error.
31349 * locale/programs/locfile.c (write_locale_data): Use
31350 record_error.
31351 * locale/programs/repertoire.c: Dont include error.h.
31352 (repertoire_complain): Use record_error.
31353 * localedata/tst-fmon.sh: Expect failures from localedef.
31354 * localedata/tst-locale.sh: Likewise.
31355 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
31356
31357 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
31358 (REPORTS): Likewise.
31359 (check): Likewise.
31360 (i18n): Rename to...
31361 (i18n_ctype): ...this.
31362 (i18n-report): Rename to...
31363 (i18n_ctype-report): ...this.
31364 * localedata/locales/i18n_ctype: Regenerate.
31365 * localedata/locales/i18n: copy i18n_ctype.
31366
31367 2017-10-13 Joseph Myers <joseph@codesourcery.com>
31368
31369 * stdlib/strfroml.c: Include <bits/floatn.h>.
31370 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
31371 Define before include of <stdlib.h> and undefine afterwards, then
31372 define as weak alias.
31373
31374 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
31375 Undefine and restore default definition. Use
31376 libm_alias_ldouble_other.
31377
31378 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
31379
31380 [BZ #22153]
31381 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
31382 in coredumps.
31383
31384 2017-10-13 James Clarke <jrtc27@jrtc27.com>
31385
31386 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
31387 Assign sym_map to be map for local symbols, as TLS relocations
31388 use sym_map to determine whether the symbol is defined and to
31389 extract the TLS information.
31390 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
31391 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
31392
31393 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
31394
31395 [BZ #22189]
31396 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
31397 (math_force_eval): Add powerpc version.
31398
31399 [BZ #22142]
31400 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
31401 -DBL_MAX.
31402 (do_test): Likewise.
31403 * stdio-common/tst-printf.sh: Likewise.
31404 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
31405 ifdef clause in order to set the carry bit right. Replace r0 by
31406 0 without changing the behavior.
31407
31408 2017-10-13 Joseph Myers <joseph@codesourcery.com>
31409
31410 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
31411 <libm-alias-ldouble.h>.
31412 (fabsl): Define using libm_alias_ldouble.
31413 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
31414 <libm-alias-ldouble.h>.
31415 (fabsl): Define using libm_alias_ldouble.
31416
31417 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
31418 Remove conditional code.
31419
31420 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
31421 Rename to __clog10_internal_l.
31422 (__clog10_internal_l): Define aliases using
31423 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
31424 with __clog10.
31425
31426 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31427
31428 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
31429 * benchtests/sincosf-inputs: New file.
31430 * benchtests/cosf-inputs: New file.
31431 * benchtests/sinf-inputs: New file.
31432
31433 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
31434
31435 * posix/tst-spawn.c (do_test): Wait for both children.
31436
31437 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
31438
31439 [BZ #22284]
31440 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
31441 tests-pie): Add tst-gmon-pie.
31442 (CFLAGS-tst-gmon-pie.c): New.
31443 (CRT-tst-gmon-pie): Likewise.
31444 (tst-gmon-pie-ENV): Likewise.
31445 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
31446 ($(objpfx)tst-gmon-pie.out): Likewise.
31447 (clean-tst-gmon-pie-data): Likewise.
31448 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
31449 * gmon/gmon.c [PIC]: Include <link.h>.
31450 [PIC] (callback): New function.
31451 (write_hist): Add an argument for load address. Subtract load
31452 address from PCs.
31453 (write_call_graph): Likewise.
31454 (write_gmon): Call __dl_iterate_phdr to get load address, pass
31455 it to write_hist and write_call_graph.
31456 * gmon/tst-gmon-pie.c: New file.
31457
31458 2017-10-11 Joseph Myers <joseph@codesourcery.com>
31459
31460 * math/Makefile (test-types-basic): New variable.
31461 (test-types): Likewise.
31462 (libm-test-support): Use $(test-types) instead of $(types).
31463 (libm-tests-base-normal): Likewise.
31464 (libm-tests-base-finite): Likewise.
31465 (libm-tests-base-inline): Likewise.
31466 (generated): Likewise.
31467 ($(objpfx)libm-test-support-$(t).c): Likewise.
31468 (libm-tests-for-type iterator): Likewise.
31469 (libm-test-support iterator): Likewise.
31470 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
31471 (ulp_idx): Use ULP_IDX.
31472 * math/test-ldouble.h: Include <float.h>.
31473 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
31474 (ULP_IDX): New macro.
31475 (ULP_I_IDX): Likewise.
31476 * math/test-double.h (ULP_IDX): Likewise.
31477 (ULP_I_IDX): Likewise.
31478 * math/test-float.h (ULP_IDX): Likewise.
31479 (ULP_I_IDX): Likewise.
31480 * math/test-float128.h (ULP_IDX): Likewise.
31481 (ULP_I_IDX): Likewise.
31482
31483 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31484
31485 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
31486 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
31487 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
31488 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
31489 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
31490 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
31491 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
31492 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
31493 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
31494 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
31495 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
31496 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
31497 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
31498 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31499 (SINGLE_THREAD_BY_GLOBAL): Define.
31500 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31501 Likewise.
31502 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31503 Likewise.
31504 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31505 Likewise.
31506 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31507 Likewise.
31508 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
31509 (SINGLE_THREAD_BY_GLOBAL): Likewise.
31510 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31511 Likewise.
31512
31513 2017-10-11 Andreas Schwab <schwab@suse.de>
31514
31515 * nis/Makefile (aux): Remove.
31516 * nscd/Makefile (aux): Add nscd_hash.
31517 (nscd-modules): Likewise.
31518 ($(objpfx)nscd): Don't depend on libnsl.
31519 * nscd/nscd_hash.c: New file.
31520 * nscd/nscd_hash.h: Likewise.
31521 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
31522 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
31523 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
31524 instead of <nis/rpcsvc/nis.h>.
31525 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
31526
31527 2017-10-11 Florian Weimer <fweimer@redhat.com>
31528
31529 [BZ #22078]
31530 Avoid large NSS buffers with many addresses, aliases.
31531 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
31532 using dynarrays and struct alloc_buffer.
31533 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
31534 (tst-nss-files-hosts-multi): Link with -ldl.
31535 * nss/tst-nss-files-hosts-multi.c: New file.
31536
31537 2017-10-11 Florian Weimer <fweimer@redhat.com>
31538
31539 [BZ #18023]
31540 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
31541 scratch_buffer. Eliminate gotos.
31542
31543 2017-10-11 Joseph Myers <joseph@codesourcery.com>
31544
31545 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
31546 libm_alias_ldouble_other.
31547 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
31548 undefine and redefine.
31549 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
31550 (exp10l): Do not define here.
31551 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
31552 (weak_alias): Undefine and redefine.
31553 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
31554 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
31555 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
31556 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
31557
31558 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
31559 [!__fma] (fma): Define using libm_alias_double.
31560 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
31561 [!__fmaf] (fmaf): Define using libm_alias_float.
31562 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
31563 (fmal): Define using libm_alias_ldouble.
31564
31565 2017-10-10 Joseph Myers <joseph@codesourcery.com>
31566
31567 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
31568 New macro.
31569 (libm_alias_double_other): Likewise.
31570 (libm_alias_double_r): Use libm_alias_double_other_r.
31571 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
31572 New macro.
31573 (libm_alias_float_other): Likewise.
31574 (libm_alias_float_r): Use libm_alias_float_other_r.
31575 * sysdeps/generic/libm-alias-float128.h
31576 (libm_alias_float128_other_r): New macro.
31577 (libm_alias_float128_other): Likewise.
31578 (libm_alias_float128_r): Use libm_alias_float128_other_r.
31579 * sysdeps/generic/libm-alias-ldouble.h
31580 (libm_alias_ldouble_other_r): New macro.
31581 (libm_alias_ldouble_other): Likewise.
31582 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
31583 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
31584 (libm_alias_double_other_r): New macro.
31585 (libm_alias_double_other): Likewise.
31586 (libm_alias_double_r): Use libm_alias_double_other_r.
31587 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
31588 (libm_alias_ldouble_other_r): New macro.
31589 (libm_alias_ldouble_other): Likewise.
31590 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
31591 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
31592 [!USE_AS_COMPAT]: Use libm_alias_double_other.
31593 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
31594 [!USE_AS_COMPAT]: Use libm_alias_float_other.
31595 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
31596 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
31597 * math/w_exp2f.c: Use libm_alias_float_other.
31598 * math/w_expf.c: Likewise.
31599 * math/w_log2f.c: Likewise.
31600 * math/w_logf.c: Likewise.
31601 * math/w_powf.c: Likewise.
31602 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
31603 [!__exp2f]: Use libm_alias_float_other.
31604 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
31605 [!__expf]: Use libm_alias_float_other.
31606 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
31607 [!__log2f]: Use libm_alias_float_other.
31608 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
31609 [!__logf]: Use libm_alias_float_other.
31610 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
31611 [!__powf]: Use libm_alias_float_other.
31612
31613 2017-10-10 Florian Weimer <fweimer@redhat.com>
31614
31615 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
31616 function.
31617 (_nss_files_gethostbyname3_r): Call it.
31618
31619 2017-10-09 Joseph Myers <joseph@codesourcery.com>
31620
31621 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
31622 error. Remove default definition of declare_mgen_alias.
31623 [!declare_mgen_alias_r]: Likewise.
31624 * sysdeps/generic/math-type-macros-double.h
31625 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
31626 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
31627 (declare_mgen_alias_r): Likewise.
31628 * sysdeps/generic/math-type-macros-float128.h
31629 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
31630 * sysdeps/generic/math-type-macros-ldouble.h
31631 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
31632 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
31633 macro.
31634 (declare_mgen_alias_r_s): Likewise.
31635 (declare_mgen_alias_r): Likewise.
31636 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
31637 (lgamma_r): Define using libm_alias_double_r.
31638 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
31639 (lgammaf_r): Define using libm_alias_float_r.
31640 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
31641 (lgammal_r): Define using libm_alias_ldouble_r.
31642 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
31643 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31644
31645 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31646
31647 * lib/glob.c (__glob_pattern_type): Remove now-spurious
31648 extern declaration.
31649
31650 2017-10-09 Joseph Myers <joseph@codesourcery.com>
31651
31652 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
31653
31654 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
31655
31656 [BZ #21326]
31657 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
31658 [__cplusplus >= 201103] (__USE_ISOC99): Define.
31659 * math/Makefile (test-math-cxx11): New test.
31660 * math/test-math-cxx11.cc: New file.
31661
31662 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
31663
31664 * login/openpty.c (openpty): Close slave pty file descriptor on error.
31665
31666 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
31667 call to allocate the slave pty file descriptor.
31668
31669 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31670
31671 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
31672 [!__fma] (fma): Define using libm_alias_double.
31673 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
31674 [!__fma] (fma): Define using libm_alias_double.
31675
31676 * sysdeps/ieee754/float128/float128_private.h: Include
31677 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
31678 (libm_alias_ldouble_r): Undefine and redefine.
31679 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
31680 <libm-alias-ldouble.h>.
31681 (asinhl): Define using libm_alias_ldouble.
31682 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
31683 <libm-alias-ldouble.h>.
31684 (atanl): Define using libm_alias_ldouble.
31685 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
31686 <libm-alias-ldouble.h>.
31687 (cbrtl): Define using libm_alias_ldouble.
31688 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
31689 <libm-alias-ldouble.h>.
31690 (ceill): Define using libm_alias_ldouble.
31691 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
31692 <libm-alias-ldouble.h>.
31693 (copysignl): Define using libm_alias_ldouble.
31694 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
31695 <libm-alias-ldouble.h>.
31696 (cosl): Define using libm_alias_ldouble.
31697 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
31698 <libm-alias-ldouble.h>.
31699 (erfl): Define using libm_alias_ldouble.
31700 (erfcl): Likewise.
31701 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
31702 <libm-alias-ldouble.h>.
31703 (expm1l): Define using libm_alias_ldouble.
31704 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
31705 <libm-alias-ldouble.h>.
31706 (fabsl): Define using libm_alias_ldouble.
31707 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
31708 <libm-alias-ldouble.h>.
31709 (floorl): Define using libm_alias_ldouble.
31710 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
31711 <libm-alias-ldouble.h>.
31712 (fmal): Define using libm_alias_ldouble.
31713 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
31714 <libm-alias-ldouble.h>.
31715 (frexpl): Define using libm_alias_ldouble.
31716 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
31717 libm_alias_ldouble.
31718 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
31719 <libm-alias-ldouble.h>.
31720 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
31721 libm_alias_ldouble.
31722 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
31723 <libm-alias-ldouble.h>.
31724 (getpayloadl): Define using libm_alias_ldouble.
31725 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
31726 <libm-alias-ldouble.h>.
31727 (llrintl): Define using libm_alias_ldouble.
31728 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
31729 <libm-alias-ldouble.h>.
31730 (llroundl): Define using libm_alias_ldouble.
31731 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
31732 <libm-alias-ldouble.h>.
31733 (logbl): Define using libm_alias_ldouble.
31734 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
31735 <libm-alias-ldouble.h>.
31736 (lrintl): Define using libm_alias_ldouble.
31737 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
31738 <libm-alias-ldouble.h>.
31739 (lroundl): Define using libm_alias_ldouble.
31740 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
31741 <libm-alias-ldouble.h>.
31742 (modfl): Define using libm_alias_ldouble.
31743 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
31744 <libm-alias-ldouble.h>.
31745 (nearbyintl): Define using libm_alias_ldouble.
31746 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
31747 <libm-alias-ldouble.h>.
31748 (nextafterl): Define using libm_alias_ldouble.
31749 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
31750 <libm-alias-ldouble.h>.
31751 (nextupl): Define using libm_alias_ldouble.
31752 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
31753 <libm-alias-ldouble.h>.
31754 (remquol): Define using libm_alias_ldouble.
31755 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
31756 <libm-alias-ldouble.h>.
31757 (rintl): Define using libm_alias_ldouble.
31758 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
31759 <libm-alias-ldouble.h>.
31760 (roundevenl): Define using libm_alias_ldouble.
31761 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
31762 <libm-alias-ldouble.h>.
31763 (roundl): Define using libm_alias_ldouble.
31764 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
31765 using libm_alias_ldouble.
31766 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
31767 <libm-alias-ldouble.h>.
31768 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
31769 Define using libm_alias_ldouble.
31770 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
31771 <libm-alias-ldouble.h>.
31772 (sincosl): Define using libm_alias_ldouble.
31773 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
31774 <libm-alias-ldouble.h>.
31775 (sinl): Define using libm_alias_ldouble.
31776 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
31777 <libm-alias-ldouble.h>.
31778 (tanhl): Define using libm_alias_ldouble.
31779 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
31780 <libm-alias-ldouble.h>.
31781 (tanl): Define using libm_alias_ldouble.
31782 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
31783 <libm-alias-ldouble.h>.
31784 (totalorderl): Define using libm_alias_ldouble.
31785 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
31786 <libm-alias-ldouble.h>.
31787 (totalordermagl): Define using libm_alias_ldouble.
31788 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
31789 <libm-alias-ldouble.h>.
31790 (truncl): Define using libm_alias_ldouble.
31791 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
31792 libm_alias_ldouble.
31793 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
31794 libm_alias_ldouble.
31795 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
31796 <libm-alias-ldouble.h>.
31797 (weak_alias): Do not undefine and redefine.
31798 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31799 (copysignl): Define with long_double_symbol only if [IS_IN
31800 (libc)].
31801 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
31802 <libm-alias-ldouble.h>.
31803 (weak_alias): Do not undefine and redefine.
31804 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31805 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
31806 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
31807 <libm-alias-ldouble.h>.
31808 (weak_alias): Do not undefine and redefine.
31809 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31810 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
31811 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
31812 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
31813 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
31814 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
31815 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
31816 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
31817 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
31818 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
31819 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
31820 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
31821 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
31822 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
31823 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
31824 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
31825 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
31826 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
31827 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
31828 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
31829 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
31830 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
31831 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
31832 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
31833 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
31834 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
31835
31836 2017-10-06 Carlos O'Donell <carlos@redhat.com>
31837
31838 [BZ #22111]
31839 * malloc/malloc.c (tcache_shutting_down): Use bool type.
31840 (tcache_thread_freeres): Set tcache_shutting_down before
31841 freeing the tcache.
31842 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
31843 * malloc/tst-malloc-tcache-leak.c: New file.
31844
31845 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31846
31847 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
31848 back to powerpc32 file.
31849 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31850 (memrchr): Add __memrchr_power8 to ifunc list.
31851 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
31852 extra bytes for unaligned inputs.
31853
31854 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31855
31856 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
31857 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
31858 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
31859 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
31860 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
31861
31862 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31863
31864 * sysdeps/arm/libm-test-ulps: Update.
31865
31866 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
31867 <libm-alias-ldouble.h>.
31868 (asinhl): Define using libm_alias_ldouble.
31869 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
31870 <libm-alias-ldouble.h>.
31871 (cbrtl): Define using libm_alias_ldouble.
31872 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
31873 <libm-alias-ldouble.h>.
31874 (copysignl): Define using libm_alias_ldouble.
31875 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
31876 <libm-alias-ldouble.h>.
31877 (cosl): Define using libm_alias_ldouble.
31878 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
31879 <libm-alias-ldouble.h>.
31880 (erfl): Define using libm_alias_ldouble.
31881 (erfcl): Likewise.
31882 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
31883 <libm-alias-ldouble.h>.
31884 (fmal): Define using libm_alias_ldouble.
31885 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
31886 <libm-alias-ldouble.h>.
31887 (frexpl): Define using libm_alias_ldouble.
31888 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
31889 libm_alias_ldouble.
31890 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
31891 <libm-alias-ldouble.h>.
31892 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
31893 libm_alias_ldouble.
31894 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
31895 <libm-alias-ldouble.h>.
31896 (getpayloadl): Define using libm_alias_ldouble.
31897 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
31898 <libm-alias-ldouble.h>.
31899 (llrintl): Define using libm_alias_ldouble.
31900 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
31901 <libm-alias-ldouble.h>.
31902 (llroundl): Define using libm_alias_ldouble.
31903 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
31904 <libm-alias-ldouble.h>.
31905 (lrintl): Define using libm_alias_ldouble.
31906 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
31907 <libm-alias-ldouble.h>.
31908 (lroundl): Define using libm_alias_ldouble.
31909 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
31910 <libm-alias-ldouble.h>.
31911 (modfl): Define using libm_alias_ldouble.
31912 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
31913 <libm-alias-ldouble.h>.
31914 (nextupl): Define using libm_alias_ldouble.
31915 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
31916 <libm-alias-ldouble.h>.
31917 (remquol): Define using libm_alias_ldouble.
31918 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31919 <libm-alias-ldouble.h>.
31920 (roundevenl): Define using libm_alias_ldouble.
31921 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31922 <libm-alias-ldouble.h>.
31923 (roundl): Define using libm_alias_ldouble.
31924 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31925 using libm_alias_ldouble.
31926 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31927 <libm-alias-ldouble.h>.
31928 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31929 <libm-alias-ldouble.h>.
31930 (setpayloadsigl): Define using libm_alias_ldouble.
31931 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31932 <libm-alias-ldouble.h>.
31933 (sincosl): Define using libm_alias_ldouble.
31934 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31935 <libm-alias-ldouble.h>.
31936 (sinl): Define using libm_alias_ldouble.
31937 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31938 <libm-alias-ldouble.h>.
31939 (tanhl): Define using libm_alias_ldouble.
31940 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31941 <libm-alias-ldouble.h>.
31942 (tanl): Define using libm_alias_ldouble.
31943 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31944 <libm-alias-ldouble.h>.
31945 (totalorderl): Define using libm_alias_ldouble.
31946 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31947 <libm-alias-ldouble.h>.
31948 (totalordermagl): Define using libm_alias_ldouble.
31949 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31950 libm_alias_ldouble.
31951 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31952 libm_alias_ldouble.
31953
31954 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
31955
31956 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31957 memmove_falkor.
31958 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31959 (__libc_ifunc_impl_list): Likewise.
31960 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31961 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31962
31963 * benchtests/bench-memmove-walk.c: New file.
31964 * benchtests/Makefile (string-benchset): Add it.
31965
31966 * benchtests/bench-memset-walk.c: New file.
31967 * benchtests/Makefile (string-benchset): Add it.
31968
31969 * benchtests/bench-memcpy-walk.c: New file.
31970 * benchtests/Makefile (string-benchset): Add it.
31971
31972 2017-10-05 Florian Weimer <fweimer@redhat.com>
31973
31974 nscd: Eliminate compilation time dependency in the build output.
31975 * nscd/nscd_stat.c (STATDATA_VERSION)
31976 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31977 (STATDATA_VERSION_FULL): New macro definitions.
31978 (compilation): Remove.
31979 (struct statdata): Adjust version member.
31980 (send_stats): Set version from STATDATA_VERSION_FULL.
31981 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31982
31983 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31984
31985 * configure.ac (--enable-add-ons): Remove option.
31986 (machine): Do not mention add-ons in comment.
31987 (LIBC_PRECONFIGURE): Likewise.
31988 (add_ons): Remove variable and sanity checks and logic to locate
31989 add-ons.
31990 (add_ons_automatic): Remove variable.
31991 (configured_add_ons): Likewise.
31992 (add_ons_sfx): Likewise.
31993 (add_ons_pfx): Likewise.
31994 (add_on_subdirs): Likewise.
31995 (sysnames_add_ons): Likewise. Remove loop over add-ons and
31996 consideration of add-ons in Implies handling.
31997 (sysdeps_add_ons): Likewise.
31998 * configure: Regenerated.
31999 * libidn/configure.ac: Remove.
32000 * libidn/configure: Likewise.
32001 * sysdeps/unix/inet/configure.ac: New file.
32002 * sysdeps/unix/inet/configure: New generated file.
32003 * sysdeps/unix/inet/Subdirs: Add libidn.
32004 * Makeconfig (sysdeps-srcdirs): Remove variable.
32005 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
32006 ($(common-objpfx)config.status): Do not depend on add-on files.
32007 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
32008 comment.
32009 (all-subdirs): Do not include $(add-on-subdirs).
32010 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
32011 * config.make.in (add-ons): Remove variable.
32012 (add-on-subdirs): Likewise.
32013 (sysdeps-add-ons): Likewise.
32014 * manual/Makefile (add-chapters): Remove.
32015 ($(objpfx)texis): Do not depend on $(add-chapters).
32016 (nonexamples): Do not handle $(add-chapters).
32017 (examples): Do not handle $(add-ons).
32018 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
32019 libc-texinfo.sh.
32020 * manual/install.texi (Installation): Do not mention add-ons.
32021 (--enable-add-ons): Do not document configure option.
32022 * INSTALL: Regenerated.
32023 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
32024 * manual/maint.texi (Hierarchy Conventions): Do not mention
32025 add-ons.
32026 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
32027 --enable-add-ons.
32028 * scripts/gen-sorted.awk: Do not handle Subdirs files from
32029 add-ons.
32030 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
32031 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
32032
32033 2017-10-05 Andreas Schwab <schwab@suse.de>
32034
32035 [BZ #15142]
32036 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
32037 (_IO_flush_all_lockp): Always lock list_all_lock.
32038 (_IO_flush_all_linebuffered): Likewise.
32039 (_IO_unbuffer_all): Likewise.
32040
32041 2017-10-05 Florian Weimer <fweimer@redhat.com>
32042
32043 [BZ #15436]
32044 Do not flush stdio streams on abort.
32045 * stdlib/abort.c (fflush): Remove macro definition.
32046 (abort): Remove stages related to stdio flushing.
32047
32048 2017-10-05 Florian Weimer <fweimer@redhat.com>
32049
32050 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
32051
32052 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
32053
32054 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
32055
32056 2017-10-05 Florian Weimer <fweimer@redhat.com>
32057
32058 * support/support_format_hostent.c (support_format_hostent): Add
32059 more error information for NETDB_INTERNAL.
32060
32061 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
32062
32063 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
32064 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
32065 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
32066 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
32067 AC_DEFINE if multi-arch is enabled.
32068 * sysdeps/i386/configure: Regenerated.
32069
32070 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
32071
32072 * Makeconfig (+link-static-before-libc): Use
32073 $(DEFAULT-LDFLAGS-$(@F)).
32074 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
32075 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
32076 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
32077
32078 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
32079
32080 * elf/Makefile (tests): Add tst-main1.
32081 (modules-names): Add tst-main1mod.
32082 ($(objpfx)tst-main1): New.
32083 (CRT-tst-main1): Likewise.
32084 (LDFLAGS-tst-main1): Likewise.
32085 (LDLIBS-tst-main1): Likewise.
32086 (tst-main1mod.so-no-z-defs): Likewise.
32087 * elf/tst-main1.c: New file.
32088 * elf/tst-main1mod.c: Likewise.
32089
32090 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
32091
32092 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
32093
32094 2017-10-04 Joseph Myers <joseph@codesourcery.com>
32095
32096 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
32097 (fma): Define using libm_alias_double.
32098 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
32099 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
32100 <math_ldbl_opt.h>.
32101 (fmal): Do not define as compat symbol here.
32102 * sysdeps/alpha/fpu/s_fma.c: New file.
32103
32104 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
32105
32106 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
32107
32108 2017-10-04 Joseph Myers <joseph@codesourcery.com>
32109
32110 [BZ #22229]
32111 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
32112 <math_ldbl_opt.h>
32113 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
32114 and libc.
32115 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
32116 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
32117 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
32118 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
32119 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
32120 Include <math_ldbl_opt.h>
32121 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
32122 and libc.
32123 (compat_symbol): Undefine and redefine.
32124 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
32125 <math_ldbl_opt.h>
32126 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
32127 (compat_symbol): Undefine and redefine.
32128 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
32129 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
32130 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
32131 GLIBC_2_1 for libm.
32132 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
32133 GLIBC_2.0 copysignl symbol.
32134 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32135 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
32136
32137 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
32138
32139 2017-10-04 Florian Weimer <fweimer@redhat.com>
32140
32141 * scripts/check-local-headers.sh: Ignore nspr4 header file
32142 directory in addition to nspr.
32143
32144 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
32145
32146 [BZ #17956]
32147 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
32148 * configure: Regenerate.
32149 * crypt/Makefile (nss-cpp-flags): New variable.
32150 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
32151 (CPPFLAGS-md5-crypt.c): Use it.
32152 * scripts/check-local-headers.sh: Ignore nspr header file
32153 directory.
32154
32155 2017-10-04 Andreas Schwab <schwab@suse.de>
32156
32157 * nis/Makefile (services): Remove compat.
32158 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
32159 ($(objpfx)libnss_compat.so): Remove rule.
32160 * nis/Versions (libnss_compat): Remove.
32161 * nss/Makefile (services): Add compat.
32162 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
32163 * nss/Versions (libnss_compat): Define.
32164 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
32165 Don't include <rpc/types.h>. Replace bool_t by bool.
32166 * nss/nss_compat/compat-initgroups.c: Likewise.
32167 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
32168 instead of <rpcsrv/ypclnt.h>.
32169 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
32170 yp_get_default_domain.
32171 * nss/nss_compat/compat-pwd.c: Likewise.
32172 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
32173 yp_get_default_domain.
32174 * nss/nss_compat/nisdomain.c: New file.
32175 * nss/nss_compat/nisdomain.h: Likewise.
32176
32177 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
32178
32179 [BZ #22244]
32180 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
32181 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32182
32183 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
32184
32185 [BZ #22243]
32186 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
32187 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
32188
32189 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32190
32191 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
32192 "movl main@GOTOFF(%ebx), %eax".
32193
32194 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32195
32196 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
32197 allow undefined _DYNAMIC in PIE libc.a.
32198 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32199 Likewse.
32200
32201 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32202
32203 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
32204 check _DYNAMIC.
32205
32206 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32207
32208 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
32209 check _DYNAMIC.
32210
32211 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32212
32213 * math/test-math-iscanonical.cc (error): Replace bool with int.
32214
32215 2017-10-03 Joseph Myers <joseph@codesourcery.com>
32216
32217 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
32218 (modf): Define using libm_alias_double, only if [!__modf].
32219 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
32220 <libm-alias-double.h>.
32221 (modf): Define using libm_alias_double, only if [!__modf].
32222 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
32223 compat symbol here.
32224 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
32225 (weak_alias): Do not undefine and redefine.
32226 (strong_alias): Likewise.
32227 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
32228 (weak_alias): Likewise.
32229 (strong_alias): Likewise.
32230
32231 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
32232 (logb): Define using libm_alias_double, only if [!__logb].
32233 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
32234 <libm-alias-double.h>.
32235 (logb): Define using libm_alias_double, only if [!__logb].
32236 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
32237 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
32238 (weak_alias): Do not undefine and redefine.
32239 (strong_alias): Likewise.
32240 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
32241 (weak_alias): Likewise.
32242 (strong_alias): Likewise.
32243
32244 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32245
32246 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
32247 Check SHARED instead PIC.
32248
32249 2017-10-03 Joseph Myers <joseph@codesourcery.com>
32250
32251 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
32252 [!__fmaf] (fmaf): Define using libm_alias_float.
32253
32254 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
32255 (frexp): Define using libm_alias_double.
32256 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
32257 <libm-alias-double.h>.
32258 (frexp): Define using libm_alias_double.
32259 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
32260 compat symbol here.
32261
32262 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32263
32264 [BZ #22235]
32265 * math/math.h: Trivial fix for unbalanced parentheses in comment.
32266 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
32267 (CFLAGS-test-math-iscanonical.cc): New variable.
32268 * math/test-math-iscanonical.cc: New file.
32269 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
32270 Provide a C++ implementation based on function overloading,
32271 rather than using __MATH_TG, which uses C-only builtins.
32272 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
32273 Likewise.
32274 * sysdeps/powerpc/powerpc64le/Makefile
32275 (CFLAGS-test-math-iscanonical.cc): New variable.
32276
32277 2017-10-03 Joseph Myers <joseph@codesourcery.com>
32278
32279 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
32280 (ceil): Define using libm_alias_double.
32281 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
32282 (floor): Define using libm_alias_double.
32283 * sysdeps/ieee754/dbl-64/s_llround.c: Include
32284 <libm-alias-double.h>.
32285 (llround): Define using libm_alias_double.
32286 * sysdeps/ieee754/dbl-64/s_lround.c: Include
32287 <libm-alias-double.h>.
32288 (lround): Define using libm_alias_double.
32289 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
32290 <libm-alias-double.h>.
32291 (nearbyint): Define using libm_alias_double.
32292 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
32293 <libm-alias-double.h>.
32294 (remquo): Define using libm_alias_double.
32295 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
32296 (rint): Define using libm_alias_double.
32297 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
32298 (round): Define using libm_alias_double.
32299 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
32300 (trunc): Define using libm_alias_double.
32301 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
32302 <libm-alias-double.h>.
32303 (ceil): Define using libm_alias_double.
32304 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
32305 <libm-alias-double.h>.
32306 (floor): Define using libm_alias_double.
32307 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
32308 <libm-alias-double.h>.
32309 (llround): Define using libm_alias_double.
32310 [_LP64] (lround): Likewise.
32311 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
32312 <libm-alias-double.h>.
32313 [!_LP64] (lround): Define using libm_alias_double.
32314 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
32315 <libm-alias-double.h>.
32316 (nearbyint): Define using libm_alias_double.
32317 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
32318 <libm-alias-double.h>.
32319 (remquo): Define using libm_alias_double.
32320 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
32321 <libm-alias-double.h>.
32322 (rint): Define using libm_alias_double.
32323 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
32324 <libm-alias-double.h>.
32325 (round): Define using libm_alias_double.
32326 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
32327 <libm-alias-double.h>.
32328 (trunc): Define using libm_alias_double.
32329 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
32330 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
32331 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
32332 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
32333 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
32334 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
32335 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
32336 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
32337 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
32338
32339 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
32340
32341 * math/w_remainder.c: New file.
32342 * math/w_remainderf.c: New file.
32343 * math/w_remainderl.c: New file.
32344
32345 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32346
32347 * elf/rtld.c (BOOTSTRAP_MAP): New.
32348 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
32349 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
32350 Likewise.
32351 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
32352 Likewise.
32353 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
32354 Likewise.
32355
32356 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
32357
32358 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
32359 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
32360 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
32361 rtld_hidden_data_ver): Define to empty.
32362 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
32363 __assert_perror_fail): Likewise.
32364 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32365 (__rewinddir): Likewise.
32366 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32367 (__profile_frequency): Likewise.
32368 * include/setjmp.h (__sigsetjmp): Likewise.
32369 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
32370 __libc_sigaction): Likewise.
32371 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
32372 not set hidden attribute.
32373 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
32374 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
32375 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
32376 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
32377 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
32378 __fxstatat64): Likewise.
32379 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32380 (__uname): Likewise.
32381 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32382 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
32383 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
32384 (NO_RTLD_HIDDEN): Set.
32385 * sysdeps/mach/hurd/configure: Refresh.
32386 * config.h.in: Refresh.
32387
32388 2017-10-02 Joseph Myers <joseph@codesourcery.com>
32389
32390 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
32391 (atan): Define using libm_alias_double.
32392 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
32393 (tan): Define using libm_alias_double.
32394 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
32395 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
32396
32397 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
32398 define as weak alias of __atan. Do not define any aliases if
32399 [__atan].
32400 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
32401 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
32402 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
32403 as weak alias of __tan. Do not define any aliases if [__tan].
32404 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
32405 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
32406 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
32407 __atan.
32408 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
32409 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
32410 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
32411 and define as weak alias of __atan.
32412 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
32413 __atan.
32414 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
32415 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
32416 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
32417 define as weak alias of __tan.
32418
32419 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
32420
32421 * math/w_lgamma.c: New file.
32422 * math/w_lgammaf.c: New file.
32423 * math/w_lgammal.c: New file.
32424
32425 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
32426
32427 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
32428 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
32429 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
32430 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
32431 * sysdeps/ieee754/flt-32/w_logf.c: New file.
32432 * sysdeps/ieee754/flt-32/w_powf.c: New file.
32433 * sysdeps/i386/fpu/w_log2f.c: New file.
32434 * sysdeps/i386/fpu/w_logf.c: New file.
32435 * sysdeps/i386/fpu/w_powf.c: New file.
32436 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
32437 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
32438 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
32439
32440 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
32441 H.J. Lu <hongjiu.lu@intel.com>
32442
32443 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
32444 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
32445 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
32446 * sysdeps/ieee754/flt-32/w_expf.c: New file.
32447 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
32448 the new expf code.
32449 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
32450 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
32451 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
32452 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
32453 * sysdeps/i386/fpu/w_exp2f.c: New file.
32454 * sysdeps/i386/fpu/w_expf.c: New file.
32455 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
32456 * sysdeps/x86_64/fpu/w_expf.c: New file.
32457
32458 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
32459
32460 * math/Versions (logf): New libm symbol at GLIBC_2.27.
32461 (log2f): Likewise.
32462 (powf): Likewise.
32463 * math/w_log2f.c: New file.
32464 * math/w_logf.c: New file.
32465 * math/w_powf.c: New file.
32466 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
32467 * math/w_logf_compat.c (__logf_compat): Likewise.
32468 * math/w_powf_compat.c (__powf_compat): Likewise.
32469 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
32470 * sysdeps/ia64/fpu/e_logf.S: Likewise.
32471 * sysdeps/ia64/fpu/e_powf.S: Likewise.
32472 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32473 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32474 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32475 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32476 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32477 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32478 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32479 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32480 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32481 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32482 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32483 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32485 Likewise.
32486 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32487 Likewise.
32488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32489 Likewise.
32490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32491 Likewise.
32492 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32493 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32494 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32495 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32496 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32497 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32498 Likewise.
32499 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32500 Likewise.
32501 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32502 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32503 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32504
32505 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
32506
32507 * sysdeps/powerpc/powerpc64/multiarch/Makefile
32508 (sysdep_routines): Add memrchr_power8.
32509 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
32510 (memrchr): Add __memrchr_power8 to list of memrchr functions.
32511 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
32512 New file.
32513 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
32514 (memrchr): Add __memrchr_power8 to ifunc list.
32515 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
32516
32517 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32518
32519 [BZ #18822]
32520 * sysdeps/unix/sysv/linux/posix_fadvise64.c
32521 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
32522 libc_hidden_def.
32523 * sysdeps/unix/sysv/linux/posix_fallocate64.c
32524 (__posix_fallocate64_l64): Likewise.
32525
32526 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32527
32528 [BZ #18822]
32529 * sysdeps/unix/sysv/linux/sched_setaffinity.c
32530 (__sched_setaffinity_new): Add libc_hidden_proto and
32531 libc_hidden_def.
32532
32533 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32534
32535 [BZ #18822]
32536 * include/glob.h (__glob64): Add libc_hidden_proto.
32537 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
32538 libc_hidden_def.
32539
32540 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32541
32542 [BZ #18822]
32543 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
32544 attribute_hidden.
32545
32546 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32547
32548 [BZ #18822]
32549 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
32550
32551 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32552
32553 [BZ #18822]
32554 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
32555 libc_hidden_def.
32556
32557 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32558
32559 [BZ #18822]
32560 * csu/version.c (__libc_print_version): Add attribute_hidden.
32561
32562 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32563
32564 [BZ #18822]
32565 * include/libc-internal.h (__init_misc): Add attribute_hidden.
32566
32567 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32568
32569 [BZ #18822]
32570 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
32571
32572 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32573
32574 [BZ #18822]
32575 * nscd/nscd_helper.c (__nis_hash): New prototype.
32576
32577 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32578
32579 [BZ #18822]
32580 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
32581 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
32582 libc_hidden_def.
32583 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
32584 * termios/tcgetattr.c (__tcgetattr): Likewise.
32585
32586 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32587
32588 [BZ #18822]
32589 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
32590 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
32591 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
32592 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
32593 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
32594
32595 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32596
32597 [BZ #18822]
32598 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
32599
32600 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32601
32602 [BZ #18822]
32603 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
32604 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
32605
32606 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32607
32608 [BZ #18822]
32609 * intl/hash-string.h (__hash_string): Add attribute_hidden.
32610
32611 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32612
32613 [BZ #18822]
32614 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
32615 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
32616
32617 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32618
32619 [BZ #18822]
32620 * include/ifreq.h: New file.
32621 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
32622 (__ifreq): Likewise.
32623 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
32624 (__ifreq): Likewise.
32625
32626 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32627
32628 [BZ #18822]
32629 * include/idna.h: New file.
32630 * inet/getnameinfo.c: Include <idna.h> instead of
32631 <libidn/idna.h>.
32632 (__idna_to_unicode_lzlz): Removed.
32633 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
32634 <libidn/idna.h>.
32635 (__idna_to_ascii_lz): Removed.
32636 (__idna_to_unicode_lzlz): Likewise.
32637
32638 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32639
32640 [BZ #18822]
32641 * include/plural-exp.h: New file.
32642 * intl/plural-exp.c: Include <plural-exp.h> instead of
32643 "plural-exp.h".
32644
32645 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32646
32647 [BZ #18822]
32648 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
32649 "getsourcefilter.h".
32650 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
32651 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
32652 "getsourcefilter.h".
32653 (__get_sol): Removed.
32654
32655 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32656
32657 [BZ #18822]
32658 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
32659 to ...
32660 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
32661
32662 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32663
32664 [BZ #18822]
32665 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
32666 attribute_hidden.
32667
32668 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32669
32670 [BZ #18822]
32671 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
32672
32673 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32674
32675 [BZ #18822]
32676 * include/search.h (__tdestroy): Add libc_hidden_proto.
32677 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
32678
32679 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32680
32681 [BZ #18822]
32682 * include/assert.h (__assert_fail_base): Add attribute_hidden.
32683
32684 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32685
32686 [BZ #18822]
32687 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
32688 attribute_hidden.
32689
32690 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32691
32692 [BZ #18822]
32693 * include/signal.h (__kill): Add libc_hidden_proto.
32694 (__sigblock): Likewise.
32695 (__sigprocmask): Likewise.
32696 (__sigaltstack): Likewise.
32697 * signal/kill.c (__kill): Add libc_hidden_def.
32698 * signal/sigblock.c (__sigblock): Likewise.
32699 * signal/sigprocmask.c (__sigprocmask): Likewise.
32700 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
32701 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
32702 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
32703 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
32704 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
32705 Likewise.
32706 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
32707 Likewise.
32708 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
32709 (__sigprocmask): Likewise.
32710 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
32711 Likewise.
32712 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
32713 (__sigprocmask): Likewise.
32714 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
32715 Likewise.
32716
32717 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32718
32719 [BZ #18822]
32720 * include/string.h (__strsep): Add libc_hidden_proto.
32721 * string/strsep.c (__strsep): Add libc_hidden_def.
32722
32723 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32724
32725 [BZ #18822]
32726 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
32727 attribute_hidden.
32728 (__spawni): Likewise.
32729
32730 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32731
32732 [BZ #18822]
32733 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
32734 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
32735 libc_hidden_def.
32736
32737 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32738
32739 [BZ #18822]
32740 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
32741
32742 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32743
32744 [BZ #18822]
32745 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
32746 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
32747 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
32748 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
32749 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
32750 Likewise.
32751 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
32752 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
32753
32754 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32755
32756 [BZ #18822]
32757 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
32758 (__dcigettext): Likewise.
32759
32760 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32761
32762 [BZ #18822]
32763 * include/sys/sysinfo.h (__get_nprocs_conf): Add
32764 libc_hidden_proto.
32765 (__get_nprocs): Likewise.
32766 (__get_phys_pages): Likewise.
32767 (__get_avphys_pages): Likewise.
32768 (__get_child_max): Add attribute_hidden.
32769 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
32770 (__get_nprocs): Likewise.
32771 (__get_phys_pages): Likewise.
32772 (__get_avphys_pages): Likewise.
32773 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
32774 libc_hidden_def.
32775 (__get_nprocs): Likewise.
32776 (__get_phys_pages): Likewise.
32777 (__get_avphys_pages): Likewise.
32778 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
32779 libc_hidden_def.
32780 (__get_nprocs_conf): Likewise.
32781 (__get_phys_pages): Likewise.
32782 (__get_avphys_pages): Likewise.
32783
32784 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32785
32786 [BZ #18822]
32787 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
32788 attribute_hidden.
32789 (__netlink_close): Likewise.
32790 (__netlink_free_handle): Likewise.
32791 (__netlink_request): Likewise.
32792
32793 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32794
32795 [BZ #18822]
32796 * include/rpc/rpc.h (__rpc_thread_variables): Add
32797 attribute_hidden.
32798 (__rpc_thread_svc_cleanup): Likewise.
32799 (__rpc_thread_clnt_cleanup): Likewise.
32800 (__rpc_thread_key_cleanup): Likewise.
32801
32802 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32803
32804 [BZ #18822]
32805 * include/sys/uio.h (__readv): Add libc_hidden_proto.
32806 (__writev): Likewise.
32807 * misc/readv.c (__readv): Add libc_hidden_def.
32808 * misc/writev.c (__writev): Likewise.
32809 * sysdeps/posix/readv.c (__readv): Likewise.
32810 * sysdeps/posix/writev.c (__writev): Likewise.
32811 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
32812 (__readv): Likewise.
32813 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
32814 (__writev): Likewise.
32815
32816 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32817
32818 [BZ #18822]
32819 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
32820 (__regcomp): Add libc_hidden_proto.
32821 (__regexec): Likewise.
32822 (__regfree): Likewise.
32823 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
32824 (__regfree): Likewise.
32825 * posix/regexec.c (__regexec): Likewise.
32826
32827 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32828
32829 [BZ #18822]
32830 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
32831 (__getutent): Likewise.
32832 (__getutid): Likewise.
32833 (__getutline): Likewise.
32834 (__pututline): Likewise.
32835 (__getutent_r): Likewise.
32836 (__getutid_r): Likewise.
32837 (__getutline_r): Likewise.
32838 (__utmpname): Add attribute_hidden.
32839 (__setutent): Likewise.
32840 (__endutent): Likewise.
32841 * login/getutent.c (__getutent): Add libc_hidden_def.
32842 * login/getutent_r.c (__getutent_r): Likewise.
32843 (__pututline): Likewise.
32844 * login/getutid.c (__getutid): Likewise.
32845 * login/getutid_r.c (__getutid_r): Likewise.
32846 * login/getutline.c (__getutline): Likewise.
32847 * login/getutline_r.c (__getutline_r): Likewise.
32848 * login/updwtmp.c (__updwtmp): Likewise.
32849
32850 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32851
32852 [BZ #18822]
32853 * include/dirent.h (__opendir): Always add attribute_hidden.
32854 (__fdopendir): Likewise.
32855 (__closedir): Likewise.
32856 (__readdir): Likewise.
32857 (__readdir64): Add libc_hidden_proto.
32858 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
32859 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
32860 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
32861 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
32862 New alias.
32863
32864 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32865
32866 [BZ #18822]
32867 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
32868 * include/netdb.h (__gethostbyaddr_r): Likewise.
32869 (__gethostbyname_r): Likewise.
32870 (__gethostbyname2_r): Likewise.
32871 (__getnetbyaddr_r): Likewise.
32872 (__getnetbyname_r): Likewise.
32873 (__getservbyname_r): Likewise.
32874 (__getservbyport_r): Likewise.
32875 (__getprotobyname_r): Likewise.
32876 (__getprotobynumber_r): Likewise.
32877 (__getnetgrent_r): Likewise.
32878 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
32879 (__getrpcbynumber_r): Likewise.
32880 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
32881
32882 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32883
32884 [BZ #18822]
32885 * include/stdio.h (__fcloseall): Add attribute_hidden.
32886 (__getline): Likewise.
32887 (__path_search): Likewise.
32888 (__gen_tempname): Likewise.
32889 (__libc_message): Likewise.
32890 (__flockfile): Likewise.
32891 (__funlockfile): Likewise.
32892 (__fxprintf): Likewise.
32893 (__fxprintf_nocancel): Likewise.
32894
32895 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32896
32897 [BZ #18822]
32898 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
32899 (__sgetsgent_r): Likewise.
32900
32901 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32902
32903 [BZ #18822]
32904 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
32905 (__statfs64): Likewise.
32906 (__fstatfs64): Likewise.
32907 * include/sys/statvfs.h (__statvfs64): Likewise.
32908 (__fstatvfs64): Likewise.
32909 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
32910 (__statfs_filesize_max): Likewise.
32911 (__statfs_symlinks): Likewise.
32912 (__statfs_chown_restricted): Likewise.
32913
32914 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32915
32916 [BZ #18822]
32917 * include/time.h (__tzstring): Add attribute_hidden.
32918 (__tzfile_read): Likewise.
32919 (__tzfile_compute): Likewise.
32920 (__tzfile_default): Likewise.
32921 (__tzset_parse_tz): Likewise.
32922 (__offtime): Likewise.
32923 (__asctime_r): Likewise.
32924 (__tzset): Likewise.
32925 (__tz_convert): Likewise.
32926 (__getdate_r): Likewise.
32927 (__getclktck): Likewise.
32928
32929 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32930
32931 [BZ #18822]
32932 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32933 (__nscd_unmap): Likewise.
32934 (__nscd_cache_search): Likewise.
32935 (__nscd_get_nl_timestamp): Likewise.
32936 (__nscd_getpwnam_r): Likewise.
32937 (__nscd_getpwuid_r): Likewise.
32938 (__nscd_getgrnam_r): Likewise.
32939 (__nscd_getgrgid_r): Likewise.
32940 (__nscd_gethostbyname_r): Likewise.
32941 (__nscd_gethostbyname2_r): Likewise.
32942 (__nscd_gethostbyaddr_r): Likewise.
32943 (__nscd_getai): Likewise.
32944 (__nscd_getgrouplist): Likewise.
32945 (__nscd_getservbyname_r): Likewise.
32946 (__nscd_getservbyport_r): Likewise.
32947 (__nscd_innetgr): Likewise.
32948 (__nscd_setnetgrent): Likewise.
32949
32950 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32951
32952 [BZ #18822]
32953 * include/gmp.h: Declare internal functions only if _ISOMAC is
32954 undefined.
32955 (__mpn_extract_double): Add attribute_hidden.
32956 (__mpn_extract_long_double): Likewise.
32957 (__mpn_extract_float128): Likewise.
32958 (__mpn_construct_float): Likewise.
32959 (__mpn_construct_double): Likewise.
32960 (__mpn_construct_long_double): Likewise.
32961 (__mpn_construct_float128): Likewise.
32962 (mpn_add_1): Likewise.
32963 (mpn_addmul_1): Likewise.
32964 (mpn_add_n): Likewise.
32965 (mpn_cmp): Likewise.
32966 (mpn_divrem): Likewise.
32967 (mpn_lshift): Likewise.
32968 (mpn_mul): Likewise.
32969 (mpn_mul_1): Likewise.
32970 (mpn_rshift): Likewise.
32971 (mpn_sub_1): Likewise.
32972 (mpn_submul_1): Likewise.
32973 (mpn_sub_n): Likewise.
32974
32975 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32976
32977 [BZ #18822]
32978 * include/wchar.h (__wcsnlen): Add attribute_hidden.
32979 (__wcscat): Likewise.
32980 (__btowc): Likewise.
32981 (__wcrtomb): Likewise.
32982 (__mbsrtowcs): Likewise.
32983 (__wcsrtombs): Likewise.
32984 (__mbsnrtowcs): Likewise.
32985 (__wcsnrtombs): Likewise.
32986 (__wcsncpy): Likewise.
32987 (__wcpncpy): Likewise.
32988 (__wmemcpy): Likewise.
32989 (__wmempcpy): Likewise.
32990 (__wmemmove): Likewise.
32991 (__wcschrnul): Likewise.
32992 (__vfwscanf): Likewise.
32993 (__vswprintf): Likewise.
32994 (__fwprintf): Likewise.
32995 (__vfwprintf): Likewise.
32996
32997 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32998
32999 [BZ #18822]
33000 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
33001 (__getgrgid_r): Likewise.
33002 (__getgrnam_r): Likewise.
33003 * include/pwd.h (__getpwuid_r): Likewise.
33004 (__getpwnam_r): Likewise.
33005 (__fgetpwent_r): Likewise.
33006 * include/shadow.h (__getspnam_r): Likewise.
33007 (__sgetspent_r): Likewise.
33008 (__fgetspent_r): Likewise.
33009
33010 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
33011
33012 [BZ #18822]
33013 * include/unistd.h (__access): Add attribute_hidden.
33014 (__lseek64): Likewise.
33015 (__libc_pread64): Likewise.
33016 (__pipe2): Likewise.
33017 (__sleep): Likewise.
33018 (__chdir): Likewise.
33019 (__fchdir): Likewise.
33020 (__getcwd): Likewise.
33021 (__rmdir): Likewise.
33022 (__execvpe): Likewise.
33023 (__execve): Likewise.
33024 (__setsid): Likewise.
33025 (__getuid): Likewise.
33026 (__geteuid): Likewise.
33027 (__getgid): Likewise.
33028 (__getegid): Likewise.
33029 (__getgroups): Likewise.
33030 (__group_member): Likewise.
33031 (__ttyname_r): Likewise.
33032 (__isatty): Likewise.
33033 (__readlink): Likewise.
33034 (__unlink): Likewise.
33035 (__gethostname): Likewise.
33036 (__profil): Likewise.
33037 (__getdtablesize): Likewise.
33038 (__brk): Likewise.
33039 (__ftruncate): Likewise.
33040 (__ftruncate64): Likewise.
33041
33042 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
33043
33044 [BZ #18822]
33045 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
33046 * argp/argp-fs-xinl.c: Likewise.
33047 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
33048 * argp/argp-parse.c: Include <argp.h>.
33049 * argp/argp-xinl.c: Likewise.
33050 * include/argp-fmtstream.h: New file.
33051 * include/argp.h (__argp_error): Add attribute_hidden.
33052 (__argp_failure): Likewise.
33053 (__argp_input): Likewise.
33054 (__argp_state_help): Likewise.
33055
33056 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
33057
33058 [BZ #18822]
33059 * include/wchar.h (____wcstof_l_internal): New prototype.
33060 (____wcstod_l_internal): Likewise.
33061 (____wcstold_l_internal): Likewise.
33062 (____wcstol_l_internal): Likewise.
33063 (____wcstoul_l_internal): Likewise.
33064 (____wcstoll_l_internal): Likewise.
33065 (____wcstoull_l_internal): Likewise.
33066 (____wcstof128_l_internal): Likewise.
33067 * sysdeps/ieee754/float128/wcstof128.c
33068 (____wcstof128_l_internal): Removed.
33069 * sysdeps/ieee754/float128/wcstof128_l.c
33070 (____wcstof128_l_internal): Likewise.
33071 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
33072 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
33073 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
33074 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
33075 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
33076 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
33077 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
33078 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
33079 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
33080 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
33081
33082 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
33083
33084 [BZ #18822]
33085 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
33086 instead of <sys/statvfs.h>.
33087 (__internal_statvfs): Removed.
33088 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
33089 instead of <sys/statvfs.h>.
33090 (__internal_statvfs64): Removed.
33091 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
33092 "internal_statvfs.h" instead of <sys/statvfs.h>.
33093 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
33094 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
33095 instead of <sys/statvfs.h>.
33096 (__internal_statvfs): Removed.
33097 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
33098 instead of <sys/statvfs.h>.
33099 (__internal_statvfs64): Removed.
33100
33101 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
33102
33103 [BZ #18822]
33104 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
33105 (__gconv_close): Likewise.
33106 (__gconv): Likewise.
33107 (__gconv_find_transform): Likewise.
33108 (__gconv_lookup_cache): Likewise.
33109 (__gconv_compare_alias_cache): Likewise.
33110 (__gconv_load_cache): Likewise.
33111 (__gconv_get_path): Likewise.
33112 (__gconv_close_transform): Likewise.
33113 (__gconv_release_cache): Likewise.
33114 (__gconv_find_shlib): Likewise.
33115 (__gconv_release_shlib): Likewise.
33116 (__gconv_get_builtin_trans): Likewise.
33117 (__gconv_compare_alias): Likewise.
33118 * include/dlfcn.h (_dlerror_run): Likewise.
33119 * include/stdio.h (__fortify_fail_abort): Likewise.
33120 * include/time.h (__tz_compute): Likewise.
33121 (__strptime_internal): Likewise.
33122 * intl/gettextP.h (_nl_find_domain): Likewise.
33123 (_nl_load_domain): Likewise.
33124 (_nl_find_msg): Likewise.
33125 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
33126 (EXTRACT_PLURAL_EXPRESSION): Likewise.
33127 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
33128 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
33129 (__gai_find_request): Likewise.
33130 (__gai_remove_request): Likewise.
33131 (__gai_notify): Likewise.
33132 (__gai_notify_only): Likewise.
33133 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
33134 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33135 (_dl_non_dynamic_init): Likewise.
33136 (_dl_aux_init): Likewise.
33137 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
33138 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
33139 Likewise.
33140 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
33141 (__wcsmbs_clone_conv): Likewise.
33142 (__wcsmbs_named_conv): Likewise.
33143
33144 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
33145
33146 [BZ #18822]
33147 * include/stdlib.h (__random): Add attribute_hidden.
33148 (__random_r): Likewise.
33149 (__srandom_r): Likewise.
33150 (__initstate_r): Likewise.
33151 (__setstate_r): Likewise.
33152 (__erand48_r): Likewise.
33153 (__nrand48_r): Likewise.
33154 (__jrand48_r): Likewise.
33155 (__srand48_r): Likewise.
33156 (__seed48_r): Likewise.
33157 (__lcong48_r): Likewise.
33158 (__drand48_iterate): Likewise.
33159 (__setenv): Likewise.
33160 (__unsetenv): Likewise.
33161 (__clearenv): Likewise.
33162 (__ptsname_r): Likewise.
33163 (__posix_openpt): Likewise.
33164 (__add_to_environ): Likewise.
33165 (__realpath): Add libc_hidden_proto.
33166 (__ecvt_r): Likewise.
33167 (__fcvt_r): Likewise.
33168 (__qecvt_r): Likewise.
33169 (__qfcvt_r): Likewise.
33170 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
33171 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
33172
33173 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
33174
33175 [BZ #18822]
33176 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
33177 * include/time.h (__mktime_internal): Likewise.
33178 * libio/iolibio.h (__fopen_internal): Likewise.
33179
33180 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
33181
33182 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
33183 pointer in frame.
33184 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
33185 Correct offset used to restore PIC register.
33186
33187 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
33188
33189 [BZ libc/22165]
33190 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
33191 code to load address of __getcontext_ret when generating PIC code.
33192
33193 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
33194
33195 * elf/Makefile (tests-static-internal): Add
33196 tst-tls1-static-non-pie.
33197 (LDFLAGS-tst-tls1-static-non-pie): New.
33198 * elf/tst-tls1-static-non-pie.c: New file.
33199
33200 2017-09-29 Joseph Myers <joseph@codesourcery.com>
33201
33202 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
33203 (asinh): Define using libm_alias_double.
33204 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
33205 (cbrt): Define using libm_alias_double.
33206 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
33207 <libm-alias-double.h>.
33208 (copysign): Define using libm_alias_double.
33209 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
33210 (erf): Define using libm_alias_double.
33211 (erfc): Likewise.
33212 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
33213 (expm1): Define using libm_alias_double.
33214 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
33215 (fabs): Define using libm_alias_double.
33216 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
33217 libm_alias_double.
33218 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
33219 <libm-alias-double.h>.
33220 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
33221 libm_alias_double.
33222 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
33223 <libm-alias-double.h>.
33224 (getpayload): Define using libm_alias_double.
33225 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
33226 <libm-alias-double.h>.
33227 (llrint): Define using libm_alias_double.
33228 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
33229 (lrint): Define using libm_alias_double.
33230 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
33231 <libm-alias-double.h>.
33232 (nextup): Define using libm_alias_double.
33233 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
33234 <libm-alias-double.h>.
33235 (roundeven): Define using libm_alias_double.
33236 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
33237 libm_alias_double.
33238 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
33239 <libm-alias-double.h>.
33240 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
33241 using libm_alias_double.
33242 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
33243 (cos): Define using libm_alias_double.
33244 (sin): Likewise.
33245 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
33246 <libm-alias-double.h>.
33247 (sincos): Define using libm_alias_double.
33248 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
33249 (tanh): Define using libm_alias_double.
33250 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
33251 <libm-alias-double.h>.
33252 (totalorder): Define using libm_alias_double.
33253 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
33254 <libm-alias-double.h>.
33255 (totalordermag): Define using libm_alias_double.
33256 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
33257 libm_alias_double.
33258 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
33259 libm_alias_double.
33260 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
33261 <libm-alias-double.h>.
33262 (getpayload): Define using libm_alias_double.
33263 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
33264 <libm-alias-double.h>.
33265 (roundeven): Define using libm_alias_double.
33266 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
33267 <libm-alias-double.h>.
33268 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
33269 <libm-alias-double.h>.
33270 (totalorder): Define using libm_alias_double.
33271 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
33272 <libm-alias-double.h>.
33273 (totalordermag): Define using libm_alias_double.
33274 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
33275 libc compat symbol here.
33276 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
33277 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
33278 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
33279 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
33280 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
33281 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
33282 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
33283 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
33284 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
33285 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
33286
33287 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
33288
33289 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
33290 _dl_relocate_static_pie instead of _dl_start to compute load
33291 address in static PIE. Return 0 if _DYNAMIC is undefined for
33292 static executable.
33293
33294 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
33295
33296 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
33297 _DYNAMIC is undefined for static executable.
33298
33299 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
33300
33301 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
33302
33303 2017-09-29 Joseph Myers <joseph@codesourcery.com>
33304
33305 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33306
33307 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
33308
33309 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
33310 (__ieee754_lgamma_r): Use fabs rather than __fabs.
33311 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33312 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33313 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
33314 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
33315 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33316 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
33317 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
33318 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
33319 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
33320 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
33321 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33322 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
33323 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
33324 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
33325 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
33326
33327 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
33328
33329 * math/bits/cmathcalls.h (cimag): Remove inline.
33330 (creal): Remove inline.
33331 (conj): Remove inline.
33332
33333 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
33334
33335 * math/Makefile (type-float-routines): Add e_powf_log2_data.
33336 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
33337 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
33338 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
33339 (issignalingf_inline): Likewise.
33340 (POWF_LOG2_TABLE_BITS): Likewise.
33341 (POWF_LOG2_POLY_ORDER): Likewise.
33342 (POWF_SCALE_BITS): Likewise.
33343 (POWF_SCALE): Likewise.
33344 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
33345 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
33346 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
33347
33348 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
33349
33350 * math/Makefile (type-float-routines): Add e_log2f_data.
33351 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
33352 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
33353 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
33354 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
33355 * sysdeps/i386/fpu/e_log2f_data.c: New file.
33356 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
33357 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
33358
33359 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
33360
33361 * math/Makefile (type-float-routines): Add e_logf_data.
33362 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
33363 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
33364 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
33365 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
33366 * sysdeps/i386/fpu/e_logf_data.c: New file.
33367 * sysdeps/ia64/fpu/e_logf_data.c: New file.
33368 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
33369
33370 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
33371
33372 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
33373 undefined _DYNAMIC in PIE libc.a.
33374 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
33375 Likewse.
33376
33377 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
33378
33379 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
33380 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
33381 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
33382 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
33383 (__signbit): Remove.
33384 (__signbitl): Remove.
33385 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
33386 (__signbit): Remove.
33387 (__signbitl): Remove.
33388 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
33389 (__signbit): Remove.
33390 (__signbitl): Remove.
33391 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
33392 (__signbit): Remove.
33393 (__signbitl): Remove.
33394 * sysdeps/tile/bits/mathinline.h: Delete file.
33395 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
33396 (__signbit): Remove.
33397 (__signbitl): Remove.
33398
33399 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
33400
33401 * math/math.h: Improve handling of C99 isgreater macros.
33402 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
33403 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
33404 * sysdeps/powerpc/bits/mathinline.h: Likewise.
33405 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
33406 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
33407
33408 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
33409
33410 * sysdeps/aarch64/libm-test-ulps: Update.
33411
33412 2017-09-28 Joseph Myers <joseph@codesourcery.com>
33413
33414 [BZ #22225]
33415 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
33416 math_opt_barrier on argument when doing arithmetic on it.
33417 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
33418 Likewise. Use math_force_eval not math_opt_barrier after
33419 arithmetic.
33420 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
33421 math_opt_barrier on argument when doing arithmetic on it.
33422 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33423 Likewise.
33424
33425 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
33426
33427 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
33428 libc_hidden_def.
33429 (__freeifaddrs): Likewise.
33430
33431 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
33432
33433 * include/dirent.h (__dirfd): New declaration.
33434 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
33435 alias.
33436 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
33437 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
33438 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
33439 * include/unistd.h (__revoke): New declaration.
33440 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
33441 alias.
33442 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
33443 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
33444 revoke.
33445 * include/dirent.h (__seekdir): New declaration.
33446 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
33447 redefine as weak alias.
33448 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
33449 of seekdir.
33450 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
33451 and use libc_hidden_def on them.
33452 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
33453 them.
33454 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
33455 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
33456 instead of getifaddrs and freeifaddrs.
33457
33458 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
33459
33460 [BZ #18822]
33461 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
33462 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
33463 (__dso_handle): Remove declaration.
33464 * dlfcn/tstatexit.c (__dso_handle): Removed.
33465 (main): Don't check __dso_handle.
33466 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
33467 (main): Don't check __dso_handle.
33468 * include/dso_handle.h: New file.
33469 * malloc/mtrace.c: Include <dso_handle.h>.
33470 (mtrace): Pass __dso_handle directly.
33471 * nptl/pthread_atfork.c: Include <dso_handle.h>.
33472 (__dso_handle): Remove declaration.
33473 (__pthread_atfork): Pass __dso_handle directly.
33474 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
33475 (__dso_handle): Removed.
33476 * posix/wordexp-test.c: Include <dso_handle.h>.
33477 (__dso_handle): Remove declaration.
33478 (__app_register_atfork): Pass __dso_handle directly.
33479 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
33480 (__dso_handle): Remove declaration.
33481 (at_quick_exit): Pass __dso_handle directly.
33482 * stdlib/atexit.c: Include <dso_handle.h>.
33483 (__dso_handle): Remove declaration.
33484 (atexit): Pass __dso_handle directly.
33485 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
33486 (__dso_handle): Removed.
33487
33488 2017-09-26 Joseph Myers <joseph@codesourcery.com>
33489
33490 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
33491 using VDSO.
33492
33493 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
33494
33495 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
33496 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
33497 values to correct default value for given type.
33498
33499 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
33500
33501 [BZ #22101]
33502 * elf/Makefile (tests): Add tst-debug1.
33503 ($(objpfx)tst-debug1): New.
33504 ($(objpfx)tst-debug1.out): Likewise.
33505 ($(objpfx)tst-debug1mod1.so): Likewise.
33506 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
33507 with p_filesz == 0.
33508 * elf/tst-debug1.c: New file.
33509
33510 2017-09-26 Joseph Myers <joseph@codesourcery.com>
33511
33512 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
33513 Define using __ifunc.
33514
33515 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33516
33517 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
33518 exp2f() values.
33519
33520 2017-09-26 Joseph Myers <joseph@codesourcery.com>
33521
33522 [BZ #22156]
33523 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
33524
33525 2017-09-26 Florian Weimer <fweimer@redhat.com>
33526
33527 * resolv/Makefile (tests-internal): Fix typo in comment.
33528
33529 2017-09-26 Florian Weimer <fweimer@redhat.com>
33530
33531 * resolv/nss_dns/dns-host.c: Fix typo in comment.
33532
33533 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33534
33535 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
33536 Use an union instead of a max_align_t array for __space,
33537 so that __space is the same size on all platforms.
33538 * malloc/scratch_buffer_grow_preserve.c
33539 (__libc_scratch_buffer_grow_preserve): Likewise.
33540
33541 [BZ #22183]
33542 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
33543 version to 2.
33544 * posix/Makefile (routines): Add glob-lstat-compat and
33545 glob64-lstat-compat.
33546 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
33547 * posix/glob-lstat-compat.c: New file.
33548 * posix/glob64-lstat-compat.c: Likewise.
33549 * posix/tst-glob_lstat_compat.c: Likewise.
33550 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
33551 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
33552 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
33553 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
33554 Likewise.
33555 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
33556 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
33557 * posix/glob.c (glob_lstat): New function.
33558 (glob): Rename to __glob and add versioned symbol to 2.27.
33559 (glob_in_dir): Use glob_lstat.
33560 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
33561 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
33562 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
33563 2.27.
33564 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
33565 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
33566 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
33567 gl_lstat on glob call.
33568 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
33569 and glob64 symbols.
33570 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
33571 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
33572 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
33573 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
33574 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
33575 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
33576 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
33577 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
33578 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
33579 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
33580 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
33581 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
33582 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
33583 Likewise.
33584 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
33585 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
33586 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
33587 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
33588 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
33589 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
33590 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
33591 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
33592 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
33593 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
33594 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
33595 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
33596
33597 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
33598
33599 * configure.ac (AS): Require binutils 2.25 or later.
33600 * configure: Regenerated.
33601
33602 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
33603
33604 [BZ #22207]
33605 * stdlib/test-atexit-race-common.c (do_test): Minimize required
33606 VM size.
33607
33608 2017-09-25 DJ Delorie <dj@redhat.com>
33609
33610 [BZ #22161]
33611 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
33612 resetting timeout.
33613
33614 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
33615
33616 * sysdeps/ieee754/dbl-64/sincos32.h
33617 [SINCCOS32_H]: Remove define.
33618 [SINCOS32_H]: Define.
33619
33620 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
33621
33622 * math/Versions (expf): New libm symbol at GLIBC_2.27.
33623 (exp2f): Likewise.
33624 * math/w_exp2f.c: New file.
33625 * math/w_expf.c: New file.
33626 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
33627 * math/w_expf_compat.c (__expf_compat): Likewise.
33628 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
33629 * sysdeps/ia64/fpu/e_expf.S: Likewise.
33630 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
33631 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
33632 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
33633 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
33634 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
33635 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
33636 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
33637 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
33638 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
33639 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
33640 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
33641 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
33642 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
33643 Likewise.
33644 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
33645 Likewise.
33646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
33647 Likewise.
33648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
33649 Likewise.
33650 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
33651 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
33652 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
33653 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
33654 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
33655 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
33656 Likewise.
33657 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
33658 Likewise.
33659 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
33660 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
33661 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
33662
33663 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
33664
33665 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
33666 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
33667 (roundtoint, converttoint): Likewise.
33668 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
33669 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
33670 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
33671 * sysdeps/ieee754/flt-32/math_config.h: New file.
33672 * sysdeps/ieee754/flt-32/math_errf.c: New file.
33673 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
33674 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
33675 * sysdeps/i386/fpu/math_errf.c: New file.
33676 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
33677 * sysdeps/ia64/fpu/math_errf.c: New file.
33678 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
33679 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
33680
33681 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
33682
33683 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
33684 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
33685 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
33686 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
33687 to make sure that these symbols are defined.
33688 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
33689 of <limits.h>
33690 (__need_NULL): Do not define.
33691 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
33692 alignment.
33693 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
33694 CMGROUP_MAX, cmsgcred): Do not define.
33695 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
33696 NULL.
33697 * bits/socket.h: Likewise.
33698 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
33699 __gettimeofday instead of gettimeofday.
33700 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
33701 instead of settimeofday.
33702
33703 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33704
33705 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
33706 (asinhf): Define using libm_alias_float.
33707 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
33708 (atanf): Define using libm_alias_float.
33709 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
33710 (cbrtf): Define using libm_alias_float.
33711 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
33712 (ceilf): Define using libm_alias_float.
33713 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
33714 <libm-alias-float.h>.
33715 (copysignf): Define using libm_alias_float.
33716 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
33717 (cosf): Define using libm_alias_float.
33718 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
33719 (erff): Define using libm_alias_float.
33720 (erfcf): Likewise.
33721 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
33722 (expm1f): Define using libm_alias_float.
33723 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
33724 (fabsf): Define using libm_alias_float.
33725 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
33726 (floorf): Define using libm_alias_float.
33727 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
33728 (frexpf): Define using libm_alias_float.
33729 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
33730 libm_alias_float.
33731 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
33732 <libm-alias-float.h>.
33733 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
33734 libm_alias_float.
33735 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
33736 <libm-alias-float.h>.
33737 (getpayloadf): Define using libm_alias_float.
33738 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
33739 <libm-alias-float.h>.
33740 (llrintf): Define using libm_alias_float.
33741 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
33742 <libm-alias-float.h>.
33743 (llroundf): Define using libm_alias_float.
33744 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
33745 (logbf): Define using libm_alias_float.
33746 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
33747 (lrintf): Define using libm_alias_float.
33748 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
33749 (lroundf): Define using libm_alias_float.
33750 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
33751 (modff): Define using libm_alias_float.
33752 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
33753 <libm-alias-float.h>.
33754 (nearbyintf): Define using libm_alias_float.
33755 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
33756 <libm-alias-float.h>.
33757 (nextafterf): Define using libm_alias_float.
33758 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
33759 <libm-alias-float.h>.
33760 (nextupf): Define using libm_alias_float.
33761 * sysdeps/ieee754/flt-32/s_remquof.c: Include
33762 <libm-alias-float.h>.
33763 (remquof): Define using libm_alias_float.
33764 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
33765 (rintf): Define using libm_alias_float.
33766 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
33767 <libm-alias-float.h>.
33768 (roundevenf): Define using libm_alias_float.
33769 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
33770 (roundf): Define using libm_alias_float.
33771 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
33772 using libm_alias_float.
33773 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
33774 <libm-alias-float.h>.
33775 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
33776 Define using libm_alias_float.
33777 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
33778 <libm-alias-float.h>.
33779 (sincosf): Define using libm_alias_float.
33780 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
33781 (sinf): Define using libm_alias_float.
33782 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
33783 (tanf): Define using libm_alias_float.
33784 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
33785 (tanhf): Define using libm_alias_float.
33786 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
33787 <libm-alias-float.h>.
33788 (totalorderf): Define using libm_alias_float.
33789 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
33790 <libm-alias-float.h>.
33791 (totalordermagf): Define using libm_alias_float.
33792 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
33793 (truncf): Define using libm_alias_float.
33794 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
33795 libm_alias_float.
33796 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
33797 libm_alias_float.
33798
33799 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33800
33801 [BZ #22146]
33802 math/math.h: Let fpclassify use the builtin in C++ mode, even
33803 when optimazing for size.
33804
33805 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33806
33807 * csu/Makefile (generated): Do not add version-info.h.
33808 (before-compile): Likewise.
33809 (all-Banner-files): Remove variable.
33810 ($(objpfx)version-info.h): Remove rule.
33811 * csu/version.c (banner): Do not include "version-info.h".
33812 * libidn/Banner: Remove.
33813 * manual/contrib.texi (Simon Josefsson): New entry.
33814
33815 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33816
33817 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
33818 Remove conditionals on LDBL_MANT_DIG.
33819 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33820 (__ieee754_lgammal_r): Likewise.
33821
33822 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33823
33824 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
33825 _Float128 and L().
33826 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
33827 _Float128 and L(). Replace _Float128 with long double and L(x)
33828 with xL, throughout the file.
33829 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33830 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33831 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33832 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33833
33834 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33835
33836 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
33837 sysdeps/ieee754/ldbl-128ibm.
33838 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
33839 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
33840 of including it. Keep _Float128 and L() intact. These will be
33841 reviewed by a separate patch.
33842 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33843 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33844 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33845 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33846
33847 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33848
33849 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
33850 (__finitef128): Define to __redirect___finitef128.
33851 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
33852 (__isinff128): Define to __redirect___isinff128.
33853 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
33854 (__isnanf128): Define to __redirect___isnanf128.
33855
33856 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33857
33858 * sysdeps/powerpc/powerpc64le/Makefile
33859 (CFLAGS-tst-strtod-nan-locale.c): New variable.
33860 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
33861
33862 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
33863 Carlos O'Donell <carlos@redhat.com>
33864
33865 [BZ #22180]
33866 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
33867 * stdlib/test-dlclose-exit-race.c: New file.
33868 * stdlib/test-dlclose-exit-race-helper.c: New file.
33869 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
33870
33871 2017-09-21 Joseph Myers <joseph@codesourcery.com>
33872
33873 * crypt/Banner: Remove file.
33874 * nptl/Banner: Likewise.
33875 * resolv/Banner: Likewise.
33876 * soft-fp/Banner: Likewise.
33877 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
33878 ($(objpfx)version.d): Remove dependency on banner.h.
33879 ($(objpfx)version.os): Likewise.
33880 * nptl/version.c (banner): Do not include banner.h.
33881 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
33882 Jelinek and BIND code.
33883
33884 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33885 Carlos O'Donell <carlos@redhat.com>
33886
33887 * support/xdlfcn.h: New file.
33888 * support/xdlfcn.c: New file.
33889 * support/Makefile (libsupport-routines): Add xdlfcn.
33890 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
33891
33892 2017-09-20 Joseph Myers <joseph@codesourcery.com>
33893
33894 [BZ #20142]
33895 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33896 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
33897 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
33898 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
33899 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
33900 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
33901 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
33902 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
33903
33904 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33905 Ricky Zhou <rickyz@google.com>
33906 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
33907
33908 [BZ #14333]
33909 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
33910 Remove atomics.
33911 (__new_exitfn): Fail registration when we finished at_exit processing.
33912 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
33913 * stdlib/on_exit.c (__on_exit): Likewise.
33914 * stdlib/exit.c (__exit_funcs_done): New variable.
33915 (__run_exit_handlers): Use __exit_funcs_lock.
33916 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
33917 declarations.
33918 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33919 (test-cxa_atexit-race, test-on_exit-race): New tests.
33920 * stdlib/test-atexit-race-common.c: New file.
33921 * stdlib/test-atexit-race.c: New file.
33922 * stdlib/test-at_quick_exit-race.c: New file.
33923 * stdlib/test-cxa_atexit-race.c: New file.
33924 * stdlib/test-on_exit-race.c: New file.
33925
33926 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
33927
33928 * benchtests/Makefile: Add exp2f and log2f benchmarks.
33929 * benchtests/exp2f-inputs: Copy of expf-inputs.
33930 * benchtests/log2f-inputs: Copy of logf-inputs.
33931
33932 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33933
33934 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33935 Explicitly take address of first element of array arguments in
33936 call to INLINE_SYSCALL.
33937
33938 2017-09-19 Andreas Schwab <schwab@suse.de>
33939
33940 [BZ #22134]
33941 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33942 execveat first.
33943 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33944 unimplemented.
33945 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33946 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33947 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33948 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33949 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33950 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33951 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33952 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33953 * posix/Makefile (tests): Add tst-fexecve.
33954 * posix/tst-fexecve.c: New file.
33955
33956 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33957
33958 * benchtests/Makefile: Add logf benchmark.
33959 * benchtests/logf-inputs: Add reduced trace from wrf_r.
33960
33961 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33962
33963 * benchtests/Makefile: Add expf benchmark.
33964 * benchtests/expf-inputs: Add reduced trace from wrf_r.
33965
33966 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33967
33968 * csu/Makefile: Add -funwind-tables to libc-start.c.
33969 * debug/Makefile: Add -funwind-tables to backtrace.c.
33970 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33971 * sysdeps/arm/Makefile: Likewise.
33972 * sysdeps/i386/Makefile: Likewise.
33973 * sysdeps/m68k/Makefile: Likewise.
33974 * sysdeps/mips/Makefile: Likewise.
33975 * sysdeps/nios2/Makefile: Likewise.
33976 * sysdeps/sh/Makefile: Likewise.
33977 * sysdeps/sparc/Makefile: Likewise.
33978
33979 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33980
33981 * benchtests/Makefile (bench-math): Add trunc and truncf.
33982 (CFLAGS-bench-trunc.c): New variable.
33983 (CFLAGS-bench-truncf.c): Likewise.
33984 * benchtests/trunc-inputs: New file.
33985 * benchtests/truncf-inputs: Likewise.
33986
33987 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
33988
33989 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33990
33991 2017-09-18 Joseph Myers <joseph@codesourcery.com>
33992
33993 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33994 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33995 redefine.
33996 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
33997 (exp10l): Define as weak alias.
33998 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
33999 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
34000 and redefine.
34001 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
34002 (remainderl): Define as weak alias.
34003
34004 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
34005 (fmal): Define using libm_alias_ldouble.
34006 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
34007 (acoshl): Define using libm_alias_ldouble.
34008 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
34009 (acosl): Define using libm_alias_ldouble.
34010 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
34011 (asinl): Define using libm_alias_ldouble.
34012 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
34013 (atan2l): Define using libm_alias_ldouble.
34014 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
34015 (atanhl): Define using libm_alias_ldouble.
34016 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
34017 (coshl): Define using libm_alias_ldouble.
34018 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
34019 (exp10l): Define using libm_alias_ldouble.
34020 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
34021 (exp2l): Define using libm_alias_ldouble.
34022 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
34023 (expl): Define using libm_alias_ldouble.
34024 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
34025 (fmodl): Define using libm_alias_ldouble.
34026 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
34027 (hypotl): Define using libm_alias_ldouble.
34028 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
34029 (j0l): Define using libm_alias_ldouble.
34030 (y0l): Likewise.
34031 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
34032 (j1l): Define using libm_alias_ldouble.
34033 (y1l): Likewise.
34034 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
34035 (jnl): Define using libm_alias_ldouble.
34036 (ynl): Likewise.
34037 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
34038 (log10l): Define using libm_alias_ldouble.
34039 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
34040 (log2l): Define using libm_alias_ldouble.
34041 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
34042 (logl): Define using libm_alias_ldouble.
34043 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
34044 (powl): Define using libm_alias_ldouble.
34045 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
34046 (remainderl): Define using libm_alias_ldouble.
34047 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
34048 (sinhl): Define using libm_alias_ldouble.
34049 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
34050 (sqrtl): Define using libm_alias_ldouble.
34051 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
34052 (tgammal): Define using libm_alias_ldouble.
34053 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
34054 (exp10l): Do not use long_double_symbol here.
34055 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
34056 [LIBM_SVID_COMPAT] (remainderl): Likewise.
34057 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
34058 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34059 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34060 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34061 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34062 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34063 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34064 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
34065 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34066 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34067 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34068 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34069 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34070 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34071 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34072 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34073 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34074 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34075 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34076 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34077
34078 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
34079
34080 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
34081 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
34082
34083 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
34084
34085 * io/read.c (read): Add libc_hidden_weak.
34086 * sysdeps/mach/hurd/read.c (read): Likewise.
34087 * io/write.c (write): Likewise.
34088 * sysdeps/mach/hurd/write.c (write): Likewise.
34089 * io/pread64.c (__pread64): Likewise.
34090 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
34091 * posix/pread64.c (__pread64): Add libc_hidden_def.
34092
34093 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
34094
34095 * benchtests/scripts/compare_strings.py: New option -g.
34096 (draw_graph): Print a message that a graph is being generated.
34097 (process_results): Generate graph only if -g is passed.
34098 (main): Process option -g.
34099
34100 * benchtests/scripts/compare_strings.py (process_results):
34101 Better spacing for output.
34102
34103 * benchtests/scripts/compare_strings.py: Use argparse.
34104 * benchtests/README: Document existence of compare_strings.py.
34105
34106 2017-09-15 Joseph Myers <joseph@codesourcery.com>
34107
34108 * math/s_fma.c: Include <libm-alias-double.h>.
34109 (fma): Define using libm_alias_double.
34110 * math/s_nextafter.c: Include <libm-alias-double.h>.
34111 (nextafter): Define using libm_alias_double.
34112 * math/w_acos_compat.c: Include <libm-alias-double.h>.
34113 (acos): Define using libm_alias_double.
34114 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
34115 (aocsh): Define using libm_alias_double.
34116 * math/w_asin_compat.c: Include <libm-alias-double.h>.
34117 (asin): Define using libm_alias_double.
34118 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
34119 (atan2): Define using libm_alias_double.
34120 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
34121 (atanh): Define using libm_alias_double.
34122 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
34123 (cosh): Define using libm_alias_double.
34124 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
34125 (exp10): Define using libm_alias_double.
34126 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
34127 (exp2): Define using libm_alias_double.
34128 * math/w_exp_compat.c: Include <libm-alias-double.h>.
34129 (exp): Define using libm_alias_double.
34130 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
34131 (fmod): Define using libm_alias_double.
34132 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
34133 (hypot): Define using libm_alias_double.
34134 * math/w_j0_compat.c: Include <libm-alias-double.h>.
34135 (j0): Define using libm_alias_double.
34136 (y0): Likewise.
34137 * math/w_j1_compat.c: Include <libm-alias-double.h>.
34138 (j1): Define using libm_alias_double.
34139 (y1): Likewise.
34140 * math/w_jn_compat.c: Include <libm-alias-double.h>.
34141 (jn): Define using libm_alias_double.
34142 (yn): Likewise.
34143 * math/w_log10_compat.c: Include <libm-alias-double.h>.
34144 (log10): Define using libm_alias_double.
34145 * math/w_log2_compat.c: Include <libm-alias-double.h>.
34146 (log2): Define using libm_alias_double.
34147 * math/w_log_compat.c: Include <libm-alias-double.h>.
34148 (log): Define using libm_alias_double.
34149 * math/w_pow_compat.c: Include <libm-alias-double.h>.
34150 (pow): Define using libm_alias_double.
34151 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
34152 (remainder): Define using libm_alias_double.
34153 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
34154 (sinh): Define using libm_alias_double.
34155 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
34156 (sqrt): Define using libm_alias_double.
34157 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
34158 (tgamma): Define using libm_alias_double.
34159 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
34160 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
34161 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
34162 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
34163 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
34164 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
34165 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
34166 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
34167 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
34168 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
34169 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
34170 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
34171 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
34172 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
34173 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
34174 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
34175 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
34176 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
34177 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
34178 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
34179 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
34180 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
34181 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
34182 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
34183 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
34184
34185 * math/e_acoshl.c: Remove.
34186 * math/e_acosl.c: Likewise.
34187 * math/e_asinl.c: Likewise.
34188 * math/e_atan2l.c: Likewise.
34189 * math/e_atanhl.c: Likewise.
34190 * math/e_coshl.c: Likewise.
34191 * math/e_expl.c: Likewise.
34192 * math/e_fmodl.c: Likewise.
34193 * math/e_gammal_r.c: Likewise.
34194 * math/e_hypotl.c: Likewise.
34195 * math/e_j0l.c: Likewise.
34196 * math/e_j1l.c: Likewise.
34197 * math/e_jnl.c: Likewise.
34198 * math/e_lgammal_r.c: Likewise.
34199 * math/e_log10l.c: Likewise.
34200 * math/e_log2l.c: Likewise.
34201 * math/e_logl.c: Likewise.
34202 * math/e_powl.c: Likewise.
34203 * math/e_rem_pio2l.c: Likewise.
34204 * math/e_sinhl.c: Likewise.
34205 * math/e_sqrtf128.c: Likewise.
34206 * math/e_sqrtl.c: Likewise.
34207 * math/k_cosl.c: Likewise.
34208 * math/k_sinl.c: Likewise.
34209 * math/k_tanl.c: Likewise.
34210 * math/s_asinhl.c: Likewise.
34211 * math/s_atanl.c: Likewise.
34212 * math/s_cbrtl.c: Likewise.
34213 * math/s_erfl.c: Likewise.
34214 * math/s_expm1l.c: Likewise.
34215 * math/s_log1pl.c: Likewise.
34216 * math/s_tanhl.c: Likewise.
34217
34218 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
34219
34220 [BZ #21745]
34221 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
34222 [$(subdir) = math] (sysdep_calls): New variable. Has the
34223 previous contents of sysdep_routines, but re-sorted..
34224 [$(subdir) = math] (sysdep_routines): Re-use the contents from
34225 sysdep_calls.
34226 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
34227 defined in sysdep_calls and replace by the respective m_* names.
34228 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
34229 (compat_symbol): Undefine to avoid duplicated compat symbols in
34230 libc.
34231
34232 2017-09-15 Joseph Myers <joseph@codesourcery.com>
34233
34234 * math/s_fmaf.c: Include <libm-alias-float.h>.
34235 (fmaf): Define using libm_alias_float.
34236 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
34237 (acosf): Define using libm_alias_float.
34238 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
34239 (acoshf): Define using libm_alias_float.
34240 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
34241 (asinf): Define using libm_alias_float.
34242 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
34243 (atan2f): Define using libm_alias_float.
34244 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
34245 (atanhf): Define using libm_alias_float.
34246 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
34247 (coshf): Define using libm_alias_float.
34248 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
34249 (exp10f): Define using libm_alias_float.
34250 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
34251 (fmodf): Define using libm_alias_float.
34252 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
34253 (hypotf): Define using libm_alias_float.
34254 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
34255 (j0f): Define using libm_alias_float.
34256 (y0f): Likewise.
34257 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
34258 (j1f): Define using libm_alias_float.
34259 (y1f): Likewise.
34260 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
34261 (jnf): Define using libm_alias_float.
34262 (ynf): Likewise.
34263 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
34264 (log10f): Define using libm_alias_float.
34265 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
34266 (log2f): Define using libm_alias_float.
34267 * math/w_logf_compat.c: Include <libm-alias-float.h>.
34268 (logf): Define using libm_alias_float.
34269 * math/w_powf_compat.c: Include <libm-alias-float.h>.
34270 (powf): Define using libm_alias_float.
34271 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
34272 (remainderf): Define using libm_alias_float.
34273 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
34274 (sinhf): Define using libm_alias_float.
34275 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
34276 (sqrtf): Define using libm_alias_float.
34277 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
34278 (tgammaf): Define using libm_alias_float.
34279
34280 2017-09-14 Joseph Myers <joseph@codesourcery.com>
34281
34282 * include/math.h (roundeven): Change hidden_proto call to
34283 __roundeven.
34284 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
34285 alias.
34286 [NO_LONG_DOUBLE] (__j0l): New strong alias.
34287 (y0): Rename to __y0 and define as weak alias.
34288 [NO_LONG_DOUBLE] (__y0l): New strong alias.
34289 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
34290 alias.
34291 (y0f): Rename to __y0f and define as weak alias.
34292 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
34293 alias.
34294 [NO_LONG_DOUBLE] (__j1l): New strong alias.
34295 (y1): Rename to __y1 and define as weak alias.
34296 [NO_LONG_DOUBLE] (__y1l): New strong alias.
34297 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
34298 alias.
34299 (y1f): Rename to __y1f and define as weak alias.
34300 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
34301 alias.
34302 [NO_LONG_DOUBLE] (__jnl): New strong alias.
34303 (yn): Rename to __yn and define as weak alias.
34304 [NO_LONG_DOUBLE] (__ynl): New strong alias.
34305 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
34306 alias.
34307 (ynf): Rename to __ynf and define as weak alias.
34308 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
34309 (fromfp): Define as weak alias.
34310 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
34311 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
34312 (fromfpx): Define as weak alias.
34313 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
34314 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
34315 __getpayload and define as weak alias.
34316 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
34317 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
34318 __roundeven and define as weak alias.
34319 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
34320 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
34321 __setpayload.
34322 (setpayload): Define as weak alias.
34323 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
34324 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
34325 __setpayloadsig.
34326 (setpayloadsig): Define as weak alias.
34327 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
34328 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
34329 __totalorder and define as weak alias.
34330 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
34331 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
34332 to __totalordermag and define as weak alias.
34333 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
34334 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
34335 (ufromfp): Define as weak alias.
34336 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
34337 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
34338 __ufromfpx.
34339 (ufromfpx): Define as weak alias.
34340 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
34341 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
34342 Rename to __getpayload and define as weak alias.
34343 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
34344 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
34345 Rename to __roundeven and define as weak alias.
34346 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
34347 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
34348 Rename to __totalorder and define as weak alias.
34349 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
34350 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
34351 (totalordermag): Rename to __totalordermag and define as weak
34352 alias.
34353 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
34354 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
34355 macro.
34356 (__roundevenl): Likewise.
34357 (__totalorderl): Likewise.
34358 (__totalordermagl): Likewise
34359 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
34360 __fromfpf128.
34361 (fromfpf128): Define as weak alias.
34362 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
34363 __fromfpxf128.
34364 (fromfpxf128): Define as weak alias.
34365 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
34366 __setpayloadf128.
34367 (setpayloadf128): Define as weak alias.
34368 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
34369 __setpayloadsigf128.
34370 (setpayloadsigf128): Define as weak alias.
34371 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
34372 __ufromfpf128.
34373 (ufromfpf128): Define as weak alias.
34374 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
34375 __ufromfpxf128.
34376 (ufromfpxf128): Define as weak alias.
34377 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
34378 (fromfpf): Define as weak alias.
34379 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
34380 __fromfpxf.
34381 (fromfpxf): Define as weak alias.
34382 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
34383 __getpayloadf and define as weak alias.
34384 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
34385 __roundevenf and define as weak alias.
34386 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
34387 __setpayloadf.
34388 (setpayloadf): Define as weak alias.
34389 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
34390 __setpayloadsigf.
34391 (setpayloadsigf): Define as weak alias.
34392 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
34393 __totalorderf and define as weak alias.
34394 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
34395 Rename to __totalordermagf and define as weak alias.
34396 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
34397 __ufromfpf.
34398 (ufromfpf): Define as weak alias.
34399 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
34400 __ufromfpxf.
34401 (ufromfpxf): Define as weak alias.
34402 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
34403 __fromfpl.
34404 (fromfpl): Define as weak alias.
34405 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
34406 __fromfpxl.
34407 (fromfpxl): Define as weak alias.
34408 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
34409 to __getpayloadl and define as weak alias.
34410 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
34411 __roundevenl and define as weak alias.
34412 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
34413 __setpayloadl.
34414 (setpayloadl): Define as weak alias.
34415 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
34416 __setpayloadsigl.
34417 (setpayloadsigl): Define as weak alias.
34418 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
34419 to __totalorderl and define as weak alias.
34420 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
34421 Rename to __totalordermagl and define as weak alias.
34422 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
34423 __ufromfpl.
34424 (ufromfpl): Define as weak alias.
34425 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
34426 __ufromfpxl.
34427 (ufromfpxl): Define as weak alias.
34428 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
34429 __fromfpl.
34430 (fromfpl): Define as weak alias.
34431 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
34432 __fromfpxl.
34433 (fromfpxl): Define as weak alias.
34434 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
34435 Rename to __getpayloadl and define as weak alias.
34436 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
34437 to __roundevenl and define as weak alias. Call __roundeven
34438 instead of roundeven.
34439 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
34440 __setpayloadl.
34441 (setpayloadl): Define as weak alias.
34442 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
34443 __setpayloadsigl.
34444 (setpayloadsigl): Define as weak alias.
34445 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
34446 Rename to __totalorderl and define as weak alias.
34447 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
34448 Rename to __totalordermagl and define as weak alias.
34449 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
34450 __ufromfpl.
34451 (ufromfpl): Define as weak alias.
34452 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
34453 __ufromfpxl.
34454 (ufromfpxl): Define as weak alias.
34455 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
34456 __fromfpl.
34457 (fromfpl): Define as weak alias.
34458 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
34459 __fromfpxl.
34460 (fromfpxl): Define as weak alias.
34461 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
34462 __getpayloadl and define as weak alias.
34463 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
34464 __roundevenl and define as weak alias.
34465 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
34466 __setpayloadl.
34467 (setpayloadl): Define as weak alias.
34468 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
34469 __setpayloadsigl.
34470 (setpayloadsigl): Define as weak alias.
34471 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
34472 __totalorderl and define as weak alias.
34473 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
34474 Rename to __totalordermagl and define as weak alias.
34475 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
34476 __ufromfpl.
34477 (ufromfpl): Define as weak alias.
34478 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
34479 __ufromfpxl.
34480 (ufromfpxl): Define as weak alias.
34481
34482 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
34483
34484 * benchtests/bench-string.h (realloc_bufs): New function.
34485 (test_init): Call it.
34486 * benchtests/bench-memset-large.c (do_test): Likewise.
34487 * benchtests/bench-memset.c (do_test): Likewise.
34488
34489 * benchtests/bench-memset-large.c: Print output in JSON
34490 format.
34491 * benchtests/bench-memset.c: Likewise.
34492
34493 2017-09-14 Mike FABIAN <mfabian@redhat.com>
34494
34495 [BZ #21084]
34496 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
34497 * iconvdata/Makefile: Add IBM858.
34498 * iconvdata/gconv-modules: Likewise.
34499 * iconvdata/tst-tables.sh: Likewise.
34500 * iconvdata/ibm858.c: New file.
34501 * localedata/charmaps/IBM858: Likewise.
34502
34503 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
34504
34505 [BZ #22023]
34506 * locales/niu_NZ (LC_TIME): copy "niu_NU".
34507 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
34508
34509 2017-09-14 Mike FABIAN <mfabian@redhat.com>
34510
34511 [BZ #22112]
34512 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
34513 and add tel_int_fmt.
34514
34515 2017-09-14 Joseph Myers <joseph@codesourcery.com>
34516
34517 * sysdeps/generic/libm-alias-float128.h: New file.
34518 * sysdeps/generic/math-type-macros-float128.h: Include
34519 <libm-alias-float128.h>.
34520 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
34521
34522 2017-09-13 Joseph Myers <joseph@codesourcery.com>
34523
34524 * sysdeps/generic/libm-alias-ldouble.h: New file.
34525 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
34526 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
34527 * sysdeps/generic/math-type-macros-ldouble.h: Include
34528 <libm-alias-ldouble.h>.
34529 [!declare_mgen_alias] (declare_mgen_alias): Define to use
34530 libm_alias_ldouble.
34531
34532 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
34533
34534 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
34535 * math/w_exp_compat.c: ... here.
34536 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
34537 * math/w_expf_compat.c: ... here.
34538 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
34539 * math/w_expl_compat.c: ... here.
34540 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
34541 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
34542 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
34543 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
34544
34545 2017-09-13 Joseph Myers <joseph@codesourcery.com>
34546
34547 * math/w_scalbln_template.c (strong_alias): Do not undefine and
34548 redefine.
34549 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
34550 macro.
34551 (ldexpl): Only define as compat symbol for libc, not libm.
34552 (scalbnl): Define as compat symbol for libc here.
34553 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
34554 define for [IS_IN (libc)].
34555 (__ldexpl_2): Remove alias.
34556 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
34557 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
34558 name in long_double_symbol call.
34559 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
34560 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
34561 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
34562 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
34563 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
34564 Remove macro.
34565 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
34566 Define as compat symbol.
34567
34568 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34569
34570 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
34571 * sysdeps/unix/sysv/linux/alpha/Makefile
34572 [$(subdir) = csu] (sysdep_routines): Remove rule.
34573
34574 2017-09-13 Joseph Myers <joseph@codesourcery.com>
34575
34576 * sysdeps/generic/libm-alias-double.h: New file.
34577 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
34578 * sysdeps/generic/math-type-macros-double.h: Include
34579 <libm-alias-double.h>.
34580 [declare_mgen_alias] (declare_mgen_alias): Define to use
34581 libm_alias_double.
34582 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
34583 (M_LIBM_NEED_COMPAT): Remove macro.
34584 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
34585 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
34586 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
34587 code.
34588 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34589 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34590 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34591 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34592 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34593 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34594 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34595 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34596 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34597 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34598 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34599 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34600 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34601 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34602 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34603 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34604 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34605 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34606 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34607 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34608 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34609 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34610 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34611 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34612 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34613 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34614 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34615 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
34616 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
34617 macro.
34618 (declare_mgen_alias): New macro.
34619 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
34620 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
34621 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
34622 (M_LIBM_NEED_COMPAT): Remove macro.
34623 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
34624 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
34625 <first-versions.h>.
34626 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
34627 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
34628
34629 2017-09-12 Joseph Myers <joseph@codesourcery.com>
34630
34631 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
34632 (declare_mgen_alias_2): Remove.
34633 * sysdeps/generic/math-type-macros-double.h
34634 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
34635 Likewise.
34636 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
34637 alias.
34638 (ldexp): Define with declare_mgen_alias.
34639 (scalbn): Likewise.
34640
34641 2017-09-12 Steve Ellcey <sellcey@cavium.com>
34642
34643 * grp/initgroups.c: Include config.h.
34644 (DEFAULT_CONFIG): New macro.
34645 (internal_getgrouplist): Use DEFAULT_CONFIG.
34646 * nscd/initgrcache.c (addinitgroupsX): Likewise.
34647 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
34648 (DEFAULT_DEFCONFIG): New macro.
34649 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
34650 * nss/grp-lookup.c: Include config.h
34651 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
34652 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
34653 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
34654 * manual/nss.texi: Update default values section.
34655
34656 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
34657
34658 [BZ #21967]
34659 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
34660 New.
34661 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
34662 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34663 Handle MathVec_Prefer_No_AVX512.
34664 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
34665 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
34666 is set.
34667
34668 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
34669
34670 * posix/sched_primax.c (__sched_get_priority_max): Add
34671 libc_hidden_def.
34672 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
34673 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34674 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34675 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
34676 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
34677 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
34678 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
34679 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
34680 Add aliases.
34681
34682 2017-09-11 Joseph Myers <joseph@codesourcery.com>
34683
34684 * sysdeps/generic/libm-alias-float.h: New file.
34685 * sysdeps/generic/math-type-macros-float.h: Include
34686 <libm-alias-float.h>.
34687 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
34688
34689 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
34690
34691 [BZ #22093]
34692 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
34693 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
34694 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
34695 (HWCAP_IMPORTANT): Likewise.
34696 (HWCAP_X86_64): New enum.
34697 (HWCAP_X86_AVX512_1): Updated.
34698 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
34699 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
34700 (modules-names): Add x86_64/tst-x86_64mod-1.
34701 (LDFLAGS-tst-x86_64mod-1.so): New.
34702 ($(objpfx)tst-x86_64-1): Likewise.
34703 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
34704 (tst-x86_64-1-clean): Likewise.
34705 * sysdeps/x86_64/tst-x86_64-1.c: New file.
34706 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
34707
34708 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
34709
34710 * po/sv.po: Update translations.
34711 * po/fr.po: Likewise.
34712
34713 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
34714
34715 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
34716 seconds.
34717 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
34718 seconds.
34719 * elf/rtld-Rules: Fix $(error) use.
34720
34721 2017-09-09 Mike FABIAN <mfabian@redhat.com>
34722
34723 [BZ #14925]
34724 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
34725 * locale/iso-639.def: Change “Bengali” to “Bangla”.
34726 * localedata/locales/bn_BD: “Bengali” was still used in some
34727 comments. Change it to “Bangla”.
34728
34729 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
34730
34731 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
34732
34733 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34734
34735 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
34736 thunderx2t99p1 to list of cpu names.
34737 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34738 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
34739
34740 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34741
34742 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
34743 Use strcmp instead of tunable_is_name.
34744
34745 2017-09-08 Joseph Myers <joseph@codesourcery.com>
34746
34747 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34748 (F_GET_RW_HINT): New macro.
34749 [__USE_GNU] (F_SET_RW_HINT): Likewise.
34750 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
34751 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
34752 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
34753 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
34754 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
34755 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
34756 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
34757 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
34758
34759 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34760 (F_ADD_SEALS): New macro.
34761 [__USE_GNU] (F_GET_SEALS): Likewise.
34762 [__USE_GNU] (F_SEAL_SEAL): Likewise.
34763 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
34764 [__USE_GNU] (F_SEAL_GROW): Likewise.
34765 [__USE_GNU] (F_SEAL_WRITE): Likewise.
34766
34767 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34768
34769 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
34770 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
34771 * posix/glob_internal.h (__glob_pattern_type):
34772 * posix/glob.c (glob):
34773 * posix/glob_pattern_p.c (__glob_pattern_p):
34774 Use them.
34775
34776 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
34777 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
34778 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
34779 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
34780 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
34782 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
34783 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
34784 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34785 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
34786 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34787 * sysdeps/wordsize-64/glob.c: Likewise.
34788 * sysdeps/wordsize-64/glob64.c: Likewise.
34789 * sysdeps/wordsize-64/globfree.c: Likewise.
34790 * sysdeps/wordsize-64/globfree64.c: Likewise.
34791 * sysdeps/unix/sysv/linux/glob.c: New file.
34792 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
34793 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
34794 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
34795 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
34796 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
34797 adds !GLOB_NO_OLD_VERSION as an extra condition.
34798 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
34799 using relative path instead of absolute one.
34800 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
34801 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
34802 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
34803 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
34804 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
34805 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
34806
34807 [BZ #1062]
34808 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
34809 (glob): Use the same scratch buffer for both getlogin_r and
34810 getpwnam_r. Don’t require preallocation of the login name. This
34811 simplifies storage allocation, and corrects the handling of
34812 long login names.
34813
34814 [BZ #1062]
34815 * posix/glob.c (glob): Port recent patches to platforms
34816 lacking getpwnam_r.
34817 (glob): Fix longstanding misuse of errno after getpwnam_r, which
34818 returns an error number rather than setting errno.
34819
34820 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
34821 instead of GCC extension.
34822 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
34823 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
34824 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
34825
34826 [BZ #866]
34827 [BZ #1062]
34828 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
34829 * posix/bug-glob1.c: Remove file.
34830 * posix/tst-glob_symlinks.c: New file.
34831 * posix/glob.c (__lstat64): New macro.
34832 (is_dir): New function.
34833 (glob, glob_in_dir): Match symlinks even if they are dangling.
34834 (link_stat, link_exists_p): Remove. All uses removed.
34835
34836 [BZ #1062]
34837 [BZ #19971]
34838 * posix/glob.c (struct readdir_result): Remove skip_entry member.
34839 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
34840 All uses removed.
34841
34842 [BZ #1062]
34843 CVE-2017-15671
34844 * posix/Makefile (routines): Add globfree, globfree64, and
34845 glob_pattern_p.
34846 * posix/flexmember.h: New file.
34847 * posix/glob_internal.h: Likewise.
34848 * posix/glob_pattern_p.c: Likewise.
34849 * posix/globfree.c: Likewise.
34850 * posix/globfree64.c: Likewise.
34851 * sysdeps/gnu/globfree64.c: Likewise.
34852 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
34853 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34854 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
34855 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34856 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34857 * sysdeps/wordsize-64/globfree.c: Likewise.
34858 * sysdeps/wordsize-64/globfree64.c: Likewise.
34859 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
34860 [NDEBUG): Remove comments.
34861 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
34862 (dirent_type): New type. Use uint_fast8_t not
34863 uint8_t, as C99 does not require uint8_t.
34864 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
34865 (struct readdir_result): Use dirent_type. Do not define skip_entry
34866 unless it is needed; this saves a byte on platforms lacking d_ino.
34867 (readdir_result_type, readdir_result_skip_entry):
34868 New functions, replacing ...
34869 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
34870 these functions, which were removed. This makes the callers
34871 easier to read. All callers changed.
34872 (D_INO_TO_RESULT): Now empty if there is no d_ino.
34873 (size_add_wrapv, glob_use_alloca): New static functions.
34874 (glob, glob_in_dir): Check for size_t overflow in several places,
34875 and fix some size_t checks that were not quite right.
34876 Remove old code using SHELL since Bash no longer
34877 uses this.
34878 (glob, prefix_array): Separate MS code better.
34879 (glob_in_dir): Remove old Amiga and VMS code.
34880 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
34881 separate files.
34882 (glob_in_dir): Do not rely on undefined behavior in accessing
34883 struct members beyond their bounds. Use a flexible array member
34884 instead
34885 (link_stat): Rename from link_exists2_p and return -1/0 instead of
34886 0/1. Caller changed.
34887 (glob): Fix memory leaks.
34888 * posix/glob64 (globfree64): Move to separate file.
34889 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
34890 (globfree64): Remove hidden alias.
34891 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
34892 oldglob.
34893 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
34894 separate file.
34895 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
34896 define.
34897 Move compat code to separate file.
34898 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
34899 separate file.
34900
34901 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
34902
34903 * resolv/tst-resolv-qtypes.c (domain): Changed to
34904 "const char domain[] =".
34905
34906 2017-09-07 Joseph Myers <joseph@codesourcery.com>
34907
34908 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
34909 version to 3.1.6.
34910
34911 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
34912 (TCP_MD5SIG_EXT): Likewise.
34913 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
34914 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
34915 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
34916
34917 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
34918
34919 2017-09-07 Mike FABIAN <mfabian@redhat.com>
34920
34921 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34922
34923 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
34924
34925 [BZ #22100]
34926 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34927
34928 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
34929
34930 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34931 before assuming that the file is empty. Avoid testing buffer content
34932 when nread == 0.
34933
34934 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34935
34936 [BZ #18858]
34937 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34938 Remove define.
34939 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34940 Likewise.
34941 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34942 Likewise.
34943 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34944 Likewise.
34945 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34946 Likewise.
34947 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34948 Likewise.
34949 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34950 Likewise.
34951
34952 2017-09-06 Florian Weimer <fweimer@redhat.com>
34953
34954 * malloc/dynarray_emplace_enlarge.c
34955 (__libc_dynarray_emplace_enlarge): Add missing else.
34956
34957 2017-09-06 Florian Weimer <fweimer@redhat.com>
34958
34959 [BZ #22096]
34960 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34961 case of failure to obtain the global conf object.
34962
34963 2017-09-06 Florian Weimer <fweimer@redhat.com>
34964
34965 [BZ #22095]
34966 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34967 dynarray allocation failure.
34968
34969 2017-09-06 Florian Weimer <fweimer@redhat.com>
34970
34971 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34972 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34973 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34974 New functions.
34975 (response): Call them. Add 'p', '6' flag processing.
34976 (test_reverse): New function.
34977 (test_get2_any): Call it.
34978 (test_no_inet6): Add 'p' test.
34979 (test_inet6): Likewise.
34980
34981 2017-09-06 Florian Weimer <fweimer@redhat.com>
34982
34983 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34984 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34985 the QNAME.
34986 (test_gai): Adjust query names. Add additional tests.
34987 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34988 test_get2. Adjust query names. Add additional tests.
34989 (test_no_inet6): New function, extracted from threadfunc.
34990 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34991 Add additional tests.
34992
34993 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34994
34995 [BZ #22070]
34996 * localedata/unicode-gen/utf8_gen.py: Set the width for
34997 characters with Prepended_Concatenation_Mark property to 1
34998 * localedata/charmaps/UTF-8: Updated using the improved script.
34999
35000 2017-09-06 Mike FABIAN <mfabian@redhat.com>
35001
35002 [BZ #21750]
35003 * localedata/unicode-gen/utf8_gen.py: Improve the script to
35004 use the range notation for all ranges of neighbouring characters
35005 with the same width.
35006
35007 2017-09-05 Joseph Myers <joseph@codesourcery.com>
35008
35009 * sysdeps/generic/math-type-macros-double.h: Include
35010 <math-svid-compat.h>.
35011 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
35012 * sysdeps/generic/math-type-macros-float.h: Include
35013 <math-svid-compat.h>.
35014 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
35015 * sysdeps/generic/math-type-macros-ldouble.h: Include
35016 <math-svid-compat.h>.
35017 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
35018 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
35019 condition.
35020 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
35021 * math/w_acosf_compat.c: Likewise.
35022 * math/w_acosh_compat.c: Likewise.
35023 * math/w_acoshf_compat.c: Likewise.
35024 * math/w_acoshl_compat.c: Likewise.
35025 * math/w_acosl_compat.c: Likewise.
35026 * math/w_asin_compat.c: Likewise.
35027 * math/w_asinf_compat.c: Likewise.
35028 * math/w_asinl_compat.c: Likewise.
35029 * math/w_atan2_compat.c: Likewise.
35030 * math/w_atan2f_compat.c: Likewise.
35031 * math/w_atan2l_compat.c: Likewise.
35032 * math/w_atanh_compat.c: Likewise.
35033 * math/w_atanhf_compat.c: Likewise.
35034 * math/w_atanhl_compat.c: Likewise.
35035 * math/w_cosh_compat.c: Likewise.
35036 * math/w_coshf_compat.c: Likewise.
35037 * math/w_coshl_compat.c: Likewise.
35038 * math/w_exp10_compat.c: Likewise.
35039 * math/w_exp10f_compat.c: Likewise.
35040 * math/w_exp10l_compat.c: Likewise.
35041 * math/w_exp2_compat.c: Likewise.
35042 * math/w_exp2f_compat.c: Likewise.
35043 * math/w_exp2l_compat.c: Likewise.
35044 * math/w_fmod_compat.c: Likewise.
35045 * math/w_fmodf_compat.c: Likewise.
35046 * math/w_fmodl_compat.c: Likewise.
35047 * math/w_hypot_compat.c: Likewise.
35048 * math/w_hypotf_compat.c: Likewise.
35049 * math/w_hypotl_compat.c: Likewise.
35050 * math/w_j0_compat.c: Likewise.
35051 * math/w_j0f_compat.c: Likewise.
35052 * math/w_j0l_compat.c: Likewise.
35053 * math/w_j1_compat.c: Likewise.
35054 * math/w_j1f_compat.c: Likewise.
35055 * math/w_j1l_compat.c: Likewise.
35056 * math/w_jn_compat.c: Likewise.
35057 * math/w_jnf_compat.c: Likewise.
35058 * math/w_jnl_compat.c: Likewise.
35059 * math/w_lgamma_r_compat.c: Likewise.
35060 * math/w_lgammaf_r_compat.c: Likewise.
35061 * math/w_lgammal_r_compat.c: Likewise.
35062 * math/w_log10_compat.c: Likewise.
35063 * math/w_log10f_compat.c: Likewise.
35064 * math/w_log10l_compat.c: Likewise.
35065 * math/w_log2_compat.c: Likewise.
35066 * math/w_log2f_compat.c: Likewise.
35067 * math/w_log2l_compat.c: Likewise.
35068 * math/w_log_compat.c: Likewise.
35069 * math/w_logf_compat.c: Likewise.
35070 * math/w_logl_compat.c: Likewise.
35071 * math/w_pow_compat.c: Likewise.
35072 * math/w_powf_compat.c: Likewise.
35073 * math/w_powl_compat.c: Likewise.
35074 * math/w_remainder_compat.c: Likewise.
35075 * math/w_remainderf_compat.c: Likewise.
35076 * math/w_remainderl_compat.c: Likewise.
35077 * math/w_sinh_compat.c: Likewise.
35078 * math/w_sinhf_compat.c: Likewise.
35079 * math/w_sinhl_compat.c: Likewise.
35080 * math/w_sqrt_compat.c: Likewise.
35081 * math/w_sqrtf_compat.c: Likewise.
35082 * math/w_sqrtl_compat.c: Likewise.
35083 * math/w_tgamma_compat.c: Likewise.
35084 * math/w_tgammaf_compat.c: Likewise.
35085 * math/w_tgammal_compat.c: Likewise.
35086 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
35087 [LIBM_SVID_COMPAT].
35088 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
35089 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
35090 [LIBM_SVID_COMPAT].
35091 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
35092 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
35093 [LIBM_SVID_COMPAT].
35094 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
35095 * sysdeps/i386/fpu/w_sqrt.c: New file.
35096 * sysdeps/ia64/fpu/w_acos.c: Likewise.
35097 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
35098 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
35099 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
35100 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
35101 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
35102 * sysdeps/ia64/fpu/w_asin.c: Likewise.
35103 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
35104 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
35105 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
35106 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
35107 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
35108 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
35109 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
35110 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
35111 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
35112 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
35113 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
35114 * sysdeps/ia64/fpu/w_exp.c: Likewise.
35115 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
35116 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
35117 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
35118 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
35119 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
35120 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
35121 * sysdeps/ia64/fpu/w_expf.c: Likewise.
35122 * sysdeps/ia64/fpu/w_expl.c: Likewise.
35123 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
35124 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
35125 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
35126 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
35127 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
35128 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
35129 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
35130 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
35131 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
35132 * sysdeps/ia64/fpu/w_log.c: Likewise.
35133 * sysdeps/ia64/fpu/w_log10.c: Likewise.
35134 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
35135 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
35136 * sysdeps/ia64/fpu/w_log2.c: Likewise.
35137 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
35138 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
35139 * sysdeps/ia64/fpu/w_logf.c: Likewise.
35140 * sysdeps/ia64/fpu/w_logl.c: Likewise.
35141 * sysdeps/ia64/fpu/w_pow.c: Likewise.
35142 * sysdeps/ia64/fpu/w_powf.c: Likewise.
35143 * sysdeps/ia64/fpu/w_powl.c: Likewise.
35144 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
35145 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
35146 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
35147 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
35148 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
35149 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
35150 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
35151 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
35152 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
35153 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
35154 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
35155 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
35156 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
35157 [LIBM_SVID_COMPAT].
35158 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
35159 * sysdeps/ieee754/k_standard.c: Likewise.
35160 * sysdeps/ieee754/k_standardf.c: Likewise.
35161 * sysdeps/ieee754/k_standardl.c: Likewise.
35162 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
35163 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
35164 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
35165 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
35166 long_double_symbol call on [LIBM_SVID_COMPAT].
35167 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
35168 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
35169 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
35170 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
35171 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
35172 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
35173 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
35174 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
35175 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
35176 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
35177 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
35178 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
35179 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
35180 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
35181 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
35182 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
35183 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
35184 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
35185 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
35186 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
35187 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
35188 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
35189
35190 2017-09-05 Steve Ellcey <sellcey@cavium.com>
35191
35192 * include/shlib-compat.h (TEST_COMPAT): New Macro.
35193 * malloc/tst-mallocstate.c: Convert from test-skeleton
35194 to test-driver. Ifdef code using TEST_COMPAT macro.
35195 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
35196 * math/test-matherr.c: Likewise.
35197
35198 2017-09-05 Joseph Myers <joseph@codesourcery.com>
35199
35200 [BZ #22086]
35201 * debug/pcprofiledump.c (main): Use byte-swapped mask when
35202 comparing word with byte-swapped constant.
35203
35204 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
35205
35206 [BZ #20498]
35207 * locale/iso-639.def: add Miskito.
35208 * localedata/SUPPORTED: Add miq_NI/UTF-8.
35209 * localedata/locales/miq_NI: New file.
35210
35211 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
35212
35213 [BZ #18822]
35214 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
35215 (__mkdir): Likewise.
35216 * io/chmod.c (__chmod): Add libc_hidden_def.
35217 * io/mkdir.c (__mkdir): Likewise.
35218 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
35219 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
35220 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
35221 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
35222
35223 2017-09-04 Joseph Myers <joseph@codesourcery.com>
35224
35225 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
35226 version to 4.13.
35227
35228 [BZ #22082]
35229 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
35230 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
35231
35232 2017-09-04 Florian Weimer <fweimer@redhat.com>
35233
35234 * math/math.h: Issue warning if log is defined.
35235
35236 2017-09-04 Joseph Myers <joseph@codesourcery.com>
35237
35238 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
35239 kernel version to 4.13.
35240
35241 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
35242
35243 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
35244 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
35245 parameter.
35246 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
35247 just <bits/types.h>.
35248 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
35249 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
35250 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
35251 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
35252 * misc/preadv2.c: Include <errno.h>.
35253 * misc/preadv64v2.c: Include <errno.h>.
35254 * misc/pwritev2.c: Include <errno.h>.
35255 * misc/pwritev64v2.c: Include <errno.h>.
35256 * sysdeps/posix/preadv2.c: Include <errno.h>.
35257 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
35258 Fix <unistd.h> inclusion.
35259 * sysdeps/posix/pwritev2.c: Include <errno.h>.
35260 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
35261 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
35262 __strtoul_internal): New functions.
35263 * sysdeps/posix/pause.c: Include <sigsetops.h>.
35264 * sysdeps/posix/system.c: Include <sigsetops.h>.
35265 * sysdeps/mach/hurd/i386/Makefile
35266 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
35267 [$(subdir) = csu] (sysdep-only-routines): Likewise.
35268 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
35269 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
35270 __feraiseexcept_renamed to feraiseexcept instead of
35271 __GI_feraiseexcept.
35272 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
35273 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
35274 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
35275 RWF_NOWAIT): Define to 0 if undefined already.
35276 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
35277 boils down to 0.
35278 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
35279 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
35280
35281 2017-09-01 Joseph Myers <joseph@codesourcery.com>
35282
35283 * manual/math.texi (pow10): Do not document.
35284 (pow10f): Likewise.
35285 (pow10l): Likewise.
35286 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
35287 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
35288 * math/libm-test-exp10.inc (pow10_test): Remove.
35289 (do_test): Do not call pow10.
35290 * math/w_exp10_compat.c (pow10): Make into compat symbol.
35291 [NO_LONG_DOUBLE] (pow10l): Likewise.
35292 * math/w_exp10f_compat.c (pow10f): Likewise.
35293 * math/w_exp10l_compat.c (pow10l): Likewise.
35294 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
35295 (pow10): Make into compat symbol.
35296 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
35297 (pow10f): Make into compat symbol.
35298 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
35299 (pow10l): Make into compat symbol.
35300 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
35301 pow10.
35302 (CFLAGS-nldbl-pow10.c): Remove variable..
35303 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
35304 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
35305 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
35306 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
35307 Undefine and redefine.
35308 (pow10l): Make into compat symbol.
35309 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
35310 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
35311 * sysdeps/arm/libm-test-ulps: Likewise.
35312 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
35313 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
35314 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
35315 * sysdeps/microblaze/libm-test-ulps: Likewise.
35316 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
35317 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
35318 * sysdeps/nios2/libm-test-ulps: Likewise.
35319 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
35320 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
35321 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
35322 * sysdeps/sh/libm-test-ulps: Likewise.
35323 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
35324 * sysdeps/tile/libm-test-ulps: Likewise.
35325 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35326
35327 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
35328
35329 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
35330
35331 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
35332
35333 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
35334 "../ChangeLog.old/ChangeLog.8".
35335 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
35336 "../ChangeLog.old/ChangeLog.14".
35337
35338 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
35339
35340 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
35341 Threads Library.
35342
35343 2017-09-01 Joseph Myers <joseph@codesourcery.com>
35344
35345 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
35346
35347 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
35348
35349 * csu/version.c (banner): Remove "by Roland McGrath et al.".
35350 * nptl/Banner: Remove "by Ulrich Drepper et al.".
35351
35352 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
35353
35354 * stdlib/tst-atexit-common.c (do_test): Test support for at least
35355 32 atexit handlers.
35356
35357 2017-09-01 Zack Weinberg <zackw@panix.com>
35358
35359 * math/math.h (HUGE_VAL): Improve commentary.
35360
35361 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35362 Andreas Schwab <schwab@suse.de>
35363
35364 [BZ #21530]
35365 * include/stdio.h (__gen_tempfd): New function.
35366 * stdio-common/Makefile (routines): Add gentempfd.
35367 * stdio-common/gentempfd.c: New file.
35368 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
35369 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
35370 unnamed file first.
35371
35372 2017-09-01 Florian Weimer <fweimer@redhat.com>
35373
35374 [BZ #21915]
35375 [BZ #21922]
35376 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
35377 result to determine success or failure, not the errno value.
35378 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
35379 (tst-nss-files-hosts-erange): Link with -ldl.
35380 * nss/tst-nss-files-hosts-erange.c: New file.
35381 * nss/tst-resolv-basic.c (response): Handle nodata.example.
35382 (do_test): Add NO_DATA tests.
35383 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
35384 (do_test): Call it.
35385
35386 2017-09-01 Florian Weimer <fweimer@redhat.com>
35387
35388 [BZ #21922]
35389 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
35390 coming from gethostbyname2_r.
35391
35392 2017-09-01 Florian Weimer <fweimer@redhat.com>
35393
35394 * support/namespace.h (struct support_chroot_configuration): Add
35395 hosts, host_conf.
35396 (struct support_chroot): Add path_hosts, path_host_conf.
35397 * support/support_chroot.c (write_file): New function.
35398 (support_chroot_create): Call it to process /etc/resolv.conf,
35399 /etc/hosts, /etc/host.conf.
35400 (support_chroot_free): Update.
35401
35402 2017-09-01 Florian Weimer <fweimer@redhat.com>
35403
35404 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
35405 status indicates it is set.
35406
35407 2017-09-01 Florian Weimer <fweimer@redhat.com>
35408
35409 [BZ #20532]
35410 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
35411 function lookup failures more reliable.
35412
35413 2017-09-01 Florian Weimer <fweimer@redhat.com>
35414
35415 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
35416 (getcanonname): Likewise.
35417 (gaih_inet): Likewise.
35418
35419 2017-09-01 Florian Weimer <fweimer@redhat.com>
35420
35421 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
35422 (getcanonname): Likewise.
35423 (gaih_inet): Likewise.
35424
35425 2017-08-31 Steve Ellcey <sellcey@cavium.com>
35426 Richard Henderson <rth@twiddle.net>
35427
35428 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
35429 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
35430 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
35431 (IREG_SIZE, OREG_SIZE): New macros.
35432 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
35433 (IREG_SIZE, OREG_SIZE): New macros.
35434 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
35435 (IREG_SIZE): New macro.
35436 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
35437 (IREG_SIZE): New macro.
35438 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
35439 New includes.
35440 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
35441 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
35442 (__CONCATX): Handle exceptions correctly on large values that may
35443 set FE_INVALID.
35444 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
35445 Initialize if not already set.
35446 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
35447
35448 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35449
35450 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
35451 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
35452 Likewise.
35453 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
35454 Likewise.
35455 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
35456 Likewise.
35457 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
35458 Likewise.
35459 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
35460 Likewise.
35461 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
35462 Likewise.
35463 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
35464 Likewise.
35465 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
35466 (NO_CANCELLATION): Likewise.
35467 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
35468 Likewise.
35469 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
35470 Likewise.
35471 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
35472 Likewise.
35473 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
35474 (NO_CANCELLATION): Likewise.
35475 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
35476 (NO_CANCELLATION): Likewise.
35477 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
35478 Likewise
35479 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
35480 Likewise.
35481 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
35482 Likewise.
35483 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
35484 Likewise.
35485 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
35486 hidden prototype.
35487 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
35488 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
35489
35490 2017-08-31 Steve Ellcey <sellcey@cavium.com>
35491
35492 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
35493 in resolver call.
35494
35495 2017-08-31 Florian Weimer <fweimer@redhat.com>
35496
35497 * include/libc-symbols.h (internal_function): Remove.
35498
35499 2017-08-31 Florian Weimer <fweimer@redhat.com>
35500
35501 * stdlib/fmtmsg.c (internal_addseverity): Remove
35502 internal_function.
35503
35504 2017-08-31 Florian Weimer <fweimer@redhat.com>
35505
35506 * stdio-common/printf_fp.c (group_number): Remove
35507 internal_function.
35508 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
35509
35510 2017-08-31 Florian Weimer <fweimer@redhat.com>
35511
35512 * posix/fnmatch.c (internal_function): Remove definition.
35513 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
35514 * posix/regcomp.c (peek_token, init_word_char)
35515 (duplicate_node_closure, fetch_token, peek_token)
35516 (peek_token_bracket, build_range_exp, build_collating_symbol):
35517 Likewise.
35518 * posix/regex_internal.c (re_string_construct_common)
35519 (create_ci_newstate, create_cd_newstate, re_string_allocate)
35520 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
35521 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
35522 (re_string_translate_buffer, re_string_reconstruct)
35523 (re_string_peek_byte_case, re_string_fetch_byte_case)
35524 (re_string_destruct, re_string_context_at, re_node_set_alloc)
35525 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
35526 (re_node_set_add_intersect, re_node_set_init_union)
35527 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
35528 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
35529 (re_dfa_add_node, calc_state_hash, re_acquire_state)
35530 (re_acquire_state_context): Likewise.
35531 * posix/regex_internal.h (internal_function): Remove definition.
35532 (re_string_realloc_buffers, build_wcs_buffer)
35533 (build_wcs_upper_buffer, build_upper_buffer)
35534 (re_string_translate_buffer, re_string_context_at)
35535 (re_string_char_size_at, re_string_wchar_at)
35536 (re_string_elem_size_at): Likewise.
35537 * posix/regexec.c (match_ctx_init, match_ctx_clean)
35538 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
35539 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
35540 (re_search_internal, re_search_2_stub, re_search_stub)
35541 (re_copy_regs, prune_impossible_nodes, check_matching)
35542 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
35543 (free_fail_stack_return, sift_states_iter_mb)
35544 (sift_states_backward, build_sifted_states)
35545 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
35546 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
35547 (check_subexp_limits, sift_states_bkref, merge_state_array)
35548 (find_recover_state, transit_state, merge_state_with_log)
35549 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
35550 (transit_state_mb, transit_state_bkref, get_subexp)
35551 (get_subexp_sub, find_subexp_node, check_arrival)
35552 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
35553 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
35554 (check_node_accept_bytes, find_collation_sequence_value)
35555 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
35556 (acquire_init_state_context, check_halt_node_context)
35557 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
35558 (sub_epsilon_src_nodes): Likewise.
35559 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
35560 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
35561 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
35562 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
35563 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
35564 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
35565 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
35566 * sysdeps/posix/ttyname.c (getttyname): Likewise.
35567 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
35568 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
35569 (PREADV): Likewise.
35570 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
35571 (PREADV): Likewise.
35572 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
35573 (PWRITEV): Likewise.
35574 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
35575 (PWRITEV): Likewise.
35576 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
35577 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
35578
35579 2017-08-31 Florian Weimer <fweimer@redhat.com>
35580
35581 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
35582 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
35583 Remove internal_function.
35584 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
35585 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
35586 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
35587 (__deallocate_stack, __libc_pthread_init)
35588 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
35589 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
35590 (__libc_disable_asynccancel, __librt_disable_asynccancel):
35591 Likewise.
35592 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
35593 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
35594 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
35595 Likewise.
35596 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
35597 (__pthread_mutex_unlock_usercnt): Likewise.
35598
35599 2017-08-31 Florian Weimer <fweimer@redhat.com>
35600
35601 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
35602 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
35603 (fts_safe_changedir): Remove internal_function.
35604 * io/ftw.c (internal_function): Remove definition.
35605 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
35606
35607 2017-08-31 Florian Weimer <fweimer@redhat.com>
35608
35609 * inet/deadline.c (__deadline_current_time)
35610 (__deadline_from_timeval, __deadline_to_ms): Remove
35611 internal_function.
35612 * inet/getnameinfo.c (nrl_domainname): Likewise.
35613 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
35614 * inet/inet6_option.c (add_pad): Likewise.
35615 * inet/net-internal.h (__deadline_current_time)
35616 (__deadline_from_timeval, __deadline_to_ms): Likewise.
35617 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
35618 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
35619 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
35620
35621 2017-08-31 Joseph Myers <joseph@codesourcery.com>
35622
35623 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
35624 include <bits/nan.h>.
35625 * math/Makefile (headers): Remove bits/nan.h.
35626 * bits/nan.h: Remove.
35627 * sysdeps/ieee754/bits/nan.h: Likewise.
35628 * sysdeps/mips/bits/nan.h: Likewise.
35629
35630 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
35631 not include <bits/inf.h>.
35632 * math/Makefile (headers): Remove bits/inf.h.
35633 * bits/inf.h: Remove.
35634 * sysdeps/ieee754/bits/inf.h: Likewise.
35635
35636 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
35637 bits/huge_vall.h or bits/huge_val_flt128.h.
35638 (HUGE_VAL): Define directly here.
35639 [__USE_ISOC99] (HUGE_VALF): Likewise.
35640 [__USE_ISOC99] (HUGE_VALL): Likewise.
35641 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35642 (HUGE_VAL_F128): Likewise.
35643 * math/Makefile (headers): Remove bits/huge_val.h,
35644 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
35645 * bits/huge_val.h: Remove.
35646 * bits/huge_val_flt128.h: Likewise.
35647 * bits/huge_valf.h: Likewise.
35648 * bits/huge_vall.h: Likewise.
35649 * sysdeps/ia64/bits/huge_vall.h: Likewise.
35650 * sysdeps/ieee754/bits/huge_val.h: Likewise.
35651 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
35652 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
35653 * sysdeps/sh/bits/huge_val.h: Likewise.
35654 * sysdeps/sparc/bits/huge_vall.h: Likewise.
35655 * sysdeps/x86/bits/huge_vall.h: Likewise.
35656
35657 2017-08-31 Florian Weimer <fweimer@redhat.com>
35658
35659 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
35660 internal_function.
35661 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
35662 Likewise.
35663 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
35664 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
35665 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
35666 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
35667 * elf/dl-fini.c (_dl_sort_fini): Likewise.
35668 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
35669 * elf/dl-libc.c (dlerror_run): Likewise.
35670 * elf/dl-load.c (add_name_to_object, decompose_rpath)
35671 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
35672 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
35673 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
35674 Likewise.
35675 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
35676 (_dl_higher_prime_number, _dl_strtoul): Likewise.
35677 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
35678 * elf/dl-profile.c (_dl_start_profile): Likewise.
35679 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
35680 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
35681 Likewise.
35682 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
35683 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
35684 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
35685 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
35686 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
35687 (_dl_allocate_tls_storage): Likewise.
35688 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
35689 (_dl_check_all_versions): Likewise.
35690 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
35691 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
35692 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
35693 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35694 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
35695 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
35696 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
35697 internal_function from __dl_start.
35698 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
35699 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
35700 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
35701 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
35702 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
35703 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
35704 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
35705 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
35706 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
35707 (_dl_next_ld_env_entry, _dl_important_hwcaps)
35708 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
35709 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
35710 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
35711 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
35712 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
35713 Likewise.
35714 (struct rtld_global_ro): Remove internal_function from the
35715 _dl_lookup_symbol_x member.
35716 (_dl_symbol_value): Remove. No longer defined anywhere.
35717 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
35718 internal_function.
35719 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35720 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
35721 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
35722 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
35723 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
35724 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
35725 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
35726 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
35727 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
35728 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
35729 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35730 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
35731
35732 2017-08-31 Florian Weimer <fweimer@redhat.com>
35733
35734 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
35735 Remove internal_function.
35736 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35737 Likewise.
35738 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35739 Likewise.
35740
35741 2017-08-31 Florian Weimer <fweimer@redhat.com>
35742
35743 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
35744 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
35745 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
35746
35747 2017-08-31 Florian Weimer <fweimer@redhat.com>
35748
35749 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
35750 (__gai_enqueue_request): Remove internal_function.
35751 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
35752 (__gai_remove_request, __gai_notify, __gai_notify_only)
35753 (__gai_sigqueue): Likewise.
35754 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
35755 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
35756 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
35757 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
35758 Likewise.
35759
35760 2017-08-31 Florian Weimer <fweimer@redhat.com>
35761
35762 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
35763 * include/dirent.h (__opendirat, __getdents, __getdents64)
35764 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
35765 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
35766 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35767 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
35768 Likewise.
35769 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
35770
35771 2017-08-31 Florian Weimer <fweimer@redhat.com>
35772
35773 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
35774 internal_function.
35775 (GETCWD_RETURN_TYPE): Likewise.
35776
35777 2017-08-31 Florian Weimer <fweimer@redhat.com>
35778
35779 * include/time.h (__tz_compute, __strptime_internal): Remove
35780 internal_function.
35781 * time/strptime_l.c (__strptime_internal): Likewise.
35782 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
35783
35784 2017-08-31 Florian Weimer <fweimer@redhat.com>
35785
35786 * iconv/gconv.c (__gconv): Remove internal_function.
35787 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
35788 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
35789 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
35790 (__gconv_release_cache): Likewise.
35791 * iconv/gconv_close.c (__gconv_close): Likewise.
35792 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
35793 (read_conf_file, __gconv_get_path): Likewise.
35794 * iconv/gconv_db.c (derivation_lookup, add_derivation)
35795 (__gconv_release_step, gen_steps, increment_counter)
35796 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
35797 (__gconv_close_transform, free_modules_db): Likewise.
35798 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
35799 Likewise.
35800 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
35801 (__gconv_find_transform, __gconv_lookup_cache)
35802 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
35803 (__gconv_close_transform, __gconv_release_cache)
35804 (__gconv_loaded_object, __gconv_release_shlib)
35805 (__gconv_compare_alias): Likewise.
35806 * iconv/gconv_open.c (__gconv_open): Likewise.
35807 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
35808 * iconv/iconvconfig.c (add_module): Likewise.
35809 * intl/dcigettext.c (plural_lookup, guess_category_value)
35810 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
35811 * intl/eval-plural.h (plural_eval): Likewise.
35812 * intl/finddomain.c (_nl_find_domain): Likewise.
35813 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
35814 (_nl_load_domain, _nl_find_msg): Likewise.
35815 (internal_function): Remove definition.
35816 * intl/loadinfo.h (internal_function): Likewise.
35817 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
35818 internal_function.
35819 * intl/localealias.c (internal_function): Remove definition.
35820 (read_alias_file): Remove internal_function.
35821 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
35822 * intl/plural-exp.h (internal_function): Remove definition.
35823 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
35824 internal_function.
35825 * intl/plural.c: Regenerate.
35826 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
35827 * locale/coll-lookup.c (__collidx_table_lookup)
35828 (__collseq_table_lookup): Likewise.
35829 * locale/coll-lookup.h (__collidx_table_lookup)
35830 (__collseq_table_lookup): Likewise.
35831 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
35832 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35833 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
35834 (_nl_unload_locale): Likewise.
35835 * locale/localeinfo.h (struct __locale_data): Remove
35836 internal_function from cleanup member.
35837 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
35838 (_nl_remove_locale, _nl_load_locale_from_archive)
35839 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
35840 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
35841 (_nl_cleanup_time): Remove internal_function.
35842 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
35843 (_nl_parse_alt_digit): Likewise.
35844 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
35845 (_nl_select_era_entry): Likewise.
35846 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
35847 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35848 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35849 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35850 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35851
35852 2017-08-31 Florian Weimer <fweimer@redhat.com>
35853
35854 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
35855 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
35856 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
35857 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
35858 Likewise.
35859 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
35860 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
35861 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
35862 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35863 Likewise.
35864 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
35865
35866 2017-08-31 Florian Weimer <fweimer@redhat.com>
35867
35868 * misc/getttyent.c (skip, value): Remove internal_function.
35869 * misc/syslog.c (openlog_internal): Likewise.
35870 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
35871
35872 2017-08-31 Florian Weimer <fweimer@redhat.com>
35873
35874 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
35875 (__nss_rewrite_field): Remove internal_function.
35876 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35877 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35878 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35879 * nss/nsswitch.c (nss_parse_file, nss_getline)
35880 (nss_parse_service_list, nss_new_service): Likewise.
35881 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
35882 * nss/valid_field.c (__nss_valid_field): Likewise.
35883 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
35884
35885 2017-08-31 Florian Weimer <fweimer@redhat.com>
35886
35887 * malloc/arena.c (__malloc_fork_lock_parent)
35888 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
35889 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
35890 internal_function from defintions.
35891 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
35892 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
35893 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
35894 internal_function from declarations.
35895 * malloc/malloc.c (internal_function): Do not define.
35896 (mem2mem_check): Remove internal_function from declaration.
35897 (munmap_chunk, mremap_chunk): Remove internal_function.
35898 * malloc/mtrace.c (tr_where): Likewise.
35899
35900 2017-08-31 Florian Weimer <fweimer@redhat.com>
35901
35902 * include/rpc/pmap_clnt.h (__get_socket): Remove
35903 internal_function.
35904 * sunrpc/auth_des.c (synchronize): Likewise.
35905 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
35906 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
35907 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
35908 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
35909 (key_call): Likewise.
35910 * sunrpc/pm_getport.c (__get_socket): Likewise.
35911 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
35912 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
35913 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
35914 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
35915 (invalidate): Likewise.
35916 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
35917 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
35918 (set_input_fragment, get_input_bytes): Likewise.
35919
35920 2017-08-31 Florian Weimer <fweimer@redhat.com>
35921
35922 * malloc/malloc.c (_int_free): Remove locked variable and related
35923 asserts.
35924
35925 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
35926
35927 [BZ #22051]
35928 * Makerules (build-module-helper-objlist): Filter out
35929 $(elf-objpfx)sofini.os.
35930 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35931 needed.
35932
35933 2017-08-31 Florian Weimer <fweimer@redhat.com>
35934
35935 * libio/fcloseall.c: Assume weak_alias is defined.
35936 * libio/feof.c: Likewise.
35937 * libio/fileno.c: Likewise.
35938 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35939 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35940 definitions.
35941 (_IO_file_open): Call __open directly.
35942 (_IO_new_file_sync): Assume ESPIPE is defined.
35943 (_IO_file_seekoff_maybe_mmap): Call __read directly.
35944 (_IO_new_file_write): Call __write directly.
35945 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35946 * libio/ftello64.c (__ftello64): Assume EIO is defined.
35947 * libio/genops.c: Assume _LIBC is defined.
35948 (save_for_backup): Remove internal_function.
35949 * libio/getc.c: Assume weak_alias is defined.
35950 * libio/getwc.c: Likewise.
35951 * libio/iofclose.c: Assume _LIBC is defined.
35952 * libio/iofdopen.c: Likewise.
35953 (_IO_fcntl): Remove macro definition.
35954 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35955 Call __fcntl directly.
35956 * libio/iofflush.c: Assume weak_alias is defined.
35957 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35958 defined.
35959 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35960 * libio/iofgets.c: Likewise.
35961 * libio/iofopen.c: Assume _LIBC is defined.
35962 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35963 * libio/iofputs.c: Assume weak_alias is defined.
35964 * libio/iofread.c: Likewise.
35965 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35966 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35967 * libio/ioftell.c: Assume weak_alias is defined.
35968 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35969 * libio/iofwide.c: Assume _LIBC is defined.
35970 (_IO_fwide): Drop SHARED conditional because it is implied by
35971 SHLIB_COMPAT.
35972 * libio/iofwrite.c: Assume weak_alias is defined.
35973 * libio/iogetdelim.c: Likewise.
35974 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35975 * libio/iogetwline.c (wmemcpy): Remove macro definition.
35976 (_IO_getwline): Call __wmemcpy directly.
35977 * libio/iopopen.c: Assume _LIBC is defined.
35978 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35979 (_IO_close): Remove macro definitions.
35980 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35981 _exit directly.
35982 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35983 directly.
35984 * libio/ioputs.c: Assume weak_alias is defined.
35985 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35986 * libio/iosetbuffer.c: Assume weak_alias is defined.
35987 * libio/iosetvbuf.c: Likewise.
35988 * libio/ioungetc.c: Likewise.
35989 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35990 libc_hidden_def, libc_hidden_weak, NULL are defined.
35991 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35992 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35993 defined.
35994 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35995 definitions.
35996 (_IO_old_file_init_internal): Drop SHARED conditional because it
35997 is implied by SHLIB_COMPAT.
35998 (_IO_old_file_fopen): Call __open directly.
35999 (_IO_old_file_sync): Assume ESPIPE is defined.
36000 (_IO_old_file_write): Call __write directly.
36001 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
36002 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
36003 Call __fcntl directly.
36004 * libio/oldiofgetpos.c: Assume weak_alias is defined.
36005 (_IO_old_fgetpos): Assume EIO is defined.
36006 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
36007 (_IO_old_fgetpos64): Assume EIO is defined.
36008 * libio/oldiofsetpos.c: Assume weak_alias is defined.
36009 (_IO_old_fsetpos): Assume EIO is defined.
36010 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
36011 (_IO_old_fsetpos64): Assume EIO is defined.
36012 * libio/oldiopopen.c: Assume _LIBC is defined.
36013 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
36014 (_IO_close): Remove macro definitions.
36015 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
36016 directly.
36017 (_IO_old_proc_close): Call __close, __waitpid directly.
36018 * libio/put.c: Assume weak_alias is defined.
36019 * libio/stdfiles.c: Assume _LIBC is defined.
36020 * libio/stdio.c: Likewise.
36021 * libio/wfileops.c: Likewise.
36022 (_IO_wfile_sync): Assume ESPIPE is defined.
36023 * libio/wgenops.c: Assume _LIBC is defined.
36024 (save_for_wbackup): Remove internal_function.
36025
36026 2017-08-31 Florian Weimer <fweimer@redhat.com>
36027
36028 * malloc/malloc.c (top_check): Change return type to void. Remove
36029 internal_function.
36030 * malloc/hooks.c (top_check): Likewise.
36031 (malloc_check, realloc_check, memalign_check): Adjust.
36032
36033 2017-08-30 Joseph Myers <joseph@codesourcery.com>
36034
36035 [BZ #21457]
36036 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
36037 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
36038 sigcontext and namespace requirements.
36039 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
36040 * sysdeps/m68k/sys/ucontext.h: Likewise.
36041 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
36042 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
36043 <bits/sigcontext.h>.
36044 (__ctx): Define earlier.
36045 (mcontext_t): Define structure contents rather than using struct
36046 sigcontext.
36047 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
36048 __glibc_reserved1 instead of __reserved.
36049 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
36050 <bits/sigcontext.h>.
36051 (__ctx): Define earlier.
36052 (mcontext_t): Define structure contents rather than using struct
36053 sigcontext.
36054 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
36055 mcontext_t instead of struct sigcontext.
36056 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
36057 <bits/sigcontext.h>.
36058 (__ctx): Define earlier.
36059 (mcontext_t): Define structure contents rather than using struct
36060 sigcontext.
36061 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
36062 <bits/sigcontext.h>.
36063 (__ctx): Define earlier.
36064 (mcontext_t): Define structure contents rather than using struct
36065 sigcontext.
36066 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
36067 mcontext_t instead of struct sigcontext.
36068 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
36069 mcontext_t instead of struct sigcontext.
36070 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
36071 <bits/sigcontext.h>.
36072 (__ctx): New macro.
36073 (struct __ia64_fpreg_mcontext): New type.
36074 (mcontext_t): Define structure contents rather than using struct
36075 sigcontext.
36076 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
36077 (uc_sigmask): Define using __ctx.
36078 (uc_stack): Likewise.
36079 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
36080 <bits/sigcontext.h>.
36081 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
36082 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
36083 <bits/sigcontext.h>.
36084 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
36085 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
36086 <bits/sigcontext.h>.
36087 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
36088 <bits/sigcontext.h>.
36089 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
36090 <bits/sigcontext.h>.
36091 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
36092 <bits/sigcontext.h>.
36093 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
36094 <bits/sigcontext.h>.
36095 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
36096 <bits/sigcontext.h>.
36097 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
36098 <bits/sigcontext.h>.
36099 (__ctx): Define earlier.
36100 (mcontext_t): Define structure contents rather than using struct
36101 sigcontext.
36102 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
36103 <bits/sigcontext.h>. Include <bits/types.h>.
36104 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
36105 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
36106 (test-xfail-XPG42/ucontext.h/conform): Likewise.
36107 (test-xfail-UNIX98/signal.h/conform): Likewise.
36108 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36109 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36110 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36111 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36112 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36113 (test-xfail-POSIX2008/signal.h/conform): Likewise.
36114 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36115 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36116 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36117
36118 2017-08-30 Florian Weimer <fweimer@redhat.com>
36119
36120 * malloc/dynarray_emplace_enlarge.c
36121 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
36122 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
36123 * malloc/tst-dynarray.c (test_long_overflow): New function.
36124 (do_test): Call it.
36125
36126 2017-08-30 Florian Weimer <fweimer@redhat.com>
36127
36128 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
36129 (set_arena_corrupt): Remove definitions.
36130 (mtrim): Do not check for corrupt arena.
36131 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
36132 Likewise.
36133
36134 2017-08-30 Florian Weimer <fweimer@redhat.com>
36135
36136 [BZ #21754]
36137 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
36138 check_action.
36139 (ptmalloc_init): Do not set or use check_action.
36140 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
36141 call to malloc_printerr. Remove return statement.
36142 (free_check): Likewise. Remove arena unlock.
36143 (top_check): Update comment. Adjust call to malloc_printerr.
36144 Remove heap repair code.
36145 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
36146 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
36147 (sysmalloc): Adjust call to malloc_printerr.
36148 (munmap_chunk, __libc_realloc): Likewise. Remove return
36149 statement.
36150 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
36151 Remove errout label and corresponding gotos.
36152 (_int_free): Likewise. Remove arena unlock.
36153 (do_set_mallopt_check): Do not set check_action.
36154 (malloc_printerr): Adjust parameter list. Do not mark arena as
36155 corrupt.
36156 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
36157 comment.
36158 * manual/probes.texi (Memory Allocation Probes): Remove
36159 memory_mallopt_check_action.
36160
36161 2017-08-30 Steve Ellcey <sellcey@cavium.com>
36162
36163 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
36164 Use pointer to uint64_t instead of long int for sp.
36165
36166 2017-08-30 Florian Weimer <fweimer@redhat.com>
36167
36168 [BZ #21754]
36169 * malloc/malloc.c (malloc_printerr): Always terminate the process,
36170 without printing a backtrace. Do not leak any information in the
36171 error message.
36172 * manual/memory.texi (Heap Consistency Checking): Update.
36173 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
36174
36175 2017-08-30 Florian Weimer <fweimer@redhat.com>
36176
36177 Do not scale NPTL tests with available number of CPUs.
36178 * nptl/tst-cond16.c (count): Set to constant value of 8.
36179 * nptl/tst-cond18.c (count): Likewise.
36180
36181 2017-08-29 Joseph Myers <joseph@codesourcery.com>
36182
36183 [BZ #22035]
36184 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
36185 Define to take a second argument that is a macro that
36186 concatentates a suffix, not the suffix itself.
36187 (__CONCAT_d): New macro.
36188 (__CONCAT_f): Likewise.
36189 (__CONCAT_l): Likewise.
36190
36191 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
36192
36193 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
36194 by child.
36195
36196 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36197 Aurelien Jarno <aurelien@aurel32.net>
36198 Maciej W. Rozycki <macro@imgtec.com>
36199
36200 [BZ #21956]
36201 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
36202 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
36203 `mips16-syscall6' and `mips16-syscall7'.
36204 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
36205 (CFLAGS-mips16-syscall7.c): Remove.
36206 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
36207 Remove `__mips16_syscall5', `__mips16_syscall6' and
36208 `__mips16_syscall7'.
36209 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
36210 (__mips16_syscall0): Rename `__mips16_syscall_return' to
36211 `__mips_syscall_return'.
36212 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
36213 (__mips16_syscall1): Likewise.
36214 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
36215 (__mips16_syscall2): Likewise.
36216 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
36217 (__mips16_syscall3): Likewise.
36218 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
36219 (__mips16_syscall4): Likewise.
36220 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
36221 Remove.
36222 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
36223 Remove.
36224 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
36225 Remove.
36226 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
36227 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
36228 `__mips16_syscall5'. Remove prototype.
36229 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
36230 `__mips16_syscall6'. Remove prototype.
36231 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
36232 `__mips16_syscall7'. Remove prototype.
36233 (__nomips16, __mips16_syscall_return): Move to...
36234 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
36235 (__nomips16, __mips_syscall_return): ... here.
36236 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
36237 `__mips16_syscall_return' to `__mips_syscall_return'.
36238 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
36239 `internal_syscall##nr'.
36240 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
36241 `internal_syscall##nr'.
36242 (FORCE_FRAME_POINTER): Remove.
36243 (__mips_syscall5): New prototype.
36244 (internal_syscall5): Rewrite to call `__mips_syscall5'.
36245 (__mips_syscall6): New prototype.
36246 (internal_syscall6): Rewrite to call `__mips_syscall6'.
36247 (__mips_syscall7): New prototype.
36248 (internal_syscall7): Rewrite to call `__mips_syscall7'.
36249 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
36250 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
36251 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
36252 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
36253 (sysdep_routines): Add libc-do-syscall.
36254 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
36255 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
36256
36257 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36258
36259 [BZ #21672]
36260 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
36261 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
36262 (advise_stack_range): New function.
36263 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
36264 stack non required to advise_stack_range at allocatestack.c
36265
36266 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
36267
36268 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
36269
36270 2017-08-29 Florian Weimer <fweimer@redhat.com>
36271
36272 [BZ #22026]
36273 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
36274 __end_fct. Mangle __end_fct after setting it to NULL.
36275 * iconv/Makefile (tests): Add tst-gconv-init-failure.
36276 (modules-names, modules-names-tests): Add
36277 tst-gconv-init-failure-mod.
36278 (gconv-modules): New target.
36279 (tst-gconv-init-failure-mod.so): Link against libsupport.
36280 (tst-gconv-init-failure): Depend on gconv-modules,
36281 tst-gconv-init-failure-mod.so.
36282 * iconv/tst-gconv-init-failure-mod.c: New file.
36283 * iconv/tst-gconv-init-failure.c: Likewise.
36284 * iconv/test-gconv-modules: Likewise.
36285
36286 2017-08-29 Florian Weimer <fweimer@redhat.com>
36287
36288 [BZ #22025]
36289 * iconv/gconv_db.c (free_derivation): Remove redundant
36290 parentheses.
36291 (gen_steps): Unconditionally mangle __btowc_fct after
36292 initialization.
36293 (increment_counter): Likewise. Do not call init_fct for internal
36294 modules.
36295
36296 2017-08-29 Joseph Myers <joseph@codesourcery.com>
36297
36298 [BZ #22028]
36299 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
36300 (_MSUF_): Remove macro.
36301 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
36302 Likewise.
36303 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
36304 (__REDIRFROM_X): New macro.
36305 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
36306 Likewise.
36307 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
36308 (__REDIRTO_X): Likewise.
36309 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
36310 arguments.
36311 (__MATH_REDIRCALL_2): Likewise.
36312 (__MATH_REDIRCALL_INTERNAL): Likewise.
36313 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
36314 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
36315 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
36316 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
36317 * math/test-finite-macros.c: New file.
36318 * math/Makefile (tests): Add test-finite-macros.
36319 (CFLAGS-test-finite-macros.c): New variable.
36320
36321 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
36322 Jeff Law <law@redhat.com>
36323
36324 [BZ #22025]
36325 Mangle NULL pointers in iconv/gconv.
36326 * iconv/gconv_cache.c (find_module): Demangle init_fct before
36327 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
36328 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
36329 is non-NULL before demangling the end_fct. Check for NULL
36330 end_fct after demangling.
36331 (__gconv_release_step): Demangle the end_fct before checking
36332 it for NULL. Remove assert on __shlibc_handle != NULL.
36333 (gen_steps): Don't check btowc_fct for NULL before mangling.
36334 Demangle init_fct before checking for NULL.
36335 (increment_counter): Likewise.
36336 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
36337 end_fct for NULL before mangling.
36338 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
36339 for NULL.
36340
36341 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
36342
36343 [BZ #21971]
36344 * locale/iso-639.def: add Morisyen.
36345
36346 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36347
36348 [BZ #21930]
36349 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
36350 (iszero): New C++ implementation that does not use
36351 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
36352 signaling nans are enabled, since __builtin_types_compatible_p
36353 is a C-only feature.
36354 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
36355 defined, include ieee754_float128.h for access to the union and
36356 member ieee854_float128.ieee.
36357 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
36358 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
36359 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36360 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
36361 options of test-math-zero on powerpc64le.
36362
36363 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
36364
36365 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
36366 Change double to float.
36367
36368 2017-08-28 Joseph Myers <joseph@codesourcery.com>
36369
36370 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
36371 unconditional.
36372 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
36373 conditional code; define contents only for [LIBM_SVID_COMPAT].
36374
36375 2017-08-28 Florian Weimer <fweimer@redhat.com>
36376
36377 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
36378 (abi-lp64_be-options): Remove.
36379 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
36380 (abi-hard-options): Likewise.
36381 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
36382 (abi-o32_hard-options, abi-o32_soft_2008-options)
36383 (abi-o32_hard_2008-options, abi-n32_soft-options)
36384 (abi-n32_hard-options, abi-n32_soft_2008-options)
36385 (abi-n32_hard_2008-options, abi-n64_soft-options)
36386 (abi-n64_hard-options, abi-n64_soft_2008-options)
36387 (abi-n64_hard_2008-options): Likewise.
36388 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
36389 (abi-64-v1-options, abi-64-v2-options): Likewise.
36390 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
36391 (abi-64-options): Likewise.
36392 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
36393 (abi-64-options): Likewise.
36394 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
36395 (abi-64-options): Likewise.
36396 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
36397 (abi-64-options, abi-x32-options): Likewise.
36398
36399 2017-08-28 Florian Weimer <fweimer@redhat.com>
36400
36401 Store supported list of SYS_* system calls in the source tree.
36402 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
36403 (bits/syscall.h): Generate from list file.
36404 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
36405 [$(subdir) = misc] (tests): Add tst-syscall-list.
36406 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
36407 [$(subdir) = misc] (tst-syscall-list-macros.list)
36408 [$(subdir) = misc] (tst-syscall-list-nr.list)
36409 (tst-syscall-list-sys.list): Helper targets for new
36410 tst-syscall-list test.
36411 [$(subdir) = misc] (tst-syscall-list.out): Run test script
36412 tst-syscall-list.sh.
36413 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
36414 target. Do not include bits/syscall.d.
36415 [$(subdir) = misc] (generated): Do not update.
36416 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
36417 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
36418 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
36419 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
36420
36421 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
36422
36423 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
36424 (tst-cxa_atexit, tst-on_exit): Likewise.
36425 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
36426 tst-cxa_atexit, and tst-on_exit.
36427 * stdlib/tst-atexit-common.c: New file.
36428 * stdlib/tst-atexit.c: New file.
36429 * stdlib/tst-at_quick_exit.c: New file.
36430 * stdlib/tst-cxa_atexit.c: New file.
36431 * stdlib/tst-on_exit.c: New file.
36432
36433 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
36434
36435 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
36436 * mach/stack_chk_fail_local.c: New file.
36437 * hurd/stack_chk_fail_local.c: New file.
36438 * mach/Machrules ($(interface-library)-routines): Add
36439 stack_chk_fail_local.
36440 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
36441 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
36442 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
36443 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
36444 * hurd/Makefile (CFLAGS-hurdstartup.o,
36445 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
36446
36447 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
36448
36449 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
36450 (index_cpu_*, index_arch_*): Removed.
36451
36452 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
36453
36454 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
36455 Use uint64_t instead of unsigned long.
36456
36457 2017-08-25 Joseph Myers <joseph@codesourcery.com>
36458
36459 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
36460 [__HAVE_DISTINCT_FLOAT128].
36461
36462 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
36463 of <bits/math-finite.h>.
36464 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
36465 inclusion of <bits/math-finite.h>.
36466 * math/bits/math-finite.h (__REDIRTO_X): Do not define
36467 conditionally on [__MATH_DECLARING_LDOUBLE && defined
36468 __NO_LONG_DOUBLE_MATH].
36469 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
36470 (__MATH_REDIRCALL_2): Likewise.
36471 (__MATH_REDIRCALL_INTERNAL): Likewise.
36472 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
36473 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
36474 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
36475
36476 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
36477 Remove file.
36478 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
36479 Likewise.
36480 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
36481 Likewise.
36482 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
36483 Likewise.
36484 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
36485 Likewise.
36486 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
36487 Likewise.
36488 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36489 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36490 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36491 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36492 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
36493 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
36494 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
36495 w_sqrtf_compat-ppc32.
36496
36497 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36498
36499 * math/math.h [defined __cplusplus] (issignaling): In the long
36500 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
36501 is not defined. Call __issignaling, otherwise.
36502
36503 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36504
36505 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
36506 syscall definitions and replace __builtin_expect with __glibc_likely.
36507 * sysdeps/unix/syscall-template.S: Update comment about cancellable
36508 syscall.
36509 (SYSCALL_CANCELLABLE): Removedefinition
36510 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
36511 definition.
36512 (PSEUDO_END): Likewise.
36513 [IS_IN (libpthread)] (CENABLE): Likewise.
36514 [IS_IN (libpthread)] (CDISABLE): Likewise.
36515 [IS_IN (libc)] (CENABLE): Likewise.
36516 [IS_IN (libc)] (CENABLE): Likewise.
36517 [IS_IN (librt)] (CDISABLE): Likewise.
36518 [IS_IN (librt)] (CDISABLE): Likewise.
36519 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36520 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
36521 definition.
36522 (PSEUDO_END): Likewise.
36523 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
36524 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
36525 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
36526 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
36527 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
36528 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
36529 (CENABLE): Likewise.
36530 (CDISABLE): Likewise.
36531 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36532 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
36533 defintion.
36534 (PSEUDO_END): Likewise.
36535 [IS_IN (libpthread)] (CENABLE): Likewise.
36536 [IS_IN (libpthread)] (CDISABLE): Likewise.
36537 [IS_IN (libc)] (CENABLE): Likewise.
36538 [IS_IN (libc)] (CENABLE): Likewise.
36539 [IS_IN (librt)] (CDISABLE): Likewise.
36540 [IS_IN (librt)] (CDISABLE): Likewise.
36541 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36542 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
36543 definition.
36544 (PSEUDO_END): Likewise.
36545 [IS_IN (libpthread)] (CENABLE): Likewise.
36546 [IS_IN (libpthread)] (CDISABLE): Likewise.
36547 [IS_IN (libc)] (CENABLE): Likewise.
36548 [IS_IN (libc)] (CENABLE): Likewise.
36549 [IS_IN (librt)] (CDISABLE): Likewise.
36550 [IS_IN (librt)] (CDISABLE): Likewise.
36551 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36552 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
36553 definition.
36554 (PSEUDO_END): Likewise.
36555 [IS_IN (libpthread)] (CENABLE): Likewise.
36556 [IS_IN (libpthread)] (CDISABLE): Likewise.
36557 [IS_IN (libc)] (CENABLE): Likewise.
36558 [IS_IN (libc)] (CENABLE): Likewise.
36559 [IS_IN (librt)] (CDISABLE): Likewise.
36560 [IS_IN (librt)] (CDISABLE): Likewise.
36561 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36562 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
36563 definition.
36564 (PSEUDO_END): Likewise.
36565 [IS_IN (libpthread)] (CENABLE): Likewise.
36566 [IS_IN (libpthread)] (CDISABLE): Likewise.
36567 [IS_IN (libc)] (CENABLE): Likewise.
36568 [IS_IN (libc)] (CENABLE): Likewise.
36569 [IS_IN (librt)] (CDISABLE): Likewise.
36570 [IS_IN (librt)] (CDISABLE): Likewise.
36571 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36572 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
36573 definition.
36574 (PSEUDO_END): Likewise.
36575 [IS_IN (libpthread)] (CENABLE): Likewise.
36576 [IS_IN (libpthread)] (CDISABLE): Likewise.
36577 [IS_IN (libc)] (CENABLE): Likewise.
36578 [IS_IN (libc)] (CENABLE): Likewise.
36579 [IS_IN (librt)] (CDISABLE): Likewise.
36580 [IS_IN (librt)] (CDISABLE): Likewise.
36581 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36582 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
36583 definition.
36584 (PSEUDO_END): Likewise.
36585 [IS_IN (libpthread)] (CENABLE): Likewise.
36586 [IS_IN (libpthread)] (CDISABLE): Likewise.
36587 [IS_IN (libc)] (CENABLE): Likewise.
36588 [IS_IN (libc)] (CENABLE): Likewise.
36589 [IS_IN (librt)] (CDISABLE): Likewise.
36590 [IS_IN (librt)] (CDISABLE): Likewise.
36591 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36592 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
36593 Remove definition.
36594 (PSEUDO_END): Likewise.
36595 [IS_IN (libpthread)] (CENABLE): Likewise.
36596 [IS_IN (libpthread)] (CDISABLE): Likewise.
36597 [IS_IN (libc)] (CENABLE): Likewise.
36598 [IS_IN (libc)] (CENABLE): Likewise.
36599 [IS_IN (librt)] (CDISABLE): Likewise.
36600 [IS_IN (librt)] (CDISABLE): Likewise.
36601 (SINGLE_THREAD_P): Likewise.
36602 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
36603 definition.
36604 (PSEUDO_END): Likewise.
36605 [IS_IN (libpthread)] (CENABLE): Likewise.
36606 [IS_IN (libpthread)] (CDISABLE): Likewise.
36607 [IS_IN (libc)] (CENABLE): Likewise.
36608 [IS_IN (libc)] (CENABLE): Likewise.
36609 [IS_IN (librt)] (CDISABLE): Likewise.
36610 [IS_IN (librt)] (CDISABLE): Likewise.
36611 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36612 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
36613 definition.
36614 (PSEUDO_END): Likewise.
36615 [IS_IN (libpthread)] (CENABLE): Likewise.
36616 [IS_IN (libpthread)] (CDISABLE): Likewise.
36617 [IS_IN (libc)] (CENABLE): Likewise.
36618 [IS_IN (libc)] (CENABLE): Likewise.
36619 [IS_IN (librt)] (CDISABLE): Likewise.
36620 [IS_IN (librt)] (CDISABLE): Likewise.
36621 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36622 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
36623 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
36624 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
36625 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
36626 definition.
36627 (PSEUDO_END): Likewise.
36628 [IS_IN (libpthread)] (CENABLE): Likewise.
36629 [IS_IN (libpthread)] (CDISABLE): Likewise.
36630 [IS_IN (libc)] (CENABLE): Likewise.
36631 [IS_IN (libc)] (CENABLE): Likewise.
36632 [IS_IN (librt)] (CDISABLE): Likewise.
36633 [IS_IN (librt)] (CDISABLE): Likewise.
36634 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36635 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
36636 definition.
36637 (PSEUDO_END): Likewise.
36638 [IS_IN (libpthread)] (CENABLE): Likewise.
36639 [IS_IN (libpthread)] (CDISABLE): Likewise.
36640 [IS_IN (libc)] (CENABLE): Likewise.
36641 [IS_IN (libc)] (CENABLE): Likewise.
36642 [IS_IN (librt)] (CDISABLE): Likewise.
36643 [IS_IN (librt)] (CDISABLE): Likewise.
36644 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36645 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
36646 definition.
36647 (PSEUDO_END): Likewise.
36648 [IS_IN (libpthread)] (CENABLE): Likewise.
36649 [IS_IN (libpthread)] (CDISABLE): Likewise.
36650 [IS_IN (libc)] (CENABLE): Likewise.
36651 [IS_IN (libc)] (CENABLE): Likewise.
36652 [IS_IN (librt)] (CDISABLE): Likewise.
36653 [IS_IN (librt)] (CDISABLE): Likewise.
36654 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36655 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
36656 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
36657 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
36658 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
36659 definition.
36660 (PSEUDO_END): Likewise.
36661 [IS_IN (libpthread)] (CENABLE): Likewise.
36662 [IS_IN (libpthread)] (CDISABLE): Likewise.
36663 [IS_IN (libc)] (CENABLE): Likewise.
36664 [IS_IN (libc)] (CENABLE): Likewise.
36665 [IS_IN (librt)] (CDISABLE): Likewise.
36666 [IS_IN (librt)] (CDISABLE): Likewise.
36667 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36668 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
36669 definition.
36670 (PSEUDO_END): Likewise.
36671 [IS_IN (libpthread)] (CENABLE): Likewise.
36672 [IS_IN (libpthread)] (CDISABLE): Likewise.
36673 [IS_IN (libc)] (CENABLE): Likewise.
36674 [IS_IN (libc)] (CENABLE): Likewise.
36675 [IS_IN (librt)] (CDISABLE): Likewise.
36676 [IS_IN (librt)] (CDISABLE): Likewise.
36677 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36678
36679 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
36680
36681 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
36682
36683 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36684
36685 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
36686
36687 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36688
36689 [BZ #21982]
36690 * string/stratcliff.c (do_test): Declare size, nchars, inner,
36691 middle and outer with size_t instead of int. Repleace %d and
36692 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
36693 "MAX (outer, nchars - 64)" to support unsigned outer and
36694 nchars. Also exit loop when outer == 0.
36695
36696 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36697
36698 * include/fcntl.h (__fcntl_nocancel): Remove definition.
36699 * include/signal.h (__sigsuspend_nocancel): Likewise.
36700 * include/time.h (__nanosleep_nocancel): Likewise.
36701 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
36702 * login/utmp_file.c: Include non cancellable syscall header.
36703 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
36704 prototype.
36705
36706 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36707
36708 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
36709 .byte sequences with AVX512F instructions.
36710 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
36711 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
36712 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
36713 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
36714 Likewise.
36715 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
36716 Likewise.
36717
36718 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
36719 Steve Ellcey <sellcey@cavium.com>
36720
36721 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
36722 Use PTR_REG macro in cmp instruction.
36723
36724 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36725
36726 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
36727 Change the return type of the ifunc resolver to match the return
36728 type of the target function.
36729
36730 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36731
36732 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
36733 (preadv64): Likewise.
36734 (pwrite64(: Likewise.
36735 (pwritev64): Likewise.
36736
36737 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
36738 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
36739 (LOAD_ARGS_0): Likewise.
36740 (LOAD_ARGS_1): Likewise.
36741 (LOAD_ARGS_2): Likewise.
36742 (LOAD_ARGS_3): Likewise.
36743 (LOAD_ARGS_4): Likewise.
36744 (LOAD_ARGS_5): Likewise.
36745 (LOAD_ARGS_6): Likewise.
36746 (LOAD_REGS_0): Likewise.
36747 (LOAD_REGS_1): Likewise.
36748 (LOAD_REGS_2): Likewise.
36749 (LOAD_REGS_3): Likewise.
36750 (LOAD_REGS_4): Likewise.
36751 (LOAD_REGS_5): Likewise.
36752 (LOAD_REGS_6): Likewise.
36753 (ASM_ARGS_0): Likewise.
36754 (ASM_ARGS_1): Likewise.
36755 (ASM_ARGS_2): Likewise.
36756 (ASM_ARGS_3): Likewise.
36757 (ASM_ARGS_4): Likewise.
36758 (ASM_ARGS_5): Likewise.
36759 (ASM_ARGS_6): Likewise.
36760 (LOAD_ARGS_TYPES_1): Likewise.
36761 (LOAD_ARGS_TYPES_2): Likewise.
36762 (LOAD_ARGS_TYPES_3): Likewise.
36763 (LOAD_ARGS_TYPES_4): Likewise.
36764 (LOAD_ARGS_TYPES_5): Likewise.
36765 (LOAD_ARGS_TYPES_6): Likewise.
36766 (LOAD_REGS_TYPES_1): Likewise.
36767 (LOAD_REGS_TYPES_2): Likewise.
36768 (LOAD_REGS_TYPES_3): Likewise.
36769 (LOAD_REGS_TYPES_4): Likewise.
36770 (LOAD_REGS_TYPES_5): Likewise.
36771 (LOAD_REGS_TYPES_6): Likewise.
36772 (TYPEFY): New define.
36773 (ARGIFY): Likewise.
36774 (internal_syscall0): Likewise.
36775 (internal_syscall1): Likewise.
36776 (internal_syscall2): Likewise.
36777 (internal_syscall3): Likewise.
36778 (internal_syscall4): Likewise.
36779 (internal_syscall5): Likewise.
36780 (internal_syscall6): Likewise.
36781 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
36782 (INTERNAL_SYSCALL_NCS): Remove define.
36783 (internal_syscall1): Add define.
36784
36785 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36786
36787 * math/w_remainder_compat.c: Remove duplicate inclusion of
36788 math-svid-compat.h.
36789 * math/w_remainderf_compat.c: Likewise.
36790 * math/w_remainderl_compat.c: Likewise.
36791
36792 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36793
36794 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36795
36796 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36797
36798 [BZ #21684]
36799 * math/tgmath.h (__floating_type): Simplify definitions.
36800 (__real_integer_type): New macro.
36801 (__complex_integer_type): Likewise.
36802 (__expr_is_real): Likewise.
36803 (__tgmath_real_type_sub): Update comment to describe handling of
36804 complex types.
36805 (__tgmath_complex_type_sub): New macro.
36806 (__tgmath_complex_type): Likewise.
36807 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36808 (__TGMATH_CF128): Use __expr_is_real.
36809 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
36810 __expr_is_real.
36811 (__TGMATH_BINARY_REAL_IMAG): Likewise.
36812 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
36813 * math/gen-tgmath-tests.py (Type.create_type): Create complex
36814 integer types.
36815
36816 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36817
36818 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
36819 macro.
36820 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
36821 alias.
36822 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
36823 Likewise.
36824
36825 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
36826 nanosleep_not_cancel with __nanosleep_nocancel.
36827 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
36828 (__nanosleep_nocancel): New macro.
36829 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
36830 function.
36831 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
36832 macro.
36833 (__nanosleep_nocancel): New prototype.
36834
36835 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
36836 pause_not_cancel with __pause_nocancel.
36837 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
36838 (__pause_nocancel): New macro.
36839 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
36840 macro.
36841 (__pause_nocancel): New prototype.
36842 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
36843
36844 2017-08-22 Martin Sebor <msebor@redhat.com>
36845
36846 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
36847 to return a pointer to the same type as the target function.
36848
36849 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36850
36851 [BZ #18822]
36852 [BZ #21986]
36853 * include/printf.h (__printf_fphex): Add attribute_hidden.
36854 (__guess_grouping): New prototype.
36855 * stdio-common/printf_fp.c (__guess_grouping): Removed.
36856 * stdio-common/reg-printf.c (__register_printf_specifier): Add
36857 libc_hidden_proto and libc_hidden_def.
36858 * stdlib/strfmon_l.c (__guess_grouping): Removed.
36859 (__vstrfmon_l): Remove the third argument passed to
36860 __guess_grouping.
36861
36862 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36863
36864 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
36865 definition for issignaling that does not rely on __MATH_TG,
36866 since __MATH_TG uses __builtin_types_compatible_p, which is only
36867 available in C mode.
36868 (CFLAGS-test-math-issignaling.cc): New variable.
36869 * math/Makefile [CXX] (tests): Add test-math-issignaling.
36870 * math/test-math-issignaling.cc: New test for C++ implementation
36871 of type-generic issignaling.
36872 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36873 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
36874 options of test-math-issignaling on powerpc64le.
36875
36876 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36877
36878 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36879 building libc.a.
36880 (hidden_proto): Likewise.
36881 (hidden_tls_proto): Likewise.
36882 (__hidden_proto): Likewise.
36883
36884 2017-08-22 Florian Weimer <fweimer@redhat.com>
36885
36886 math: Statically link tests of internal functionality.
36887 * math/Makefile (tests): Remove atest-exp, atest-sincos,
36888 atest-exp2.
36889 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
36890 (gmp-objs): Remove assignment.
36891 (atest-exp, atest-sincos, atest-exp2): Remove targets.
36892
36893 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36894
36895 [BZ #21987]
36896 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
36897 and copy to ...
36898 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
36899 ... here.
36900 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
36901 ... and here.
36902
36903 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
36904 variable definitions above inclusion of ../Rules.
36905
36906 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36907
36908 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
36909 case calling __builtin_unreachable.
36910
36911 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36912
36913 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
36914 __waitpid_nocancel.
36915 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
36916 (__waitpid_nocancel): New macro.
36917 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
36918 macro.
36919 (__waitpid_nocancel): Replace macro with a function.
36920 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36921 function.
36922
36923 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36924 __fcntl_nocancel.
36925 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36926 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36927
36928 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36929 __writev_nocancel_nostatus.
36930 (write_call_graph): Likewise.
36931 (write_bb_counts): Likewise.
36932 * resolv/herror.c (herror): Likewise.
36933 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36934 macro.
36935 (__writev_nocancel_nostatus): New macro.
36936 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36937 Remove macro.
36938 (__writev_nocancel_nostatus): New function.
36939
36940 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36941
36942 Revert:
36943 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36944
36945 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36946 building libc.a.
36947 (hidden_proto): Likewise.
36948 (hidden_tls_proto): Likewise.
36949 (__hidden_proto): Likewise.
36950
36951 [BZ #21973]
36952 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36953 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36954 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36955 Likewise.
36956 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36957 Likewise.
36958 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36959 Likewise.
36960 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36961 Likewise.
36962 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36963 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36964 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36965 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36966 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36967 GLIBC_2.0 sqrtl symbol.
36968
36969 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36970 [__USE_MISC] (_LIB_VERSION): Likewise.
36971 [__USE_MISC] (struct exception): Likewise.
36972 [__USE_MISC] (matherr): Likewise.
36973 [__USE_MISC] (DOMAIN): Likewise.
36974 [__USE_MISC] (SING): Likewise.
36975 [__USE_MISC] (OVERFLOW): Likewise.
36976 [__USE_MISC] (UNDERFLOW): Likewise.
36977 [__USE_MISC] (TLOSS): Likewise.
36978 [__USE_MISC] (PLOSS): Likewise.
36979 [__USE_MISC] (HUGE): Likewise.
36980 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36981 * math/math-svid-compat.h: New file.
36982 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36983 and matherrl.
36984 * include/math.h [!_ISOMAC] (__matherr): Remove.
36985 * manual/arith.texi (FP Exceptions): Do not document matherr.
36986 * math/Makefile (tests): Change test-matherr to test-matherr-3.
36987 (tests-internal): New variable.
36988 (install-lib): Do not add libieee.a.
36989 (non-lib.a): Likewise.
36990 (extra-objs): Do not add libieee.a and ieee-math.o.
36991 (CPPFLAGS-s_lib_version.c): Remove variable.
36992 ($(objpfx)libieee.a): Remove rule.
36993 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36994 * math/ieee-math.c: Remove.
36995 * math/libm-test-support.c (matherr): Remove.
36996 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
36997 and license notices. Include <math-svid-compat.h> and
36998 <shlib-compat.h>.
36999 (matherr): Undefine as macro. Use compat_symbol_reference.
37000 (_LIB_VERSION): Likewise.
37001 * math/test-matherr-2.c: New file.
37002 * math/test-matherr-3.c: Likewise.
37003 * sysdeps/generic/math_private.h (__kernel_standard): Remove
37004 declaration.
37005 (__kernel_standard_f): Likewise.
37006 (__kernel_standard_l): Likewise.
37007 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
37008 <math_private.h>. Include <math-svid-compat.h>.
37009 (_LIB_VERSION): Undefine as macro.
37010 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
37011 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
37012 [LIBM_SVID_COMPAT], use compat_symbol.
37013 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
37014 <math_private.h>. Include <math-svid-compat.h>.
37015 (matherr): Undefine as macro.
37016 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
37017 compat_symbol.
37018 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
37019 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
37020 compat_symbol_reference.
37021 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
37022 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
37023 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
37024 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
37025 (MATHERR_D): Remove declaration.
37026 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
37027 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
37028 [LIBM_BUILD] (pmatherrf): Likewise.
37029 [LIBM_BUILD] (pmatherr): Likewise.
37030 [LIBM_BUILD] (pmatherrl): Likewise.
37031 (DOMAIN): Likewise.
37032 (SING): Likewise.
37033 (OVERFLOW): Likewise.
37034 (UNDERFLOW): Likewise.
37035 (TLOSS): Likewise.
37036 (PLOSS): Likewise.
37037 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
37038 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
37039 compat_symbol.
37040 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
37041 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
37042 compat_symbol.
37043 * math/lgamma-compat.h: Include <math-svid-compat.h>.
37044 * math/w_acos_compat.c: Likewise.
37045 * math/w_acosf_compat.c: Likewise.
37046 * math/w_acosh_compat.c: Likewise.
37047 * math/w_acoshf_compat.c: Likewise.
37048 * math/w_acoshl_compat.c: Likewise.
37049 * math/w_acosl_compat.c: Likewise.
37050 * math/w_asin_compat.c: Likewise.
37051 * math/w_asinf_compat.c: Likewise.
37052 * math/w_asinl_compat.c: Likewise.
37053 * math/w_atan2_compat.c: Likewise.
37054 * math/w_atan2f_compat.c: Likewise.
37055 * math/w_atan2l_compat.c: Likewise.
37056 * math/w_atanh_compat.c: Likewise.
37057 * math/w_atanhf_compat.c: Likewise.
37058 * math/w_atanhl_compat.c: Likewise.
37059 * math/w_cosh_compat.c: Likewise.
37060 * math/w_coshf_compat.c: Likewise.
37061 * math/w_coshl_compat.c: Likewise.
37062 * math/w_exp10_compat.c: Likewise.
37063 * math/w_exp10f_compat.c: Likewise.
37064 * math/w_exp10l_compat.c: Likewise.
37065 * math/w_exp2_compat.c: Likewise.
37066 * math/w_exp2f_compat.c: Likewise.
37067 * math/w_exp2l_compat.c: Likewise.
37068 * math/w_fmod_compat.c: Likewise.
37069 * math/w_fmodf_compat.c: Likewise.
37070 * math/w_fmodl_compat.c: Likewise.
37071 * math/w_hypot_compat.c: Likewise.
37072 * math/w_hypotf_compat.c: Likewise.
37073 * math/w_hypotl_compat.c: Likewise.
37074 * math/w_j0_compat.c: Likewise.
37075 * math/w_j0f_compat.c: Likewise.
37076 * math/w_j0l_compat.c: Likewise.
37077 * math/w_j1_compat.c: Likewise.
37078 * math/w_j1f_compat.c: Likewise.
37079 * math/w_j1l_compat.c: Likewise.
37080 * math/w_jn_compat.c: Likewise.
37081 * math/w_jnf_compat.c: Likewise.
37082 * math/w_jnl_compat.c: Likewise.
37083 * math/w_lgamma_main.c: Likewise.
37084 * math/w_lgamma_r_compat.c: Likewise.
37085 * math/w_lgammaf_main.c: Likewise.
37086 * math/w_lgammaf_r_compat.c: Likewise.
37087 * math/w_lgammal_main.c: Likewise.
37088 * math/w_lgammal_r_compat.c: Likewise.
37089 * math/w_log10_compat.c: Likewise.
37090 * math/w_log10f_compat.c: Likewise.
37091 * math/w_log10l_compat.c: Likewise.
37092 * math/w_log2_compat.c: Likewise.
37093 * math/w_log2f_compat.c: Likewise.
37094 * math/w_log2l_compat.c: Likewise.
37095 * math/w_log_compat.c: Likewise.
37096 * math/w_logf_compat.c: Likewise.
37097 * math/w_logl_compat.c: Likewise.
37098 * math/w_pow_compat.c: Likewise.
37099 * math/w_powf_compat.c: Likewise.
37100 * math/w_powl_compat.c: Likewise.
37101 * math/w_remainder_compat.c: Likewise.
37102 * math/w_remainderf_compat.c: Likewise.
37103 * math/w_remainderl_compat.c: Likewise.
37104 * math/w_scalb_compat.c: Likewise.
37105 * math/w_scalbf_compat.c: Likewise.
37106 * math/w_scalbl_compat.c: Likewise.
37107 * math/w_sinh_compat.c: Likewise.
37108 * math/w_sinhf_compat.c: Likewise.
37109 * math/w_sinhl_compat.c: Likewise.
37110 * math/w_sqrt_compat.c: Likewise.
37111 * math/w_sqrtf_compat.c: Likewise.
37112 * math/w_sqrtl_compat.c: Likewise.
37113 * math/w_tgamma_compat.c: Likewise.
37114 * math/w_tgammaf_compat.c: Likewise.
37115 * math/w_tgammal_compat.c: Likewise.
37116 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
37117 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
37118 * sysdeps/ieee754/k_standard.c: Likewise.
37119 * sysdeps/ieee754/k_standardf.c: Likewise.
37120 * sysdeps/ieee754/k_standardl.c: Likewise.
37121 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
37122 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
37123 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
37124 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
37125 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
37126 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
37127 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
37128 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
37129 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
37130 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
37131 Likewise.
37132 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
37133 Likewise.
37134 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
37135 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
37136 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
37137 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
37138
37139 2017-08-21 Florian Weimer <fweimer@redhat.com>
37140
37141 [BZ #21864]
37142 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
37143 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
37144 Move before inclusion of ../Rules.
37145
37146 2017-08-21 Florian Weimer <fweimer@redhat.com>
37147
37148 [BZ #21972]
37149 * assert/assert.h (assert): Use static_cast (bool) for C++.
37150 Use the ternary operator in the warning branch for GNU C.
37151 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
37152 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
37153 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
37154 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
37155 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
37156
37157 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37158
37159 [BZ #18822]
37160 * sysdeps/unix/sysv/linux/x86_64/init-first.c
37161 (__syscall_clock_gettime): Add attribute_hidden.
37162 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
37163 (__start_context): Likewise.
37164
37165 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37166
37167 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
37168 building libc.a.
37169 (hidden_proto): Likewise.
37170 (hidden_tls_proto): Likewise.
37171 (__hidden_proto): Likewise.
37172
37173 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37174
37175 * include/libc-symbols.h (attribute_hidden): Enable hidden
37176 visibility in libc.a compiled with PIE.
37177
37178 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37179
37180 [BZ #18822]
37181 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
37182 Add attribute_hidden.
37183
37184 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37185
37186 [BZ #21864]
37187 * Makerules (all-nonlib): Add $(others-extras).
37188 * catgets/Makefile (others-extras): New.
37189 * elf/Makefile (others-extras): Likewise.
37190 * nss/Makefile (others-extras): Likewise.
37191
37192 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37193
37194 [BZ #18822]
37195 * csu/libc-start.c (__libc_multiple_libcs): Removed.
37196 * elf/dl-open.c: Include <libc-internal.h>.
37197 (__libc_multiple_libcs): Removed.
37198 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
37199 <hp-timing.h>.
37200 * include/libc-internal.h (__libc_multiple_libcs): New.
37201 * misc/sbrk.c: Include <libc-internal.h>.
37202 (__libc_multiple_libcs): Removed.
37203
37204 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37205
37206 [BZ #18822]
37207 * grp/initgroups.c (__nss_group_database): Removed.
37208 (__nss_initgroups_database): Likewise.
37209 * nscd/gai.c (__nss_hosts_database): Likewise.
37210 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
37211 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
37212 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
37213 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
37214 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
37215 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
37216 attribute_hidden.
37217 * nss/nsswitch.c (__nss_database_custom): Define only if
37218 USE_NSCD is defined.
37219 (__nss_configure_lookup): Use __nss_database_custom only if
37220 USE_NSCD is defined.
37221 * nss/nsswitch.h (__nss_database_custom): Declare only if
37222 USE_NSCD is defined. Add attribute_hidden.
37223 (__nss_setent): Add attribute_hidden.
37224 (__nss_endent): Likewise.
37225 (__nss_getent_r): Likewise.
37226 (__nss_getent): Likewise.
37227 (DEFINE_DATABASE): Declare __nss_##arg##_database.
37228
37229 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
37230
37231 [BZ #18822]
37232 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
37233 libc_hidden_proto and libc_hidden_def.
37234
37235 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
37236
37237 [BZ #18822]
37238 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
37239 Add libc_hidden_proto.
37240 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
37241 Add libc_hidden_def.
37242
37243 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
37244
37245 [BZ #21974]
37246 * gmon/Makefile (routines): Remove bb_init_func and
37247 bb_exit_func.
37248 (elide-routines.os): Removed.
37249 * gmon/bb_exit_func.c: Likewise.
37250 * gmon/bb_init_func.c: Likewise.
37251 * include/sys/gmon.h (__bb): Likewise.
37252 (__bb_init_func): Likewise.
37253 (__bb_exit_func): Likewise.
37254 * sysdeps/alpha/bb_init_func.S: Likewise.
37255
37256 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
37257
37258 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
37259 * include/setjmp.h (____longjmp_chk): Here. Add
37260 attribute_hidden.
37261
37262 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
37263
37264 [BZ #18822]
37265 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
37266 attribute_hidden.
37267 (__strspn_sse2): Likewise.
37268
37269 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37270
37271 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
37272 (close_not_cancel_no_status): Likewise.
37273 (__close_nocancel): New macro.
37274 (__close_nocancel_nostatus): Likewise.
37275 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
37276 macro.
37277 (close_not_cancel): Likewise.
37278 (close_not_cancel_no_status): Likewise.
37279 (__close_nocancel): New prototype.
37280 (__close_nocancel_nostatus): New function.
37281 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
37282 * catgets/open_catalog.c (__open_catalog): Replace
37283 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
37284 * gmon/gmon.c (write_gmon): Likewise.
37285 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37286 * intl/loadmsgcat.c (close): Likewise.
37287 * io/ftw.c (open_dir_stream): Likewise.
37288 (ftw_startup): Likewise.
37289 * libio/fileops.c (_IO_file_open): Likewise.
37290 (_IO_file_close_mmap): Likewise.
37291 (_IO_file_close): Likewise.
37292 * libio/iopopen.c (_IO_dup2): Likewise.
37293 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37294 * locale/loadlocale.c (_nl_load_locale): Likewise.
37295 * login/utmp_file.c (pututline_file): Likewise.
37296 (endutent_file): Likewise.
37297 * misc/daemon.c (daemon): Likewise.
37298 * nscd/nscd_getai.c (__nscd_getai): Likewise.
37299 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
37300 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
37301 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
37302 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
37303 * nscd/nscd_helper.c (open_socket): Likewise.
37304 (__nscd_open_socket): Likewise.
37305 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
37306 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
37307 (__nscd_innetgr): Likewise.
37308 * nss/nss_db/db-open.c (internal_setent): Likewise.
37309 * resolv/res-close.c (__res_iclose): Likewise.
37310 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
37311 * sysdeps/posix/closedir.c (__closedir): Likewise.
37312 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
37313 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37314 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
37315 (opendir_tail): Likewise.
37316 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
37317 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
37318 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
37319 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
37320 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
37321 (gethostid): Likewise.
37322 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
37323 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37324 Likewise.
37325 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
37326 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
37327 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
37328 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
37329 Likewise.
37330 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
37331 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
37332 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
37333 Likewise.
37334 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
37335 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
37336 Likewise.
37337 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
37338 Likewise.
37339 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
37340 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
37341 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
37342 __close_nocancel.
37343
37344 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
37345 (openat_not_cancel_3): Likewise.
37346 (openat64_not_cancel_3): Likewise).
37347 (openat_not_cancel_3): Likewise).
37348 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
37349 macro.
37350 (openat_not_cancel_3): Likewise.
37351 (openat64_not_cancel): Likewise.
37352 (openat64_not_cancel_3): Likewise.
37353 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
37354 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
37355 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
37356 __open{64}_nocancel.
37357 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
37358 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37359 * sysdeps/posix/opendir.c (__opendirat): Likewise.
37360
37361 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
37362
37363 [BZ #18822]
37364 * include/argz.h (__argz_create_sep): New function prototype.
37365 (__argz_append): Likewise.
37366 (__argz_add): Likewise.
37367 (__argz_add_sep): Likewise.
37368 (__argz_delete): Likewise.
37369 (__argz_insert): Likewise.
37370 (__argz_replace): Likewise.
37371 * string/argz.h (__argz_create_sep): Removed.
37372 (__argz_append): Likewise.
37373 (__argz_add): Likewise.
37374 (__argz_add_sep): Likewise.
37375 (__argz_delete): Likewise.
37376 (__argz_insert): Likewise.
37377 (__argz_replace): Likewise.
37378
37379 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
37380
37381 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
37382 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
37383 (GNU_PROPERTY_STACK_SIZE): Likewie.
37384 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
37385 (GNU_PROPERTY_LOPROC): Likewise.
37386 (GNU_PROPERTY_HIPROC): Likewise.
37387 (GNU_PROPERTY_LOUSER): Likewise.
37388 (GNU_PROPERTY_HIUSER): Likewise.
37389 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
37390 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
37391 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
37392 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
37393 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
37394 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
37395 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
37396 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
37397 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
37398 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
37399 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
37400 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
37401 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
37402 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
37403 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
37404 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
37405 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
37406 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
37407 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
37408 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
37409 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
37410 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
37411 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
37412
37413 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37414
37415 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
37416 in C++ mode.
37417
37418 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37419
37420 [BZ #21930]
37421 * math/math.h (isinf): Check if in C or C++ mode before using
37422 __builtin_types_compatible_p, since this is a C mode feature.
37423
37424 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37425
37426 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
37427 (__write_nocancel): New macro.
37428 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
37429 Rewrite as a function prototype.
37430 (write_not_cancel): Remove macro.
37431 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
37432 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
37433 (write_gmon): Likewise.
37434 * libio/fileops.c (_IO_new_file_write): Likewise.
37435 * login/utmp_file.c (pututline_file): Likewise.
37436 (updwtmp_file): Likewise.
37437 * stdio-common/psiginfo.c (psiginfo): Likewise.
37438 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
37439 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
37440 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
37441 Likewise.
37442 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
37443 Likewise.
37444
37445 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
37446 (__read_nocancel): New macro.
37447 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
37448 __read_nocancel.
37449 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
37450 macro.
37451 (__read_nocancel): New prototype.
37452 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
37453 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
37454 with __read_nocancel.
37455 * intl/loadmsgcat.c (read): Likewise.
37456 * libio/fileops.c (_IO_file_read): Likewise.
37457 * locale/loadlocale.c (_nl_load_locale): Likewise.
37458 * login/utmp_file.c (getutent_r_file): Likewise.
37459 (internal_getut_r): Likewise.
37460 (getutline_r_file): Likewise.
37461 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
37462 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
37463 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
37464 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37465 Likewise.
37466 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
37467 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
37468 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
37469 Likewise.
37470 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
37471 Likewise.
37472 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
37473 Likewise.
37474 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
37475 Likewise.
37476 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
37477
37478 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
37479
37480 [BZ #21966]
37481 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
37482 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
37483 usable.
37484
37485 2017-08-17 DJ Delorie <dj@redhat.com>
37486
37487 * bug17079.c: Update to new test harness.
37488 * test-digits-dots.c: Likewise.
37489 * test-netdb.c: Likewise.
37490 * tst-field.c: Likewise.
37491 * tst-nss-getpwent.c: Likewise.
37492 * tst-nss-static.c: Likewise.
37493 * tst-nss-test1.c: Likewise.
37494 * tst-nss-test2.c: Likewise.
37495 * tst-nss-test3.c: Likewise.
37496 * tst-nss-test4.c: Likewise.
37497 * tst-nss-test5.c: Likewise.
37498
37499 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37500
37501 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
37502 (open_not_cancel_2): Likewise.
37503 (open_nocancel): New macro.
37504 (open64_nocancel): Likewise.
37505 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
37506 (open_not_cancel_2): Likewise.
37507 (__open_nocancel): New prototype.
37508 (__open64_nocancel): Likewise.
37509 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
37510 __open_nocancel.
37511 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
37512 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
37513 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
37514 with __open_nocancel.
37515 * csu/check_fds.c (check_one_fd): Likewise.
37516 * gmon/gmon.c (write_gmon): Likewise.
37517 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
37518 * intl/loadmsgcat.c (open): Likewise.
37519 * libio/fileops.c (_IO_file_open): Likewise.
37520 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37521 * locale/loadlocale.c (_nl_load_locale): Likewise.
37522 * login/utmp_file.c (setutent_file): Likewise.
37523 * misc/daemon.c (daemon): Likewise.
37524 * nss/nss_db/db-open.c (internal_setent): Likewise.
37525 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
37526 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
37527 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
37528 (__opendir): Likewise.
37529 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
37530 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
37531 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
37532 (gethostid): Likewise.
37533 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
37534 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37535 Likewise.
37536 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
37537 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
37538 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
37539 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
37540 Likewise.
37541 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
37542 Likewise.
37543 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
37544 Likewise.
37545 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
37546 Likewise.
37547 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
37548 Likewise.
37549 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
37550 Likewise.
37551 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
37552 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
37553
37554 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
37555
37556 * benchtests/bench-skeleton.c (main): Add support for
37557 latency benchmarking.
37558 * benchtests/scripts/bench.py: Add support for latency benchmarking.
37559
37560 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
37561
37562 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
37563 the startup object.
37564
37565 2017-08-17 Florian Weimer <fweimer@redhat.com>
37566
37567 * include/sys/socket.h (__opensock): Remove internal_function.
37568 * socket/opensock.c (__opensock): Likewise.
37569 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
37570
37571 2017-08-16 Joseph Myers <joseph@codesourcery.com>
37572
37573 [BZ #21944]
37574 * signal/bits/types/__sigval_t.h: New file.
37575 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
37576 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
37577 and define sigval_t using __sigval_t.
37578 * include/bits/types/__sigval_t.h: New file.
37579 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
37580 instead of <bits/types/__sigval_t.h>.
37581 (struct sigevent): Use __sigval_t instead of sigval_t.
37582 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
37583 instead of <bits/types/__sigval_t.h>.
37584 (siginfo_t): Use __sigval_t instead of sigval_t.
37585 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
37586 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
37587 (struct sigevent): Use __sigval_t instead of sigval_t.
37588 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
37589 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
37590 (siginfo_t): Use __sigval_t instead of sigval_t.
37591 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
37592
37593 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
37594
37595 * NEWS: Remove "[Add new features here]" for 2.27.
37596
37597 2017-08-16 Joseph Myers <joseph@codesourcery.com>
37598
37599 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
37600 libc.so.
37601
37602 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
37603
37604 * NEWS: Mention x86-64 FMA optimization.
37605
37606 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
37607
37608 [BZ #21912]
37609 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37610 Add e_expf-fma.
37611 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
37612 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
37613 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
37614
37615 2017-08-16 Andreas Schwab <schwab@suse.de>
37616
37617 [BZ #16750]
37618 CVE-2009-5064
37619 * elf/ldd.bash.in: Never run file directly.
37620
37621 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
37622
37623 [BZ #21955]
37624 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
37625 (L(SP_INF_0)): Likewise.
37626
37627 2017-08-15 Florian Weimer <fweimer@redhat.com>
37628
37629 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
37630 run-built-tests.
37631
37632 2017-08-15 Florian Weimer <fweimer@redhat.com>
37633
37634 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
37635 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
37636 BROKEN_THREAD_SIGNALS code.
37637 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
37638 request_list): Remove caller_pid member used for
37639 BROKEN_THREAD_SIGNALS.
37640 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
37641 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
37642 Remove BROKEN_THREAD_SIGNALS support.
37643 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
37644 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
37645
37646 2017-08-15 Florian Weimer <fweimer@redhat.com>
37647
37648 * gmon/Makefile (tests): Add tst-gmon.
37649 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
37650 Set.
37651 (tests-special): Add tst-gmon-prof.out.
37652 (tst-gmon.out): Depend on clean-tst-gmon-data.
37653 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
37654 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
37655 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
37656 startup object.
37657 * aclocal.m4 (GPROF): Set and substitute.
37658 * config.amke.in (GPROF): Set.
37659 * configure: Regenerate.
37660
37661 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
37662
37663 * elf/elf.h A (NT_PPC_TAR): New macro.
37664 (NT_PPC_PPR): Likewise.
37665 (NT_PPC_DSCR): Likewise.
37666 (NT_PPC_EBB): Likewise.
37667 (NT_PPC_PMU): Likewise.
37668 (NT_PPC_TM_CGPR): Likewise.
37669 (NT_PPC_TM_CFPR): Likewise.
37670 (NT_PPC_TM_CVMX): Likewise.
37671 (NT_PPC_TM_CVSX): Likewise.
37672 (NT_PPC_TM_SPR): Likewise.
37673 (NT_PPC_TM_CTAR): Likewise.
37674 (NT_PPC_TM_CPPR): Likewise.
37675 (NT_PPC_TM_CDSCR): Likewise.
37676
37677 2017-08-15 Florian Weimer <fweimer@redhat.com>
37678
37679 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
37680 regparm (2) instead of internal_function.
37681 (_MCOUNT_DECL): Adjust.
37682
37683 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
37684
37685 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
37686 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
37687
37688 2017-08-14 Joseph Myers <joseph@codesourcery.com>
37689
37690 * conform/data/sys/wait.h-data (si_value): Do not expect for
37691 XPG42.
37692
37693 2017-08-14 Florian Weimer <fweimer@redhat.com>
37694
37695 [BZ #21962]
37696 NSS: Create stubs for accidentally exported lookup functions.
37697 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
37698 Remove declaration.
37699 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
37700 (ether_hostton): Call __nss_ethers_lookup2 instead.
37701 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
37702 (ether_ntohost): Call __nss_ethers_lookup2 instead.
37703 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
37704 (setup): Call __nss_netgroup_lookup2 instead.
37705 * nss/Makefile (routines): Add compat-lookup.
37706 * nss/Versions (GLIBC_2.27): Add symbol version.
37707 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
37708 (DB_COMPAT_FCT): Remove.
37709 * nss/compat-lookup.c: New file.
37710 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
37711 from databases.def.
37712 * nss/service-lookup.c (NO_COMPAT): Remove definition.
37713 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
37714 (netname2user): Call __nss_publickey_lookup2 instead.
37715 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
37716 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
37717 instead.
37718
37719 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37720 Sergei Trofimovich <slyfox@inbox.ru>
37721
37722 [BZ #21908]
37723 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
37724 Rename to MMAP2_PAGE_UNIT.
37725 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
37726 __OFF_T_MATCHES_OFF64_T is not defined.
37727 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
37728 uint64_t.
37729 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
37730 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
37731
37732 2017-08-14 Florian Weimer <fweimer@redhat.com>
37733
37734 i386: Do not set internal_function.
37735 * config.h.in (USE_REGPARMS, internal_function): Remove.
37736 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
37737 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
37738
37739 2017-08-14 Florian Weimer <fweimer@redhat.com>
37740
37741 * elf/dl-init.c (_dl_init): Remove internal_function.
37742 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
37743 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
37744
37745 2017-08-14 Florian Weimer <fweimer@redhat.com>
37746
37747 * elf/rtld.c (_dl_start): Remove internal_function.
37748 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
37749 _dl_start.
37750
37751 2017-08-14 Florian Weimer <fweimer@redhat.com>
37752
37753 * elf/dl-fini.c (_dl_fini): Remove internal_function
37754 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
37755
37756 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
37757
37758 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
37759 (bit_cpu_SHSTK): Likewise.
37760 (index_cpu_IBT): Likewise.
37761 (index_cpu_SHSTK): Likewise.
37762 (reg_IBT): Likewise.
37763 (reg_SHSTK): Likewise.
37764 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
37765 Handle index_cpu_IBT and index_cpu_SHSTK.
37766
37767 2017-08-14 Mike FABIAN <mfabian@redhat.com>
37768
37769 [BZ #19982]
37770 * po/fr.po: Fix spelling mistake.
37771
37772 2017-08-13 Florian Weimer <fweimer@redhat.com>
37773
37774 * elf/dl-addr.c (_dl_addr): Remove internal_function.
37775 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
37776 (_dl_catch_error, _dl_receive_error): Likewise.
37777 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
37778 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
37779 (_dl_deallocate_tls): Likewise.
37780 * include/dlfcn.h (_dl_addr): Likewise.
37781 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
37782 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
37783 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
37784 Likewise.
37785
37786 2017-08-13 Florian Weimer <fweimer@redhat.com>
37787
37788 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
37789 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
37790 internal_function.
37791 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
37792
37793 2017-08-13 Florian Weimer <fweimer@redhat.com>
37794
37795 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
37796 internal_function.
37797 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
37798 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
37799 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
37800 internal_function from _dl_make_stack_executable_hook member.
37801 (_dl_make_stack_executable): Remove internal_function.
37802 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
37803 Likewise.
37804 * sysdeps/unix/sysv/linux/dl-execstack.c
37805 (_dl_make_stack_executable): Likewise.
37806
37807 2017-08-13 Florian Weimer <fweimer@redhat.com>
37808
37809 * sysdeps/unix/sysv/linux/netlinkaccess.h
37810 (__netlink_assert_response): Remove internal_function.
37811 * sysdeps/unix/sysv/linux/netlink_assert_response.c
37812 (__netlink_assert_response): Likewise.
37813
37814 2017-08-13 Florian Weimer <fweimer@redhat.com>
37815
37816 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
37817 internal_function.
37818 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
37819
37820 2017-08-13 Florian Weimer <fweimer@redhat.com>
37821
37822 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
37823 internal_function.
37824 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
37825 * inet/netgroup.h (__internal_setnetgrent)
37826 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37827 * inet/getnetgrent_r.c (__internal_setnetgrent)
37828 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37829 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
37830 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
37831 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
37832 * nss/nsswitch.h (db_lookup_function): Likewise.
37833
37834 2017-08-13 Florian Weimer <fweimer@redhat.com>
37835
37836 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
37837 Remove internal_function.
37838 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
37839 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
37840 message argument on the stack.
37841 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
37842 Likeweise.
37843
37844 2017-08-12 Mike FABIAN <mfabian@redhat.com>
37845
37846 Adapt test case data to the changes in the thousands
37847 separators.
37848
37849 [BZ #20756]
37850 * localedata/tst-langinfo.sh: Adapt test case data.
37851 * stdlib/tst-strfmon_l.c: Likewise.
37852 * stdlib/tst-strtod4.c: Likewise.
37853 * stdlib/tst-strtod5i.c: Likewise.
37854
37855 2017-08-11 Florian Weimer <fweimer@redhat.com>
37856
37857 [BZ #21242]
37858 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
37859 Suppress pedantic warning resulting from statement expression.
37860 (__ASSERT_FUNCTION): Add missing __extension__.
37861
37862 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
37863
37864 * benchtests/bench-memmove-large.c: Print output in JSON
37865 format.
37866 * benchtests/bench-memmove.c: Likewise.
37867
37868 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
37869 * benchtests/bench-memchr.c (do_one_test): Likewise.
37870 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
37871 * benchtests/bench-memcpy.c (do_one_test): Likewise.
37872 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
37873 * benchtests/bench-memmove.c (do_one_test): Likewise.
37874 * benchtests/bench-memset-large.c (do_one_test): Likewise.
37875 * benchtests/bench-memset.c (do_one_test): Likewise.
37876 * benchtests/bench-string.h (test_init): Remove memsets.
37877
37878 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37879
37880 * manual/lang.texi
37881 (Computing the Width of an Integer Data Type): Rename section to
37882 "Width of an Integer Type". Remove inaccurate statement regarding
37883 lack of C language facilities for determining width of integer
37884 types, and reorder content to improve flow and context of
37885 discussion.
37886
37887 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37888
37889 * lang.texi (va_copy): Change standard from ISO to C99.
37890 (__va_copy): Add standard and header annotation.
37891 Update description for clarity of origins and current use.
37892
37893 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37894
37895 [BZ #21941]
37896 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
37897 xssqrtqp requires operands to be in Vector Registers
37898 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
37899 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
37900 (__ieee754_sqrtf128): Likewise.
37901
37902 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
37903
37904 * sysdeps/aarch64/memcmp.S (memcmp):
37905 Rewrite of optimized memcmp.
37906
37907 2017-08-10 Florian Weimer <fweimer@redhat.com>
37908
37909 Introduce ld.so exceptions.
37910 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
37911 (_dl_exception_create, _dl_exception_create_format)
37912 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
37913 (_dl_catch_exception): Declare.
37914 (_dl_catch_error): Update comment.
37915 * elf/dl-error-skeleton.c (struct catch): Replace objname,
37916 errstring, malloced members with exception member.
37917 (_dl_out_of_memory): Remove.
37918 (fatal_error): New function, extracted from _dl_signal_error.
37919 (_dl_signal_exception, _dl_signal_cexception): New functions.
37920 (_dl_signal_error): Call _dl_exception_create to allocate an
37921 exception object.
37922 (_dl_catch_exception): New function, based on _dl_catch_error.
37923 (_dl_catch_error): Implement using _dl_catch_exception.
37924 * elf/dl-exception.c: New file.
37925 * elf/Makefile (dl-routines): Add dl-exception.
37926 (elide-routines.os): Likewise.
37927 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37928 _dl_exception_create_format, _dl_exception_free.
37929 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37930 _dl_signal_exception.
37931 * elf/dl-lookup.c (make_string): Remove.
37932 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37933 _dl_signal_cexception, _dl_exception_free.
37934 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37935 _dl_signal_exception.
37936 * elf/dl-sym.c (do_sym): Likewise.
37937 * elf/dl-version.c (make_string): Remove.
37938 (match_symbol): Use _dl_exception_create_format,
37939 _dl_signal_cexception, _dl_exception_free.
37940 (_dl_check_map_versions): Likewise.
37941 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37942 _dl_catch_exception.
37943 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37944 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37945 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37946 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37947 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37948 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37949 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37950 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37951 Likewise.
37952 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37953 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37954 (ld.so): Likewise.
37955 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37956 (ld.so): Likewise.
37957 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37958 Likewise.
37959 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37960 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37961 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37962 Likewise.
37963 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37964 Likewise.
37965 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37966
37967 2017-08-10 Florian Weimer <fweimer@redhat.com>
37968
37969 * inet/net-internal.h (__inet6_scopeid_pton): Remove
37970 attribute_hidden, internal_function.
37971 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37972 internal_function.
37973
37974 2017-08-10 Florian Weimer <fweimer@redhat.com>
37975
37976 * malloc/malloc.c (get_max_fast): Reimplement as an inline
37977 function which calls __builtin_unreachable.
37978
37979 2017-08-10 Mike FABIAN <mfabian@redhat.com>
37980
37981 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37982 Indian monetary formatting
37983 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37984 test cases.
37985
37986 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
37987
37988 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37989 Fix typo in comment.
37990
37991 [BZ #21928]
37992 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37993 PTRACE_SEIZE_DEVEL): Remove.
37994 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37995 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
37996 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
37997 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
37998 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
37999
38000 2017-08-09 Joseph Myers <joseph@codesourcery.com>
38001
38002 * posix/bits/types.h (__qaddr_t): Remove.
38003
38004 [BZ #21457]
38005 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
38006 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
38007 __glibc_reserved1.
38008 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
38009 (ucontext_t): Use __ctx with uc_flags.
38010 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
38011 (__ctxt): Likewise.
38012 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
38013 __glibc_reserved1.
38014 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
38015 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
38016 __glibc_reserved1.
38017 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
38018 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
38019 __glibc_reserved1.
38020 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
38021 macro.
38022 (ucontext_t): Use __ctx with uc_flags.
38023 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
38024 (ucontext_t): Use __ctx with uc_flags.
38025 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
38026 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
38027 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
38028 (ucontext_t): Use __ctx with uc_flags.
38029 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
38030 undefine further down.
38031 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
38032 __glibc_reserved1.
38033 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
38034 undefine further down.
38035 (ucontext_t): Use __ctx with uc_flags.
38036 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
38037 undefine further down.
38038 (ucontext_t): Use __ctx with uc_flags.
38039 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
38040 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
38041 Rename uc_pad to __glibc_reserved1.
38042 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
38043 undefine further down.
38044 (ucontext_t): Use __ctx with uc_flags.
38045 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
38046 further down.
38047 (ucontext_t): Use __ctx with uc_flags.
38048 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
38049 __ctx with uc_flags.
38050 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
38051 (ucontext_t): Use __ctx with uc_flags.
38052 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
38053 __ctx with uc_flags.
38054
38055 2017-08-09 Florian Weimer <fweimer@redhat.com>
38056
38057 [BZ #21932]
38058 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
38059 before early return.
38060
38061 2017-08-09 Andreas Schwab <schwab@suse.de>
38062
38063 [BZ #21041]
38064 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
38065 renamed alias.
38066
38067 [BZ #21041]
38068 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
38069 tst-compat-forwarder.
38070 (modules-names): Add tst-compat-forwarder-mod.
38071 ($(objpfx)tst-compat-forwarder): Depend on
38072 $(objpfx)tst-compat-forwarder-mod.so.
38073 * nptl/tst-compat-forwarder.c: New file.
38074 * nptl/tst-compat-forwarder-mod.c: New file.
38075
38076 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
38077
38078 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
38079 comments.
38080
38081 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
38082 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
38083 memcpy_falkor.
38084 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
38085 Bump.
38086 (__libc_ifunc_impl_list): Add __memcpy_falkor.
38087 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
38088 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
38089 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
38090 Add falkor.
38091 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
38092 New macro.
38093
38094 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
38095
38096 [BZ #759]
38097 * manual/setjmp.texi (getcontex): Document uc_stack value
38098 compatibility differences.
38099
38100 2017-08-08 Joseph Myers <joseph@codesourcery.com>
38101
38102 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
38103 (old_malloc_hook): Likewise.
38104 (old_memalign_hook): Likewise.
38105 (old_realloc_hook): Likewise.
38106 (struct hdr): Likewise.
38107 (flood): Likewise.
38108 (freehook): Likewise.
38109 (mallochook): Likewise.
38110 (memalignhook): Likewise.
38111 (reallochook): Likewise.
38112 (mprobe): Likewise.
38113 * malloc/mtrace.c (mallwatch): Likewise.
38114 (tr_old_free_hook): Likewise.
38115 (tr_old_malloc_hook): Likewise.
38116 (tr_old_realloc_hook): Likewise.
38117 (tr_old_memalign_hook): Likewise.
38118 (tr_where): Likewise.
38119 (lock_and_info): Likewise.
38120 (tr_freehook): Likewise.
38121 (tr_mallochook): Likewise.
38122 (tr_reallochook): Likewise.
38123 (tr_memalignhook): Likewise.
38124 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
38125 * misc/mmap.c (__mmap): Likewise.
38126 * misc/mmap64.c (__mmap64): Likewise.
38127 * misc/mprotect.c (__mprotect): Likewise.
38128 * misc/msync.c (msync): Likewise.
38129 * misc/munmap.c (__munmap): Likewise.
38130 * posix/posix_madvise.c (posix_madvise): Likewise.
38131 * socket/send.c (__send): Likewise.
38132 * socket/sendto.c (__sendto): Likewise.
38133 * socket/setsockopt.c (__setsockopt): Likewise.
38134 * string/memcmp.c (__ptr_t): Remove macro.
38135 (MEMCMP): Use void * instead of ptr_t.
38136 * string/memrchr.c (__ptr_t): Remove macro.
38137 (__memrchr): Use void * instead of ptr_t.
38138 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
38139 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
38140 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
38141 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
38142 * sysdeps/mach/msync.c (msync): Likewise.
38143 * sysdeps/mach/munmap.c (__munmap): Likewise.
38144 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
38145 Likewise.
38146 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
38147 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
38148 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
38149 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
38150 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
38151 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
38152 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
38153 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
38154 Likewise.
38155 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
38156 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
38157 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
38158 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
38159 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
38160 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
38161 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
38162 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
38163 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
38164 Likewise.
38165 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
38166 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
38167 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
38168 (MEMCMP): Use void * instead of ptr_t.
38169 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
38170 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
38171
38172 2017-08-08 Florian Weimer <fweimer@redhat.com>
38173
38174 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
38175 return statement.
38176
38177 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
38178
38179 [BZ #21913]
38180 * csu/libc-tls.c: Include <startup.h> first.
38181 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
38182 * elf/dl-tunables.c: Include <startup.h> first.
38183 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
38184 * sysdeps/generic/startup.h: New file.
38185 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
38186 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
38187 (I386_USE_SYSENTER): New. Defined to 0.
38188
38189 2017-08-08 Andreas Schwab <schwab@suse.de>
38190
38191 [BZ #21041]
38192 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
38193 * nptl/pt-system.c (system): Likewise.
38194
38195 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
38196
38197 [BZ #21780]
38198 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
38199 EOPNOTSUPP.
38200 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
38201 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
38202 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
38203 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
38204 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
38205 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
38206 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
38207
38208 2017-08-07 Joseph Myers <joseph@codesourcery.com>
38209
38210 [BZ #21899]
38211 * bits/sigaction.h (struct sigaction): Define sa_handler and
38212 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
38213 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38214 [__USE_XOPEN_EXTENDED].
38215 (SA_RESTART): Likewise.
38216 (SA_NODEFER): Likewise.
38217 (SA_RESETHAND): Likewise.
38218 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
38219 (struct sigaction): Define sa_handler and sa_sigaction using union
38220 also for [__USE_XOPEN_EXTENDED].
38221 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38222 [__USE_XOPEN_EXTENDED].
38223 (SA_RESTART): Likewise.
38224 (SA_NODEFER): Likewise.
38225 (SA_RESETHAND): Likewise.
38226 * sysdeps/unix/sysv/linux/bits/sigaction.h
38227 (struct sigaction): Define sa_handler and sa_sigaction using union
38228 also for [__USE_XOPEN_EXTENDED].
38229 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38230 [__USE_XOPEN_EXTENDED].
38231 (SA_RESTART): Likewise.
38232 (SA_NODEFER): Likewise.
38233 (SA_RESETHAND): Likewise.
38234 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
38235 (struct sigaction): Define sa_handler and sa_sigaction using union
38236 also for [__USE_XOPEN_EXTENDED].
38237 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38238 [__USE_XOPEN_EXTENDED].
38239 (SA_RESTART): Likewise.
38240 (SA_NODEFER): Likewise.
38241 (SA_RESETHAND): Likewise.
38242 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
38243 (struct sigaction): Define sa_handler and sa_sigaction using union
38244 also for [__USE_XOPEN_EXTENDED].
38245 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38246 [__USE_XOPEN_EXTENDED].
38247 (SA_RESTART): Likewise.
38248 (SA_NODEFER): Likewise.
38249 (SA_RESETHAND): Likewise.
38250 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
38251 (struct sigaction): Define sa_handler and sa_sigaction using union
38252 also for [__USE_XOPEN_EXTENDED].
38253 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38254 [__USE_XOPEN_EXTENDED].
38255 (SA_RESTART): Likewise.
38256 (SA_NODEFER): Likewise.
38257 (SA_RESETHAND): Likewise.
38258 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
38259 (struct sigaction): Define sa_handler and sa_sigaction using union
38260 also for [__USE_XOPEN_EXTENDED].
38261 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38262 [__USE_XOPEN_EXTENDED].
38263 (SA_RESTART): Likewise.
38264 (SA_NODEFER): Likewise.
38265 (SA_RESETHAND): Likewise.
38266 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
38267 (struct sigaction): Define sa_handler and sa_sigaction using union
38268 also for [__USE_XOPEN_EXTENDED].
38269 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38270 [__USE_XOPEN_EXTENDED].
38271 (SA_RESTART): Likewise.
38272 (SA_NODEFER): Likewise. Define directly rather than as alias.
38273 (SA_RESETHAND): Likewise.
38274 (SA_INTERRUPT): Define only for [__USE_MISC].
38275 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
38276 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
38277 [__USE_MISC].
38278 (SA_STACK): Define only for [__USE_MISC].
38279 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
38280 (struct sigaction): Define sa_handler and sa_sigaction using union
38281 also for [__USE_XOPEN_EXTENDED].
38282 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38283 [__USE_XOPEN_EXTENDED].
38284 (SA_RESTART): Likewise.
38285 (SA_NODEFER): Likewise.
38286 (SA_RESETHAND): Likewise.
38287 (SA_NOPTRACE): Define only for [__USE_MISC].
38288
38289 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
38290 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
38291 (struct catalog_info): Likewise.
38292 * inet/htontest.c (lo): Likewise.
38293 (foo): Likewise.
38294 * inet/inet_lnaof.c (inet_lnaof): Likewise.
38295 * inet/inet_net.c (inet_network): Likewise.
38296 * inet/inet_netof.c (inet_netof): Likewise.
38297 * inet/rcmd.c (__ivaliduser): Likewise.
38298 (iruserok): Likewise.
38299 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
38300 * locale/programs/locale-spec.c (locale_special): Likewise.
38301 * nis/nis_findserv.c (struct findserv_req): Likewise.
38302 (__nis_findfastest_with_timeout): Likewise.
38303 * nss/test-netdb.c (test_network): Likewise.
38304 * resolv/inet_neta.c (inet_neta): Likewise.
38305 * resolv/ns_date.c (ns_datetosecs): Likewise.
38306 (SECS_PER_DAY): Likewise.
38307 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
38308 Likewise.
38309 * resolv/res_comp.c (__putlong): Likewise.
38310 (__putshort): Likewise.
38311 (_getlong): Likewise.
38312 (_getshort): Likewise.
38313 * resolv/res_debug.c (p_time): Likewise.
38314 (precsize_ntoa): Likewise.
38315 (precsize_aton): Likewise.
38316 (latlon2ul): Likewise.
38317 (loc_aton): Likewise.
38318 (loc_ntoa): Likewise.
38319 * resolv/res_hconf.c (struct netaddr): Likewise.
38320 (_res_hconf_reorder_addrs): Likewise.
38321 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
38322 (clnttcp_control): Likewise.
38323 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
38324 (clntudp_control): Likewise.
38325 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
38326 (clntunix_control): Likewise.
38327 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
38328 * sunrpc/rpc/auth.h (union des_block): Likewise.
38329 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
38330 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
38331 (xdrrec_create): Likewise.
38332 (xdrrec_endofrecord): Likewise.
38333 (flush_out): Likewise.
38334 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
38335 (xdrstdio_putlong): Likewise.
38336 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
38337 Likewise.
38338
38339 * misc/sys/cdefs.h (__long_double_t): Remove.
38340 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
38341 instead of __long_double_t,
38342 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
38343
38344 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
38345
38346 * benchtests/scripts/compare_strings.py: Avoid display error when
38347 running on a text terminal.
38348
38349 * benchtests/scripts/compare_strings.py (main): Add an
38350 optional -base option.
38351 (process_results): New argument base_func.
38352
38353 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
38354 hardcoding memcpy.
38355 * benchtests/bench-memcpy-large.c (test_name): Likewise.
38356 * benchtests/bench-memcpy-random.c (test_name): Likewise.
38357
38358 2017-08-07 Andreas Schwab <schwab@suse.de>
38359
38360 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
38361 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
38362 * intl/Makefile ($(objpfx)tst-gettext.out)
38363 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
38364 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
38365 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
38366 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
38367 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
38368 * posix/Makefile ($(objpfx)globtest.out)
38369 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
38370 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
38371 ($(objpfx)tst-printf.out): Likewise.
38372 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
38373 ($(objpfx)tst-setcontext3.out): Likewise.
38374
38375 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
38376
38377 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38378 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
38379 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
38380 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
38381 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
38382 and mptan-fma.
38383 (CFLAGS-doasin-fma.c): New.
38384 (CFLAGS-dosincos-fma.c): Likewise.
38385 (CFLAGS-e_asin-fma.c): Likewise.
38386 (CFLAGS-e_atan2-fma.c): Likewise.
38387 (CFLAGS-e_exp-fma.c): Likewise.
38388 (CFLAGS-e_log-fma.c): Likewise.
38389 (CFLAGS-e_pow-fma.c): Likewise.
38390 (CFLAGS-halfulp-fma.c): Likewise.
38391 (CFLAGS-mpa-fma.c): Likewise.
38392 (CFLAGS-mpatan-fma.c): Likewise.
38393 (CFLAGS-mpatan2-fma.c): Likewise.
38394 (CFLAGS-mpexp-fma.c): Likewise.
38395 (CFLAGS-mplog-fma.c): Likewise.
38396 (CFLAGS-mpsqrt-fma.c): Likewise.
38397 (CFLAGS-mptan-fma.c): Likewise.
38398 (CFLAGS-s_atan-fma.c): Likewise.
38399 (CFLAGS-sincos32-fma.c): Likewise.
38400 (CFLAGS-slowexp-fma.c): Likewise.
38401 (CFLAGS-slowpow-fma.c): Likewise.
38402 (CFLAGS-s_sin-fma.c): Likewise.
38403 (CFLAGS-s_tan-fma.c): Likewise.
38404 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
38405 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
38406 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
38407 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
38408 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
38409 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
38410 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
38411 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
38412 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
38413 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
38414 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
38415 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
38416 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
38417 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
38418 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
38419 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
38420 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
38421 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
38422 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
38423 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
38424 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
38425 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
38426 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
38427 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
38428 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
38429 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
38430 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
38431 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
38432 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
38433 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
38434 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
38435
38436 2017-08-04 Joseph Myers <joseph@codesourcery.com>
38437
38438 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
38439 (min_of_type_f): New macro.
38440 (min_of_type_): Likewise.
38441 (min_of_type_l): Likewise.
38442 (min_of_type_f128): Likewise.
38443 (min_of_type): Define using __MATH_TG and taking an expression
38444 argument.
38445 (math_check_force_underflow): Pass expression instead of type to
38446 min_of_type.
38447 (math_check_force_underflow_nonneg): Likewise.
38448
38449 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38450
38451 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
38452 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
38453 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
38454
38455 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38456
38457 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38458 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
38459 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
38460 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
38461 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
38462 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
38463 memcpy_chk-nonshared, mempcpy_chk-nonshared,
38464 memmove_chk-nonshared and memset_chk-nonshared
38465 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
38466 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
38467 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
38468 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
38469 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
38470 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
38471 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
38472 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
38473 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
38474 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
38475 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
38476 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
38477 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
38478 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
38479 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
38480 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
38481 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
38482 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
38483 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
38484 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
38485 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
38486 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
38487 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
38488 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
38489 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
38490 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
38491 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
38492 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
38493 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
38494 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
38495 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
38496 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
38497 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
38498 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
38499 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
38500 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
38501 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
38502 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
38503 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
38504 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
38505 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
38506 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
38507 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
38508 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
38509 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
38510 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
38511 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
38512 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
38513 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
38514 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
38515 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
38516 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
38517 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
38518 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
38519 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
38520 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
38521 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
38522 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
38523 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
38524 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
38525 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
38526 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
38527 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
38528 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
38529 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
38530 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
38531 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
38532 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
38533 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
38534 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
38535 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
38536 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
38537 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
38538 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
38539 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
38540 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
38541 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
38542 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
38543 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
38544 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
38545 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
38546 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
38547 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
38548 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
38549 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
38550 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
38551 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
38552 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
38553 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
38554 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
38555 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
38556 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
38557 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
38558 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
38559 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
38560 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
38561 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
38562 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
38563 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
38564 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
38565 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
38566 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
38567 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
38568 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
38569 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
38570 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
38571 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
38572 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
38573
38574 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38575
38576 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
38577 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
38578 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
38579 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
38580 svml_d_log2_core-sse2, svml_d_log4_core-sse,
38581 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
38582 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
38583 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
38584 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
38585 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
38586 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
38587 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
38588 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
38589 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
38590 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
38591 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
38592 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
38593 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
38594 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
38595 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
38596 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
38597 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
38598 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
38599 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
38600 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
38601 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
38602 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
38603 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
38604 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
38605 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
38606 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
38607 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
38608 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
38609 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
38610 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
38611 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
38612 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
38613 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
38614 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
38615 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
38616 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
38617 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
38618 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
38619 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
38620 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
38621 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
38622 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
38623 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
38624 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
38625 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
38626 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
38627 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
38628 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
38629 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
38630 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
38631 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
38632 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
38633 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
38634 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
38635 ...
38636 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
38637 Don't include <sysdep.h> nor <init-arch.h>.
38638 (_ZGVbN2v_cos): Removed.
38639 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
38640 ...
38641 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
38642 Don't include <sysdep.h> nor <init-arch.h>.
38643 (_ZGVdN4v_cos): Removed.
38644 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
38645 ...
38646 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
38647 Don't include <sysdep.h> nor <init-arch.h>.
38648 (_ZGVeN8v_cos): Removed.
38649 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
38650 ...
38651 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
38652 Don't include <sysdep.h> nor <init-arch.h>.
38653 (_ZGVbN2v_exp): Removed.
38654 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
38655 ...
38656 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
38657 Don't include <sysdep.h> nor <init-arch.h>.
38658 (_ZGVdN4v_exp): Removed.
38659 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
38660 ...
38661 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
38662 Don't include <sysdep.h> nor <init-arch.h>.
38663 (_ZGVeN8v_exp): Removed.
38664 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
38665 ...
38666 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
38667 Don't include <sysdep.h> nor <init-arch.h>.
38668 (_ZGVbN2v_log): Removed.
38669 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
38670 ...
38671 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
38672 Don't include <sysdep.h> nor <init-arch.h>.
38673 (_ZGVdN4v_log): Removed.
38674 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
38675 ...
38676 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
38677 Don't include <sysdep.h> nor <init-arch.h>.
38678 (_ZGVeN8v_log): Removed.
38679 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
38680 ...
38681 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
38682 Don't include <sysdep.h> nor <init-arch.h>.
38683 (_ZGVbN2vv_pow): Removed.
38684 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
38685 ...
38686 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
38687 Don't include <sysdep.h> nor <init-arch.h>.
38688 (_ZGVdN4vv_pow): Removed.
38689 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
38690 ...
38691 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
38692 Don't include <sysdep.h> nor <init-arch.h>.
38693 (_ZGVeN8vv_pow): Removed.
38694 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
38695 ...
38696 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
38697 Don't include <sysdep.h> nor <init-arch.h>.
38698 (_ZGVbN2v_sin): Removed.
38699 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
38700 ...
38701 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
38702 Don't include <sysdep.h> nor <init-arch.h>.
38703 (_ZGVbN4v_sin): Removed.
38704 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
38705 ...
38706 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
38707 Don't include <sysdep.h> nor <init-arch.h>.
38708 (_ZGVbN8v_sin): Removed.
38709 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
38710 ...
38711 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
38712 Don't include <sysdep.h> nor <init-arch.h>.
38713 (_ZGVbN2vvv_sincos): Removed.
38714 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
38715 ...
38716 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
38717 Don't include <sysdep.h> nor <init-arch.h>.
38718 (_ZGVdN4vvv_sincos): Removed.
38719 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
38720 ...
38721 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
38722 Don't include <sysdep.h> nor <init-arch.h>.
38723 (_ZGVeN8vvv_sincos): Removed.
38724 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
38725 ...
38726 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
38727 Don't include <sysdep.h> nor <init-arch.h>.
38728 (_ZGVeN16v_cosf): Removed.
38729 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
38730 ...
38731 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
38732 Don't include <sysdep.h> nor <init-arch.h>.
38733 (_ZGVbN4v_cosf): Removed.
38734 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
38735 ...
38736 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
38737 Don't include <sysdep.h> nor <init-arch.h>.
38738 (_ZGVdN8v_cosf): Removed.
38739 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
38740 ...
38741 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
38742 Don't include <sysdep.h> nor <init-arch.h>.
38743 (_ZGVeN16v_expf): Removed.
38744 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
38745 ...
38746 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
38747 Don't include <sysdep.h> nor <init-arch.h>.
38748 (_ZGVbN4v_expf): Removed.
38749 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
38750 ...
38751 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
38752 Don't include <sysdep.h> nor <init-arch.h>.
38753 (_ZGVdN8v_expf): Removed.
38754 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
38755 ...
38756 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
38757 Don't include <sysdep.h> nor <init-arch.h>.
38758 (_ZGVeN16v_logf): Removed.
38759 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
38760 ...
38761 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
38762 Don't include <sysdep.h> nor <init-arch.h>.
38763 (_ZGVbN4v_logf): Removed.
38764 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
38765 ...
38766 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
38767 Don't include <sysdep.h> nor <init-arch.h>.
38768 (_ZGVdN8v_logf): Removed.
38769 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
38770 ...
38771 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
38772 Don't include <sysdep.h> nor <init-arch.h>.
38773 (_ZGVeN16vv_powf): Removed.
38774 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
38775 ...
38776 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
38777 Don't include <sysdep.h> nor <init-arch.h>.
38778 (_ZGVbN4vv_powf): Removed.
38779 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
38780 ...
38781 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
38782 Don't include <sysdep.h> nor <init-arch.h>.
38783 (_ZGVdN8vv_powf): Removed.
38784 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
38785 ...
38786 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
38787 Don't include <sysdep.h> nor <init-arch.h>.
38788 (_ZGVeN16vvv_sincosf): Removed.
38789 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
38790 ...
38791 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
38792 Don't include <sysdep.h> nor <init-arch.h>.
38793 (_ZGVbN4vvv_sincosf): Removed.
38794 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
38795 ...
38796 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
38797 Don't include <sysdep.h> nor <init-arch.h>.
38798 (_ZGVdN8vvv_sincosf): Removed.
38799 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
38800 ...
38801 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
38802 Don't include <sysdep.h> nor <init-arch.h>.
38803 (_ZGVeN16v_sinf): Removed.
38804 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
38805 ...
38806 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
38807 Don't include <sysdep.h> nor <init-arch.h>.
38808 (_ZGVbN4v_sinf): Removed.
38809 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
38810 ...
38811 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
38812 Don't include <sysdep.h> nor <init-arch.h>.
38813 (_ZGVdN8v_sinf): Removed.
38814
38815 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38816
38817 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38818 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
38819 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
38820 s_rint-sse4_1 and s_rintf-sse4_1.
38821 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
38822 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
38823 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
38824 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
38825 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
38826 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
38827 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
38828 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
38829 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
38830 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
38831 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
38832 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38833 (__ceil): Removed.
38834 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
38835 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
38836 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38837 (__ceilf): Removed.
38838 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
38839 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
38840 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38841 (__floor): Removed.
38842 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
38843 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
38844 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38845 (__floorf): Removed.
38846 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
38847 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
38848 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38849 (__nearbyint): Removed.
38850 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
38851 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
38852 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38853 (__nearbyintf): Removed.
38854 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
38855 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
38856 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38857 (__rint): Removed.
38858 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
38859 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
38860 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38861 (__rintf): Removed.
38862
38863 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38864
38865 * sysdeps/i386/start.S (_start): Check Check PIC instead of
38866 SHARED. Avoid dynamic relocation against main in static PIE.
38867
38868 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38869
38870 [BZ #21815]
38871 * elf/Makefile (CFLAGS-tst-prelink.c): New.
38872 (LDFLAGS-tst-prelink): Likewise.
38873
38874 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38875
38876 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
38877 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
38878 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
38879 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
38880 (INTERNAL_SYSCALL_NCS): Likewise.
38881 (LOADARGS_1): Likewise.
38882 (LOADARGS_5): Likewise.
38883 (RESTOREARGS_1): Likewise.
38884 (RESTOREARGS_5): Likewise.
38885
38886 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38887
38888 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
38889 (MEMPCPY_SYMBOL): Likewise.
38890 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
38891 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
38892 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
38893 in libc.a.
38894 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38895 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
38896 Likewise.
38897 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
38898 (__hidden_ver1): Don't use in libc.a.
38899 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
38900 (__mempcpy): Don't create a weak alias in libc.a.
38901 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
38902 libc.a.
38903 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
38904 (__hidden_ver1): Don't use in libc.a.
38905
38906 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38907
38908 * config.make.in (have-insert): New.
38909 * configure.ac (libc_cv_insert): New. Set to yes if linker
38910 supports INSERT in linker script.
38911 (AC_SUBST(libc_cv_insert): New.
38912 * configure: Regenerated.
38913 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
38914 if $(have-insert) == yes.
38915
38916 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38917
38918 * elf/Makefile (tests): Add vismain only if
38919 $(have-protected-data) == yes.
38920 (tests-pie): Likewise.
38921
38922 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38923
38924 [BZ #21871]
38925 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38926 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38927
38928 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38929
38930 [BZ #21790]
38931 * sysdeps/i386/i586/memset.S
38932 (__memset_zero_constant_len_parameter): Removed.
38933 * sysdeps/i386/i686/memset.S
38934 (__memset_zero_constant_len_parameter): Likewise.
38935 * sysdeps/i386/i686/multiarch/memset_chk.S
38936 (__memset_zero_constant_len_parameter): Likewise.
38937 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38938 Likewise.
38939
38940 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38941
38942 * stdlib/getentropy.c (getentropy): Change return type to int.
38943
38944 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38945
38946 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38947
38948 2017-08-03 Joseph Myers <joseph@codesourcery.com>
38949
38950 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38951 u_intN_t.
38952 * math/s_nexttowardf.c (__nexttowardf): Likewise.
38953 * sysdeps/generic/math_private.h (ieee_double_shape_type):
38954 Likewise.
38955 (ieee_float_shape_type): Likewise.
38956 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38957 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38958 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38959 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38960 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38961 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38962 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38963 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38964 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38965 Likewise.
38966 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38967 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38968 (__ieee754_yn): Likewise.
38969 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38970 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38971 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38972 Likewise.
38973 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38974 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38975 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38976 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38977 (__erfc): Likewise.
38978 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38979 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38980 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38981 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38982 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38983 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38984 Likewise.
38985 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38986 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38987 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38988 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38989 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38990 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38991 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38992 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38993 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38994 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38995 (__issignaling): Likewise.
38996 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
38997 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
38998 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
38999 Likewise.
39000 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
39001 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
39002 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
39003 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
39004 Likewise.
39005 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
39006 Likewise.
39007 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
39008 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
39009 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
39010 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
39011 (__erfcf): Likewise.
39012 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
39013 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
39014 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
39015 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
39016 Likewise.
39017 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
39018 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
39019 Likewise.
39020 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
39021 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
39022 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
39023 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
39024 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
39025 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
39026 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
39027 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
39028 Likewise.
39029 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
39030 Likewise.
39031 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
39032 Likewise.
39033 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
39034 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
39035 Likewise.
39036 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39037 Likewise.
39038 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
39039 (__ieee754_ynl): Likewise.
39040 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
39041 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
39042 Likewise.
39043 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
39044 Likewise.
39045 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
39046 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
39047 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
39048 Likewise.
39049 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
39050 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
39051 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
39052 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
39053 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
39054 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
39055 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
39056 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
39057 Likewise.
39058 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
39059 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
39060 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
39061 Likewise.
39062 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
39063 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
39064 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
39065 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
39066 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
39067 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
39068 Likewise.
39069 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
39070 Likewise.
39071 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
39072 Likewise.
39073 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
39074 Likewise.
39075 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
39076 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
39077 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
39078 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
39079 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
39080 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
39081 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
39082 Likewise.
39083 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
39084 Likewise.
39085 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
39086 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
39087 Likewise.
39088 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
39089 (__ieee754_remainderl): Likewise.
39090 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
39091 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
39092 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
39093 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
39094 Likewise.
39095 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
39096 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
39097 Likewise.
39098 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
39099 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
39100 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
39101 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
39102 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
39103 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
39104 Likewise.
39105 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
39106 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
39107 (__ieee754_y0l): Likewise.
39108 (pzero): Likewise.
39109 (qzero): Likewise.
39110 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
39111 (__ieee754_y1l): Likewise.
39112 (pone): Likewise.
39113 (qone): Likewise.
39114 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
39115 (__ieee754_ynl): Likewise.
39116 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
39117 (__ieee754_lgammal_r): Likewise.
39118 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
39119 Likewise.
39120 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
39121 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
39122 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
39123 (__erfcl): Likewise.
39124 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
39125 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
39126 Likewise.
39127 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
39128 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
39129 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
39130 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
39131 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
39132 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
39133 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
39134 Likewise.
39135 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
39136 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
39137 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
39138 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
39139 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
39140 Likewise.
39141 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
39142 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
39143 Likewise.
39144 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
39145 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
39146 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
39147 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
39148 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
39149
39150 2017-08-03 Florian Weimer <fweimer@redhat.com>
39151
39152 [BZ #21885]
39153 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
39154 on memory allocation failure.
39155
39156 2017-08-03 Alan Modra <amodra@gmail.com>
39157
39158 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
39159 tst-tlsopt-powerpc.c with function name change and no test harness.
39160 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
39161 Call tls_get_addr_opt_test.
39162 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
39163 (modules-names): Add mod-tlsopt-powerpc.
39164 (mod-tlsopt-powerpc.so-no-z-defs): Define.
39165 (tst-tlsopt-powerpc): Depend on .so.
39166 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
39167 define. Expand use in TLS_GD and TLS_LD.
39168
39169 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
39170
39171 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
39172 function.
39173 * sysdeps/posix/shm_open.c: Include <pthread.h>.
39174
39175 2017-08-02 Joseph Myers <joseph@codesourcery.com>
39176
39177 [BZ #21686]
39178 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
39179 comparing size with that of double.
39180 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
39181 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
39182 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
39183 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
39184 (__TGMATH_BINARY_REAL_IMAG): Likewise.
39185 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
39186 unsigned __int128 types.
39187
39188 2017-08-02 Steve Ellcey <sellcey@cavium.com>
39189
39190 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
39191 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
39192 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
39193 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
39194 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
39195
39196 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
39197
39198 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
39199
39200 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
39201
39202 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
39203 of SHARED.
39204 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
39205 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
39206 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
39207 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
39208 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
39209 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
39210 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
39211
39212 2017-08-02 Joseph Myers <joseph@codesourcery.com>
39213
39214 [BZ #21685]
39215 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
39216 bit-field expressions passed to sizeof or typeof.
39217 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
39218 (__TGMATH_F128): Likewise.
39219 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
39220 (__TGMATH_CF128): Likewise.
39221 (__TGMATH_UNARY_REAL_ONLY): Likewise.
39222 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
39223 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
39224 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
39225 (__TGMATH_BINARY_REAL_ONLY): Likewise.
39226 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
39227 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
39228 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
39229 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
39230 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
39231 (__TGMATH_UNARY_REAL_IMAG): Likewise.
39232 (__TGMATH_UNARY_IMAG): Likewise.
39233 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
39234 (__TGMATH_BINARY_REAL_IMAG): Likewise.
39235 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
39236 type.
39237 (define_vars_for_type): Handle bit_field type specially.
39238 (Tests.__init__): Declare structure with bit-field element.
39239
39240 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
39241
39242 [BZ #21791]
39243 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
39244 (MEMCPY_CHK): Define only if SHARED is defined.
39245 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
39246 Likewise.
39247 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
39248 Likewise.
39249
39250 See ChangeLog.18 for earlier changes.