]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Fix parentheses error in iconvconfig.c and ld-collate.c [BZ #24372]
[thirdparty/glibc.git] / ChangeLog
1 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2
3 [BZ #24372]
4 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5 of compiler warning.
6 * locale/programs/ld-collate.c (collate_output): Likewise.
7
8 2019-03-21 DJ Delorie <dj@redhat.com>
9
10 [BZ #24372]
11 * iconv/iconvconfig.c (write_output): Replace floating point math
12 with integer math to avoid imprecise results.
13 * locale/programs/ld-collate.c (collate_output): Likewise.
14
15 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
16
17 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
18 Add HWCAP_S390_VX and HWCAP_S390_VXE.
19
20 2019-03-20 mansayk <6688000@gmail.com>
21
22 [BZ #24296]
23 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
24 (abday): Likewise, but remove the trailing dots.
25
26 2019-03-19 Joseph Myers <joseph@codesourcery.com>
27
28 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
29 macro.
30 (HWCAP_PACA): Likewise.
31 (HWCAP_PACG): Likewise.
32 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
33 Increase to 32.
34 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
35
36 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
37
38 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
39 should be handled.
40
41 2019-03-15 Joseph Myers <joseph@codesourcery.com>
42
43 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
44 version to 5.0.
45 (old_getpagesize): New syscall.
46
47 2019-03-15 Felix Yan <felixonmars@archlinux.org>
48
49 [BZ #24293]
50 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
51 * localedata/locales/cmn_TW (era): Likewise.
52 * localedata/locales/hak_TW (era): Likewise.
53 * localedata/locales/lzh_TW (era): Likewise.
54 * localedata/locales/nan_TW (era): Likewise.
55
56 2019-03-14 Florian Weimer <fweimer@redhat.com>
57
58 Remove obsolete, never-implemented XSI STREAMS declarations.
59 * manual/terminal.texi (Allocation): Remove portability note and
60 adjust example.
61 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
62 _SC_STREAMS.
63 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
64 * sysdeps/unix/inet/Subdirs (streams): Remove.
65 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
66 (conformtest-headers-UNIX98): Likewise.
67 (conformtest-headers-XOPEN2K): Likewise.
68 (conformtest-headers-POSIX2008): Likewise.
69 * posix/compat-streams.c: New file.
70 * posix/Makefile (routines): Add it.
71 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
72 getpmsg, isastream, putmsg, putpmsg.
73 (GLIBC_2.30): New section.
74 * bits/stropts.h: Remove file.
75 * bits/xtitypes.h: Likewise.
76 * conform/data/stropts.h-data: Likewise.
77 * include/stropts.h: Likewise.
78 * include/sys/stropts.h: Likewise.
79 * include/xtitypes.h: Likewise.
80 * streams/Makefile: Likewise.
81 * streams/fattach.c: Likewise.
82 * streams/fdetach.c: Likewise.
83 * streams/getmsg.c: Likewise.
84 * streams/getpmsg.c: Likewise.
85 * streams/isastream.c: Likewise.
86 * streams/putmsg.c: Likewise.
87 * streams/putpmsg.c: Likewise.
88 * streams/stropts.h: Likewise.
89 * streams/sys/stropts.h: Likewise.
90 * sysdeps/ia64/bits/xtitypes.h: Likewise.
91 * sysdeps/s390/bits/xtitypes.h: Likewise.
92 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
93 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
94 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
95 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
96 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
97 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
98 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
99 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
100 * sysdeps/x86/bits/xtitypes.h: Likewise.
101
102 2019-03-14 Florian Weimer <fweimer@redhat.com>
103
104 * nss/tst-nss-files-alias-truncated.c (do_test): Load
105 libnss_files.
106 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
107 but not with libnss_files.
108 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
109
110 2019-03-14 Zack Weinberg <zackw@panix.com>
111
112 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
113 Specify encoding="utf-8" when opening headers to check.
114
115 2019-03-13 Joseph Myers <joseph@codesourcery.com>
116
117 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
118 version to 5.0.
119 (Context.checkout_tar): Handle variable major version for Linux
120 kernel.
121
122 2019-03-13 Florian Weimer <fweimer@redhat.com>
123
124 [BZ #24047]
125 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
126
127 2019-03-13 Zack Weinberg <zackw@panix.com>
128
129 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
130 Move to stdlib.
131 * include/inttypes.h: Adjust to match.
132 * include/stdint.h: New wrapper.
133
134 2019-03-13 Zack Weinberg <zackw@panix.com>
135
136 * scripts/check-obsolete-constructs.py: New test script.
137 * scripts/check-installed-headers.sh: Remove tests for
138 obsolete typedefs, superseded by check-obsolete-constructs.py.
139 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
140 as a special test. Update commentary.
141 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
142 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
143 Update commentary.
144 * posix/sys/types.h (__u_intN_t): Remove.
145 (u_int8_t): Typedef using __uint8_t.
146 (u_int16_t): Typedef using __uint16_t.
147 (u_int32_t): Typedef using __uint32_t.
148 (u_int64_t): Typedef using __uint64_t.
149
150 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
151
152 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
153 call _dl_procinfo.
154 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
155 Ignore types other than AT_HWCAP.
156 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
157 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
158 Likewise.
159 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
160 in the case of falling back to generic output mechanism.
161 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
162 Likewise.
163
164 2019-03-12 Florian Weimer <fweimer@redhat.com>
165
166 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
167
168 2019-03-12 Florian Weimer <fweimer@redhat.com>
169
170 [BZ #24047]
171 resolv: Enable full ICMP errors for UDP DNS sockets
172 * resolv/res_enable_icmp.c: New file.
173 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
174 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
175 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
176 socket.
177
178 2019-03-11 Mao Han <han_mao@c-sky.com>
179
180 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
181 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
182
183 2019-03-11 Mao Han <han_mao@c-sky.com>
184
185 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
186 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
187 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
188
189 2019-03-11 Mao Han <han_mao@c-sky.com>
190
191 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
192 directly.
193 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
194 definition.
195
196 2019-03-11 Mao Han <han_mao@c-sky.com>
197
198 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
199 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
200 in mcontext_t
201
202 2019-03-08 Mike FABIAN <mfabian@redhat.com>
203
204 [BZ #24307]
205 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
206 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
207 Unicode 12.0.0.
208 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
209 * localedata/unicode-gen/PropList.txt: Likewise.
210 * localedata/unicode-gen/UnicodeData.txt: Likewise.
211 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
212 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
213 * localedata/charmaps/UTF-8: Regenerate.
214 * localedata/locales/i18n_ctype: Likewise.
215 * localedata/locales/tr_TR: Likewise.
216 * localedata/locales/translit_circle: Likewise.
217 * localedata/locales/translit_cjk_compat: Likewise.
218 * localedata/locales/translit_combining: Likewise.
219 * localedata/locales/translit_compat: Likewise.
220 * localedata/locales/translit_font: Likewise.
221 * localedata/locales/translit_fraction: Likewise.
222
223 2019-03-07 Joseph Myers <joseph@codesourcery.com>
224
225 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
226 than after operators.
227 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
228 (setitimer_locked): Likewise.
229 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
230 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
231 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
232 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
233 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
234 (PPC_CPU_SUPPORTED): Likewise.
235 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
236 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
237 (stat_overflow): Likewise.
238 (statfs_overflow): Likewise.
239 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
240 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
241 (eq_ttyname_r): Likewise.
242 (run_chroot_tests): Likewise.
243
244 2019-03-07 Florian Weimer <fweimer@redhat.com>
245
246 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
247 header check.
248
249 2019-03-07 Martin Liska <mliska@suse.cz>
250
251 * math/Makefile: Change location where math-vector-fortran.h is
252 installed.
253 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
254 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
255 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
256 * scripts/check-installed-headers.sh: Skip Fortran header files.
257 * scripts/check-wrapper-headers.py: Likewise.
258
259 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
260
261 * nptl/nptl-init.c (__have_futex_clock_realtime,
262 __have_futex_clock_realtime): Remove definition.
263 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
264 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
265 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
266 __ASSUME_FUTEX_CLOCK_REALTIME support.
267 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
268 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
269 * sysdeps/unix/sysv/linux/kernel-features.h
270 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
271 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
272 Adjust comment.
273
274 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
275
276 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
277 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
278 __GI___wcscpy and wcscpy.
279
280 2019-03-04 Florian Weimer <fweimer@redhat.com>
281
282 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
283 declaration.
284 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
285 defined.
286
287 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
288
289 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
290 * sysdeps/s390/s390-32/sysdep.h: Likewise.
291
292 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
293
294 [BZ #24162]
295 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
296 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
297
298 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
299
300 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
301 tests.
302 (do_test): Likewise.
303 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
304 (do_test_call_varg): Likewise.
305 (do_test_call_rarg): Likewise.
306 * sysdeps/ieee754/ldbl-opt/Makefile
307 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
308 tst-nldbl-error.
309 ($(objpfx)tst-nldbl-warn.c): New rule.
310 ($(objpfx)tst-nldbl-error.c): Likewise.
311 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
312 New variables.
313
314 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
315
316 [BZ #23984]
317 * include/bits/error-ldbl.h: New file.
318 * include/error.h: Include stdarg.h. Declare internal functions
319 __error_internal and __error_at_line_internal.
320 * misc/Makefile (headers): Add bits/error-ldbl.h.
321 * misc/bits/error-ldbl.h: New file.
322 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
323 avoid the inclusion of bits/error.h.
324 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
325 and __nldbl_error_at_line.
326 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
327 (__nldbl_error, __ndlbl_error_at_line): New functions.
328 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
329 Redirect error and error_at_line.
330 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
331 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
332 Likewise.
333 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
334 Likewise.
335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
336 Likewise.
337 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
338 Likewise.
339 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
340 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
341 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
342
343 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
344
345 [BZ #23984]
346 * include/bits/err-ldbl.h: New file.
347 * include/err.h: Add prototypes for the internal functions:
348 __vwarnx_internal and __vwarn_internal.
349 * misc/Makefile (headers): Add bits/err-ldbl.h.
350 * misc/bits/err-ldbl.h: New file.
351 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
352 defined, i.e.: when -mlong-double-64 is in use.
353 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
354 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
355 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
356 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
357 (VA_CALL): New macro.
358 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
359 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
360 functions.
361 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
362 declare prototypes for the new functions.
363 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
365 Likewise.
366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
367 Likewise.
368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
369 Likewise.
370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
371 Likewise.
372 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
373 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
374 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
375
376 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
377
378 * sysdeps/ieee754/ldbl-opt/Makefile
379 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
380 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
381 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
382
383 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
384
385 [BZ #23983]
386 * argp/Makefile (headers): Add bits/argp-ldbl.h.
387 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
388 * argp/bits/argp-ldbl.h: New file.
389 * include/argp.h: Include stdarg.h. Add prototypes for internal
390 functions: __argp_error_internal and __argp_failure_internal.
391 * include/bits/argp-ldbl.h: New file.
392 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
393 __nldbl_argp_error and __nldbl_argp_failure.
394 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
395 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
396 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
397 Redirect argp_error and argp_failure calls.
398 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
399 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
400 Likewise.
401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
402 Likewise.
403 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
404 Likewise.
405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
406 Likewise.
407 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
408 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
409 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
410
411 2019-03-01 Florian Weimer <fweimer@redhat.com>
412
413 [BZ #20419]
414 * elf/tst-big-note-lib.S: Create a syntactically valid note.
415 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
416 code, to avoid creating an ABI tag note.
417 (modules-names-nobuild): Add tst-big-note-lib.
418
419 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
420
421 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
422 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
423
424 2019-03-01 Florian Weimer <fweimer@redhat.com>
425
426 [BZ #20271]
427 * sysdeps/unix/sysv/linux/netlink_assert_response.c
428 (__netlink_assert_response): Add additional missing newlines.
429
430 2019-02-28 Joseph Myers <joseph@codesourcery.com>
431
432 * sysdeps/powerpc/powerpc32/dl-machine.c
433 (__elf_machine_fixup_plt): Use space before '('.
434 (__process_machine_rela): Likewise.
435 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
436 Likewise.
437 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
438 Likewise.
439 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
440 Likewise.
441 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
442 (pattern): Likewise.
443 (delta): Likewise.
444 (check_result): Likewise.
445 (check_excepts): Likewise.
446 (check_op): Likewise.
447 (fail_xr): Likewise.
448 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
449 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
450 (SCNHSZ): Likewise.
451 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
452 Likewise.
453 (ARGS): Likewise.
454 (__makecontext): Likewise.
455 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
456 Likewise.
457
458 2019-02-28 Florian Weimer <fweimer@redhat.com>
459
460 [BZ #23937]
461 elf: Add test with a local IFUNC resolver.
462 * elf/ifuncmain9.c: New file.
463 * elf/ifuncmain9pic.c: Likewise.
464 * elf/ifuncmain9picstatic.c: Likewise.
465 * elf/ifuncmain9pie.c: Likewise.
466 * elf/ifuncmain9static.c: Likewise.
467 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
468 ifuncmain9static, ifuncmain9picstatic.
469 * elf/Makefile [multi-arch && build-shared] (tests-internal):
470 Add ifuncmain9, ifuncmain9pic.
471 * elf/Makefile [multi-arch && build-shared && have-fpie]
472 (ifunc-pie-tests): Add ifuncmain9pie.
473 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
474 (CFLAGS-ifuncmain9picstatic.c): Likewise.
475 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
476
477 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
478
479 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
480 * configure: Regenerated.
481 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
482
483 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
484
485 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
486 symbol as __wcspcy instead of wcscpy.
487
488 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
489
490 * include/stdio.h (__renameat2): New hidden prototype.
491 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
492 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
493 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
494 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
495
496 2019-02-27 Joseph Myers <joseph@codesourcery.com>
497
498 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
499 if statement.
500
501 * benchtests/bench-strcpy.c (do_test): Use space before '('.
502 * benchtests/bench-string.h (cmdline_process_function): Likewise.
503 * benchtests/bench-strlen.c (do_test): Likewise.
504 (test_main): Likewise.
505 * catgets/gencat.c (read_old): Likewise.
506 * elf/cache.c (load_aux_cache): Likewise.
507 * iconvdata/bug-iconv8.c (do_test): Likewise.
508 * math/test-tgmath-ret.c (do_test): Likewise.
509 * nis/nis_call.c (rec_dirsearch): Likewise.
510 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
511 * nptl/tst-audit-threads.c (do_test): Likewise.
512 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
513 * nss/nss_test1.c (init): Likewise.
514 * nss/test-netdb.c (test_hosts): Likewise.
515 * posix/execvpe.c (maybe_script_execute): Likewise.
516 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
517 * stdio-common/tst-printf.c (do_test): Likewise.
518 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
519 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
520 * stdlib/qsort.c (STACK_SIZE): Likewise.
521 * stdlib/test-canon.c (do_test): Likewise.
522 * stdlib/tst-swapcontext1.c (do_test): Likewise.
523 * string/memcmp.c (OPSIZ): Likewise.
524 * string/test-strcpy.c (do_test): Likewise.
525 (do_random_tests): Likewise.
526 * string/test-strlen.c (do_test): Likewise.
527 (test_main): Likewise.
528 * string/test-strrchr.c (do_test): Likewise.
529 (do_random_tests): Likewise.
530 * string/tester.c (test_memrchr): Likewise.
531 (test_memchr): Likewise.
532 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
533 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
534 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
535 (read_encoded_value_with_base): Likewise.
536 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
537 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
538 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
539 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
540 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
541 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
542 Likewise.
543 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
544 Likewise.
545 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
546 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
547 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
548 Likewise.
549 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
550 Likewise.
551 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
552 Likewise.
553 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
554 Likewise.
555 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
556 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
557 (FP_XSTATE_MAGIC2_SIZE): Likewise.
558 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
559 * time/test_time.c (main): Likewise.
560
561 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
562
563 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
564
565 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
566 wmemcpy.
567
568 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
569 wmemcpy.
570
571 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
572
573 * include/wchar.h (__wcscpy): New prototype.
574 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
575 (__wcscpy): Route internal symbol to generic implementation.
576 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
577 Add internal __wcscpy alias.
578 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
579 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
580 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
581 * wcsmbs/wcscpy.c (wcscpy): Add
582 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
583 use generic implementation.
584 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
585
586 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
587 wmemset.
588
589 * sysdeps/m68k/wcpcpy.c: Remove file.
590 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
591
592 2019-02-26 Joseph Myers <joseph@codesourcery.com>
593
594 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
595 than after operators.
596 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
597 * sysdeps/mach/hurd/getcwd.c
598 (__hurd_canonicalize_directory_name_internal): Likewise.
599 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
600 (pthread_mutex_consistent): Likewise.
601 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
602 Likewise.
603 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
604 (__pthread_mutex_transfer_np): Likewise.
605 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
606 (__pthread_mutex_unlock): Likewise.
607 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
608 (mtx_owned_p): Likewise.
609 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
610 (pthread_mutexattr_getrobust): Likewise.
611 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
612 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
613 Likewise.
614 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
615 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
616 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
617 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
618 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
619 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
620 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
621 Likewise.
622 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
623 Likewise.
624 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
625 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
626 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
627 (____longjmp_chk): Likewise.
628 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
629 Likewise.
630 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
631 (INTERNAL_SYSCALL): Likewise.
632 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
633 (INTERNAL_SYSCALL): Likewise.
634 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
635 (__get_clockfreq_via_cpuinfo): Likewise.
636
637 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
638 comments.
639 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
640 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
641 (WORD_COPY_BWD): Likewise.
642 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
643 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
644 Likewise.
645 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
646 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
647 comment.
648 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
649
650 2019-02-25 Joseph Myers <joseph@codesourcery.com>
651
652 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
653 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
654 rather than after operators.
655 * elf/cache.c (print_cache): Likewise.
656 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
657 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
658 * hurd/hurdinit.c (_hurd_setproc): Likewise.
659 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
660 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
661 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
662 (reauth_proc): Likewise.
663 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
664 (__file_name_split_at): Likewise.
665 (__directory_name_split_at): Likewise.
666 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
667 * hurd/port2fd.c (_hurd_port2fd): Likewise.
668 * iconv/gconv_dl.c (do_print): Likewise.
669 * inet/netinet/in.h (struct sockaddr_in): Likewise.
670 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
671 * locale/setlocale.c (new_composite_name): Likewise.
672 * malloc/memusagestat.c (main): Likewise.
673 * misc/fstab.c (fstab_convert): Likewise.
674 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
675 Likewise.
676 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
677 (getgrent_next_file): Likewise.
678 (internal_getgrnam_r): Likewise.
679 (internal_getgrgid_r): Likewise.
680 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
681 Likewise.
682 (internal_getgrent_r): Likewise.
683 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
684 (getpwent_next_nss): Likewise.
685 (getpwent_next_file): Likewise.
686 (internal_getpwnam_r): Likewise.
687 (internal_getpwuid_r): Likewise.
688 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
689 Likewise.
690 (getspent_next_nss): Likewise.
691 (internal_getspnam_r): Likewise.
692 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
693 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
694 * string/strchr.c (STRCHR): Likewise.
695 * string/strchrnul.c (STRCHRNUL): Likewise.
696 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
697 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
698 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
699 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
700 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
701 Likewise.
702 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
703 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
704 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
705 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
706 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
707 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
708 (open_file): Likewise.
709 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
710 (pthread_mutexattr_setprotocol): Likewise.
711 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
712 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
713 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
714 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
715 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
716 Likewise.
717 (elf_machine_rela): Likewise.
718 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
719 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
720 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
721 * sysdeps/posix/rename.c (rename): Likewise.
722 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
723 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
724 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
725 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
726 * sysdeps/unix/grantpt.c (grantpt): Likewise.
727 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
728 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
729 Likewise.
730 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
731 Likewise.
732 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
733 * time/tzfile.c (__tzfile_compute): Likewise.
734
735 2019-02-22 Joseph Myers <joseph@codesourcery.com>
736
737 * benchtests/bench-memmem.c (simple_memmem): Break lines before
738 rather than after operators.
739 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
740 * crypt/md5.c (md5_finish_ctx): Likewise.
741 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
742 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
743 * elf/cache.c (load_aux_cache): Likewise.
744 * elf/dl-load.c (open_verify): Likewise.
745 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
746 * elf/readelflib.c (process_elf_file): Likewise.
747 * elf/rtld.c (dl_main): Likewise.
748 * elf/sprof.c (generate_call_graph): Likewise.
749 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
750 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
751 * hurd/dtable.c (reauth_dtable): Likewise.
752 * hurd/getdport.c (__getdport): Likewise.
753 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
754 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
755 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
756 Likewise.
757 * hurd/hurdioctl.c (fioctl): Likewise.
758 * hurd/hurdselect.c (_hurd_select): Likewise.
759 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
760 (STOPSIGS): Likewise.
761 * hurd/hurdstartup.c (_hurd_startup): Likewise.
762 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
763 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
764 * hurd/msgportdemux.c (msgport_server): Likewise.
765 * hurd/setauth.c (_hurd_setauth): Likewise.
766 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
767 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
768 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
769 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
770 * login/tst-utmp.c (do_check): Likewise.
771 (simulate_login): Likewise.
772 * mach/lowlevellock.h (lll_lock): Likewise.
773 (lll_trylock): Likewise.
774 * math/test-fenv.c (ALL_EXC): Likewise.
775 * math/test-fenvinline.c (ALL_EXC): Likewise.
776 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
777 * nis/nis_call.c (__do_niscall3): Likewise.
778 * nis/nis_callback.c (cb_prog_1): Likewise.
779 * nis/nis_defaults.c (searchaccess): Likewise.
780 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
781 * nis/nis_ismember.c (internal_ismember): Likewise.
782 * nis/nis_local_names.c (nis_local_principal): Likewise.
783 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
784 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
785 Likewise.
786 * nis/ypclnt.c (yp_match): Likewise.
787 (yp_first): Likewise.
788 (yp_next): Likewise.
789 (yp_master): Likewise.
790 (yp_order): Likewise.
791 * nscd/hstcache.c (cache_addhst): Likewise.
792 * nscd/initgrcache.c (addinitgroupsX): Likewise.
793 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
794 (internal_getpwuid_r): Likewise.
795 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
796 * posix/glob.h (__GLOB_FLAGS): Likewise.
797 * posix/regcomp.c (peek_token): Likewise.
798 (peek_token_bracket): Likewise.
799 (parse_expression): Likewise.
800 * posix/regexec.c (sift_states_iter_mb): Likewise.
801 (check_node_accept_bytes): Likewise.
802 * posix/tst-spawn3.c (do_test): Likewise.
803 * posix/wordexp-test.c (testit): Likewise.
804 * posix/wordexp.c (parse_tilde): Likewise.
805 (exec_comm): Likewise.
806 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
807 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
808 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
809 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
810 * stdio-common/tst-fileno.c (do_test): Likewise.
811 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
812 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
813 * stdlib/strtod_l.c (round_and_return): Likewise.
814 (____STRTOF_INTERNAL): Likewise.
815 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
816 * string/strcspn.c (STRCSPN): Likewise.
817 * string/test-memmem.c (simple_memmem): Likewise.
818 * termios/tcsetattr.c (tcsetattr): Likewise.
819 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
820 * time/asctime.c (asctime_internal): Likewise.
821 * time/strptime_l.c (__strptime_internal): Likewise.
822 * time/sys/time.h (timercmp): Likewise.
823 * time/tzfile.c (__tzfile_compute): Likewise.
824
825 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
826
827 [BZ #21915]
828 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
829
830 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
831
832 * argp/argp-help.c (__argp_error_internal): New function,
833 renamed from __argp_error, but that takes a 'mode_flags'
834 parameter to control the format of long double parameters.
835 (__argp_error): Converted into a call __argp_error_internal.
836 (__argp_failure_internal): New function, renamed from
837 __argp_failure, but that takes a 'mode_flags' parameter.
838 (__argp_failure): Converted into a call __argp_failure_internal.
839 * misc/err.c (__vwarnx_internal): New function, renamed from
840 vwarnx, but that takes a 'mode_flags' parameter.
841 (vwarnx): Converted into a call to __vwarnx_internal.
842 (__vwarn_internal): New function, renamed from vwarn, but that
843 takes a 'mode_flags' parameter.
844 (vwarn): Converted into a call to __vwarn_internal.
845 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
846 call to __vfxprintf with 'mode_flags'.
847 (__error_internal): New function, renamed from error, but that
848 takes a 'mode_flags' parameter.
849 (error): Converted into a call to __error_internal.
850 (__error_at_line_internal): New function, renamed from
851 error_at_line, but that takes a 'mode_flags' parameter.
852 (error_at_line): Converted into a call to
853 __error_at_line_internal.
854 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
855 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
856 Likewise.
857
858 2019-02-20 Martin Liska <mliska@suse.cz>
859
860 * math/Makefile: Install math-vector-fortran.h.
861 * bits/math-vector-fortran.h: New file.
862 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
863
864 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
865
866 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
867 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
868
869 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
870
871 * nptl/pthread_mutex_trylock.c: Fix comment.
872
873 2019-02-19 Carlos O'Donell <carlos@redhat.com>
874
875 * nptl/pthread_tryjoin.c: Fix comment.
876
877 2019-02-18 Joseph Myers <joseph@codesourcery.com>
878
879 [BZ #24231]
880 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
881 after R_SPARC_H34 case.
882
883 2019-02-18 Florian Weimer <fweimer@redhat.com>
884
885 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
886 (getanswer): Do not call Dprintf.
887 (res_gethostbyname2_context): Likewise.
888 (res_gethostbyaddr_context): Likewise.
889
890 2019-02-18 Florian Weimer <fweimer@redhat.com>
891
892 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
893 declaration.
894 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
895 Remove definitions.
896 * libio/stdfiles.c: Update comment.
897 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
898 set _IO_stdin, _IO_stdout, _IO_stderr.
899 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
900 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
901 inline function.
902 (_IO_deallocate_file): New inline function.
903 * libio/iolibio.h (_IO_vprintf): Remove definition.
904 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
905 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
906 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
907 _IO_legacy_file.
908 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
909 __builtin_expect. Use _IO_legacy_file.
910
911 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
912
913 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
914 Initialize ctid with a known value and remove update of ctid
915 after clone.
916 (wait_tid): Adjust arguments and call futex_wait with ctid_val
917 as assumed current value of ctid_ptr.
918
919 2019-02-15 Florian Weimer <fweimer@redhat.com>
920
921 Check that non-sysdeps headers have wrapper headers.
922 * scripts/check-wrapper-headers.py: New file.
923 * Makefile (tests-special): Add check-wrapper-headers.out.
924 (check-wrapper-headers.out): New target.
925 * Rules (tests-special): Add check-wrapper-headers.out.
926 (check-wrapper-headers.out): New target.
927
928 2019-02-15 Florian Weimer <fweimer@redhat.com>
929
930 Add missing header wrappers under include/.
931 * include/ar.h: New file.
932 * include/bits/mqueue2.h: Likewise.
933 * include/bits/stdio.h: Likewise.
934 * include/bits/stdio2.h: Likewise.
935 * include/fstab.h: Likewise.
936 * include/fts.h: Likewise.
937 * include/lastlog.h: Likewise.
938 * include/netinet/icmp6.h: Likewise.
939 * include/netinet/igmp.h: Likewise.
940 * include/netinet/ip6.h: Likewise.
941 * include/re_comp.h: Likewise.
942 * include/regexp.h: Likewise.
943 * include/rpcsvc/bootparam.h: Likewise.
944 * include/rpcsvc/yp_prot.h: Likewise.
945 * include/sys/random.h: Likewise.
946 * include/sys/stropts.h: Likewise.
947 * include/sys/ttychars.h: Likewise.
948 * include/sys/vfs.h: Likewise.
949 * include/wait.h: Likewise.
950
951 2019-02-15 Florian Weimer <fweimer@redhat.com>
952
953 * nptl_db/proc_service.h: Move to ...
954 * sysdeps/nptl/proc_service.h: ... here.
955 * nptl_db/thread_db.h: Move to ...
956 * sysdeps/nptl/thread_db.h: ... here.
957 * nptl/descr.h: Include <thread_db.h>.
958
959 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
960
961 * io/Makefile (tests): Add tst-lockf.
962 * io/lockf.c (lockf): Use __fcntl and only define for
963 !__OFF_T_MATCHES_OFF64_T.
964 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
965 __OFF_T_MATCHES_OFF64_T case.
966 * io/tst-lockf.c: New file.
967 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
968 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
969 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
970 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
971 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
972 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
973 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
974 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
975 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
976
977 2019-02-15 Florian Weimer <fweimer@redhat.com>
978
979 [BZ #24211]
980 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
981 pd->result after the thread descriptor has been freed.
982
983 2019-02-15 Joseph Myers <joseph@codesourcery.com>
984
985 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
986 from function return type.
987
988 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
989
990 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
991
992 * scripts/test_printers_common.py: Set TERM to a known harmless
993 value.
994
995 2019-02-14 Joseph Myers <joseph@codesourcery.com>
996
997 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
998 (xdr_u_int): Likewise.
999 (xdr_enum): Likewise.
1000 (xdr_bytes): Reword fall-through comment.
1001 (xdr_string): Likewise.
1002
1003 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1004
1005 [BZ #2421]
1006 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
1007 (tests): Add tst-join8 tst-join9.
1008 * nptl/lll_timedwait_tid.c: Remove file.
1009 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
1010 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
1011 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
1012 * nptl/pthread_join_common.c (timedwait_tid): New function.
1013 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
1014 is set.
1015 * nptl/tst-join5.c (thread_join): New function.
1016 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
1017 check.
1018 * nptl/tst-join8.c: New file.
1019 * nptl/tst-join9.c: Likewise.
1020 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
1021 lll_futex_timed_wait_cancel): Add generic macros.
1022 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
1023 Remove definitions.
1024 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1025 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1026 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1027 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
1028 Remove function.
1029 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
1030 Likewise.
1031 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1032 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1033 (lll_futex_timed_wait_cancel): New macro.
1034
1035 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
1036
1037 * benchtests/Makefile: Add malloc-simple benchmark.
1038 * benchtests/bench-malloc-simple.c: New benchmark.
1039
1040 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
1041
1042 * benchtests/bench-memmove.c (do_one_test): Remove unused
1043 ORIG_SRC.
1044 (do_test): Adjust.
1045 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1046 ORIG_SRC.
1047 (do_test): Adjust.
1048
1049 2019-01-13 Jim Wilson <jimw@sifive.com>
1050
1051 [BZ #24040]
1052 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1053 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1054 (func): New.
1055 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
1056 call func directly.
1057 * nptl/Makefile (tests): Add tst-unwind-thread.
1058 (CFLAGS-tst-unwind-thread.c): Define.
1059 * nptl/tst-unwind-thread.c: New file.
1060 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1061 as undefined.
1062
1063 2019-02-13 Joseph Myers <joseph@codesourcery.com>
1064
1065 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1066 comment wording.
1067 * nis/nis_call.c (__do_niscall3): Likewise.
1068
1069 * catgets/gencat.c (normalize_line): Use braces around empty
1070 'else' body.
1071 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1072 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1073 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1074 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1075 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1076 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1077 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1078 definition.
1079
1080 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1081 execlp returns.
1082
1083 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
1084
1085 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1086 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1087 * benchtests/bench-strchr.c (stupid_strchr): Remove.
1088 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
1089 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
1090 * benchtests/bench-strlen.c (builtin_strlen): Remove.
1091 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
1092 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
1093 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
1094 * benchtests/bench-strspn.c (stupid_strspn): Remove.
1095 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
1096 * benchtests/bench-bcopy.c: Delete file.
1097 * benchtests/bench-bzero.c: Likewise.
1098 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
1099 (simple_memccpy): Remove.
1100 (generic_memccpy): Add function.
1101 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
1102 * benchtests/bench-memmove.c (simple_bcopy): Remove.
1103 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
1104 (generic_mempcpy): Add new function.
1105 * benchtests/bench-memset.c (simple_bzero): Remove.
1106 (builtin_bzero): Remove.
1107 (builtin_memset): Remove.
1108 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1109 (generic_rawmemchr): Add new function.
1110
1111 2019-02-12 Florian Weimer <fweimer@redhat.com>
1112
1113 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1114
1115 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1116
1117 [BZ #24122]
1118 * elf/Makefile (tests): Add tst-audit13.
1119 (modules-names): Add tst-audit13mod1.
1120 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1121 rule.
1122 * elf/tst-audit13.c: New file.
1123 * elf/tst-audit13mod1.c: Likewise.
1124
1125 2019-02-12 Florian Weimer <fweimer@redhat.com>
1126
1127 [BZ #24122]
1128 * elf/rtld.c (unload_audit_module): New function.
1129 (report_audit_module_load_error): Likewise.
1130 (load_audit_module): Likewise. Extracted from dl_main. Call
1131 _dl_close if the laversion symbol cannot be found. Use early
1132 returns for error handling. Add malloc error check. Check for a
1133 zero return value from la_version. Remove spurious comment about
1134 static TLS initialization. Remove useless casts.
1135 (notify_audit_modules_of_loaded_object): New function. Extracted
1136 from dl_main.
1137 (load_audit_module): Likewise.
1138 (dl_main): Call load_audit_modules.
1139
1140 2019-02-12 Joseph Myers <joseph@codesourcery.com>
1141
1142 * elf/dl-exception.c (_dl_exception_create_format): Add
1143 fall-through comments.
1144 * elf/ldconfig.c (parse_conf_include): Likewise.
1145 * elf/rtld.c (print_statistics): Likewise.
1146 * locale/programs/charmap.c (parse_charmap): Likewise.
1147 * misc/mntent_r.c (__getmntent_r): Likewise.
1148 * posix/wordexp.c (parse_arith): Likewise.
1149 (parse_backtick): Likewise.
1150 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1151 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1152 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1153
1154 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1155
1156 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1157 Use float instead of double.
1158
1159 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1160
1161 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1162
1163 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1164
1165 * sysdeps/powerpc/bits/mathinline.h: Remove.
1166
1167 2019-02-08 Florian Weimer <fweimer@redhat.com>
1168
1169 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1170 * math/bits/math-finite.h: Move to ...
1171 * bits/math-finite.h: ... here.
1172
1173 2019-02-08 Florian Weimer <fweimer@redhat.com>
1174
1175 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1176 * bits/unistd_ext.h: here.
1177
1178 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1179
1180 [BZ #21915]
1181 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1182 * nss/tst-nss-files-hosts-long.c: New file.
1183 * nss/tst-nss-files-hosts-long.root: New directory.
1184 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1185 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1186
1187 2019-02-08 Florian Weimer <fweimer@redhat.com>
1188
1189 * include/bits/unistd_ext.h: Remove file.
1190 * posix/bits/unistd_ext.h: Move to ...
1191 * sysdeps/generic/bits/unistd_ext.h: ... here.
1192
1193 2019-02-08 Florian Weimer <fweimer@redhat.com>
1194
1195 * include/bits/unistd_ext.h: New file.
1196
1197 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1198
1199 * time/tst-strftime2.c: Use array_length macros instead of magic
1200 numbers.
1201
1202 2019-02-08 Florian Weimer <fweimer@redhat.com>
1203
1204 [BZ #24161]
1205 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1206 argument.
1207 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1208 locking if the new do_locking argument is true.
1209 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1210 __run_fork_handlers.
1211
1212 2019-02-08 Florian Weimer <fweimer@redhat.com>
1213
1214 [BZ #6399]
1215 Linux: Add gettid system call wrapper.
1216 * posix/Makefile (headers): Add bits/unistd_ext.h.
1217 * posix/bits/unistd_ext.h: New file.
1218 * posix/unistd.h: Include it.
1219 * manual/process.texi (Process Identification): Document gettid.
1220 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1221 tst-gettid, tst-gettid-kill.
1222 (tst-gettid): Link with $(shared-thread-library).
1223 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1224 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1225 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1226 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1227 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1228 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1229 Add gettid.
1230 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1231 Likewise.
1232 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1233 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1234 Likewise.
1235 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1236 Likewise.
1237 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1238 Likewise.
1239 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1240 Likewise.
1241 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1242 Likewise.
1243 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1244 Likewise.
1245 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1246 Likewise.
1247 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1248 (GLIBC_2.30): Likewise.
1249 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1250 (GLIBC_2.30): Likewise.
1251 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1252 (GLIBC_2.30): Likewise.
1253 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1254 (GLIBC_2.30): Likewise.
1255 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1256 Likewise.
1257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1258 (GLIBC_2.30): Likewise.
1259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1260 (GLIBC_2.30): Likewise.
1261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1262 (GLIBC_2.30): Likewise.
1263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1264 (GLIBC_2.30): Likewise.
1265 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1266 Likewise.
1267 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1268 Likewise.
1269 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1270 Likewise.
1271 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1272 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1273 Likewise.
1274 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1275 Likewise.
1276 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1277 Likewise.
1278 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1279 Likewise.
1280 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1281
1282 2019-02-07 Florian Weimer <fweimer@redhat.com>
1283
1284 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1285 compatibility symbols.
1286
1287 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1288
1289 [BZ #24180]
1290 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1291 Add compiler barriers and comments.
1292
1293 2019-02-07 Florian Weimer <fweimer@redhat.com>
1294
1295 * include/array_length.h (array_length): Do not use a statement
1296 expression and _Static_assert, so that array_length can be used at
1297 file scope and as a constant expression.
1298
1299 2019-02-07 Florian Weimer <fweimer@redhat.com>
1300
1301 * support/xdlfcn.h (xdlmopen): Declare.
1302 * support/xdlmopen.c: New file.
1303 * support/Makefile (libsupport-routines): Add xdlmopen.
1304
1305 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1306
1307 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1308 before return type, without separate inline.
1309 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1310 * elf/dl-tunables.h (tunable_is_name): Likewise.
1311 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1312 (do_set_top_pad): Likewise.
1313 (do_set_mmap_threshold): Likewise.
1314 (do_set_mmaps_max): Likewise.
1315 (do_set_mallopt_check): Likewise.
1316 (do_set_perturb_byte): Likewise.
1317 (do_set_arena_test): Likewise.
1318 (do_set_arena_max): Likewise.
1319 (do_set_tcache_max): Likewise.
1320 (do_set_tcache_count): Likewise.
1321 (do_set_tcache_unsorted_limit): Likewise.
1322 * nis/nis_subr.c (count_dots): Likewise.
1323 * nptl/allocatestack.c (advise_stack_range): Likewise.
1324 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1325 (do_sin): Likewise.
1326 (reduce_sincos): Likewise.
1327 (do_sincos): Likewise.
1328 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1329 (do_set_elision_enable): Likewise.
1330 (TUNABLE_CALLBACK_FNDECL): Likewise.
1331
1332 2019-02-06 Florian Weimer <fweimer@redhat.com>
1333
1334 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1335 (xdlsym): Use dlerror to detect a NULL symbol.
1336
1337 2019-02-06 Florian Weimer <fweimer@redhat.com>
1338
1339 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1340 <stap-probe.h>.
1341 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1342
1343 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1344
1345 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1346
1347 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1348
1349 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1350 __wmemcmp and weak alias to wmemcmp.
1351
1352 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1353
1354 [BZ #23403]
1355 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1356 TLS_TCB_AT_TP tls variant.
1357 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1358 Add alignment checks.
1359 * support/Makefile (libsupport-routines): Add xposix_memalign and
1360 xpthread_setstack.
1361 * support/support.h: Add xposix_memalign.
1362 * support/xthread.h: Add xpthread_attr_setstack.
1363 * support/xposix_memalign.c: New File.
1364 * support/xpthread_attr_setstack.c: Likewise.
1365
1366 2019-02-05 Florian Weimer <fweimer@redhat.com>
1367
1368 [BZ #24164]
1369 arm: Use "nr" constraint for Systemtap probes, to avoid the
1370 compiler using memory operands for constants, due to the "o"
1371 alternative in the default "nor" constraint.
1372 * include/stap-probe.h [USE_STAP_PROBE]: Include
1373 <stap-probe-machine.h>
1374 * sysdeps/generic/stap-probe-machine.h: New file.
1375 * sysdeps/arm/stap-probe-machine.h: Likewise.
1376
1377 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1378
1379 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1380 with 0, not tcache->entries[tc_idx].
1381
1382 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1383 once.
1384
1385 2019-02-04 Andreas Schwab <schwab@suse.de>
1386
1387 [BZ #16976]
1388 [BZ #17396]
1389 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1390 looking up collating elements match against (wide) character
1391 sequence instead of name. Correct alignment adjustment.
1392 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1393 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1394 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1395 (LOCALES): Add cs_CZ.ISO-8859-2.
1396 * posix/tst-fnmatch4.c: New file.
1397 * posix/tst-fnmatch5.c: New file.
1398 * include/wchar.h (__wmemcmp): Declare.
1399 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1400 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1401 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1402 * sysdeps/s390/wmemcmp.c: Likewise.
1403
1404 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1405
1406 [BZ #24155]
1407 CVE-2019-7309
1408 * NEWS: Updated for CVE-2019-7309.
1409 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1410 upper 32 bits of RDX register for x32. Use unsigned Jcc
1411 instructions, instead of signed.
1412 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1413 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1414
1415 2019-02-04 Florian Weimer <fweimer@redhat.com>
1416
1417 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1418 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1419 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1420 Likewise.
1421 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1422 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1423 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1424 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1425 Likewise.
1426 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1427 Likewise.
1428 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1429 Likewise.
1430 (posix_spawn_file_actions_addopen): Likewise.
1431 (posix_spawn_file_actions_addclose): Likewise.
1432 (posix_spawn_file_actions_adddup2): Likewise.
1433 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1434 qualifiers.
1435 (posix_spawn_file_actions_addfchdir_np): Likewise.
1436
1437 2019-02-04 David Newall <glibc@davidnewall.com>
1438
1439 elf: Implement --preload option for the dynamic linker.
1440 * elf/rtld.c (preloadarg): New variable.
1441 (handle_preload_list): Pass through “where” argument to
1442 do_preload.
1443 (dl_main): Handle "--preload" and add second call to
1444 handle_preload_list.
1445 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1446 (tst-rtld-preload-OBJS): Set variable.
1447 (tst-rtld-preload.out): New target.
1448 * elf/tst-rtld-preload.sh: New file.
1449
1450 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1451
1452 * Makefile (testrun.sh): Exit in case of incorrect argument.
1453
1454 2019-02-04 Florian Weimer <fweimer@redhat.com>
1455
1456 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1457 alignment gaps.
1458
1459 2019-02-03 Florian Weimer <fweimer@redhat.com>
1460
1461 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1462 implicit overflow checks.
1463
1464 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1465
1466 * stdlib/isomac.c: Include <unistd.h>.
1467
1468 2019-02-03 Florian Weimer <fweimer@redhat.com>
1469
1470 * include/time.h (__tzfile_default): Use int, not long int, for
1471 the GMT offsets.
1472 * time/tzfile.c (struct ttinfo): Change type of the offset member
1473 to int.
1474 (__tzfile_read): Remove useless cast.
1475 (__tzfile_default): Adjust prototype.
1476 * time/tzset.c (tz_rule): Change type of the offset member to int.
1477 (parse_offset): Change the type of the sign variable to int.
1478
1479 2019-02-03 Florian Weimer <fweimer@redhat.com>
1480
1481 [BZ #24153]
1482 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1483 * libio/getchar.c (getchar): Likewise.
1484 * libio/getchar_u.c (getchar_unlocked): Likewise.
1485 * libio/getwchar.c (getwchar): Likewise.
1486 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1487 * libio/iogets.c (_IO_gets): Likewise.
1488 * libio/vscanf.c (_IO_vscanf): Likewise.
1489 * libio/vwscanf.c (__vwscanf): Likewise.
1490 * libio/tst-bz24153.c: New file.
1491 * libio/Makefile (tests): Add it.
1492
1493 2019-02-02 Florian Weimer <fweimer@redhat.com>
1494
1495 [BZ #14829]
1496 * manual/resource.texi (Basic Scheduling Functions): Add
1497 portability note. Change process to task throughout the section.
1498 Remove incorrect comment about sched_yield as it affects
1499 tasks/threads, not entire processes.
1500 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1501 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1502
1503 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1504
1505 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1506 * configure: Regenerated.
1507 * manual/install.texi (Tools for Compilation): Update minimum GCC
1508 version.
1509 * INSTALL: Regenerated.
1510
1511 2019-02-01 Florian Weimer <fweimer@redhat.com>
1512
1513 * support/support_test_compare_string.c
1514 (support_test_compare_string): Use "string" in error message.
1515 * support/tst-test_compare_string.c (do_test): Adjust.
1516
1517 2019-02-01 Florian Weimer <fweimer@redhat.com>
1518
1519 * support/support_format_address_family.c
1520 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1521
1522 2019-02-01 Florian Weimer <fweimer@redhat.com>
1523
1524 * manual/socket.texi (Internet Address Formats): Clarify the byte
1525 order of struct sockaddr_in, struct sockaddr_in6. Document
1526 sin6_flowinfo and sin6_scope_id.
1527
1528 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1529
1530 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1531 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1532 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1533 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1534 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1535 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1536
1537 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1538
1539 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1540 [!MEMCHR](MEMCHR): Set to __memchr.
1541 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1542 Add memchr_generic and memchr_nosimd.
1543 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1544 (__libc_ifunc_impl_list): Add memchr ifuncs.
1545 * sysdeps/aarch64/multiarch/memchr.c: New file.
1546 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1547 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1548
1549 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1550
1551 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1552 Add memset_emag.
1553 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1554 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1555 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1556 Add IS_EMAG check for ifunc dispatch.
1557 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1558 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1559
1560 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1561
1562 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1563 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1564 Add emag.
1565 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1566 New macro.
1567
1568 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1569
1570 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1571
1572 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1573
1574 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1575 syscall-template file.
1576
1577 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1578 Torvald Riegel <triegel@redhat.com>
1579 Rik Prohaska <prohaska7@gmail.com>
1580
1581 [BZ# 23844]
1582 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1583 tst-rwlock-trywrlock-stall.
1584 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1585 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1586 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1587 Set __wrphase_fute to 1 only if we started the write phase.
1588 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1589 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1590 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1591 * support/xpthread_rwlock_destroy.c: New file.
1592 * support/xthread.h: Declare xpthread_rwlock_destroy.
1593
1594 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1595
1596 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1597 version to 4.0.2.
1598
1599 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1600
1601 [BZ #24051]
1602 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1603 * libio/fileops.c (_IO_new_file_underflow): Likewise
1604 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1605 * libio/putchar.c (putchar): Likewise.
1606 * libio/putchar_u.c (putchar_unlocked): Likewise.
1607 * libio/putwchar.c (putchar): Likewise.
1608 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1609 * libio/tst-bz24051.c: New test.
1610 * libio/Makefile (tests): Add tst-bz24051
1611
1612 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1613
1614 CVE-2019-9169
1615 regex: fix read overrun [BZ #24114]
1616 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1617 https://debbugs.gnu.org/34140
1618 * posix/regexec.c (proceed_next_node):
1619 Do not read past end of input buffer.
1620
1621 2019-01-31 Florian Weimer <fweimer@redhat.com>
1622
1623 [BZ #24059]
1624 * nss/nss_files/files-alias.c (get_next_alias): Handle
1625 continuation line without newline at the end.
1626 * nss/tst-nss-files-alias-truncated.c: New file.
1627 * nss/Makefile [$(build-shared)] (tests): Add
1628 tst-nss-files-alias-truncated.
1629 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1630 * support/namespace.h (struct support_chroot_configuration): Add
1631 aliases member.
1632 (struct support_chroot): Add path_aliases member.
1633 * support/support_chroot.c (support_chroot_create): Handle
1634 aliases.
1635 (support_chroot_free): Free path_aliases.
1636
1637 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1638
1639 * version.h (RELEASE): Set to "development".
1640 (VERSION): Set to "2.29.9000".
1641 * NEWS: Add section for 2.30.
1642
1643 * version.h (RELEASE): Set to "stable".
1644 (VERSION): Set to "2.29".
1645 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1646
1647 * NEWS: Add the list of bugs fixed in 2.29.
1648 * manual/contrib.texi: Update contributors list with some more
1649 names.
1650 * manual/install.texi: Update latest versions of packages
1651 tested.
1652 * INSTALL: Regenerated.
1653
1654 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1655
1656 * po/be.po: Update translations.
1657 * po/bg.po: Likewise.
1658 * po/ca.po: Likewise.
1659 * po/cs.po: Likewise.
1660 * po/da.po: Likewise.
1661 * po/de.po: Likewise.
1662 * po/el.po: Likewise.
1663 * po/eo.po: Likewise.
1664 * po/es.po: Likewise.
1665 * po/fi.po: Likewise.
1666 * po/fr.po: Likewise.
1667 * po/gl.po: Likewise.
1668 * po/hr.po: Likewise.
1669 * po/hu.po: Likewise.
1670 * po/ia.po: Likewise.
1671 * po/id.po: Likewise.
1672 * po/it.po: Likewise.
1673 * po/ja.po: Likewise.
1674 * po/ko.po: Likewise.
1675 * po/lt.po: Likewise.
1676 * po/nb.po: Likewise.
1677 * po/nl.po: Likewise.
1678 * po/pl.po: Likewise.
1679 * po/pt_BR.po: Likewise.
1680 * po/ru.po: Likewise.
1681 * po/rw.po: Likewise.
1682 * po/sk.po: Likewise.
1683 * po/sl.po: Likewise.
1684 * po/sv.po: Likewise.
1685 * po/tr.po: Likewise.
1686 * po/uk.po: Likewise.
1687 * po/vi.po: Likewise.
1688 * po/zh_CN.po: Likewise.
1689 * po/zh_TW.po: Likewise.
1690
1691 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1692
1693 [BZ #24130]
1694 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1695 of $f3 register on $y_is_neg path.
1696
1697 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1698
1699 [BZ #24110]
1700 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1701 sigaltstack.ss_flags.
1702
1703 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1704
1705 [BZ #23758]
1706 * manual/time.texi (strftime): Document "%Ey".
1707 * time/strftime_l.c (__strftime_internal): Set the default width
1708 padding with zero of "%Ey" to 2.
1709
1710 [BZ #24096]
1711 * manual/time.texi (strftime): Document "%EC" and "%EY".
1712 * time/Makefile (tests): Add tst-strftime2.
1713 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1714 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1715 override padding for "%Ey".
1716 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1717 "%Ey" in the subformat as if decorated with that flag.
1718 * time/tst-strftime2.c: New file.
1719
1720 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1721
1722 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1723 are not defined.
1724
1725 [BZ #24122]
1726 * elf/Makefile (tests): Add tst-audit13.
1727 (modules-names): Add tst-audit13mod1.
1728 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1729 rule.
1730 * elf/rtld.c (dl_main): Handle invalid audit module version.
1731 * elf/tst-audit13.c: New file.
1732 * elf/tst-audit13mod1.c: Likewise.
1733
1734 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1735
1736 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1737 returned by __hurd_at_flags.
1738 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1739 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1740 directly instead of __hurd_file_name_lookup.
1741
1742 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1743
1744 * scripts/build-many-glibcs.py (Context.checkout): Default
1745 binutils version to 2.32 branch.
1746
1747 2019-01-21 Florian Weimer <fweimer@redhat.com>
1748
1749 [BZ #20018]
1750 CVE-2016-10739
1751 resolv: Reject trailing characters in host names
1752 * include/arpa/inet.h (__inet_aton_exact): Declare.
1753 (inet_aton): Remove hidden prototype. No longer used internally.
1754 * nscd/gai.c (__inet_aton): Do not define.
1755 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1756 * nss/digits_dots.c (__inet_aton): Likewise.
1757 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1758 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1759 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1760 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1761 (tst-resolv-trailing): Likewise.
1762 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1763 libc.
1764 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1765 Make static. Add endp parameter.
1766 (__inet_aton_exact): New function.
1767 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1768 (__inet_addr): Call inet_aton_end.
1769 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1770 not just IPv6. Call __inet_aton_exact.
1771 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1772 (tests): Make const. Add additional test cases with trailing
1773 characters.
1774 (do_test): Use array_length.
1775 * resolv/tst-inet_aton_exact.c: New file.
1776 * resolv/tst-resolv-trailing.c: Likewise.
1777 * resolv/tst-resolv-nondecimal.c: Likewise.
1778 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1779
1780 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1781
1782 [BZ# 24097]
1783 CVE-2019-6488
1784 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1785 Clear the upper 32 bits of RSI register.
1786 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1787 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1788 and tst-size_t-wcsnlen.
1789 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1790 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1791
1792 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1793
1794 [BZ# 24097]
1795 CVE-2019-6488
1796 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1797 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1798 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1799 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1800 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1801
1802 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1803
1804 [BZ# 24097]
1805 CVE-2019-6488
1806 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1807 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1808 * sysdeps/x86_64/strcmp.S: Likewise.
1809 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1810 tst-size_t-strncmp and tst-size_t-wcsncmp.
1811 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1812 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1813 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1814
1815 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1816
1817 [BZ# 24097]
1818 CVE-2019-6488
1819 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1820 RDX_LP for length. Clear the upper 32 bits of RDX register.
1821 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1822 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1823 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1824 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1825
1826 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1827
1828 [BZ# 24097]
1829 CVE-2019-6488
1830 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1831 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1832 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1833 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1834
1835 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1836
1837 [BZ# 24097]
1838 CVE-2019-6488
1839 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1840 length. Clear the upper 32 bits of RDX register.
1841 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1842 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1843 Likewise.
1844 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1845 Likewise.
1846 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1847 tst-size_t-wmemchr.
1848 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1849
1850 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1851
1852 [BZ# 24097]
1853 CVE-2019-6488
1854 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1855 length. Clear the upper 32 bits of RDX register.
1856 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1857 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1858 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1859 tst-size_t-wmemcmp.
1860 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1861 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1862
1863 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1864
1865 [BZ# 24097]
1866 CVE-2019-6488
1867 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1868 upper 32 bits of RDX register.
1869 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1870 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1871 tst-size_t-wmemchr.
1872 * sysdeps/x86_64/x32/test-size_t.h: New file.
1873 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1874 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1875
1876 2019-01-18 Florian Weimer <fweimer@redhat.com>
1877
1878 [BZ #24112]
1879 resolv: Do not send queries for non-host-names in nss_dns.
1880 * resolv/nss_dns/dns-host.c (check_name): New function.
1881 (_nss_dns_gethostbyname2_r): Use it.
1882 (_nss_dns_gethostbyname_r): Likewise.
1883 (_nss_dns_gethostbyname4_r): Likewise.
1884
1885 2019-01-21 Florian Weimer <fweimer@redhat.com>
1886
1887 * resolv/inet_addr.c: Reformat to GNU style.
1888 (__inet_addr, __inet_aton): Update comment.
1889
1890 2019-01-18 Florian Weimer <fweimer@redhat.com>
1891
1892 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1893 ("malloc: Use current (C11-style) atomics for fastbin access").
1894 This commit introduces a substantial performance regression on
1895 POWER and Aarch64.
1896 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1897 (REMOVE_FB): Define.
1898 (_int_malloc): Use it and reindent.
1899 (_int_free): Use CAS loop with
1900 catomic_compare_and_exchange_val_rel.
1901 (malloc_consolidate): Use atomic_exchange_acq.
1902
1903
1904 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1905
1906 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1907 -Wl,-z,now.
1908 (LDFLAGS-tst-minsigstksz-2): Likewise.
1909 (LDFLAGS-tst-minsigstksz-3): Likewise.
1910 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1911 (LDFLAGS-tst-minsigstksz-4): Likewise.
1912
1913 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1914
1915 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1916 than "alternate".
1917
1918 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1919
1920 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1921
1922 2019-01-16 Zack Weinberg <zackw@panix.com>
1923
1924 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1925 (xget_sigstack_location): New test support functions.
1926 * support/xsigstack.c: New file, implementing them.
1927 * support/tst-xsigstack.c: New test for them.
1928 * support/Makefile: Update.
1929
1930 * signal/tst-minsigstksz-1.c
1931 * signal/tst-minsigstksz-2.c
1932 * signal/tst-minsigstksz-3.c
1933 * signal/tst-minsigstksz-3a.c
1934 * signal/tst-minsigstksz-4.c: New tests.
1935 * signal/Makefile: Run them.
1936
1937 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1938
1939 * po/libc.pot: Regenerate.
1940
1941 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1942
1943 * math/libm-test-fma.inc (fma_test_data): Set
1944 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1945
1946 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1947
1948 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1949 (do_test): Changed __vector __int128_t to __vector unsigned int.
1950
1951 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1952
1953 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1954 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1955 stpcpy-avx2 and stpncpy-avx2.
1956 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1957 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1958 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1959 and __stpncpy_avx2.
1960 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1961 ifunc-strcpy.h}: rename header for a more generic name.
1962 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1963 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1964 AVX unaligned load is fast and vzeroupper is preferred.
1965 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1966 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1967 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1968 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1969 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1970 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1971
1972 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1973
1974 * argp/argp-help.c: Fix typo in comment.
1975 * misc/sys/cdefs.h: Likewise.
1976 * posix/regexec.c (sift_states_iter_mb): Likewise.
1977 * socket/sockatmark.c: Likewise.
1978 * socket/sys/socket.h: Likewise.
1979 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1980 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1981 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1982 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1983 * sysdeps/unix/sockatmark.c: Likewise.
1984 * time/strptime_l.c: Likewise.
1985
1986 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1987
1988 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1989 missing space after the cast of "_NL_CURRENT".
1990
1991 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1992
1993 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1994 ifdef to fix read of VSCR.
1995 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1996 tst-ucontext-ppc64-vscr.c to test list.
1997 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1998
1999 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
2000
2001 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
2002 fall-through.
2003
2004 2019-01-09 Jim Wilson <jimw@sifive.com>
2005
2006 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
2007
2008 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
2009
2010 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
2011 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
2012 __memcpy_falkor for ares.
2013 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
2014 Add new define.
2015 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2016 Add ares cpu.
2017
2018 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
2019
2020 [BZ #24066]
2021 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
2022 4_FP_W_TYPEs are used for IEEE quad precision.
2023 * soft-fp/extendhftf2.c: Likewise.
2024 * soft-fp/extendsftf2.c: Likewise.
2025 * soft-fp/extendxftf2.c: Likewise.
2026 * soft-fp/trunctfdf2.c: Likewise.
2027 * soft-fp/trunctfhf2.c: Likewise.
2028 * soft-fp/trunctfsf2.c: Likewise.
2029 * soft-fp/trunctfxf2.c: Likewise.
2030 * sysdeps/alpha/ots_cvttx.c: Likewise.
2031 * sysdeps/alpha/ots_cvtxt.c: Likewise.
2032 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2033 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
2034 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
2035 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2036 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2037 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2038 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2039 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2040 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2041 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2042 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2043 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2044 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2045 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2046 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2047 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2048
2049 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2050
2051 [BZ #24024]
2052 * Makeconfig: Build libm with -fno-math-errno but build the remaining
2053 code with -fmath-errno.
2054 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2055 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2056 * string/test-strerror-errno.c: New file.
2057
2058 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
2059
2060 [BZ #24046]
2061 * localedata/locales/en_US (date_fmt): Add, set to
2062 "%a %d %b %Y %r %Z".
2063
2064 2019-01-07 Florian Weimer <fweimer@redhat.com>
2065
2066 [BZ #24063]
2067 * manual/arith.texi (Math Error Reporting): Use @code{errno}
2068 instead of @var{errno}.
2069 (Parsing of Integers): Likewise.
2070 (Parsing of Floats): Likewise.
2071 * manual/filesys.texi (Working with Directory Trees): Likewise.
2072 (Temporary Files): Likewise.
2073 * manual/job.texi (Terminal Access Functions): Likewise.
2074 * manual/llio.texi (Synchronizing I/O): Likewise.
2075 * manual/math.texi (SVID Random): Likewise.
2076 * manual/message.texi (The catgets Functions): Likewise.
2077 (Translation with gettext): Likewise.
2078 (Locating gettext catalog): Likewise.
2079 (Charset conversion in gettext): Likewise.
2080 * manual/nss.texi (NSS Module Function Internals): Likewise.
2081 * manual/search.texi (Hash Search Function): Likewise.
2082 * manual/setjmp.texi (System V contexts): Likewise.
2083 * manual/time.texi (Sleeping): Likewise.
2084 * manual/users.texi (Lookup User): Likewise.
2085 (Lookup Group): Likewise.
2086
2087 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2088
2089 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
2090 fix typo.
2091
2092 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
2093
2094 [BZ #19444]
2095 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
2096 __builtin_unreachable for default case in switch.
2097 (__ieee754_yn): Likewise.
2098 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2099 (__ieee754_ynl): Likewise.
2100 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2101 (__ieee754_ynl): Likewise.
2102 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2103 (__ieee754_ynl): Likewise.
2104
2105 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2106
2107 * manual/maint.texi: Use @{ and @}.
2108
2109 2019-01-04 Florian Weimer <fweimer@redhat.com>
2110
2111 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2112 function.
2113 (do_in_chroot_1): Call it.
2114 (run_chroot_tests):
2115 Improve error reporting in case it is not possible to create a
2116 collision for the PTY name required by the test.
2117
2118 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2119
2120 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2121 lll_wait_tid with timeout.
2122 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2123 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2124 futex_reltimed_wait_cancelable for cancelabla mode.
2125 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2126 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2127 macros.
2128 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2129 * sysdeps/posix/waitid.c (__sigwait): Likewise.
2130 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2131 SYSCALL_CANCEL_NCS): New macro.
2132 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2133 (lll_timedwait_tid): Remove macro.
2134 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2135 Likewise.
2136 (lll_timedwait_tid): Likewise.
2137 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2138 Likewise.
2139 (lll_timedwait_tid): Likewise.
2140 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2141 Likewise.
2142 (lll_timedwait_tid): Likewise.
2143 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2144 Use INTERNAL_SYSCALL_CANCEL.
2145 * sysdeps/unix/sysv/linux/futex-internal.h
2146 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2147 instead of __pthread_{enable,disable}_asynccancel.
2148 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2149 (lll_futex_wait_cancel): New macro.
2150
2151 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2152 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2153
2154 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2155 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2156
2157 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2158 in backtrace analysis.
2159 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2160 side-effects.
2161 (tf_send): Likewise.
2162
2163 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2164 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2165 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2166 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2167 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2168 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2169 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2170 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2171 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2172 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2173 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2174 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2175 Likewise.
2176 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2177 tst-cancel-wrappers.sh.
2178 (generated): Remove tst-cancel-wrappers.out.
2179 (tst-cancel-wrappers.out): Remove rule.
2180 * nptl/tst-cancel-wrappers.sh: Remove file.
2181
2182 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2183
2184 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2185 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2186 Update.
2187
2188 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2189
2190 [BZ #23640]
2191 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2192 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2193 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2194 close-on-exec reset for adddup2 file action.
2195 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2196
2197 2019-01-03 Zack Weinberg <zackw@panix.com>
2198
2199 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2200 parameter. Only use deprecated scanf when __USE_GNU is defined
2201 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2202 than 201103L, whichever is relevant for the language being compiled.
2203
2204 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2205 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2206 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2207 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2208 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2209
2210 * libio/iovsscanf.c
2211 * libio/fwscanf.c
2212 * libio/iovswscanf.c
2213 * libio/swscanf.c
2214 * libio/vscanf.c
2215 * libio/vwscanf.c
2216 * libio/wscanf.c
2217 * stdio-common/fscanf.c
2218 * stdio-common/scanf.c
2219 * stdio-common/vfscanf.c
2220 * stdio-common/vfwscanf.c
2221 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2222 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2223 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2224 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2225 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2226 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2227 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2228 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2229 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2230 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2231 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2232 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2233 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2234 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2235 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2236
2237 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2238 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2239 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2240 not sscanf.
2241 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2242 with a preprocessor macro.
2243
2244 * stdio-common/bug21.c, stdio-common/scanf14.c:
2245 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2246 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2247 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2248 to xscanf, xfscanf, xsscanf.
2249
2250 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2251 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2252 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2253 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2254 xfscanf, xsscanf.
2255 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2256 override feature selection macros or provide definitions of u_char etc.
2257 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2258 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2259 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2260 with -std=gnu89.
2261
2262 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2263
2264 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2265 bits/termios-misc.h.
2266 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2267 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2268 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2269 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2270 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2271 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2272
2273 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2274 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2275 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2276 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2277 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2278 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2279 termios-misc.h.
2280 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2281 (sysdep_headers): Add termios-misc.h.
2282
2283 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2284 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2285 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2286
2287 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2288 termios-tcflow.h.
2289 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2290 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2291 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2292 TCSAFLUSH): Move to termios-tcflow.h.
2293 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2294 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2295 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2296 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2297
2298 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2299 termios-c_lflag.h.
2300 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2301 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2302 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2303 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2304 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2305 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2306 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2307 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2308 Likewise.
2309 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2310 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2311 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2312 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2313
2314 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2315 termios-c_cflag.h.
2316 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2317 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2318 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2319 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2320 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2321 termios-c_cflag.h.
2322 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2323 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2324 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2325 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2326
2327 [BZ #23783]
2328 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2329 termios-baud.h.
2330 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2331 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2332 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2333 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2334 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2335 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2336 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2337 __MAX_BAUD): Move to termios-baud.h.
2338 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2339 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2340 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2341 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2342 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2343
2344 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2345 termios-c_oflag.h.
2346 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2347 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2348 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2349 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2350 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2351 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2352 termios-c_oflag.h.
2353 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2354 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2355 FFR1): Likewise.
2356 [USE_MISC] (XTABS): Likewise.
2357 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2358 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2359 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2360 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2361
2362 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2363 termios-c_iflag.h.
2364 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2365 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2366 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2367 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2368 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2369 IUTF8): Move to termios-c_iflag.h.
2370 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2371 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2372 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2373 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2374
2375 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2376 termios-cc.h.
2377 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2378 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2379 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2380 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2381 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2382 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2383 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2384 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2385 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2386 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2387 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2388 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2389
2390 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2391 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2392 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2393 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2394 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2395 termios-struct.h.
2396 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2397 termios-struct.h.
2398 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2399 Likewise.
2400 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2401 Likewise.
2402 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2403 Likewise.
2404 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2405 Likewise.
2406 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2407 _HAVE_C_OSPEED): Define.
2408 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2409 _HAVE_C_OSPEED): Likewise.
2410 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2411 _HAVE_C_OSPEED): Likewise.
2412 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2413 (cfsetospeed): Check for define value instead of existence.
2414 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2415 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2416 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2417 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2418 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2419
2420 [BZ #17783]
2421 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2422 Define.
2423 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2424 (TIOCSER_TEMT): Likewise.
2425 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2426 (TEOCSER_TEMT): Likewise.
2427
2428 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2429
2430 [BZ #24011]
2431 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2432
2433 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2434
2435 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2436
2437 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2438
2439 * sysdeps/htl/pt-barrierattr-setpshared.c
2440 (pthread_barrierattr_setpshared): Add stub warning.
2441 * sysdeps/htl/pt-condattr-setpshared.c
2442 (pthread_condattr_setpshared): Likewise.
2443 * sysdeps/htl/pt-mutexattr-setpshared.c
2444 (pthread_mutexattr_setpshared): Likewise.
2445 * sysdeps/htl/pt-rwlockattr-setpshared.c
2446 (pthread_rwlockattr_setpshared): Likewise.
2447 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2448 (pthread_mutexattr_setpshared): Likewise.
2449
2450 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2451
2452 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2453 constants to match with Linux 4.20.
2454
2455 * sysdeps/mips/mips32/libm-test-ulps: Update.
2456 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2457
2458 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2459
2460 [BZ #24034]
2461 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2462 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2463 than __typeof (...) for the a_ptr variable.
2464
2465 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2466
2467 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2468 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2469 * libio/Makefile (tests): Add tst-sprintf-ub and
2470 tst-sprintf-chk-ub.
2471 (CFLAGS-tst-sprintf-ub.c): New variable.
2472 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2473 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2474 destination buffer and check for overflows in fortified mode.
2475 * libio/libioP.h (PRINTF_CHK): New macro.
2476 * libio/tst-sprintf-chk-ub.c: New file.
2477 * libio/tst-sprintf-ub.c: Likewise.
2478
2479 2019-01-02 Florian Weimer <fweimer@redhat.com>
2480
2481 [BZ #24018]
2482 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2483 failure.
2484
2485 2019-01-02 Florian Weimer <fweimer@redhat.com>
2486
2487 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2488
2489 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2490
2491 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2492 macro.
2493
2494 * sysdeps/unix/sysv/linux/netpacket/packet.h
2495 (PACKET_IGNORE_OUTGOING): New macro.
2496
2497 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2498 macro.
2499
2500 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2501 version to 4.20.
2502 (riscv_flush_icache): New syscall.
2503
2504 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2505 trailing whitespace removed.
2506 * scripts/config.guess: Update to version 2019-01-01.
2507 * scripts/config.sub: Update to version 2019-01-01.
2508 * scripts/move-if-change: Update from gnulib.
2509
2510 * NEWS: Update copyright dates.
2511 * catgets/gencat.c (print_version): Likewise.
2512 * csu/version.c (banner): Likewise.
2513 * debug/catchsegv.sh: Likewise.
2514 * debug/pcprofiledump.c (print_version): Likewise.
2515 * debug/xtrace.sh (do_version): Likewise.
2516 * elf/ldconfig.c (print_version): Likewise.
2517 * elf/ldd.bash.in: Likewise.
2518 * elf/pldd.c (print_version): Likewise.
2519 * elf/sotruss.sh: Likewise.
2520 * elf/sprof.c (print_version): Likewise.
2521 * iconv/iconv_prog.c (print_version): Likewise.
2522 * iconv/iconvconfig.c (print_version): Likewise.
2523 * locale/programs/locale.c (print_version): Likewise.
2524 * locale/programs/localedef.c (print_version): Likewise.
2525 * login/programs/pt_chown.c (print_version): Likewise.
2526 * malloc/memusage.sh (do_version): Likewise.
2527 * malloc/memusagestat.c (print_version): Likewise.
2528 * malloc/mtrace.pl: Likewise.
2529 * manual/libc.texinfo: Likewise.
2530 * nptl/version.c (banner): Likewise.
2531 * nscd/nscd.c (print_version): Likewise.
2532 * nss/getent.c (print_version): Likewise.
2533 * nss/makedb.c (print_version): Likewise.
2534 * posix/getconf.c (main): Likewise.
2535 * scripts/test-installation.pl: Likewise.
2536 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2537
2538 * All files with FSF copyright notices: Update copyright dates
2539 using scripts/update-copyrights.
2540 * locale/programs/charmap-kw.h: Regenerated.
2541 * locale/programs/locfile-kw.h: Likewise.
2542
2543 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2544
2545 * timezone/zdump.c: Update from tzcode 2018i.
2546 * timezone/zic.c: Likewise.
2547
2548 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2549
2550 regex: improve Gnulib port to AIX
2551 From the glibc point of view, this removes duplicate macro
2552 definitions and is obviously safe.
2553 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2554 * posix/regex_internal.h:
2555 (__attribute__, __attribute_warn_unused_result__):
2556 Remove; already defined elsewhere.
2557
2558 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2559
2560 [BZ #24027]
2561 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2562 copying operation. (ncopies had the wrong type, resulting in an
2563 integer wraparound and too few elements being copied.)
2564
2565 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2566
2567 [BZ #24022]
2568 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2569 <asm/syscalls.h> exists with __has_include__ before including it.
2570
2571 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2572
2573 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2574 version to 4.20.
2575
2576 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2577
2578 * hurd/lookup-retry: Include <unistd.h>.
2579 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2580 Release it on return. Handle "pid" magical lookup retry.
2581
2582 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2583
2584 [BZ #10496]
2585 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2586 (t_fmt_ampm): Likewise.
2587 * localedata/locales/aa_ER (t_fmt): Likewise.
2588 (t_fmt_ampm): Likewise.
2589 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2590 (t_fmt_ampm): Likewise.
2591 * localedata/locales/aa_ET (t_fmt): Likewise.
2592 (t_fmt_ampm): Likewise.
2593 * localedata/locales/am_ET (t_fmt): Likewise.
2594 (t_fmt_ampm): Likewise.
2595 * localedata/locales/byn_ER (t_fmt): Likewise.
2596 (t_fmt_ampm): Likewise.
2597 * localedata/locales/om_ET (t_fmt): Likewise.
2598 (t_fmt_ampm): Likewise.
2599 * localedata/locales/sid_ET (t_fmt): Likewise.
2600 (t_fmt_ampm): Likewise.
2601 * localedata/locales/so_DJ (t_fmt): Likewise.
2602 (t_fmt_ampm): Likewise.
2603 * localedata/locales/so_ET (t_fmt): Likewise.
2604 (t_fmt_ampm): Likewise.
2605 * localedata/locales/so_SO (t_fmt): Likewise.
2606 (t_fmt_ampm): Likewise.
2607 * localedata/locales/ti_ER (t_fmt): Likewise.
2608 (t_fmt_ampm): Likewise.
2609 * localedata/locales/ti_ET (t_fmt): Likewise.
2610 (t_fmt_ampm): Likewise.
2611 * localedata/locales/tig_ER (t_fmt): Likewise.
2612 (t_fmt_ampm): Likewise.
2613 * localedata/locales/wal_ET (t_fmt): Likewise.
2614 (t_fmt_ampm): Likewise.
2615
2616 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2617 * localedata/locales/ar_IN (t_fmt): Likewise.
2618 * localedata/locales/bhb_IN (t_fmt): Likewise.
2619 * localedata/locales/bho_IN (t_fmt): Likewise.
2620 * localedata/locales/bi_VU (t_fmt): Likewise.
2621 * localedata/locales/bn_BD (t_fmt): Likewise.
2622 * localedata/locales/bn_IN (t_fmt): Likewise.
2623 * localedata/locales/brx_IN (t_fmt): Likewise.
2624 * localedata/locales/doi_IN (t_fmt): Likewise.
2625 * localedata/locales/en_HK (t_fmt): Likewise.
2626 (t_fmt_ampm): Likewise.
2627 * localedata/locales/en_IN (t_fmt): Likewise.
2628 * localedata/locales/en_PH (t_fmt): Likewise.
2629 * localedata/locales/gu_IN (t_fmt): Likewise.
2630 * localedata/locales/hi_IN (t_fmt): Likewise.
2631 * localedata/locales/hif_FJ (t_fmt): Likewise.
2632 * localedata/locales/hne_IN (t_fmt): Likewise.
2633 * localedata/locales/kn_IN (t_fmt): Likewise.
2634 * localedata/locales/kok_IN (t_fmt): Likewise.
2635 * localedata/locales/ks_IN (t_fmt): Likewise.
2636 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2637 * localedata/locales/mag_IN (t_fmt): Likewise.
2638 * localedata/locales/mai_IN (t_fmt): Likewise.
2639 * localedata/locales/mjw_IN (t_fmt): Likewise.
2640 * localedata/locales/ml_IN (t_fmt): Likewise.
2641 * localedata/locales/mni_IN (t_fmt): Likewise.
2642 * localedata/locales/mr_IN (t_fmt): Likewise.
2643 * localedata/locales/ms_MY (t_fmt): Likewise.
2644 * localedata/locales/pa_IN (t_fmt): Likewise.
2645 * localedata/locales/raj_IN (t_fmt): Likewise.
2646 * localedata/locales/sa_IN (t_fmt): Likewise.
2647 * localedata/locales/sat_IN (t_fmt): Likewise.
2648 * localedata/locales/sd_IN (t_fmt): Likewise.
2649 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2650 * localedata/locales/tcy_IN (t_fmt): Likewise.
2651 * localedata/locales/the_NP (t_fmt): Likewise.
2652 * localedata/locales/to_TO (t_fmt): Likewise.
2653 * localedata/locales/ur_IN (t_fmt): Likewise.
2654
2655 * localedata/locales/hif_FJ (d_t_fmt): Set to
2656 "%A %d %b %Y %I:%M:%S %p".
2657 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2658
2659 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2660 * localedata/locales/ar_BH (t_fmt): Likewise.
2661 * localedata/locales/ar_DZ (t_fmt): Likewise.
2662 * localedata/locales/ar_EG (t_fmt): Likewise.
2663 * localedata/locales/ar_IQ (t_fmt): Likewise.
2664 * localedata/locales/ar_JO (t_fmt): Likewise.
2665 * localedata/locales/ar_KW (t_fmt): Likewise.
2666 * localedata/locales/ar_LB (t_fmt): Likewise.
2667 * localedata/locales/ar_LY (t_fmt): Likewise.
2668 * localedata/locales/ar_OM (t_fmt): Likewise.
2669 * localedata/locales/ar_QA (t_fmt): Likewise.
2670 * localedata/locales/ar_SD (t_fmt): Likewise.
2671 * localedata/locales/ar_SS (t_fmt): Likewise.
2672 * localedata/locales/ar_SY (t_fmt): Likewise.
2673 * localedata/locales/ar_TN (t_fmt): Likewise.
2674 * localedata/locales/ar_YE (t_fmt): Likewise.
2675
2676 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2677 (t_fmt_ampm): Likewise.
2678 * localedata/locales/gez_ET (t_fmt): Likewise.
2679 (t_fmt_ampm): Likewise.
2680
2681 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2682 (t_fmt_ampm): Likewise.
2683 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2684
2685 * localedata/locales/zh_HK (t_fmt):
2686 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2687
2688 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2689 because this locale does not use the 12-hour clock.
2690 (t_fmt): Set to "%Z %H:%M:%S".
2691 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2692
2693 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2694 because this locale does not use the 12-hour clock.
2695 (t_fmt): Set to "%H:%M:%S %Z".
2696 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2697
2698 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2699 because this locale does not use the 12-hour clock.
2700 (t_fmt): Set to "%T".
2701 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2702 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2703
2704 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2705 because this locale does not use the 12-hour clock.
2706 (t_fmt): Set to "%H:%M:%S %Z".
2707 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2708
2709 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2710 because this locale does not use the 12-hour clock.
2711 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2712 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2713
2714 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2715
2716 [BZ #10496]
2717 [BZ #23724]
2718 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2719 (t_fmt_ampm): Likewise.
2720 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2721 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2722 (d_fmt): Set to "%-d.%-m.%y".
2723
2724 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2725
2726 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2727 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2728 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2729 Likewise.
2730 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2731 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2732 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2733 function.
2734 * support/blob_repeat.c (check_mul_overflow_size_t,
2735 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2736
2737 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2738
2739 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2740
2741 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2742
2743 regex: simplify Gnulib port
2744 This simplifies the code, by removing stuff intended for porting
2745 to Gnulib but no longer needed there.
2746 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2747 uses of libc_hidden_def, weak_alias.
2748 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2749 _Restrict_ except for public-facing headers.
2750 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2751 Remove; already defined elsewhere.
2752 * posix/regex.c, posix/regex_internal.h:
2753 Use __GNUC_PREREQ instead of rolling our own.
2754 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2755
2756 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2757
2758 * benchtests/bench-strlen.c (generic_strlen): New function.
2759 (memchr_strlen): New function.
2760
2761 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2762
2763 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2764 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2765 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2766
2767 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2768
2769 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2770
2771 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2772
2773 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2774 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2775 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2776 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2777 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2778 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2779 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2780
2781 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2782
2783 [BZ #24023]
2784 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2785 PLT reference in libc.so.
2786 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2787 _Q_lltoq and _Q_qtod PLT references in libc.so.
2788
2789 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2790
2791 * benchtests/bench-memchr.c: Cleanup defines.
2792 * benchtests/bench-memcmp.c: Likewise.
2793 * benchtests/bench-memset.c: Likewise.
2794 * benchtests/bench-memset-large.c: Likewise.
2795 * benchtests/bench-memset-walk.c: Likewise.
2796 * benchtests/bench-stpcpy.c: Likewise.
2797 * benchtests/bench-stpncpy.c: Likewise.
2798 * benchtests/bench-strcat.c: Likewise.
2799 * benchtests/bench-strchr.c: Likewise.
2800 * benchtests/bench-strcmp.c: Likewise.
2801 * benchtests/bench-strcpy.c: Likewise.
2802 * benchtests/bench-strcspn.c: Likewise.
2803 * benchtests/bench-string.h: Likewise.
2804 * benchtests/bench-strlen.c: Likewise.
2805 * benchtests/bench-strncat.c: Likewise.
2806 * benchtests/bench-strncmp.c: Likewise.
2807 * benchtests/bench-strncpy.c: Likewise.
2808 * benchtests/bench-strnlen.c: Likewise.
2809 * benchtests/bench-strpbrk.c: Likewise.
2810 * benchtests/bench-strrchr.c: Likewise.
2811 * benchtests/bench-strspn.c: Likewise.
2812
2813 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2814
2815 * stdlib/longlong.h: Update from GCC.
2816
2817 [BZ #23993]
2818 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2819 * configure: Regenerated.
2820 * manual/install.texi (Tools for Compilation): Update minimum GCC
2821 version.
2822 * INSTALL: Regenerated.
2823
2824 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2825
2826 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2827
2828 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2829
2830 * malloc/malloc.c (mremap_chunk): Additional checks.
2831
2832 2018-12-21 Mao Han <han_mao@c-sky.com>
2833
2834 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2835 * scripts/build-many-glibcs.py: Add C-SKY targets.
2836 * sysdeps/csky/Implies: New file.
2837 * sysdeps/csky/Makefile: Likewise.
2838 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2839 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2840 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2841 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2842 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2843 * sysdeps/csky/abiv2/memmove.S: Likewise.
2844 * sysdeps/csky/abiv2/memset.S: Likewise.
2845 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2846 * sysdeps/csky/abiv2/start.S: Likewise.
2847 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2848 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2849 * sysdeps/csky/abiv2/strlen.S: Likewise.
2850 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2851 * sysdeps/csky/abort-instr.h: Likewise.
2852 * sysdeps/csky/atomic-machine.h: Likewise.
2853 * sysdeps/csky/bits/endian.h: Likewise.
2854 * sysdeps/csky/bits/fenv.h: Likewise.
2855 * sysdeps/csky/bits/link.h: Likewise.
2856 * sysdeps/csky/bits/setjmp.h: Likewise.
2857 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2858 * sysdeps/csky/bsd-setjmp.S: Likewise.
2859 * sysdeps/csky/configure: Likewise.
2860 * sysdeps/csky/configure.ac: Likewise.
2861 * sysdeps/csky/dl-machine.h: Likewise.
2862 * sysdeps/csky/dl-procinfo.c: Likewise.
2863 * sysdeps/csky/dl-procinfo.h: Likewise.
2864 * sysdeps/csky/dl-sysdep.h: Likewise.
2865 * sysdeps/csky/dl-tls.h: Likewise.
2866 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2867 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2868 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2869 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2870 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2871 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2872 * sysdeps/csky/fpu/fegetround.c: Likewise.
2873 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2874 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2875 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2876 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2877 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2878 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2879 * sysdeps/csky/fpu/fesetround.c: Likewise.
2880 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2881 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2882 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2883 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2884 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2885 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2886 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2887 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2888 * sysdeps/csky/fpu_control.h: Likewise.
2889 * sysdeps/csky/gccframe.h: Likewise.
2890 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2891 * sysdeps/csky/ldsodefs.h: Likewise.
2892 * sysdeps/csky/libc-tls.c: Likewise.
2893 * sysdeps/csky/linkmap.h: Likewise.
2894 * sysdeps/csky/machine-gmon.h: Likewise.
2895 * sysdeps/csky/memusage.h: Likewise.
2896 * sysdeps/csky/nofpu/Implies: Likewise.
2897 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2898 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2899 * sysdeps/csky/nptl/Makefile: Likewise.
2900 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2901 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2902 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2903 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2904 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2905 * sysdeps/csky/nptl/tls.h: Likewise.
2906 * sysdeps/csky/preconfigure: Likewise.
2907 * sysdeps/csky/sfp-machine.h: Likewise.
2908 * sysdeps/csky/sotruss-lib.c: Likewise.
2909 * sysdeps/csky/stackinfo.h: Likewise.
2910 * sysdeps/csky/sysdep.h: Likewise.
2911 * sysdeps/csky/tininess.h: Likewise.
2912 * sysdeps/csky/tst-audit.h: Likewise.
2913 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2914 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2915 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2916 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2917 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2918 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2919 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2920 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2921 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2922 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2923 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2924 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2925 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2926 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2927 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2928 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2929 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2930 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2931 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2932 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2933 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2934 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2935 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2936 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2937 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2938 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2939 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2940 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2941 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2942 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2943 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2944 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2945 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2946 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2947 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2948 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2949 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2950 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2951 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2952 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2953 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2954 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2955 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2956 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2957
2958 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2959
2960 * include/time.h (__difftime64): Add.
2961 * time/difftime.c (subtract): convert to 64-bit time.
2962 * time/difftime.c (__difftime64): Add.
2963 * time/difftime.c (__difftime): Wrap around __difftime64.
2964
2965 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2966
2967 * manual/examples/add.c: Remove redundant "if not".
2968 * manual/examples/argp-ex1.c: Likewise.
2969 * manual/examples/argp-ex2.c: Likewise.
2970 * manual/examples/argp-ex3.c: Likewise.
2971 * manual/examples/argp-ex4.c: Likewise.
2972 * manual/examples/atexit.c: Likewise.
2973 * manual/examples/db.c: Likewise.
2974 * manual/examples/dir.c: Likewise.
2975 * manual/examples/dir2.c: Likewise.
2976 * manual/examples/execinfo.c: Likewise.
2977 * manual/examples/filecli.c: Likewise.
2978 * manual/examples/filesrv.c: Likewise.
2979 * manual/examples/fmtmsgexpl.c: Likewise.
2980 * manual/examples/genpass.c: Likewise.
2981 * manual/examples/inetcli.c: Likewise.
2982 * manual/examples/inetsrv.c: Likewise.
2983 * manual/examples/isockad.c: Likewise.
2984 * manual/examples/longopt.c: Likewise.
2985 * manual/examples/memopen.c: Likewise.
2986 * manual/examples/memstrm.c: Likewise.
2987 * manual/examples/mkdirent.c: Likewise.
2988 * manual/examples/mkfsock.c: Likewise.
2989 * manual/examples/mkisock.c: Likewise.
2990 * manual/examples/mygetpass.c: Likewise.
2991 * manual/examples/pipe.c: Likewise.
2992 * manual/examples/popen.c: Likewise.
2993 * manual/examples/rprintf.c: Likewise.
2994 * manual/examples/search.c: Likewise.
2995 * manual/examples/select.c: Likewise.
2996 * manual/examples/setjmp.c: Likewise.
2997 * manual/examples/sigh1.c: Likewise.
2998 * manual/examples/sigusr.c: Likewise.
2999 * manual/examples/stpcpy.c: Likewise.
3000 * manual/examples/strdupa.c: Likewise.
3001 * manual/examples/strftim.c: Likewise.
3002 * manual/examples/subopt.c: Likewise.
3003 * manual/examples/swapcontext.c: Likewise.
3004 * manual/examples/termios.c: Likewise.
3005 * manual/examples/testopt.c: Likewise.
3006 * manual/examples/testpass.c: Likewise.
3007 * manual/examples/timeval_subtract.c: Likewise.
3008
3009 2018-12-19 Joseph Myers <joseph@codesourcery.com>
3010
3011 * sysdeps/x86/fpu/math_private.h: New file.
3012 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
3013
3014 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
3015 definition.
3016 (cosh): Likewise.
3017 (tanh): Likewise.
3018
3019 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3020
3021 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
3022 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
3023 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
3024 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
3025 fields.
3026 (_dl_show_auxv): Give a special treatment to
3027 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
3028 and AT_L3_CACHEGEOMETRY.
3029 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
3030 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
3031 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
3032 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
3033
3034 2018-12-19 Andreas Schwab <schwab@suse.de>
3035
3036 * nscd/connections.c (check_use): Don't abort on invalid len.
3037
3038 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3039
3040 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3041 values in the 64bit value cases.
3042
3043 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
3044
3045 * include/time.h
3046 (__ctime64_r): Add.
3047 * time/ctime_r.c
3048 (__ctime64_r): Add.
3049 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3050
3051 * include/time.h
3052 (__ctime64): Add.
3053 * time/gmtime.c
3054 (__ctime64): Add.
3055 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3056
3057 * include/time.h
3058 (__gmtime64_r): Add.
3059 * time/gmtime.c
3060 (__gmtime64_r): Add.
3061 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3062
3063 * include/time.h
3064 (__gmtime64): Add.
3065 * time/gmtime.c
3066 (__gmtime64): Add.
3067 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3068
3069 * include/time.h
3070 (__localtime64_r): Add.
3071 * time/localtime.c
3072 (__localtime64_r): Add.
3073 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3074
3075 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3076
3077 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3078 kernel_sigction definition.
3079
3080 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3081
3082 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3083
3084 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3085 __syscall_rt_sigaction.
3086 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3087 (kernel_sigaction): Use Linux generic defintion.
3088 (STUB): Define.
3089 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
3090 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
3091 (__syscall_rt_sigaction): Remove implementation.
3092 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
3093 hidden.
3094 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
3095 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
3096 INTERNAL_SYSCALL): Remove definitions.
3097 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
3098 action and signal set size.
3099 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
3100 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
3101
3102 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3103 James Clarke <jrtc27@jrtc27.com>
3104
3105 [BZ #23967]
3106 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
3107 Define if SA_RESTORER is defined.
3108 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
3109 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3110 already defined.
3111 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3112 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3113 definitions.
3114 (HAS_SA_RESTORER): Define.
3115 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3116 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3117 (HAS_SA_RESTORER): Define.
3118 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3119 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3120 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3121 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3122 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3123
3124 2018-12-18 Joseph Myers <joseph@codesourcery.com>
3125
3126 * sysdeps/unix/sysv/linux/kernel-features.h
3127 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3128 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3129 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3130 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3131 (__ASSUME_ST_INO_64_BIT): Likewise.
3132 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3133 <kernel-features.h>.
3134 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3135 Remove conditional code.
3136 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3137 <kernel-features.h>.
3138 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3139 Remove conditional code.
3140 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3141 <kernel-features.h>.
3142 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3143 Remove conditional code.
3144 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3145 <kernel-features.h>.
3146 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3147 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3148
3149 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3150
3151 * sysdeps/s390/multiarch/ifunc-resolve.h
3152 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3153 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3154 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3155 Delete macro definition.
3156 (s390_libc_ifunc_init): Rename to
3157 s390_libc_ifunc_expr_stfle_init.
3158 * sysdeps/s390/bzero: Use
3159 s390_libc_ifunc_expr_stfle_init instead of
3160 s390_libc_ifunc_init.
3161 * sysdeps/s390/memcmp.c: Likewise.
3162 * sysdeps/s390/memcpy.c: Likewise.
3163 * sysdeps/s390/mempcpy.c: Likewise.
3164 * sysdeps/s390/memset.c: Likewise.
3165
3166 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3167
3168 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3169 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3170
3171 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3172
3173 * sysdeps/s390/multiarch/Makefile
3174 (sysdep_routines): Remove wmemcmp variants.
3175 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3176 * sysdeps/s390/multiarch/ifunc-impl-list.c
3177 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3178 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3179 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3180 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3181 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3182 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3183 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3184 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3185
3186 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3187
3188 * sysdeps/s390/multiarch/Makefile
3189 (sysdep_routines): Remove wmemset variants.
3190 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3191 * sysdeps/s390/multiarch/ifunc-impl-list.c
3192 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3193 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3194 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3195 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3196 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3197 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3198 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3199 * sysdeps/s390/ifunc-wmemset.h: New file.
3200
3201 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3202
3203 * sysdeps/s390/multiarch/Makefile
3204 (sysdep_routines): Remove wmemchr variants.
3205 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3206 * sysdeps/s390/multiarch/ifunc-impl-list.c
3207 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3208 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3209 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3210 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3211 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3212 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3213 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3214 * sysdeps/s390/ifunc-wmemchr.h: New file.
3215
3216 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3217
3218 * sysdeps/s390/multiarch/Makefile
3219 (sysdep_routines): Remove wcscspn variants.
3220 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3221 * sysdeps/s390/multiarch/ifunc-impl-list.c
3222 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3223 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3224 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3225 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3226 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3227 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3228 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3229 * sysdeps/s390/ifunc-wcscspn.h: New file.
3230
3231 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3232
3233 * sysdeps/s390/multiarch/Makefile
3234 (sysdep_routines): Remove wcspbrk variants.
3235 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3236 * sysdeps/s390/multiarch/ifunc-impl-list.c
3237 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3238 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3239 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3240 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3241 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3242 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3243 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3244 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3245
3246 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3247
3248 * sysdeps/s390/multiarch/Makefile
3249 (sysdep_routines): Remove wcsspn variants.
3250 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3251 * sysdeps/s390/multiarch/ifunc-impl-list.c
3252 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3253 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3254 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3255 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3256 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3257 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3258 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3259 * sysdeps/s390/ifunc-wcsspn.h: New file.
3260
3261 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3262
3263 * sysdeps/s390/multiarch/Makefile
3264 (sysdep_routines): Remove wcsrchr variants.
3265 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3266 * sysdeps/s390/multiarch/ifunc-impl-list.c
3267 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3268 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3269 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3270 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3271 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3272 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3273 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3274 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3275
3276 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3277
3278 * sysdeps/s390/multiarch/Makefile
3279 (sysdep_routines): Remove wcschrnul variants.
3280 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3281 * sysdeps/s390/multiarch/ifunc-impl-list.c
3282 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3283 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3284 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3285 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3286 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3287 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3288 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3289 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3290
3291 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3292
3293 * sysdeps/s390/multiarch/Makefile
3294 (sysdep_routines): Remove wcschr variants.
3295 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3296 * sysdeps/s390/multiarch/ifunc-impl-list.c
3297 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3298 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3299 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3300 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3301 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3302 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3303 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3304 * sysdeps/s390/ifunc-wcschr.h: New file.
3305
3306 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3307
3308 * sysdeps/s390/multiarch/Makefile
3309 (sysdep_routines): Remove wcsncmp variants.
3310 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3311 * sysdeps/s390/multiarch/ifunc-impl-list.c
3312 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3313 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3314 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3315 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3316 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3317 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3318 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3319 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3320
3321 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3322
3323 * sysdeps/s390/multiarch/Makefile
3324 (sysdep_routines): Remove wcscmp variants.
3325 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3326 * sysdeps/s390/multiarch/ifunc-impl-list.c
3327 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3328 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3329 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3330 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3331 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3332 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3333 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3334 * sysdeps/s390/ifunc-wcscmp.h: New file.
3335
3336 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3337
3338 * sysdeps/s390/multiarch/Makefile
3339 (sysdep_routines): Remove wcsncat variants.
3340 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3341 * sysdeps/s390/multiarch/ifunc-impl-list.c
3342 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3343 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3344 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3345 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3346 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3347 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3348 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3349 * sysdeps/s390/ifunc-wcsncat.h: New file.
3350
3351 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3352
3353 * sysdeps/s390/multiarch/Makefile
3354 (sysdep_routines): Remove wcscat variants.
3355 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3356 * sysdeps/s390/multiarch/ifunc-impl-list.c
3357 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3358 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3359 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3360 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3361 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3362 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3363 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3364 * sysdeps/s390/ifunc-wcscat.h: New file.
3365
3366 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3367
3368 * sysdeps/s390/multiarch/Makefile
3369 (sysdep_routines): Remove wcpncpy variants.
3370 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3371 * sysdeps/s390/multiarch/ifunc-impl-list.c
3372 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3373 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3374 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3375 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3376 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3377 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3378 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3379 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3380
3381 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3382
3383 * sysdeps/s390/multiarch/Makefile
3384 (sysdep_routines): Remove wcsncpy variants.
3385 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3386 * sysdeps/s390/multiarch/ifunc-impl-list.c
3387 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3388 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3389 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3390 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3391 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3392 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3393 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3394 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3395
3396 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3397
3398 * sysdeps/s390/multiarch/Makefile
3399 (sysdep_routines): Remove wcpcpy variants.
3400 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3401 * sysdeps/s390/multiarch/ifunc-impl-list.c
3402 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3403 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3404 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3405 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3406 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3407 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3408 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3409 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3410
3411 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3412
3413 * sysdeps/s390/multiarch/Makefile
3414 (sysdep_routines): Remove wcscpy variants.
3415 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3416 * sysdeps/s390/multiarch/ifunc-impl-list.c
3417 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3418 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3419 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3420 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3421 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3422 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3423 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3424 * sysdeps/s390/ifunc-wcscpy.h: New file.
3425
3426 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3427
3428 * sysdeps/s390/multiarch/Makefile
3429 (sysdep_routines): Remove wcsnlen variants.
3430 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3431 * sysdeps/s390/multiarch/ifunc-impl-list.c
3432 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3433 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3434 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3435 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3436 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3437 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3438 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3439 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3440
3441 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3442
3443 * sysdeps/s390/multiarch/Makefile
3444 (sysdep_routines): Remove wcslen variants.
3445 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3446 * sysdeps/s390/multiarch/ifunc-impl-list.c
3447 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3448 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3449 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3450 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3451 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3452 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3453 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3454 * sysdeps/s390/ifunc-wcslen.h: New file.
3455
3456 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3457
3458 * sysdeps/s390/multiarch/Makefile
3459 (sysdep_routines): Remove memrchr variants.
3460 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3461 * sysdeps/s390/multiarch/ifunc-impl-list.c
3462 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3463 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3464 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3465 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3466 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3467 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3468 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3469 * sysdeps/s390/ifunc-memrchr.h: New file.
3470
3471 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3472
3473 * sysdeps/s390/multiarch/Makefile
3474 (sysdep_routines): Remove memccpy variants.
3475 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3476 * sysdeps/s390/multiarch/ifunc-impl-list.c
3477 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3478 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3479 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3480 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3481 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3482 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3483 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3484 * sysdeps/s390/ifunc-memccpy.h: New file.
3485
3486 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3487
3488 * sysdeps/s390/multiarch/Makefile
3489 (sysdep_routines): Remove rawmemchr variants.
3490 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3491 * sysdeps/s390/multiarch/ifunc-impl-list.c
3492 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3493 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3494 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3495 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3496 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3497 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3498 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3499 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3500
3501 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3502
3503 * sysdeps/s390/multiarch/Makefile
3504 (sysdep_routines): Remove memchr variants.
3505 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3506 * sysdeps/s390/multiarch/ifunc-impl-list.c
3507 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3508 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3509 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3510 * sysdeps/s390/multiarch/memchr.c: Move to ...
3511 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3512 * sysdeps/s390/ifunc-memchr.h: New file.
3513 * sysdeps/s390/s390-64/memchr.S: Move to ...
3514 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3515 for 31/64bit and ifunc handling.
3516 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3517 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3518 * sysdeps/s390/s390-32/memchr.S: Likewise.
3519
3520 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3521
3522 * sysdeps/s390/multiarch/Makefile
3523 (sysdep_routines): Remove strcspn variants.
3524 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3525 * sysdeps/s390/multiarch/ifunc-impl-list.c
3526 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3527 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3528 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3529 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3530 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3531 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3532 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3533 * sysdeps/s390/ifunc-strcspn.h: New file.
3534
3535 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3536
3537 * sysdeps/s390/multiarch/Makefile
3538 (sysdep_routines): Remove strpbrk variants.
3539 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3540 * sysdeps/s390/multiarch/ifunc-impl-list.c
3541 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3542 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3543 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3544 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3545 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3546 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3547 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3548 * sysdeps/s390/ifunc-strpbrk.h: New file.
3549
3550 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3551
3552 * sysdeps/s390/multiarch/Makefile
3553 (sysdep_routines): Remove strspn variants.
3554 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3555 * sysdeps/s390/multiarch/ifunc-impl-list.c
3556 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3557 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3558 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3559 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3560 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3561 * sysdeps/s390/multiarch/strspn.c: Move to ...
3562 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3563 * sysdeps/s390/ifunc-strspn.h: New file.
3564
3565 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3566
3567 * sysdeps/s390/multiarch/Makefile
3568 (sysdep_routines): Remove strrchr variants.
3569 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3570 * sysdeps/s390/multiarch/ifunc-impl-list.c
3571 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3572 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3573 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3574 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3575 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3576 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3577 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3578 * sysdeps/s390/ifunc-strrchr.h: New file.
3579
3580 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3581
3582 * sysdeps/s390/multiarch/Makefile
3583 (sysdep_routines): Remove strchrnul variants.
3584 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3585 * sysdeps/s390/multiarch/ifunc-impl-list.c
3586 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3587 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3588 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3589 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3590 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3591 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3592 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3593 * sysdeps/s390/ifunc-strchrnul.h: New file.
3594
3595 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3596
3597 * sysdeps/s390/multiarch/Makefile
3598 (sysdep_routines): Remove strchr variants.
3599 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3600 * sysdeps/s390/multiarch/ifunc-impl-list.c
3601 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3602 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3603 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3604 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3605 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3606 * sysdeps/s390/multiarch/strchr.c: Move to ...
3607 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3608 * sysdeps/s390/ifunc-strchr.h: New file.
3609
3610 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3611
3612 * sysdeps/s390/multiarch/Makefile
3613 (sysdep_routines): Remove strncmp variants.
3614 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3615 * sysdeps/s390/multiarch/ifunc-impl-list.c
3616 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3617 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3618 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3619 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3620 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3621 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3622 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3623 * sysdeps/s390/ifunc-strncmp.h: New file.
3624
3625 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3626
3627 * sysdeps/s390/multiarch/Makefile
3628 (sysdep_routines): Remove strcmp variants.
3629 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3630 * sysdeps/s390/multiarch/ifunc-impl-list.c
3631 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3632 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3633 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3634 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3635 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3636 * sysdeps/s390/ifunc-strcmp.h: New file.
3637 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3638 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3639 for 31/64bit and ifunc handling.
3640 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3641 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3642 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3643
3644 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3645
3646 * sysdeps/s390/multiarch/Makefile
3647 (sysdep_routines): Remove strncat variants.
3648 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3649 * sysdeps/s390/multiarch/ifunc-impl-list.c
3650 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3651 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3652 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3653 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3654 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3655 * sysdeps/s390/multiarch/strncat.c: Move to ...
3656 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3657 * sysdeps/s390/ifunc-strncat.h: New file.
3658
3659 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3660
3661 * sysdeps/s390/multiarch/Makefile
3662 (sysdep_routines): Remove strcat variants.
3663 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3664 * sysdeps/s390/multiarch/ifunc-impl-list.c
3665 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3666 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3667 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3668 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3669 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3670 * sysdeps/s390/multiarch/strcat.c: Move to ...
3671 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3672 * sysdeps/s390/ifunc-strcat.h: New file.
3673
3674 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3675
3676 * sysdeps/s390/multiarch/Makefile
3677 (sysdep_routines): Remove stpncpy variants.
3678 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3679 * sysdeps/s390/multiarch/ifunc-impl-list.c
3680 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3681 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3682 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3683 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3684 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3685 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3686 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3687 * sysdeps/s390/ifunc-stpncpy.h: New file.
3688
3689 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3690
3691 * sysdeps/s390/multiarch/Makefile
3692 (sysdep_routines): Remove strncpy variants.
3693 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3694 * sysdeps/s390/multiarch/ifunc-impl-list.c
3695 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3696 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3697 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3698 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3699 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3700 * sysdeps/s390/ifunc-strncpy.h: New file.
3701 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3702 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3703 and adjust ifunc handling.
3704 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3705 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3706 and adjust ifunc handling.
3707 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3708 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3709
3710 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3711
3712 * sysdeps/s390/multiarch/Makefile
3713 (sysdep_routines): Remove stpcpy variants.
3714 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3715 * sysdeps/s390/multiarch/ifunc-impl-list.c
3716 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3717 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3718 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3719 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3720 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3721 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3722 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3723 * sysdeps/s390/ifunc-stpcpy.h: New file.
3724
3725 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3726
3727 * sysdeps/s390/multiarch/Makefile
3728 (sysdep_routines): Remove strcpy variants.
3729 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3730 * sysdeps/s390/multiarch/ifunc-impl-list.c
3731 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3732 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3733 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3734 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3735 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3736 * sysdeps/s390/ifunc-strcpy.h: New file.
3737 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3738 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3739 for 31/64bit and ifunc handling.
3740 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3741 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3742 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3743
3744 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3745
3746 * sysdeps/s390/multiarch/Makefile
3747 (sysdep_routines): Remove strnlen variants.
3748 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3749 * sysdeps/s390/multiarch/ifunc-impl-list.c
3750 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3751 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3752 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3753 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3754 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3755 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3756 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3757 * sysdeps/s390/ifunc-strnlen.h: New file.
3758
3759 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3760
3761 * sysdeps/s390/multiarch/Makefile
3762 (sysdep_routines): Remove strlen variants.
3763 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3764 * sysdeps/s390/multiarch/ifunc-impl-list.c
3765 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3766 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3767 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3768 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3769 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3770 * sysdeps/s390/multiarch/strlen.c: Move to ...
3771 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3772 * sysdeps/s390/ifunc-strlen.h: New file.
3773
3774 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3775
3776 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3777 * sysdeps/s390/multiarch/ifunc-impl-list.c
3778 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3779 * sysdeps/s390/ifunc-memmem.h: New file.
3780 * sysdeps/s390/memmem.c: Likewise.
3781 * sysdeps/s390/memmem-c.c: Likewise.
3782 * sysdeps/s390/memmem-vx.c: Likewise.
3783
3784 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3785
3786 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3787 * sysdeps/s390/multiarch/ifunc-impl-list.c
3788 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3789 * sysdeps/s390/ifunc-strstr.h: New file.
3790 * sysdeps/s390/strstr.c: Likewise.
3791 * sysdeps/s390/strstr-c.c: Likewise.
3792 * sysdeps/s390/strstr-vx.c: Likewise.
3793
3794 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3795
3796 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3797 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3798 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3799 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3800 New defines.
3801 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3802 * sysdeps/s390/memmove-c.c: New file.
3803 * sysdeps/s390/memmove.c: Likewise.
3804 * sysdeps/s390/multiarch/ifunc-impl-list.c
3805 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3806
3807 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3808
3809 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3810 * sysdeps/s390/configure.ac: Add check for z13 support.
3811 * sysdeps/s390/configure: Regenerated.
3812
3813 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3814
3815 * sysdeps/s390/memcopy.h: New file.
3816
3817 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3818
3819 * sysdeps/s390/s390-32/bcopy.S: Remove.
3820 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3821
3822 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3823
3824 * sysdeps/s390/ifunc-memcpy.h: New File.
3825 * sysdeps/s390/memcpy.S: Move to ...
3826 * sysdeps/s390/memcpy-z900.S ... here.
3827 Move implementations from memcpy-s390x.s to here.
3828 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3829 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3830 Remove memcpy/mempcpy variants.
3831 * sysdeps/s390/Makefile (sysdep_routines):
3832 Add memcpy/mempcpy variants.
3833 * sysdeps/s390/multiarch/ifunc-impl-list.c
3834 (__libc_ifunc_impl_list): Adjust ifunc variants for
3835 memcpy and mempcpy.
3836 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3837 to ...
3838 * sysdeps/s390/memcpy.c: ... here.
3839 Adjust ifunc variants for memcpy.
3840 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3841 * sysdeps/s390/mempcpy.c: ... here.
3842 Adjust ifunc variants for mempcpy.
3843 * sysdeps/s390/mempcpy.S: Delete file.
3844
3845 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3846
3847 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3848 * sysdeps/s390/memcpy.S: ... here.
3849 Adjust to be usable for 31/64bit.
3850 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3851 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3852 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3853 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3854 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3855 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3856 Adjust to be usable for 31/64bit.
3857 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3858 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3859 * sysdeps/s390/multiarch/memcpy.c: ... here.
3860 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3861
3862 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3863
3864 * sysdeps/s390/ifunc-memcmp.h: New File.
3865 * sysdeps/s390/memcmp.S: Move to ...
3866 * sysdeps/s390/memcmp-z900.S ... here.
3867 Move implementations from memcmp-s390x.s to here.
3868 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3869 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3870 Remove memcmp variants.
3871 * sysdeps/s390/Makefile (sysdep_routines):
3872 Add memcmp variants.
3873 * sysdeps/s390/multiarch/ifunc-impl-list.c
3874 (__libc_ifunc_impl_list): Adjust ifunc variants for
3875 memcmp.
3876 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3877 to ...
3878 * sysdeps/s390/memcmp.c: ... here.
3879 Adjust ifunc variants for memcmp.
3880
3881 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3882
3883 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3884 * sysdeps/s390/memcmp.S: ... here.
3885 Adjust to be usable for 31/64bit.
3886 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3887 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3888 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3889 Remove memcmp.
3890 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3891 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3892 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3893 Adjust to be usable for 31/64bit.
3894 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3895 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3896 * sysdeps/s390/multiarch/memcmp.c: ... here.
3897 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3898
3899 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3900
3901 * sysdeps/s390/s390-32/bzero.S: Delete file.
3902 * sysdeps/s390/s390-64/bzero.S: Likewise.
3903 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3904 * sysdeps/s390/bzero.c: New file.
3905 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3906 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3907 * sysdeps/s390/multiarch/ifunc-impl-list.c
3908 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3909
3910 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3911
3912 * sysdeps/s390/ifunc-memset.h: New File.
3913 * sysdeps/s390/memset.S: Move to ...
3914 * sysdeps/s390/memset-z900.S ... here.
3915 Move implementations from memset-s390x.s to here.
3916 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3917 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3918 Remove memset variants.
3919 * sysdeps/s390/Makefile (sysdep_routines):
3920 Add memset variants.
3921 * sysdeps/s390/multiarch/ifunc-impl-list.c
3922 (__libc_ifunc_impl_list): Adjust ifunc variants for
3923 memset.
3924 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3925 to ...
3926 * sysdeps/s390/memset.c: ... here.
3927 Adjust ifunc variants for memset.
3928
3929 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3930
3931 * sysdeps/s390/s390-64/memset.S: Move to ...
3932 * sysdeps/s390/memset.S: ... here.
3933 Adjust to be usable for 31/64bit.
3934 * sysdeps/s390/s390-32/memset.S: Delete File.
3935 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3936 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3937 Remove memset.
3938 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3939 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3940 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3941 Adjust to be usable for 31/64bit.
3942 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3943 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3944 * sysdeps/s390/multiarch/memset.c: ... here.
3945 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3946
3947 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3948
3949 * sysdeps/s390/multiarch/ifunc-resolve.h
3950 (s390_libc_ifunc_init, s390_libc_ifunc,
3951 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3952
3953 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3954
3955 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3956 * sysdeps/s390/configure.ac: Add check for z10 support.
3957 * sysdeps/s390/configure: Regenerated.
3958
3959 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3960
3961 * sysdeps/i386/atomic-machine.h: Merged with ...
3962 * sysdeps/x86_64/atomic-machine.h: To ...
3963 * sysdeps/x86/atomic-machine.h: This. New file.
3964
3965 2018-12-18 Florian Weimer <fweimer@redhat.com>
3966
3967 Rewrite locale/gen-translit.pl in Python.
3968 * locale/Makefile (generated): Add C-translit.h.
3969 (before-compile): Add $(objpfx)C-translit.h.
3970 (C-translit.h): Move to $(objpfx). Create target directory.
3971 Build using Python script.
3972 * locale/gen-translit.py: New file.
3973 * locale/gen-translit.pl: Remove file.
3974 * locale/C-translit.h.in: Change comment character to '#' for
3975 easier parsing without a C preprocessor.
3976 * locale/C-translit.h: Remove generated file.
3977 * manual/install.texi (Tools for Compilation): Do not mention
3978 C-translit.h.
3979 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3980 Remove locale/C-translit.h.
3981 * scripts/update-copyrights: Likewise.
3982 * INSTALL: Regenerate.
3983
3984 2018-12-18 Florian Weimer <fweimer@redhat.com>
3985
3986 [BZ #23995]
3987 * localedata/locales/bi_VU: Remove executable bit from file.
3988
3989 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3990
3991 * include/time.h
3992 (__localtime64): Add.
3993 * manual/maint.texi: Document Y2038 symbol handling.
3994 * time/localtime.c
3995 (__localtime64): Add.
3996 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3997
3998 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3999
4000 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
4001 Do not clobber r12.
4002
4003 * scripts/glibcextract.py (compare_macro_consts): Take parameters
4004 to allow extra macros from first or second sources.
4005 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
4006 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4007 (tests-special): Add $(objpfx)tst-mman-consts.out.
4008 ($(objpfx)tst-mman-consts.out): New makefile target.
4009
4010 2018-12-17 Mao Han <han_mao@c-sky.com>
4011
4012 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
4013 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
4014 without stat64 system call support.
4015 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
4016 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
4017 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
4018 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
4019 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
4020 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
4021 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
4022 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
4023 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
4024 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
4025 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
4026
4027 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
4028
4029 regex: fix storage-exhaustion error
4030 [BZ #18040]
4031 * posix/regexec.c (get_subexp):
4032 Do not continue if storage is exhausted.
4033
4034 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
4035
4036 regex: fix heap-use-after-free error
4037 [BZ #18040]
4038 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4039 https://debbugs.gnu.org/32592
4040 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4041 call extend_buffers which reallocates the re_string_t internal buffer.
4042 Local variable 'buf' was not updated in such case, resulting in
4043 use-after-free.
4044 * posix/regexec.c (get_subexp): Update 'buf' after call to
4045 get_subexp_sub.
4046
4047 2018-12-15 Florian Weimer <fweimer@redhat.com>
4048
4049 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4050 (minimum_stride_size): Use it.
4051 (support_blob_repeat_allocate): Likewise.
4052
4053 2018-12-14 Joseph Myers <joseph@codesourcery.com>
4054
4055 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4056 definition.
4057 (acosh): Likewise.
4058 (atanh): Likewise.
4059
4060 2018-12-14 Florian Weimer <fweimer@redhat.com>
4061
4062 * manual/process.texi (Process Creation Concepts): Remove
4063 documentation of process (ID) lifetime. List more process
4064 creation functions. Reference Process Identification section.
4065 (Process Identification): Add information about process ID
4066 lifetime. Describe Linux thread/task IDs.
4067 * manual/signal.texi (Signaling Another Process): Mention that the
4068 signal is always sent to the process.
4069
4070 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4071
4072 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
4073 and tst-ldbl-efgcvt.
4074 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4075 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4076 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4077 (fcvt_tests, output_error, output_r_error, do_test): Use the
4078 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4079 select the type of floating-point variables and arguments; to
4080 produce extra tests for double and conversion specifiers for
4081 printf; and to set the names of called functions.
4082 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4083 in tst-efgcvt-template.c.
4084 * misc/tst-ldbl-efgcvt.c: Likewise.
4085
4086 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
4087
4088 * nss/Makefile (tst-nss-test3.out): New rule.
4089
4090 2018-12-13 Joseph Myers <joseph@codesourcery.com>
4091
4092 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
4093 clobber sp.
4094
4095 2018-12-13 fanjinke <fanjinke@hygon.cn>
4096
4097 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
4098 "HygonGenuine".
4099
4100 2018-12-13 Andreas Schwab <schwab@suse.de>
4101
4102 [BZ #23861]
4103 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
4104 (__pthread_rwlock_rdlock_full): Update expected value for
4105 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
4106 * nptl/tst-rwlock-pwn.c: New file.
4107 * nptl/Makefile (tests): Add tst-rwlock-pwn.
4108
4109 2018-12-12 Joseph Myers <joseph@codesourcery.com>
4110
4111 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4112 definition.
4113
4114 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4115
4116 * benchtests/scripts/compare_bench.py (do_compare): write to
4117 stderr in casestat is not present.
4118 * benchtests/scripts/compare_bench.py (plot_graphs): write to
4119 stderr in case timings field is not present. Also string showing
4120 the output filename goes into the stderr.
4121
4122 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4123
4124 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4125 and ZeroDivisorError exceptions.
4126 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4127 argument to loop through user provided statistics.
4128 * benchtests/scripts/compare_bench.py (main): Include the --stats
4129 argument.
4130
4131 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4132
4133 * benchtests/scripts/compare_bench.py (compare_runs): Continue
4134 instead of return.
4135
4136 2018-12-12 Florian Weimer <fweimer@redhat.com>
4137
4138 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4139 clause to copyright header.
4140
4141 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4142
4143 [BZ #23614]
4144 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4145 registers saved in the stack frame.
4146 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4147 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4148
4149 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4150
4151 * include/bits/monetary-ldbl.h: New file.
4152 * include/bits/printf-ldbl.h: Likewise.
4153 * include/bits/stdio-ldbl.h: Likewise.
4154 * include/bits/stdlib-ldbl.h: Likewise.
4155 * include/bits/syslog-ldbl.h: Likewise.
4156 * include/bits/wchar-ldbl.h: Likewise.
4157
4158 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4159
4160 * libio/libio.h: Remove redirection for _IO_vfprintf.
4161
4162 2018-12-11 Andreas Schwab <schwab@suse.de>
4163
4164 * Makerules: Remove all references to abilist-pattern.
4165 (update-all-abi): Simplify find expression.
4166
4167 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4168
4169 [BZ #23961]
4170 * math/auto-libm-test-in: Add new test case.
4171 * math/auto-libm-test-out-pow: Regenerated.
4172 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4173
4174 2018-12-10 DJ Delorie <dj@redhat.com>
4175
4176 [BZ #23948]
4177 * support/test-container.c: Move postclean step to before we
4178 change namespaces.
4179
4180 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4181
4182 * scripts/gen-as-const.py (main): Handle --python option.
4183 * scripts/gen-py-const.awk: Remove.
4184 * Makerules (py-const-script): Use gen-as-const.py.
4185 ($(py-const)): Likewise.
4186 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4187 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4188 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4189 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4190 ~PTHREAD_MUTEX_NO_ELISION_NP.
4191 * manual/README.pretty-printers: Update reference to
4192 gen-py-const.awk.
4193
4194 * scripts/glibcextract.py: New file.
4195 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4196 or tempfile. Import glibcexctract.
4197 (compute_c_consts): Remove. Moved to glibcextract.py.
4198 (gen_test): Update reference to compute_c_consts.
4199 (main): Likewise.
4200 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4201 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4202 * sysdeps/unix/sysv/linux/Makefile
4203 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4204 Redirect stderr as well as stdout.
4205
4206 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4207
4208 [BZ #19767]
4209 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4210 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4211 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4212 ALWAYS_USE_VSYSCALL.
4213 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4214 ALWAYS_USE_VSYSCALL.
4215 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4216 ALWAYS_USE_VSYSCALL.
4217
4218 2018-12-10 Florian Weimer <fweimer@redhat.com>
4219
4220 [BZ #23972]
4221 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4222 offset instead of count for clarity. Fix typo in comment.
4223 (__old_getdents64): Keep track of previous offset. Use it to call
4224 handle_overflow.
4225 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4226 that d_off is never zero.
4227
4228 2018-12-10 Andreas Schwab <schwab@suse.de>
4229
4230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4231 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4232 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4233 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4234 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4235
4236 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4237
4238 * timezone/private.h: Update from tzcode 2018g.
4239 * timezone/tzfile.h: Likewise.
4240 * timezone/tzselect.ksh: Likewise.
4241 * timezone/zdump.c: Likewise.
4242 * timezone/zic.c: Likewise.
4243
4244 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4245
4246 [BZ #23490]
4247 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4248 (do_test): Adjust buffer size and fix format.
4249
4250 2018-12-07 DJ Delorie <dj@redhat.com>
4251
4252 [BZ #23907]
4253 * malloc/tst-tcfree3.c: New.
4254 * malloc/Makefile: Add it.
4255
4256 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4257
4258 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4259
4260 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4261
4262 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4263 used as a mask for the mode argument of __vfscanf_internal and
4264 __vfwscanf_internal.
4265 * stdio-common/vfscanf-internal.c
4266 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4267 (__strtof128_internal): Define to __wcstof128_internal.
4268 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4269 __strtof128_internal or __wcstof128_internal when the format of
4270 long double is the same as _Float128.
4271
4272 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4273
4274 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4275 * posix/confstr.c (confstr): Rename to __confstr.
4276 (__confstr): Add hidden def.
4277 (confstr): Add weak alias for __confstr.
4278 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4279 confstr.
4280
4281 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4282
4283 * NEWS: Mention getcpu.
4284 * include/sched.h (__getcpu): New libc_hidden_proto.
4285 * manual/resource.texi: Document getcpu.
4286 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4287 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4288 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4289 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4290 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4291 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4292 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4293 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4294 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4295 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4296 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4297 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4298 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4299 Likewise.
4300 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4301 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4302 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4304 Likewise.
4305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4306 Likewise.
4307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4308 Likewise.
4309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4310 Likewise.
4311 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4312 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4313 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4314 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4315 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4316 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4317 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4318 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4319 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4320 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4321 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4322 Also check getcpu.
4323
4324 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4325
4326 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4327 functions.
4328 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4329
4330 2018-12-07 Florian Weimer <fweimer@redhat.com>
4331
4332 [BZ #17405]
4333 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4334 * posix/Versions (GLIBC_2.29): Export
4335 posix_spawn_file_actions_addfchdir_np.
4336 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4337 * posix/spawn_faction_destroy.c
4338 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4339 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4340 and the field action.fchdir_action.
4341 * posix/tst-spawn-chdir.c (add_chdir): New function.
4342 (do_test): Add do_fchdir loop. Call add_chdir.
4343 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4344 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4345 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4346 posix_spawn_file_actions_addfchdir_np.
4347 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4348 Likewise.
4349 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4350 Likewise.
4351 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4352 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4353 Likewise.
4354 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4355 Likewise.
4356 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4357 Likewise.
4358 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4359 Likewise.
4360 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4361 Likewise.
4362 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4363 Likewise.
4364 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4365 (GLIBC_2.29): Likewise.
4366 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4367 (GLIBC_2.29): Likewise.
4368 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4369 (GLIBC_2.29): Likewise.
4370 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4371 (GLIBC_2.29): Likewise.
4372 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4373 Likewise.
4374 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4375 (GLIBC_2.29): Likewise.
4376 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4377 (GLIBC_2.29): Likewise.
4378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4379 (GLIBC_2.29): Likewise.
4380 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4381 (GLIBC_2.29): Likewise.
4382 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4383 Likewise.
4384 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4385 Likewise.
4386 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4387 Likewise.
4388 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4389 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4390 Likewise.
4391 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4392 Likewise.
4393 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4394 Likewise.
4395 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4396 Likewise.
4397
4398 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4399
4400 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4401 trailing whitespace removed.
4402 * scripts/config.guess: Update to version 2018-11-28.
4403 * scripts/config.sub: Update to version 2018-11-28.
4404 * scripts/install-sh: Update to version 2018-03-11.20.
4405 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4406 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4407
4408 2018-12-07 Florian Weimer <fweimer@redhat.com>
4409
4410 [BZ #23927]
4411 CVE-2018-19591
4412 * inet/tst-if_index-long.c: New file.
4413 * inet/Makefile (tests): Add tst-if_index-long.
4414
4415 2018-12-07 Florian Weimer <fweimer@redhat.com>
4416
4417 * support/check.h (support_record_failure_is_failed): Declare.
4418 * support/descriptors.h: New file.
4419 * support/support_descriptors.c: Likewise.
4420 * support/tst-support_descriptors.c: Likewise.
4421 * support/support_record_failure.c
4422 (support_record_failure_is_failed): New function.
4423 * support/Makefile (libsupport-routines): Add support_descriptors.
4424 (tests): Add tst-support_descriptors.
4425
4426 2018-12-05 Zack Weinberg <zackw@panix.com>
4427 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4428
4429 * stdio-common/vfprintf-internal.c
4430 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4431 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4432 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4433 and __no_long_double.
4434 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4435 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4436 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4437 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4438 and __nldbl_*syslog* functions.
4439 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4440 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4441 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4442 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4443 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4444 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4445 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4446 (__nldbl_vwprintf, __nldbl_wprintf):
4447 Directly call the appropriate __v*printf_internal routine, passing
4448 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4449 variable names.
4450 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4451 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4452 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4453 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4454 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4455 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4456 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4457 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4458 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4459 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4460 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4461 (__nldbl_syslog, __nldbl_vsyslog):
4462 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4463 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4464 appropriate.
4465 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4466 appropriate.
4467
4468 2018-12-05 Zack Weinberg <zackw@panix.com>
4469 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4470
4471 [BZ #11319]
4472 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4473 Moved here from debug/vsprintf_chk.c.
4474 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4475 and completion logic for the strfile to match exactly what
4476 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4477 _IO_str_init_static_internal instead of maxlen-1.
4478 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4479 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4480 __vsprintf_internal.
4481
4482 * debug/vsprintf_chk.c (__vsprintf_chk)
4483 * debug/sprintf_chk.c (__sprintf_chk):
4484 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4485 'flags' argument is positive, and slen as maxlen. No need to lock
4486 the FILE and/or construct a temporary FILE. Minimize and normalize
4487 header inclusions and variable names. Do not libc_hidden_def anything.
4488
4489 * debug/asprintf_chk.c (__asprintf_chk)
4490 * debug/dprintf_chk.c (__dprintf_chk)
4491 * debug/fprintf_chk.c (__fprintf_chk)
4492 * debug/fwprintf_chk.c (__fwprintf_chk)
4493 * debug/printf_chk.c (__printf_chk)
4494 * debug/snprintf_chk.c (__snprintf_chk)
4495 * debug/swprintf_chk.c (__swprintf_chk)
4496 * debug/vasprintf_chk.c (__vasprintf_chk)
4497 * debug/vdprintf_chk.c (__vdprintf_chk)
4498 * debug/vfprintf_chk.c (__vfprintf_chk)
4499 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4500 * debug/vprintf_chk.c (__vprintf_chk)
4501 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4502 * debug/vswprintf_chk.c (__vswprintf_chk)
4503 * debug/vwprintf_chk.c (__vwprintf_chk)
4504 * debug/wprintf_chk.c (__wprintf_chk):
4505 Directly call the corresponding vxxprintf_internal function, passing
4506 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4507 the FILE and/or construct a temporary FILE. Minimize and normalize
4508 header inclusions and variable names. Do not libc_hidden_def anything.
4509
4510 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4511 __obstack_vprintf_internal.
4512 (__obstack_vprintf_chk): Convert into a wrapper that calls
4513 __obstack_vprintf_internal (these two functions already had the
4514 same code) and move to new file...
4515 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4516 file.
4517 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4518 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4519 * debug/Makefile (routines): Add vobprintf_chk.
4520
4521 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4522 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4523 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4524 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4525 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4526 (__nldbl___obstack_vfprintf_chk):
4527 Directly call the corresponding vxxprintf_internal function,
4528 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4529 duplicate comparison of slen with 0 or maxlen from the corresponding
4530 non-__nldbl function.
4531
4532 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4533 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4534 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4535 Remove libc_hidden_proto.
4536
4537 * stdio-common/vfprintf-internal.c
4538 (__vfprintf_internal, __vfwprintf_internal):
4539 Do not check _IO_FLAGS2_FORTIFY.
4540 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4541 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4542 a comment explaining why it has the maxlen argument.
4543 (_IO_acquire_lock_clear_flags2_fct): Remove.
4544 (_IO_acquire_lock_clear_flags2): Remove.
4545 (_IO_release_lock): Remove conditional statement which will
4546 now never execute.
4547 (_IO_acquire_lock): Remove variable which is now unused.
4548 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4549 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4550
4551 * stdio-common/Makefile (tests): Add tst-bz11319 and
4552 tst-bz11319-fortify2.
4553 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4554 * stdio-common/tst-bz11319-fortify2.c: New file.
4555 * stdio-common/tst-bz11319.c: Likewise.
4556
4557 2018-12-05 Zack Weinberg <zackw@panix.com>
4558 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4559
4560 * misc/syslog.c: Include libioP.h, not iolibio.h.
4561 (__vsyslog_internal): New function with the former body of
4562 __vsyslog_chk; takes mode_flags argument same as
4563 __v*printf_internal. Call __vfprintf_internal directly.
4564
4565 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4566 Remove libc_hidden_def.
4567 (__syslog, __syslog_chk): Use __vsyslog_internal.
4568 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4569
4570 * include/sys/syslog.h: Add multiple inclusion guard.
4571 Add prototype for __vsyslog_internal.
4572 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4573
4574 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4575 Use __vsyslog_internal.
4576
4577 2018-12-05 Zack Weinberg <zackw@panix.com>
4578 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4579
4580 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4581 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4582 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4583 New functions.
4584 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4585 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4586
4587 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4588 Include wctype.h here if COMPILE_WPRINTF is defined.
4589 Define __vfprintf_internal or __vfwprintf_internal, depending
4590 on COMPILE_WPRINTF.
4591 Temporarily, on entry to this function, update mode_flags
4592 according to the environmental settings corresponding to
4593 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4594 Throughout, check mode_flags instead of __ldbl_is_dbl and
4595 _IO_FLAGS2_FORTIFY on the destination FILE.
4596 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4597 Include vfprintf-internal.c. Don't include wctype.h.
4598 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4599 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4600 and vfprintf.
4601 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4602 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4603 and vfwprintf.
4604 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4605
4606 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4607 and add mode_flags argument; use __vfprintf_internal.
4608 (__vdprintf): New function. Alias vdprintf to this.
4609 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4610 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4611 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4612 (__obstack_printf): Use __obstack_printf_internal.
4613 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4614 public aliases __vsnprintf and vsnprintf.
4615 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4616 called internally.
4617 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4618 public aliases _IO_vsprintf and vsprintf.
4619 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4620 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4621 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4622 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4623 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4624
4625 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4626 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4627 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4628 * stdio-common/printf.c: Use __vfprintf_internal.
4629
4630 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4631 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4632 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4633
4634 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4635 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4636 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4637 __vfwprintf_internal.
4638
4639 * libio/libio.h: Remove libc_hidden_proto and declaration for
4640 _IO_vfprintf.
4641 Remove declaration of _IO_vfwprintf.
4642 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4643 _IO_vsprintf.
4644 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4645 _IO_obstack_printf.
4646 * include/stdio.h: Add prototype for __vasprintf.
4647 (__vsnprintf): Remove declaration, because there are no more
4648 internal calls.
4649 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4650 declaration, because there are no more internal calls.
4651
4652 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4653 __vsnprintf_internal, instead of _IO_vsnprintf.
4654 * argp/argp-help.c (__argp_error, __argp_failure): Use
4655 __vasprintf_internal, instead of _IO_vasprintf.
4656 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4657 redefine, because there are no more internal calls.
4658
4659 2018-12-05 Zack Weinberg <zackw@panix.com>
4660 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4661
4662 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4663 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4664 Include libio/strfile.h instead of libioP.h.
4665 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4666 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4667 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4668 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4669 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4670 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4671 necessary. Do not set __no_long_double. Normalize variable names.
4672 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4673 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4674 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4675 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4676 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4677 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4678 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4679 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4680 Do not set __no_long_double. Normalize variable names.
4681
4682 2018-12-05 Zack Weinberg <zackw@panix.com>
4683 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4684
4685 * stdio-common/isoc99_scanf.c
4686 * stdio-common/isoc99_fscanf.c
4687 * stdio-common/isoc99_sscanf.c
4688 * stdio-common/isoc99_vscanf.c
4689 * stdio-common/isoc99_vfscanf.c
4690 * stdio-common/isoc99_vsscanf.c
4691 * wcsmbs/isoc99_wscanf.c
4692 * wcsmbs/isoc99_fwscanf.c
4693 * wcsmbs/isoc99_swscanf.c
4694 * wcsmbs/isoc99_vwscanf.c
4695 * wcsmbs/isoc99_vfwscanf.c
4696 * wcsmbs/isoc99_vswscanf.c:
4697 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4698 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4699 No need to lock and unlock the FILE passed to that function.
4700
4701 * stdio-common/vfscanf-internal.c
4702 (__vfscanf_internal, __vfwscanf_internal):
4703 Don't look at _IO_FLAGS2_SCANF_STD.
4704 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4705 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4706 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4707
4708 2018-12-05 Zack Weinberg <zackw@panix.com>
4709 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4710
4711 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4712 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4713 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4714 * libio/strfile.h: Add multiple inclusion guard.
4715 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4716
4717 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4718 consistency with the other version of this file.
4719 (ldbl_compat_symbol): New macro.
4720 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4721 New macro.
4722
4723 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4724 Define __vfscanf_internal or __vfwscanf_internal, depending on
4725 COMPILE_WSCANF; don't define any other public symbols.
4726 Remove errval and code to set errp.
4727 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4728 as the mode_flags argument.
4729 (encode_error, conv_error, input_error): Don't set errval.
4730 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4731 Include vfscanf-internal.c.
4732 * stdio-common/vfscanf.c: New file defining the public entry
4733 point vfscanf, which calls __vfscanf_internal.
4734 * stdio-common/vfwscanf.c: New file defining the public entry
4735 point vfwscanf, which calls __vfwscanf_internal.
4736
4737 * stdio-common/iovfscanf.c: New file.
4738 * stdio-common/iovfwscanf.c: Likewise.
4739
4740 * stdio-common/Makefile (routines): Add vfscanf-internal,
4741 vfwscanf-internal, iovfscanf, iovfwscanf.
4742 * stdio-common/Versions: Mention GLIBC_2.29, so that
4743 it can be used in SHLIB_COMPAT expressions.
4744 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4745 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4746 Call __vfscanf_internal, instead of _IO_vfscanf.
4747 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4748 _IO_vfscanf.
4749 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4750 _IO_vfwscanf.
4751
4752 * libio/iovsscanf.c: Clean up includes, when possible. Use
4753 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4754 __vfscanf_internal or __vfwscanf_internal directly.
4755 * libio/iovswscanf.c: Likewise.
4756 * libio/swscanf.c: Likewise.
4757 * libio/vscanf.c: Likewise.
4758 * libio/vwscanf.c: Likewise.
4759 * libio/wscanf.c: Likewise.
4760 * stdio-common/isoc99_fscanf.c: Likewise.
4761 * stdio-common/isoc99_scanf.c: Likewise.
4762 * stdio-common/isoc99_sscanf.c: Likewise.
4763 * stdio-common/isoc99_vfscanf.c: Likewise.
4764 * stdio-common/isoc99_vscanf.c: Likewise.
4765 * stdio-common/isoc99_vsscanf.c: Likewise.
4766 * stdio-common/scanf.c: Likewise.
4767 * stdio-common/sscanf.c: Likewise.
4768 * wcsmbs/isoc99_fwscanf.c: Likewise.
4769 * wcsmbs/isoc99_swscanf.c: Likewise.
4770 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4771 * wcsmbs/isoc99_vswscanf.c: Likewise.
4772 * wcsmbs/isoc99_vwscanf.c: Likewise.
4773 * wcsmbs/isoc99_wscanf.c: Likewise.
4774
4775 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4776
4777 * include/time.h
4778 (__tz_compute): Replace time_t with __time64_t.
4779 (__tz_convert): Replace time_t* with __time64_t.
4780 (__offtime): Replace time_t* with __time64_t.
4781 * time/gmtime.c
4782 (__gmtime_r): Adjust call to __tz_convert.
4783 (gmtime): Likewise.
4784 * time/localtime.c
4785 (__localtime_r): Likewise.
4786 (localtime): Likewise.
4787 * time/offtime.c: Replace time_t with __time64_t.
4788 * time/tzset.c: Likewise.
4789
4790 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4791
4792 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4793 dynamic linker unless [$(run-built-tests) = yes].
4794
4795 2018-12-03 DJ Delorie <dj@delorie.com>
4796
4797 * support/test-container.c (check_for_unshare_hints): New.
4798 (main): Call it if unshare fails. Add support for "su" scriptlet
4799 command.
4800
4801 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4802
4803 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4804 'START' to indicate that start text should be output.
4805 (gen_test): Likewise.
4806 (main): Generate 'START' for first symbol or '--' line, or at end
4807 of input if not previously generated.
4808
4809 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4810
4811 [BZ #19767]
4812 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4813 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4814 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4815 ALWAYS_USE_VSYSCALL.
4816
4817 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4818
4819 [BZ #23913]
4820 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4821 new_argv by one.
4822
4823 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4824
4825 [BZ #23923]
4826 * locale/programs/localedef.c: Declare boolean hard_links default true.
4827 (options): Add --no-hard-links option.
4828 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4829 * locale/programs/localedef.h: Declare prototype for hard_links.
4830 * locale/programs/locfile.c (write_locale_data): Don't use hard
4831 links if hard_links is false.
4832
4833 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4834
4835 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4836 cpu_features_basic.
4837 (__cache_sysconf): Likewise.
4838 (init_cacheinfo): Likewise.
4839 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4840 populate COMMON_CPUID_INDEX_80000007 and
4841 COMMON_CPUID_INDEX_80000008.
4842 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4843 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4844 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4845 (init_cpu_features): Use _Static_assert on
4846 index_arch_Fast_Unaligned_Load.
4847 __get_cpuid_registers and __get_arch_feature. Updated for
4848 cpu_features_basic. Set stepping in cpu_features.
4849 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4850 (FEATURE_INDEX_2): New.
4851 (FEATURE_INDEX_MAX): Changed to enum.
4852 (COMMON_CPUID_INDEX_D_ECX_1): New.
4853 (COMMON_CPUID_INDEX_80000007): Likewise.
4854 (COMMON_CPUID_INDEX_80000008): Likewise.
4855 (cpuid_registers): Likewise.
4856 (cpu_features_basic): Likewise.
4857 (CPU_FEATURE_USABLE): Likewise.
4858 (bit_arch_XXX_Usable): Likewise.
4859 (cpu_features): Use cpuid_registers and cpu_features_basic.
4860 (bit_arch_XXX): Reweritten.
4861 (bit_cpu_XXX): Likewise.
4862 (index_cpu_XXX): Likewise.
4863 (reg_XXX): Likewise.
4864 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4865 <support/check.h>.
4866 (CHECK_CPU_FEATURE): New.
4867 (CHECK_CPU_FEATURE_USABLE): Likewise.
4868 (cpu_kinds): Likewise.
4869 (do_test): Print vendor, family, model and stepping. Check
4870 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4871 (TEST_FUNCTION): Removed.
4872 Include <support/test-driver.c> instead of
4873 "../../test-skeleton.c".
4874 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4875 Check POPCNT instead of POPCOUNT.
4876 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4877
4878 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4879
4880 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4881 there is no element in `consts'.
4882
4883 2018-12-01 Florian Weimer <fweimer@redhat.com>
4884
4885 * support/support_capture_subprocess.c
4886 (support_capture_subprocess): Check that pipe descriptors have
4887 expected values. Close original pipe descriptors in subprocess.
4888
4889 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4890
4891 [BZ #23032]
4892 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4893 attr with __pthread_default_barrierattr.
4894 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4895 attr with __pthread_default_condattr.
4896 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4897 attr with __pthread_default_mutexattr.
4898 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4899 attr with __pthread_default_rwlockattr.
4900
4901 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4902
4903 * manual/tunables.texi (POSIX Thread Tunables): New node.
4904 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4905 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4906 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4907 __pthread_tunables_init.
4908 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4909 (max_adaptive_count): Define.
4910 * nptl/pthread_mutex_conf.c: New file.
4911 * nptl/pthread_mutex_conf.h: New file.
4912 * sysdeps/generic/adaptive_spin_count.h: New file.
4913 * sysdeps/nptl/dl-tunables.list: New file.
4914 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4915 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4916 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4917 Likewise.
4918
4919 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4920
4921 [BZ #20544]
4922 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4923 * stdlib/on_exit.c (__on_exit): Likewise.
4924 * stdlib/Makefile (tests): Add tst-bz20544.
4925 * stdlib/tst-bz20544.c: New test.
4926
4927 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4928
4929 [BZ #19767]
4930 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4931 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4932 New.
4933
4934 2018-11-30 Florian Weimer <fweimer@redhat.com>
4935
4936 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4937 Extend error logging.
4938 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4939 symbol.
4940
4941 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4942
4943 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4944 __sigismember instead of sigismember.
4945 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4946 cancel_handler): New definitions.
4947 (do_system): Use posix_spawn instead of fork and execl and remove
4948 reentracy code.
4949 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4950 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4951 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4952 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4953 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4954 * sysdeps/unix/sysv/linux/system.c: Likewise.
4955
4956 [BZ #22834]
4957 [BZ #17490]
4958 * NEWS: Add new semantic for atfork with popen and system.
4959 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4960 fork and execl.
4961
4962 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4963
4964 [BZ #23690]
4965 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4966 modification order when accessing reloc_result->addr.
4967 * include/link.h (reloc_result): Add field init.
4968 * nptl/Makefile (tests): Add tst-audit-threads.
4969 (modules-names): Add tst-audit-threads-mod1 and
4970 tst-audit-threads-mod2.
4971 Add rules to build tst-audit-threads.
4972 * nptl/tst-audit-threads-mod1.c: New file.
4973 * nptl/tst-audit-threads-mod2.c: Likewise.
4974 * nptl/tst-audit-threads.c: Likewise.
4975 * nptl/tst-audit-threads.h: Likewise.
4976
4977 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4978
4979 * scripts/gen-as-const.py: New file.
4980 * scripts/gen-as-const.awk: Remove.
4981 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4982 gen-as-const.py.
4983 ($(objpfx)test-as-const-%.c): Likewise.
4984
4985 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4986
4987 * elf/dl-exception.c: Include <_itoa.h>.
4988
4989 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4990
4991 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4992 returned by __f_setlk.
4993
4994 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4995 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4996
4997 * elf/Makefile (tests-internal): Add tst-create_format1.
4998 * elf/dl-exception.c (_dl_exception_create_format): Support
4999 %x, %lx and %zx.
5000 * elf/tst-create_format1.c: New file.
5001
5002 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
5003
5004 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
5005 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
5006 gnulib.)
5007 * argp/argp-help.c (__argp_failure): Likewise.
5008
5009 2018-11-29 Mao Han <han_mao@c-sky.com>
5010
5011 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
5012 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
5013 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
5014 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
5015 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
5016 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
5017 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
5018 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
5019 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
5020 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
5021 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
5022 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
5023 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
5024 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
5025 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
5026 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
5027 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
5028 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
5029 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
5030 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
5031 (R_CKCORE_TLS_TPOFF32): New defines.
5032
5033 2018-11-29 Florian Weimer <fweimer@redhat.com>
5034
5035 * posix/Makefile (before-compile): Remove testcases.h and
5036 ptestcases.h.
5037 (generated): Add testcases.h and ptestcases.h.
5038 (testcases.h, ptestcases.h): Move to $(objpfx).
5039 (runtests.o): Add dependency on testcases.h.
5040 (runptests.o): Add dependency on ptestcases.h.
5041 * posix/testcases.h, posix/ptestcases.h: Remove files.
5042 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5043 not touch posix/testcases.h and posix/ptestcases.h.
5044
5045 2018-11-28 Florian Weimer <fweimer@redhat.com>
5046
5047 support: Add signal support to support_capture_subprocess_check.
5048 * support/capture_subprocess.h (support_capture_subprocess_check):
5049 Adjust comment and rename parameter.
5050 * support/support_capture_subprocess_check.c
5051 (print_actual_status): New function.
5052 (support_capture_subprocess_check): Support negative
5053 status_or_signal. Call print_actual_status.
5054 * support/tst-support_capture_subprocess.c (do_test): Call
5055 support_capture_subprocess_check.
5056 * libio/tst-vtables-common.c (termination_status)
5057 (init_termination_status): Remove.
5058 (check_for_termination): Adjust support_capture_subprocess_check
5059 call.
5060 (do_test): Remove call to init_termination_status.
5061
5062 2018-11-28 Joseph Myers <joseph@codesourcery.com>
5063
5064 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5065 source directory instead of a copy.
5066 (CommandList.create_copy_dir): Remove.
5067
5068 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
5069
5070 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5071
5072 2018-11-28 Florian Weimer <fweimer@redhat.com>
5073
5074 * support/support.h (support_quote_string): Do not use str
5075 parameter name.
5076
5077 2018-11-27 Joseph Myers <joseph@codesourcery.com>
5078
5079 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5080 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5081
5082 2018-11-27 Florian Weimer <fweimer@redhat.com>
5083
5084 * support/support.h (support_quote_string): Declare.
5085 * support/support_quote_string.c: New file.
5086 * support/tst-support_quote_string.c: Likewise.
5087 * support/Makefile (libsupport-routines): Add
5088 support_quote_string.
5089 (tests): Add tst-support_quote_string.
5090
5091 2018-11-27 Florian Weimer <fweimer@redhat.com>
5092
5093 [BZ #23927]
5094 CVE-2018-19591
5095 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
5096 descriptor leak in case of ENODEV error.
5097
5098 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
5099
5100 [BZ #19767]
5101 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
5102 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
5103 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
5104
5105 2018-11-26 Carlos O'Donell <carlos@redhat.com>
5106
5107 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
5108 Error for unknown lines.
5109
5110 2018-11-26 Joseph Myers <joseph@codesourcery.com>
5111
5112 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5113 Touch additional files.
5114
5115 2018-11-26 Florian Weimer <fweimer@redhat.com>
5116
5117 [BZ #23907]
5118 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5119 double-frees.
5120
5121 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
5122
5123 [BZ #19767]
5124 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5125 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5126 SHARED. Include sysdep.h.
5127 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5128 ALWAYS_USE_VSYSCALL.
5129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5130 ALWAYS_USE_VSYSCALL.
5131
5132 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
5133
5134 [BZ #19767]
5135 * nptl/Makefile (tests-static): Add tst-cond11-static.
5136 (tests): Likewise.
5137 * nptl/tst-cond11-static.c: New File.
5138 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5139 tst-affinity-static.
5140 (tests): Likewise.
5141 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5142 instead of SHARED.
5143 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5144 (USE_VSYSCALL): Likewise.
5145 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5146 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5147 instead of SHARED.
5148 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5149 SHARED.
5150 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5151 New.
5152
5153 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5154
5155 [BZ #23915]
5156 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5157 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5158 Undefine.
5159
5160 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5161
5162 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5163 (tst-cet-legacy-1a-ARGS): New.
5164 ($(objpfx)tst-cet-legacy-1a): New target.
5165 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5166
5167 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5168
5169 * conform/conformtest.py (CompileSubTest.__init__): Set
5170 self.run_early to False.
5171 (ExecuteSubTest.__init__): Likewise.
5172 (HeaderTests.run): Try running all non-optional, non-XFAILed
5173 compilation tests in a single execution of the compiler.
5174
5175 * conform/conformtest.py (CompileSubTest): New class.
5176 (ExecuteSubTest): Likewise.
5177 (ElementTest.run): Rename to gen_subtests. Append tests to
5178 self.subtests instead of running them.
5179 (ConstantTest.run): Likewise.
5180 (SymbolTest.run): Likewise.
5181 (TypeTest.run): Likewise.
5182 (TagTest.run): Likewise.
5183 (FunctionTest.run): Likewise.
5184 (VariableTest.run): Likewise.
5185 (MacroFunctionTest.run): Likewise.
5186 (MacroStrTest.run): Likewise.
5187 (HeaderTests.handle_test_line): Generate subtests for tests.
5188 (HeaderTests.run): Run subtests for tests.
5189
5190 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5191
5192 * math/Versions (GLIBC_2.29): Add pow.
5193 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5194 symbol.
5195 * math/w_pow.c: New file.
5196 * sysdeps/i386/fpu/w_pow.c: New file.
5197 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5198 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5199 and add necessary aliases.
5200 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5201 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5202 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5203 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5204 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5205 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5206 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5207 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5208 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5209 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5210 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5211 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5212 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5213 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5214 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5219 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5220 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5221 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5222 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5223 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5224 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5225 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5226 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5227 __pow.
5228 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5229 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5230 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5231
5232 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5233
5234 * math/Versions (GLIBC_2.29): Add log2.
5235 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5236 symbol.
5237 * math/w_log2.c: New file.
5238 * sysdeps/i386/fpu/w_log2.c: New file.
5239 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5240 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5241 and add necessary aliases.
5242 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5243 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5244 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5245 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5246 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5247 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5248 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5249 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5250 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5251 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5252 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5253 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5254 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5255 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5256 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5258 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5261 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5262 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5263 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5264 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5265 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5266 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5267 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5268
5269 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5270
5271 * math/Versions (GLIBC_2.29): Add log.
5272 * math/w_log_compat.c (__log_compat): Change to versioned compat
5273 symbol.
5274 * math/w_log.c: New file.
5275 * sysdeps/i386/fpu/w_log.c: New file.
5276 * sysdeps/ia64/fpu/e_log.S: Update.
5277 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5278 and add necessary aliases.
5279 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5280 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5281 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5282 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5283 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5284 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5285 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5286 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5287 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5288 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5289 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5290 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5291 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5292 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5293 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5294 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5296 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5298 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5299 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5300 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5301 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5302 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5303 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5304 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5305 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5306 __log.
5307 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5308 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5309 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5310 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5311
5312 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5313
5314 * math/Versions (GLIBC_2.29): Add exp and exp2.
5315 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5316 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5317 * math/w_exp_compat.c (__exp_compat): Likewise.
5318 * math/w_exp.c: New file.
5319 * math/w_exp2.c: New file.
5320 * sysdeps/i386/fpu/w_exp.c: New file.
5321 * sysdeps/i386/fpu/w_exp2.c: New file.
5322 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5323 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5324 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5325 and add necessary aliases.
5326 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5327 and add necessary aliases.
5328 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5329 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5330 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5331 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5332 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5333 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5334 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5335 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5336 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5337 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5338 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5339 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5340 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5341 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5342 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5343 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5344 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5346 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5348 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5349 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5350 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5351 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5352 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5353 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5354 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5355 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5356 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5357 (__ieee754_exp): Rename to __exp.
5358 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5359 (__ieee754_exp): Rename to __exp.
5360 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5361 (__ieee754_exp): Rename to __exp.
5362 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5363 __exp.
5364 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5365
5366 2018-11-20 DJ Delorie <dj@redhat.com>
5367
5368 * malloc/malloc.c (tcache_entry): Add key field.
5369 (tcache_put): Set it.
5370 (tcache_get): Likewise.
5371 (_int_free): Check for double free in tcache.
5372 * malloc/tst-tcfree1.c: New.
5373 * malloc/tst-tcfree2.c: New.
5374 * malloc/Makefile: Run the new tests.
5375 * manual/probes.texi: Document memory_tcache_double_free probe.
5376
5377 * dlfcn/dlerror.c (check_free): Prevent double frees.
5378
5379 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5380
5381 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5382
5383 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5384
5385 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5386 in tests. Use names for format arguments.
5387 (ConstantTest.run): Likewise.
5388 (SymbolTest.run): Likewise.
5389 (TypeTest.run): Likewise.
5390 (TagTest.run): Likewise.
5391 (FunctionTest.run): Likewise.
5392 (VariableTest.run): Likewise.
5393 (MacroFunctionTest.run): Likewise.
5394 (MacroStrTest.run): Likewise.
5395 (HeaderTests.__init__): Set self.num_tests.
5396 (HeaderTests.handle_test_line): Set test.num. Increment
5397 self.num_tests.
5398
5399 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5400
5401 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5402 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5403 SEEK_SET.
5404
5405 2018-11-19 Mao Han <han_mao@c-sky.com>
5406
5407 * scripts/config.guess: Update to version 2018-08-29.
5408 * scripts/config.sub: Update to version 2018-08-29.
5409
5410 2018-11-19 Florian Weimer <fweimer@redhat.com>
5411
5412 support: Print timestamps in timeout handler.
5413 * support/support_test_main.c (print_timestamp): New function.
5414 (signal_handler): Use it to print the termination time and the
5415 time of the last write to standard output.
5416
5417 2018-11-16 Zack Weinberg <zackw@panix.com>
5418 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5419
5420 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5421 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5422 argument.
5423 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5424 and add flags argument. Check flags instead of __ldbl_is_dbl when
5425 deciding whether to set is_long_double.
5426 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5427 passing zero for flags argument.
5428 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5429
5430 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5431 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5432 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5433 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5434 variable names. Remove libc_hidden_def/libc_hidden_proto from
5435 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5436 longer called from within the library.
5437 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5438 for __nldbl___vstrfmon_l, declare it explicitly.
5439
5440 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5441
5442 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5443
5444 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5445 macros
5446 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5447 F_SETLK64, F_SETLKW64, respectively.
5448 * sysdeps/mach/hurd/f_setlk.c: New file.
5449 * sysdeps/mach/hurd/f_setlk.h: New file.
5450 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5451 f_setlk.
5452 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5453 (__libc_fcntl): Move non-flock operations to...
5454 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5455 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5456
5457 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5458
5459 mktime: DEBUG_MKTIME cleanup
5460 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5461 And it’s no longer needed now that glibc and Gnulib both have
5462 their own testing mechanisms for mktime.
5463 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5464
5465 mktime: fix non-EOVERFLOW errno handling
5466 [BZ#23789]
5467 mktime was not properly reporting failures when the underlying
5468 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5469 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5470 The problem could happen on non-glibc platforms, with Gnulib.
5471 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5472 (tm_diff): ... this simpler function, which does not change errno.
5473 All callers changed to deal with errno themselves.
5474 (ranged_convert, __mktime_internal): Return failure immediately if
5475 the underlying function reports any failure other than EOVERFLOW.
5476 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5477 gap code fails.
5478
5479 mktime: fix bug with Y2038 DST transition
5480 [BZ#23789]
5481 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5482 mishandle a DST transition that jumps over the Y2038 boundary.
5483 No such DST transitions are known so this is only a theoretical
5484 bug, but we might as well do things right.
5485
5486 mktime: make more room for overflow
5487 [BZ#23789]
5488 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5489 This is so that we can add tm_diff results to a previous guess,
5490 which will be useful in a later patch.
5491
5492 mktime: simplify offset guess
5493 [BZ#23789]
5494 * time/mktime.c (__mktime_internal): Omit excess precision.
5495
5496 mktime: new test for mktime failure
5497 [BZ#23789]
5498 Based on a test suggested by Albert Aribaud in:
5499 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5500 * time/Makefile (tests): Add bug-mktime4.
5501 * time/bug-mktime4.c: New file.
5502
5503 mktime: fix EOVERFLOW bug
5504 [BZ#23789]
5505 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5506 Include libc-config.h, not config.h, for __set_errno.
5507 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5508
5509 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5510
5511 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5512 __attribute_copy__ to copy attributes from name. Drop static qualifier
5513 to avoid warnings about leaf attribute not having effect on static
5514 functions.
5515
5516 2018-11-13 Florian Weimer <fweimer@redhat.com>
5517
5518 * malloc/malloc.c (fastbin_push_entry): New function.
5519 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5520 (REMOVE_FB): Remove macro.
5521 (_int_malloc): Use fastbin_pop_entry and reindent.
5522 (_int_free): Use fastbin_push_entry.
5523 (malloc_consolidate): Use atomic_exchange_acquire.
5524
5525 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5526
5527 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5528 alias attribute, not with strong_alias.
5529
5530 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5531 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5532 with additional parameter thread.
5533 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5534 in terms of __hidden_ver2.
5535 (hidden_tls_def): New macro.
5536 (libc_hidden_tls_def): Likewise.
5537 (rtld_hidden_tls_def): Likewise.
5538 (libm_hidden_tls_def): Likewise.
5539 (libmvec_hidden_tls_def): Likewise.
5540 (libresolv_hidden_tls_def): Likewise.
5541 (librt_hidden_tls_def): Likewise.
5542 (libdl_hidden_tls_def): Likewise.
5543 (libnss_files_hidden_tls_def): Likewise.
5544 (libnsl_hidden_tls_def): Likewise.
5545 (libnss_nisplus_hidden_tls_def): Likewise.
5546 (libutil_hidden_tls_def): Likewise.
5547 (libutil_hidden_tls_def): Likweise.
5548 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5549 libc_hidden_tls_def.
5550 (__sim_disabled_exceptions_thread): Likewise.
5551 (__sim_round_mode_thread): Likewise.
5552
5553 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5554 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5555 copy attributes from name.
5556
5557 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5558
5559 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5560 Use __attribute_copy__ to copy attributes from name.
5561
5562 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5563 with __hidden_ver1 call.
5564 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5565 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5566 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5567 (__cosf): Do not declare here.
5568 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5569 (__sincosf): Do not declare here.
5570 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5571 (__sinf): Do not declare here.
5572
5573 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5574 (__BIG_ENDIAN): Likewise.
5575 (__BYTE_ORDER): Likewise.
5576 (strong_alias): Likewise.
5577 (_strong_alias): Likewise.
5578
5579 2018-11-12 Florian Weimer <fweimer@redhat.com>
5580
5581 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5582 function. Move after the definition of in_smallbin_range. Do not
5583 use __builtin_expect for paths that lead to a noreturn function.
5584 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5585 because it is unclear whether this is in fact an unlikely
5586 condition.
5587 (_int_malloc, _int_free): Adjust.
5588 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5589 variables.
5590 * malloc/arena.c (heap_trim): Likewise.
5591
5592 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5593
5594 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5595 it, free it if needed.
5596 (reauthenticate): Test and use ccwdir.
5597 (child_init_port): In non-resetids case, test and use ccwdir.
5598 (child_chdir): New nested function to set ccwdir.
5599 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5600 * hurd/hurd/port.h (_hurd_port_move): New function.
5601 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5602 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5603 * hurd/Versions (_hurd_port_move): Export function.
5604 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5605 symbol.
5606 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5607 of dtablesize for allocating dtable_cloexec.
5608
5609 2018-11-09 Martin Sebor <msebor@redhat.com>
5610
5611 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5612 it's already defined.
5613 (_strong_alias): Use __attribute_copy__.
5614 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5615 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5616 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5617 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5618 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5619 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5620 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5621 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5622 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5623 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5624 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5625 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5626 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5627 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5628 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5629 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5630 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5631 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5632 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5633
5634 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5635
5636 * misc/tst-efgcvt.c: Include support/check.h and
5637 support/test-driver.c. Do not include test-skeleton.c.
5638 (error_count): Remove.
5639 (output_error): Replace increments to error_count with calls to
5640 support_record_failure.
5641 (output_r_error): Likewise.
5642 (special): Likewise.
5643 (do_test): Unconditionally return zero.
5644 (TEST_FUNCTION): Remove.
5645
5646 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5647
5648 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5649 not $(@D)/scratch.
5650 ($(linknamespace-header-tests)): Likewise.
5651
5652 * conform/conformtest.py: New file.
5653 * conform/conformtest.pl: Remove.
5654 * conform/GlibcConform.pm: Likewise.
5655 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5656 (KEYWORDS_C99): Likewise.
5657 (KEYWORDS): Likewise.
5658 * conform/Makefile ($(conformtest-header-tests)): Use
5659 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5660 option. Use --header instead of --headers.
5661 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5662 function entries.
5663 * conform/data/spawn.h-data: Likewise.
5664 * conform/data/fcntl.h-data (openat): Add space after function
5665 name.
5666 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5667 (wcscasecmp_l): Likewise.
5668 * conform/data/termios.h-data (c_cc): Add space after element
5669 name.
5670
5671 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5672
5673 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5674 instead of manually comparing and reporting mismatching strings.
5675 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5676 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5677
5678 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5679
5680 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5681 __ASSUME_SOCKETCALL.
5682 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5683 (__ASSUME_SOCKETCALL): Remove.
5684 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5685 (__ASSUME_SOCKETCALL): Likewise.
5686 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5687 (__ASSUME_SOCKETCALL): Likewise.
5688 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5689 (__ASSUME_SOCKETCALL): Likewise.
5690 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5691 (__ASSUME_SOCKETCALL): Likewise.
5692 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5693 (__ASSUME_SOCKETCALL): Likewise.
5694 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5695 (__ASSUME_SOCKETCALL): Likewise.
5696
5697 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5698
5699 [BZ #23509]
5700 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5701 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5702 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5703 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5704 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5705 lc_unknown.
5706
5707 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5708
5709 [BZ #17630]
5710 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5711
5712 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5713
5714 [BZ #23867]
5715 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5716 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5717 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5718 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5719
5720 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5721
5722 * support/support_test_compare_string.c
5723 (support_test_compare_string): Fix printf format.
5724
5725 2018-11-07 Florian Weimer <fweimer@redhat.com>
5726
5727 Implement TEST_COMPARE_STRING.
5728 * support/check.h (TEST_COMPARE_STRING): Define.
5729 (support_test_compare_string): Declare.
5730 * support/Makefile (libsupport-routines): Add
5731 support_test_compare_string.
5732 (tests): Add tst-test_compare_string.
5733 * support/support_test_compare_string.c: New file.
5734 * support/tst-test_compare_string.c: Likewise.
5735
5736 2018-11-07 Andreas Schwab <schwab@suse.de>
5737
5738 [BZ #23864]
5739 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5740 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5741 Undef.
5742
5743 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5744
5745 [BZ #23862]
5746 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5747 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5748 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5749 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5750 Likewise.
5751
5752 2018-11-06 Florian Weimer <fweimer@redhat.com>
5753
5754 [BZ #17405]
5755 * posix/Makefile (routines): Add spawn_faction_addchdir.
5756 (tests): Add tst-spawn-chdir.
5757 * posix/Versions (GLIBC_2.29): Add
5758 posix_spawn_file_actions_addchdir_np.
5759 * posix/spawn_faction_addchdir.c: New file.
5760 * posix/spawn_faction_destroy.c
5761 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5762 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5763 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5764 chdir_action.
5765 * posix/tst-spawn-chdir.c: New file.
5766 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5767 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5768 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5769 posix_spawn_file_actions_addchdir_np.
5770 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5771 Likewise.
5772 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5773 Likewise.
5774 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5775 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5776 Likewise.
5777 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5778 Likewise.
5779 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5780 Likewise.
5781 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5782 Likewise.
5783 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5784 Likewise.
5785 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5786 Likewise.
5787 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5788 (GLIBC_2.29): Likewise.
5789 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5790 (GLIBC_2.29): Likewise.
5791 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5792 (GLIBC_2.29): Likewise.
5793 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5794 (GLIBC_2.29): Likewise.
5795 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5796 Likewise.
5797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5798 (GLIBC_2.29): Likewise.
5799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5800 (GLIBC_2.29): Likewise.
5801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5802 (GLIBC_2.29): Likewise.
5803 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5804 (GLIBC_2.29): Likewise.
5805 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5806 Likewise.
5807 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5808 Likewise.
5809 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5810 Likewise.
5811 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5812 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5813 Likewise.
5814 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5815 Likewise.
5816 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5817 Likewise.
5818 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5819 Likewise.
5820
5821 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5822
5823 * misc/Makefile (tests): Add tst-ldbl-error.
5824 * misc/tst-ldbl-error.c: New file.
5825
5826 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5827
5828 * misc/Makefile (tests): Add tst-ldbl-warn.
5829 * misc/tst-ldbl-warn.c: New file.
5830
5831 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5832
5833 * argp/Makefile (tests): Add tst-ldbl-argp.
5834 * argp/tst-ldbl-argp.c: New file.
5835
5836 2018-11-05 Arjun Shankar <arjun@redhat.com>
5837
5838 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5839 __gconv_path_elem and call __gconv_get_path unconditionally.
5840
5841 2018-11-05 Andreas Schwab <schwab@suse.de>
5842
5843 [BZ #22927]
5844 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5845 creating the first helper thread failed.
5846
5847 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5848
5849 * sysdeps/mach/hurd/msync.c: New file.
5850
5851 2018-11-02 Florian Weimer <fweimer@redhat.com>
5852
5853 * support/shell-container.c (copy_func): Call
5854 support_copy_file_range instead of copy_file_range to support
5855 cross-device copies.
5856
5857 2018-11-02 Florian Weimer <fweimer@redhat.com>
5858
5859 * support/test-container.c: Include <libc-pointer-arith.h> for
5860 ALIGN_UP.
5861
5862 2018-11-01 Zong Li <zong@andestech.com>
5863
5864 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5865 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5866 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5867 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5868
5869 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5870 variable to avoid overlap arguments.
5871
5872 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5873
5874 * posix/bug-regex22.c (main): Use puts with distinct error
5875 messages for unexpected success of re_compile_pattern, not printf
5876 with NULL argument to %s.
5877
5878 * stdio-common/bug22.c: Include <libc-diag.h>.
5879 (do_test): Disable -Wformat-overflow= warnings around fprintf
5880 calls outputting more than INT_MAX characters.
5881 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5882 around printf call with NULL %s argument.
5883
5884 [BZ #23848]
5885 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5886 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5887 Undefine.
5888 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5889 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5890 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5891 (__ASSUME_SENDTO_SYSCALL): Likewise.
5892 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5893 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5894 [!__arch64__].
5895 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5896 (__ASSUME_CONNECT_SYSCALL): Likewise.
5897 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5898 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5899 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5900 Define.
5901 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5902 Likewise.
5903 [__LINUX_KERNEL_VERSION >= 0x040400]
5904 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5905 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5906 Remove.
5907 (listen): Likewise.
5908 (setsockopt): Likewise.
5909
5910 2018-11-01 Fredrik Noring <noring@nocrew.org>
5911
5912 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5913 with the ISA override.
5914
5915 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5916
5917 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5918 #endif.
5919
5920 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5921
5922 * manual/errno.texi (EIEIO): Document how translators should
5923 translate the error message.
5924 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5925 printing trailing whitespaces refused by git.
5926 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5927 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5928 * hurd/Makefile (user-interfaces): Add pci.
5929
5930 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5931
5932 * conform/linknamespace.py: New file.
5933 * conform/linknamespace.pl: Remove file.
5934 * conform/Makefile ($(linknamespace-header-tests)): Use
5935 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5936 option.
5937
5938 2018-10-30 Florian Weimer <fweimer@redhat.com>
5939
5940 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5941 memory leaks.
5942
5943 2018-10-30 Florian Weimer <fweimer@redhat.com>
5944
5945 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5946
5947 2018-10-30 Florian Weimer <fweimer@redhat.com>
5948
5949 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5950 support_blob_repeat.
5951
5952 2018-10-30 Florian Weimer <fweimer@redhat.com>
5953
5954 Avoid spurious test failures in stdlib/test-bz22786.
5955 * support/Makefile (libsupport-routines): Add blob_repeat.
5956 (tests): Add tst-support_blob_repeat.
5957 * support/blob_repeat.h: New file.
5958 * support/blob_repeat.c: Likewise.
5959 * support/tst-support_blob_repeat.c: Likewise.
5960 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5961 support_blob_repeat_allocate.
5962
5963 2018-10-30 Andreas Schwab <schwab@suse.de>
5964
5965 [BZ #23125]
5966 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5967 Don't use tail call.
5968 * elf/tst-unwind-main.c: New file.
5969 * elf/Makefile (tests): Add tst-unwind-main.
5970 (CFLAGS-tst-unwind-main.c): Define.
5971
5972 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5973
5974 [BZ #23791]
5975 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5976 n_cs_precedes to 0.
5977 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5978
5979 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5980
5981 * conform/glibcconform.py: Do not import shutil.
5982 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5983 of mkdtemp.
5984
5985 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5986 critic_missing for versions before 3.4.
5987 * configure: Regenerated.
5988 * manual/install.texi (Tools for Compilation): Document
5989 requirement for Python to build glibc.
5990 * INSTALL: Regenerated.
5991 * Rules [PYTHON]: Make code unconditional.
5992 * benchtests/Makefile [PYTHON]: Likewise.
5993 * conform/Makefile [PYTHON]: Likewise.
5994 * manual/Makefile [PYTHON]: Likewise.
5995 * math/Makefile [PYTHON]: Likewise.
5996
5997 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5998
5999 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
6000 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
6001 answer to interrupt_operation, return EIEIO instead of EINTR.
6002 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
6003 _hurd_intr_rpc_msg_about_to global point to start of controlled
6004 assembly snippet. Make it check canceled flag.
6005 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
6006 the _hurd_intr_rpc_msg_about_to point.
6007 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
6008 issue, remove cancel flag check.
6009
6010 2018-10-26 Joseph Myers <joseph@codesourcery.com>
6011
6012 * scripts/build-many-glibcs.py: Remove compatibility for missing
6013 os.cpu_count and re.fullmatch.
6014
6015 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
6016
6017 [BZ #23822]
6018 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
6019 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
6020 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
6021
6022 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6023
6024 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
6025 macro.
6026
6027 2018-10-25 Florian Weimer <fweimer@redhat.com>
6028
6029 [BZ #23562]
6030 [BZ #23821]
6031 XFAIL siginfo_t si_band conform test on sparc64.
6032 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
6033 (__SI_BAND_TYPE): Only override long int default type on sparc64.
6034 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6035 (conformtest-xfail-conds): Add sparc64-linux.
6036 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6037 sparc64.
6038 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6039
6040 2018-10-25 Joseph Myers <joseph@codesourcery.com>
6041
6042 * elf/elf.h (NT_MIPS_DSP): New macro.
6043 (NT_MIPS_FP_MODE): Likewise.
6044
6045 2018-10-25 Zong Li <zong@andestech.com>
6046
6047 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6048 name by adding the file extension (.so).
6049
6050 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6051
6052 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6053 (test-xfail-ISO11/threads.h/linknamespace,
6054 test-xfail-ISO11/threads.h/conform): Add.
6055
6056 2018-10-24 Joseph Myers <joseph@codesourcery.com>
6057
6058 * math/gen-libm-test.py: Import os.
6059 (ALL_FLOATS_MANUAL): New constant.
6060 (ALL_FLOATS_SUFFIX): Likewise.
6061 (Ulps.all_functions): New function.
6062 (real_all_ulps): Likewise.
6063 (generate_err_table_sub): Likewise.
6064 (generate_err_table): Likewise.
6065 (main): Handle -s and -m options.
6066 * manual/libm-err-tab.pl: Remove.
6067 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6068 instead of libm-err-tab.pl.
6069 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6070 != no].
6071 * manual/install.texi (Tools for Compilation): Document
6072 requirement for Python to build manual.
6073 * INSTALL: Regenerated.
6074
6075 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6076
6077 * bits/time64.h: New file.
6078 * include/time.h: Replace internal_time_t with __time64_t.
6079 * posix/bits/types (__time64_t): Add.
6080 * stdlib/Makefile: Add bits/time64.h to includes.
6081 * time/tzfile.c: Replace internal_time_t with __time64_t.
6082
6083 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6084
6085 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6086 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6087 __posix_spawn_file_actions_init, __posix_spawnattr_init,
6088 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
6089 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
6090 prototype.
6091 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
6092 * posix/spawn_faction_addclose.c
6093 (__posix_spawn_file_actions_addclose): Add hidden definition.
6094 * posix/spawn_faction_adddup2.c
6095 (__posix_spawn_file_actions_adddup2): Likewise.
6096 * posix/spawn_faction_destroy.c
6097 (__posix_spawn_file_actions_destroy): Likewise.
6098 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
6099 Likewise.
6100 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
6101 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
6102 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
6103 Likewise.
6104 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
6105 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
6106 Likewise.
6107
6108 2018-10-24 Andreas Schwab <schwab@suse.de>
6109
6110 [BZ #18093]
6111 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6112 format cache.
6113 * elf/cache.c (print_cache): Likewise.
6114
6115 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6116
6117 * bits/timesize.h: New file.
6118 * stdlib/Makefile (headers): Add bits/timesize.h.
6119 * sysdeps/unix/sysv/linux/bits/msq-pad.h
6120 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6121 * sysdeps/unix/sysv/linux/bits/sem-pad.h
6122 (__SEM_PAD_AFTER_TIME): Likewise.
6123 * sysdeps/unix/sysv/linux/bits/shm-pad.h
6124 (__SHM_PAD_AFTER_TIME): Likewise.
6125 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6126 (__MSQ_PAD_BEFORE_TIME): Likewise.
6127 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6128 (__SEM_PAD_BEFORE_TIME): Likewise.
6129 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6130 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6131 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6132 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6133 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6134 (__MSQ_PAD_BEFORE_TIME): Likewise.
6135 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6136 (__SEM_PAD_BEFORE_TIME): Likewise.
6137 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6138 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6139 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6140 (__MSQ_PAD_BEFORE_TIME): Likewise.
6141 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6142 (__SEM_PAD_BEFORE_TIME): Likewise.
6143 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6144 (__SHM_PAD_BEFORE_TIME): Likewise.
6145 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6146 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6147 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6148
6149 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6150
6151 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6152 USE_RDTSCP is defined.
6153 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6154 USE_RDTSCP is defined.
6155
6156 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6157
6158 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6159 defined.
6160
6161 [BZ #23709]
6162 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6163 independently of other flags.
6164
6165 2018-10-23 Florian Weimer <fweimer@redhat.com>
6166
6167 * time/tst-mktime2.c (N_STRINGS): Remove.
6168 (set_timezone): New function.
6169 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6170 (mktime_test1): Report localtime failure and check errno value.
6171 Use TEST_COMPARE.
6172 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6173 (do_test): Remove alarm call. Use set_timezone and array_length.
6174
6175 2018-10-23 Andreas Schwab <schwab@suse.de>
6176
6177 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6178 (__start_context): Use END instead of PSEUDO_END.
6179
6180 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6181
6182 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6183 version to 4.19.
6184
6185 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6186 version to 4.19.
6187
6188 [BZ #23793]
6189 * wcsmbs/c32rtomb.c: New file.
6190 * wcsmbs/mbrtoc32.c: Likewise.
6191 * wcsmbs/tst-c32-state.c: Likewise.
6192 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6193 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6194 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6195 (tests): Add tst-c32-state.
6196 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6197 $(gen-locales).
6198
6199 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6200
6201 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6202 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6203
6204 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6205
6206 [BZ #23794]
6207 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6208 pair and return 0 in that case, and use saved character to
6209 interpret following character.
6210 * wcsmbs/tst-c16-surrogate.c: New file.
6211 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6212 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6213 Depend on $(gen-locales)
6214
6215 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6216
6217 [BZ #23562]
6218 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6219 (struct siginfo_t): Use correct type for si_band.
6220
6221 2018-10-19 Florian Weimer <fweimer@redhat.com>
6222
6223 [BZ #23689]
6224 * resource/bits/types/struct_rusage.h (struct rusage): Update
6225 comment on struct. Remove extraneous field comment.
6226
6227 2018-10-18 David S. Miller <davem@davemloft.net>
6228
6229 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6230 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6231 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6232 sysdep_routines in subdir elf.
6233 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6234 version for __vdso_clock_gettime.
6235 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6236 Define.
6237 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6238 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6239
6240 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6241
6242 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6243
6244 * sysdeps/i386/init-arch.h: Removed.
6245 * sysdeps/i386/i586/init-arch.h: Likewise.
6246 * sysdeps/i386/i686/init-arch.h: Likewise.
6247 * sysdeps/i386/i686/hp-timing.h: Likewise.
6248 * sysdeps/x86_64/hp-timing.h: Likewise.
6249 * sysdeps/i386/isa.h: New file.
6250 * sysdeps/i386/i586/isa.h: Likewise.
6251 * sysdeps/i386/i686/isa.h: Likewise.
6252 * sysdeps/x86_64/isa.h: Likewise.
6253 * sysdeps/x86/hp-timing.h: New file.
6254 * sysdeps/x86/init-arch.h: Include <isa.h>.
6255
6256 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6257
6258 * math/libm-test-pow.inc (pow_test_data): Do not allow
6259 divide-by-zero exception for pow(+/- 0, -Inf).
6260
6261 2018-10-17 Zack Weinberg <zackw@panix.com>
6262
6263 * manual/job.texi (Job Control is Optional): Remove node, as
6264 job control has not been optional in quite some time.
6265 (Job Control): Mention briefly that systems older than
6266 POSIX.1-2001 might not support job control.
6267 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6268 defined on systems conforming to POSIX.1-2001.
6269
6270 2018-10-17 Arjun Shankar <arjun@redhat.com>
6271
6272 [BZ #22062]
6273 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6274 indentation.
6275 * (__gconv_read_conf): Mark function static.
6276 * (once): New static variable.
6277 * (__gconv_load_conf): New function.
6278 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6279 * iconv/gconv_db.c (once): Remove static variable.
6280 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6281 __gconv_read_conf.
6282 * (__gconv_find_transform): Likewise.
6283 * iconv/tst-iconv-mt.c: New test.
6284 * iconv/Makefile: Add tst-iconv_mt.
6285
6286 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6287
6288 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6289 bits/shm-pad.h.
6290 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6291 (shmatt_t): Define as __syscall_ulong_t.
6292 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6293 and [__SHM_PAD_AFTER_TIME].
6294 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6295 Define shm_segsz and associated padding based on
6296 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6297 Use __syscall_ulong_t instead of unsigned long int.
6298 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6299 unsigned long int.
6300 [__USE_MISC] (struct shm_info): Likewise.
6301 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6302 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6303 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6304 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6305 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6306 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6307 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6308 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6309 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6310 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6311 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6312
6313 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6314 bits/shmlba.h.
6315 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6316 (SHMLBA): Remove macro.
6317 (__getpagesize): Remove function declaration.
6318 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6319 <bits/shmlba.h>.
6320 (SHMLBA): Remove macro.
6321 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6322 <bits/shmlba.h>.
6323 (SHMLBA): Remove macro.
6324 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6325 <bits/shmlba.h>.
6326 (SHMLBA): Remove macro.
6327 (__getpagesize): Remove function declaration.
6328 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6329 <bits/shmlba.h>.
6330 (SHMLBA): Remove macro.
6331 (__getshmlba): Remove function declaration.
6332 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6333 (SHMLBA): Remove macro.
6334 (__getpagesize): Remove function declaration.
6335 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6336 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6337 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6338 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6339 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6340 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6341 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6342 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6343 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6344 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6345
6346 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6347
6348 [BZ #23275]
6349 * nptl/tst-mutex10.c: New File.
6350 * nptl/Makefile (tests): Add tst-mutex10.
6351 (tst-mutex10-ENV): New variable.
6352 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6353 Ensure that elision path is used if elision is available.
6354 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6355 Likewise.
6356 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6357 Likewise.
6358 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6359 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6360 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6361 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6362 Likewise.
6363 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6364 (__pthread_mutex_cond_lock_adjust): Likewise.
6365 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6366 Likewise.
6367 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6368 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6369 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6370 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6371 Add comments.
6372 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6373 Use atomic_load_relaxed and atomic_store_relaxed.
6374 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6375 Use atomic_store_relaxed.
6376
6377 2018-10-17 Andreas Schwab <schwab@suse.de>
6378
6379 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6380 * crypt/badsalttest.c (TIMEOUT): Likewise.
6381 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6382 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6383 * io/test-lfs.c (TIMEOUT): Likewise.
6384 * libio/tst-atime.c (TIMEOUT): Likewise.
6385 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6386 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6387 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6388 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6389 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6390 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6391 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6392 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6393 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6394 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6395 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6396 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6397 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6398 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6399 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6400 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6401 * nptl/tst-once2.c (TIMEOUT): Likewise.
6402 * nptl/tst-once3.c (TIMEOUT): Likewise.
6403 * nptl/tst-once4.c (TIMEOUT): Likewise.
6404 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6405 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6406 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6407 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6408 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6409 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6410 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6411 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6412 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6413 * posix/tst-chmod.c (TIMEOUT): Likewise.
6414 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6415 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6416 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6417 * posix/tst-regex2.c (TIMEOUT): Likewise.
6418 * posix/tst-waitid.c (TIMEOUT): Likewise.
6419 * rt/tst-aio.c (TIMEOUT): Likewise.
6420 * rt/tst-aio10.c (TIMEOUT): Likewise.
6421 * rt/tst-aio4.c (TIMEOUT): Likewise.
6422 * rt/tst-aio5.c (TIMEOUT): Likewise.
6423 * rt/tst-aio6.c (TIMEOUT): Likewise.
6424 * rt/tst-aio64.c (TIMEOUT): Likewise.
6425 * rt/tst-aio7.c (TIMEOUT): Likewise.
6426 * rt/tst-aio9.c (TIMEOUT): Likewise.
6427 * rt/tst-clock.c (TIMEOUT): Likewise.
6428 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6429 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6430 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6431 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6432 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6433 * rt/tst-timer4.c (TIMEOUT): Likewise.
6434 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6435 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6436 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6437 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6438 * time/tst-ftime.c (TIMEOUT): Likewise.
6439 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6440
6441 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6442
6443 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6444 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6445 for thunderX2.
6446
6447 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6448
6449 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6450 bits/sem-pad.h.
6451 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6452 instead of <bits/wordsize.h>.
6453 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6454 and [__SEM_PAD_AFTER_TIME].
6455 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6456 __syscall_ulong_t instead of unsigned long int.
6457 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6458 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6459 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6460 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6461 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6462 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6463 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6464 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6465 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6466 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6467 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6468
6469 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6470
6471 regex: simplify by using intprops.h
6472 [BZ#23744]
6473 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6474 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6475 intprops.h defines them.
6476
6477 regex: __builtin_expect → __glibc_unlikely
6478 [BZ#23744]
6479 This refactoring was prompted by a problem when the regex code is
6480 used as part of Gnulib and when the builder’s compiler does not grok
6481 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6482 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6483 Although this refactoring does not fix the problem directly,
6484 we might as well have Gawk use the now-preferred glibc style for when
6485 __builtin_expect is unavailable.
6486 * posix/regex_internal.h (BE): Remove.
6487 All uses replaced by __glibc_unlikely or __glibc_likely.
6488
6489 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6490
6491 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6492 bits/msq-pad.h.
6493 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6494 instead of <bits/wordsize.h>.
6495 (msgqnum_t): Define as __syscall_ulong_t.
6496 (msglen_t): Likewise.
6497 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6498 and [__MSQ_PAD_AFTER_TIME].
6499 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6500 __syscall_ulong_t instead of unsigned long int.
6501 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6502 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6503 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6504 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6505 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6506 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6507 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6508 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6509 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6510 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6511 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6512
6513 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6514
6515 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6516 (struct shmid_ds): Condition padding after time fields on
6517 [__WORDSIZE == 32].
6518 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6519 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6520 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6521
6522 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6523 (struct semid_ds): Condition padding after time fields on
6524 [__WORDSIZE == 32].
6525 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6526 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6527 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6528 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6529
6530 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6531 (struct msqid_ds): Condition padding after time fields on
6532 [__WORDSIZE == 32].
6533 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6534 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6535 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6536 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6537
6538 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6539
6540 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6541
6542 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6543
6544 * libio/tst-readline.c (TIMEOUT): Define.
6545
6546 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6547
6548 mktime fix for Gnulib + coreutils
6549 [BZ#23745]
6550 This fix affects only Gnulib. Problem discovered when
6551 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6552 * time/mktime.c:
6553 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6554 Do not define since it is not used. Defining an unused static
6555 function prompts a warning from GCC when Coreutils is configured
6556 with --enable-gcc-warnings.
6557
6558 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6559
6560 * benchtests/scripts/compare_bench.py (main): set float type on
6561 threshold argument.
6562
6563 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6564
6565 [BZ #23740]
6566 * localedata/locales/kl_GL (mon): Update, the relative case.
6567 (alt_mon): Add, fill with month names in the nominative case.
6568 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6569 (d_fmt): Set to "%b %d %Y".
6570
6571 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6572
6573 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6574 <bits/mman-linux.h>.
6575 (PROT_READ): Don't define here.
6576 (PROT_WRITE): Likewise.
6577 (PROT_EXEC): Likewise.
6578 (PROT_NONE): Likewise.
6579 (PROT_GROWSDOWN): Likewise.
6580 (PROT_GROWSUP): Likewise.
6581 (MAP_SHARED): Likewise.
6582 (MAP_PRIVATE): Likewise.
6583 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6584 [__USE_MISC] (MAP_FILE): Likewise.
6585 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6586 [__USE_MISC] (MAP_ANON): Likewise.
6587 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6588 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6589 (MCL_CURRENT): Likewise.
6590 (MCL_FUTURE): Likewise.
6591 (MCL_ONFAULT): Likewise.
6592 [__USE_MISC] (MADV_NORMAL): Likewise.
6593 [__USE_MISC] (MADV_RANDOM): Likewise.
6594 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6595 [__USE_MISC] (MADV_WILLNEED): Likewise.
6596 [__USE_MISC] (MADV_DONTNEED): Likewise.
6597 [__USE_MISC] (MADV_FREE): Likewise.
6598 [__USE_MISC] (MADV_REMOVE): Likewise.
6599 [__USE_MISC] (MADV_DONTFORK): Likewise.
6600 [__USE_MISC] (MADV_DOFORK): Likewise.
6601 [__USE_MISC] (MADV_HWPOISON): Likewise.
6602 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6603 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6604 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6605 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6606 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6607 (__MAP_ANONYMOUS): New macro.
6608 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6609 <bits/mman-linux.h> inclusion.
6610 (MAP_FIXED): Likewise.
6611 (MS_SYNC): Likewise.
6612 (MS_ASYNC): Likewise.
6613 (MS_INVALIDATE): Likewise.
6614 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6615 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6616 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6617 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6618 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6619 [__USE_MISC] (MADV_DODUMP): Likewise.
6620 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6621 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6622
6623 [BZ #23735]
6624 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6625 Define.
6626 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6627 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6628 Add test-nldbl-redirect.
6629 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6630 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6631 $(objpfx)libnldbl_nonshared.a.
6632
6633 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6634
6635 * support/support.h (support_objdir_elf_ldso): New variable.
6636 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6637 * support/Makefile (CFLAGS-support_paths.c): Add definition
6638 for OBJDIR_ELF_LDSO_PATH.
6639 * support/test-container.c (main): Search for the ld.so
6640 which is also used by the testsuite.
6641
6642 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6643
6644 [BZ #20209]
6645 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6646 should be "sap" rather than "sab".
6647 (day): Fix spelling of Sunday, should be "sapaat" rather than
6648 "sabaat".
6649
6650 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6651
6652 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6653
6654 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6655
6656 [BZ #19444]
6657 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6658 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6659 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6660
6661 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6662
6663 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6664
6665 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6666
6667 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6668 Add -mrtm.
6669 (CFLAGS-elision-unlock.c): Likewise.
6670 (CFLAGS-elision-timed.c): Likewise.
6671 (CFLAGS-elision-trylock.c): Likewise.
6672 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6673
6674 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6675
6676 [BZ #21037]
6677 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6678 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6679 new fd_to_filename interface.
6680 * libio/freopen64.c (freopen64): Likewise.
6681 * libio/tst-memstream.h: New file.
6682 * libio/tst-memstream4.c: Likewise.
6683 * libio/tst-wmemstream4.c: Likewise.
6684 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6685 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6686 and remove internal dynamic allocation.
6687
6688 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6689
6690 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6691 (MREMAP_MAYMOVE): Do not define here.
6692 [__USE_GNU] (MREMAP_FIXED): Likewise.
6693 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6694 (MREMAP_MAYMOVE): Define here instead.
6695 [__USE_GNU] (MREMAP_FIXED): Likewise.
6696 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6697 (MREMAP_MAYMOVE): Remove.
6698 [__USE_GNU] (MREMAP_FIXED): Likewise.
6699
6700 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6701
6702 * math/fromfp.h: Do not include <math_private.h>.
6703 * math/s_cacosh_template.c: Likewise.
6704 * math/s_casin_template.c: Likewise.
6705 * math/s_casinh_template.c: Likewise.
6706 * math/s_ccos_template.c: Likewise.
6707 * math/s_cproj_template.c: Likewise.
6708 * math/s_fdim_template.c: Likewise.
6709 * math/s_fmaxmag_template.c: Likewise.
6710 * math/s_fminmag_template.c: Likewise.
6711 * math/s_iseqsig_template.c: Likewise.
6712 * math/s_ldexp_template.c: Likewise.
6713 * math/s_nextdown_template.c: Likewise.
6714 * math/w_log1p_template.c: Likewise.
6715 * math/w_scalbln_template.c: Likewise.
6716 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6717 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6718 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6719 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6720 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6721 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6722 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6723 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6724 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6725 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6726 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6727 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6728 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6729 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6730 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6731 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6732 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6733 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6734 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6735 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6736 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6737 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6738 * sysdeps/ieee754/k_standardf.c: Likewise.
6739 * sysdeps/ieee754/k_standardl.c: Likewise.
6740 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6741 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6742 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6743 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6744 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6745 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6746 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6747 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6748 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6749 * sysdeps/ieee754/s_signgam.c: Likewise.
6750 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6751 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6752 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6753 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6754 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6755 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6756 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6757 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6758 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6759 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6760 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6761 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6762 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6763 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6764 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6765 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6766 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6767 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6768 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6769 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6770 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6771 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6772 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6773 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6774 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6775 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6776 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6777 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6778 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6779 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6780 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6781 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6782 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6783 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6784 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6785 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6786 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6787 <math_private.h>.
6788 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6789
6790 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6791
6792 [BZ #23716]
6793 * sysdeps/i386/dl-cet.c: Removed.
6794 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6795 prototype.
6796 (_dl_runtime_profile_shstk): Likewise.
6797 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6798 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6799
6800 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6801
6802 [BZ #23579]
6803 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6804 do_test_with_invalid_iov): New tests.
6805 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6806 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6807 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6808 errno is ENOSYS.
6809 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6810 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6811 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6812
6813 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6814
6815 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6816 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6817 (MATH_REDIRECT_BINARY_ARGS): New macro.
6818 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6819 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6820 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6821 header inclusion.
6822 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6823 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6824 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6825 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6826 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6827 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6828 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6829 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6830 Likewise.
6831 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6832 Likewise.
6833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6835 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6836 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6837 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6838 Likewise.
6839 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6840 Likewise.
6841 * sysdeps/generic/math_private_calls.h
6842 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6843 Do not declare and define as an inline function.
6844 * math/divtc3.c (__divtc3): Use copysign functions instead of
6845 __copysign variants.
6846 * math/multc3.c (__multc3): Likewise.
6847 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6848 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6849 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6850 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6851 Likewise.
6852 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6853 (__ieee754_yn): Likewise.
6854 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6855 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6856 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6857 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6858 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6859 (__sin): Likewise.
6860 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6861 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6862 Likewise.
6863 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6864 Likewise.
6865 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6866 Likewise.
6867 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6868 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6869 Likewise.
6870 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6871 (__ieee754_ynf): Likewise.
6872 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6873 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6874 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6875 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6876 Likewise.
6877 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6878 (__ieee754_ynl): Likewise.
6879 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6880 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6881 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6882 Likewise.
6883 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6884 (__ieee754_ynl): Likewise.
6885 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6886 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6887 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6888 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6889 Likewise.
6890 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6891 (__ieee754_ynl)
6892 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6893 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6894 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6895 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6896 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6897
6898 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6899 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6900 using MATH_REDIRECT.
6901 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6902 header inclusion.
6903 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6904 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6905 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6906 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6907 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6908 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6909 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6910 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6911 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6912 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6913 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6914 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6915 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6916 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6917 (round): Redirect to __round.
6918 (__roundl): Call round instead of __round.
6919 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6920 Remove macro.
6921 [_ARCH_PWR5X] (__roundf): Likewise.
6922 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6923 functions instead of __round variants.
6924 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6925 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6926 Likewise.
6927 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6928 Likewise.
6929 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6930 Likewise.
6931 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6932 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6933 __lroundl.
6934 (__ieee754_expl): Call roundl instead of __roundl.
6935
6936 2018-09-27 Andreas Schwab <schwab@suse.de>
6937
6938 [BZ #23717]
6939 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6940 (do_test): Make st1 static.
6941
6942 2018-09-26 Andreas Schwab <schwab@suse.de>
6943
6944 [BZ #23707]
6945 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6946 * elf/Makefile (tests): Add tst-unwind-ctor.
6947 (modules-names): Add tst-unwind-ctor-lib.
6948 ($(objpfx)tst-unwind-ctor): Depend on
6949 $(objpfx)tst-unwind-ctor-lib.so.
6950
6951 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6952
6953 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6954 file. Most contents moved from ....
6955 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6956 and include <bits/mman-map-flags-generic.h>.
6957 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6958 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6959 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6960 <bits/mman-map-flags-generic.h>.
6961 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6962 macros defined in <bits/mman-map-flags-generic.h>.
6963 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6964 <bits/mman-map-flags-generic.h>.
6965 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6966 defined in <bits/mman-map-flags-generic.h>.
6967
6968 2018-09-26 Andreas Schwab <schwab@suse.de>
6969
6970 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6971 output.
6972
6973 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6974 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6975 Fangrui Song <maskray@google.com>
6976
6977 [BZ #20480]
6978 * config.make.in (have-textrel_ifunc): New define.
6979 * configure.ac: Add check if linker supports textrel relocation with
6980 ifunc.
6981 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6982 tst-ifunc-textrel.
6983 (CFLAGS-tst-ifunc-textrel.c): New rule.
6984 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6985 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6986 * elf/tst-ifunc-textrel.c: New file.
6987
6988 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6989
6990 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6991 <bits/procfs-prregset.h>.
6992 (prgregset_t): Define using __prgregset_t.
6993 (prfpregset_t): Define using __prfpregset_t.
6994 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6995 (sysdep_headers): Add bits/procfs-prregset.h.
6996 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6997 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6998 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6999 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
7000
7001 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7002 <bits/procfs-id.h> and <bits/procfs-extra.h>.
7003 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
7004 pr_uid and pr_gid.
7005 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7006 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
7007 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
7008 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
7009 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
7010 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
7011 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
7012 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
7013 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
7014 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
7015 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
7016 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
7017 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
7018 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
7019 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
7020 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
7021 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
7022 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
7023 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
7024 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
7025 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
7026 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
7027 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
7028 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
7029
7030 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
7031 AArch64 version. Include <bits/procfs.h>.
7032 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7033 (sysdep_headers): Add bits/procfs.h.
7034 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
7035 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7036 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7037 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7038 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7039 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7040 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7041 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7042 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7043 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7044 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7045 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7046 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7047 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7048 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7049 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7050 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7051
7052 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7053
7054 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7055 Use libsupport.
7056
7057 2018-09-25 Arjun Shankar <arjun@redhat.com>
7058
7059 * iconv/gconv_int.h (__gconv_path_elem): Remove.
7060 (__gconv_max_path_elem_len): Likewise.
7061 (__gconv_nmodules): Likewise.
7062 (__gconv_get_path): Likewise.
7063 (path_elem): Move to ...
7064 * iconv/gconv_conf.c: ... here.
7065 (__gconv_get_path): Mark function static.
7066 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7067 * iconv/gconv_open.c: ... here.
7068
7069 2018-09-24 Andreas Schwab <schwab@suse.de>
7070
7071 * scripts/haveversions.awk: New file.
7072 * Makerules ($(common-objpfx)Versions.def)
7073 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7074 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7075 Move rules ...
7076 * Makeconfig ($(common-objpfx)Versions.def)
7077 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7078 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7079 ... here.
7080 ($(common-objpfx)Versions.mk): New rule. Include it.
7081 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7082 Emit error if build-obsolete-nsl = yes.
7083 * manual/install.texi (Configuring and compiling): Describe
7084 --enable-obsolete-nsl as unavaiable after version 2.28.
7085 * INSTALL: Regenerate.
7086
7087 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7088
7089 * NEWS: Add note about new TLE support on powerpc64le.
7090 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
7091 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
7092 __ununsed1.
7093 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
7094 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
7095 * sysdeps/powerpc/powerpc32/sysdep.h,
7096 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
7097 ABORT_TRANSACTION): Remove macros.
7098 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7099 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
7100 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
7101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
7102 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7103 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
7104 usage.
7105 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
7106
7107 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
7108
7109 [BZ #10425]
7110 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7111 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7112 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7113 which is the same as in it_IT.
7114 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7115 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7116
7117 2018-09-20 Joseph Myers <joseph@codesourcery.com>
7118
7119 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7120 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7121 using MATH_REDIRECT.
7122 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7123 header inclusion.
7124 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7125 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7126 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7127 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7128 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7129 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7130 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7131 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7133 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7134 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7135 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7136 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7137 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7138 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7139 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7140 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7141 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7142 (ceil): Redirect to __ceil.
7143 (floor): Redirect to __floor.
7144 (trunc): Redirect to __trunc.
7145 (__truncl): Call trunc instead of __trunc.
7146 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7147 Remove macro.
7148 [_ARCH_PWR5X] (__truncf): Likewise.
7149 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7150 trunc functions instead of __trunc variants.
7151 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7152 Likewise.
7153 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7154 Likewise.
7155 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7156 Likewise.
7157 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7158 Likewise.
7159
7160 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7161 [__i586__ || __pentium__].
7162 [__i486__]: Handle explicitly.
7163 (HAS_CPUID): Define to 1 if above macros are undefined.
7164 (HAS_I586): Likewise.
7165 (HAS_I686): Likewise.
7166
7167 2018-09-20 Florian Weimer <fweimer@redhat.com>
7168
7169 * misc/tst-gethostid.c: New file.
7170 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7171 (tst-gethostid): Link with -ldl.
7172
7173 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7174
7175 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7176 value from gethostbyname_r.
7177
7178 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7179
7180 * stdlib/tst-setcontext9.c (f1): Rename to...
7181 (f1a): ... this.
7182 (f1b): New function implementing lower half of f1 in alternate stack.
7183
7184 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7185
7186 Fix mktime localtime offset confusion
7187 [BZ #23603]
7188 * include/time.h (__mktime_internal): The localtime offset is now
7189 of type long int instead of time_t. This is the longstanding type
7190 in glibc, and it is more than enough to represent difference
7191 between localtime and gmtime even if it is 32 bits and time_t is
7192 64. Changing it now will let us avoid an unnecessary change when
7193 time_t is widened to 64 bits on 32-bit platforms.
7194 * time/mktime-internal.h (mktime_offset_t): Now long int.
7195
7196 Merge mktime, timegm from upstream Gnulib
7197 [BZ #23603][BZ #16346]
7198 This fixes some obscure problems with integer overflow.
7199 Although it looks scary, it is almost all a byte-for-byte copy
7200 from Gnulib, and the Gnulib code has been tested reasonably well.
7201 * include/intprops.h: New file, copied from Gnulib.
7202 * include/verify.h, time/mktime-internal.h:
7203 New tiny files, simplified from Gnulib.
7204 * time/mktime.c: Copy from Gnulib. This has the following changes:
7205 Do not include config.h if DEBUG_MKTIME is nonzero.
7206 Include stdbool.h, intprops.h, verify.h.
7207 Include string.h only if needed.
7208 Include stdlib.h on MS-Windows.
7209 Include mktime-internal.h.
7210 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7211 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7212 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7213 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7214 simplify later conditionals; default the others to zero. Use
7215 these conditionals to express only the code needed on the current
7216 platform. In uses of these conditionals, explicitly spell out how
7217 _LIBC affects things, so it’s easier to review from a glibc
7218 viewpoint.
7219 (WRAPV): Remove; no longer needed now that we have
7220 systematic overflow checking.
7221 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7222 compartmentalize tzset issues. Move system-dependent tzsettish
7223 code here from mktime.
7224 (verify): Remove; now done by verify.h. All uses changed.
7225 (long_int): Use a more-conservative definition, to avoid
7226 integer overflow.
7227 (SHR): Remove, replacing with ...
7228 (shr): New function, which means we needn’t worry about side
7229 effects in args, and conversion analysis is simpler.
7230 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7231 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7232 (time_t_avg, time_t_add_ok): Remove.
7233 (mktime_min, mktime_max): New constants.
7234 (leapyear, isdst_differ): Use bool for booleans.
7235 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7236 Use long_int, not time_t, for mktime differences.
7237 (long_int_avg): New function, replacing time_t_avg.
7238 INT_ADD_WRAPV replaces time_t_add_ok.
7239 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7240 All uses changed.
7241 (convert_time): New function.
7242 (ranged_convert): Use it.
7243 (__mktime_internal): Last arg now points to mktime_offset_t, not
7244 time_t. All uses changed. This is a no-op on glibc, where
7245 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7246 offset guess. Directly check for integer overflow instead of
7247 using a heuristic that works only 99.9...% of the time.
7248 Access *OFFSET only once, to avoid an unlikely race if the
7249 compiler delays a load and if this cascades into a signed integer
7250 overflow.
7251 (mktime): Move tzsettish code to my_tzset, and move
7252 localtime_offset to within mktime so that it doesn’t
7253 need a separate ifdef.
7254 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7255 instead of localtime.
7256 * time/timegm.c: Copy from Gnulib. This has the following changes:
7257 Include mktime-internal.h.
7258 [!_LIBC]: Include config.h and time.h. Do not include
7259 timegm.h or time_r.h. Make __mktime_internal a macro,
7260 and include mktime-internal.h to get its declaration.
7261 (timegm): Temporary is now mktime_offset_t, not time_t.
7262 This affects only Gnulib.
7263
7264 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7265
7266 [BZ #23637]
7267 * string/test-strstr.c (pr23637): New function.
7268 (test_main): Add tests with longer needles.
7269 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7270 * string/strstr.c (AVAILABLE): Likewise.
7271
7272 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7273
7274 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7275
7276 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7277
7278 * NEWS: Mention pow improvements.
7279 * math/Makefile (type-double-routines): Add e_pow_log_data.
7280 * sysdeps/generic/math_private.h (__exp1): Remove.
7281 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7282 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7283 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7284 contraction.
7285 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7286 (exp_inline): Remove.
7287 (__ieee754_exp): Only single double input is handled.
7288 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7289 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7290 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7291 (__pow_log_data): Define.
7292 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7293 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7294 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7295 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7296 contraction.
7297 (CFLAGS-e_pow-fma4.c): Likewise.
7298
7299 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7300
7301 Simplify tzfile fstat failure code
7302 [BZ #21716]
7303 * time/tzfile.c (__tzfile_read): Simplify slightly.
7304
7305 Fix tzfile low-memory assertion failure
7306 [BZ #21716]
7307 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7308 when registering time zone abbreviations.
7309
7310 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7311
7312 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7313 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7314 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7315 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7316 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7317 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7318 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7319 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7320 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7321
7322 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7323 __ceil.
7324 (__ceill): Call ceil instead of __ceil.
7325 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7326 __floor.
7327 (__floorl): Call floor instead of __floor.
7328
7329 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7330
7331 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7332 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7333 using MATH_REDIRECT.
7334 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7335 header inclusion.
7336 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7337 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7338 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7339 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7340 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7341 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7342 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7343 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7344 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7346 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7347 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7348 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7349 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7350 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7351 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7352 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7353 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7354 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7355 Remove macro.
7356 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7357 functions instead of __ceil variants.
7358 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7359 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7360 Likewise.
7361 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7362 Likewise.
7363 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7364 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7365 Likewise.
7366 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7367 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7368
7369 [BZ #21286]
7370 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7371 constant.
7372 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7373 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7374 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7375 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7376 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7377 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7378 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7379 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7380 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7381 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7382 (ILL_BADIADDR): Remove constant.
7383 (TRAP_BRANCH): Likewise.
7384 (TRAP_HWBKPT): Likewise.
7385
7386 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7387
7388 [BZ #23656]
7389 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7390 Remove [_MIPS_SIM = _ABIN32] conditional case.
7391 (struct elf_prpsinfo): Likewise.
7392
7393 [BZ #23649]
7394 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7395 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7396 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7397 Likewise.
7398 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7399 elf_prpsinfo): Likewise.
7400 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7401 elf_prpsinfo): Likewise.
7402 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7403 Likewise.
7404
7405 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7406 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7407 using MATH_REDIRECT.
7408 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7409 header inclusion.
7410 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7411 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7412 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7413 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7414 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7415 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7416 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7417 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7418 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7419 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7420 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7421 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7422 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7423 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7424 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7425 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7426 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7427 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7428 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7429 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7430 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7431 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7432 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7433 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7434 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7435 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7436 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7437 __rint variants.
7438 * math/e_scalbf.c (invalid_fn): Likewise.
7439 * math/e_scalbl.c (invalid_fn): Likewise.
7440 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7441 Likewise.
7442 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7443 Likewise.
7444 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7445 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7446 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7447 Likewise.
7448 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7449 Likewise.
7450 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7451 Likewise.
7452 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7453 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7454
7455 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7456 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7457 New macro.
7458 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7459 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7460 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7461 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7462 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7463 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7464 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7465 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7466 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7467 && !NO_MATH_REDIRECT] (floor): Likewise.
7468 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7469 header inclusion.
7470 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7471 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7472 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7473 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7474 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7475 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7476 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7477 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7478 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7479 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7480 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7481 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7482 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7483 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7484 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7485 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7486 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7487 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7488 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7489 Remove macro.
7490 [_ARCH_PWR5X] (__floorf): Likewise.
7491 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7492 inline function.
7493 [__SSE4_1__] (__floorf): Likewise.
7494 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7495 instead of __floor variants.
7496 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7497 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7498 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7499 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7500 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7501 * math/w_tgamma_compat.c (__tgamma): Likewise.
7502 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7503 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7504 * math/w_tgammal_compat.c (__tgammal): Likewise.
7505 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7506 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7507 Likewise.
7508 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7509 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7510 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7511 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7512 Likewise.
7513 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7514 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7515 Likewise.
7516 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7517 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7518 Likewise.
7519 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7520 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7521 Likewise.
7522 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7523 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7524 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7525 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7526 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7527 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7528
7529 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7530
7531 * elf/Makefile (modules-names-tests): New variable.
7532
7533 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7534
7535 * NEWS: Mention log2 improvements.
7536 * math/Makefile (type-double-routines): Add e_log2_data.
7537 * sysdeps/i386/fpu/e_log2_data.c: New file.
7538 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7539 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7540 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7541 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7542 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7543 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7544
7545 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7546
7547 * NEWS: Mention log improvement.
7548 * math/Makefile (type-double-routines): Add e_log_data.
7549 * sysdeps/i386/fpu/e_log_data.c: New file.
7550 * sysdeps/ia64/fpu/e_log_data.c: New file.
7551 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7552 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7553 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7554 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7555 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7556 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7557
7558 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7559 Xuepeng Guo <xuepeng.guo@intel.com>
7560
7561 [BZ #23606]
7562 * sysdeps/i386/start.S: Include <sysdep.h>
7563 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7564 enabled. Add cfi_undefined (eip).
7565
7566 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7567
7568 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7569 (MOVQ): Likewise.
7570 (EXTRACT_WORDS64): Likewise.
7571 (INSERT_WORDS64): Likewise.
7572 (GET_FLOAT_WORD): Likewise.
7573 (SET_FLOAT_WORD): Likewise.
7574
7575 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7576 argument.
7577 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7578 build, but not for second build if --full-gcc. Use
7579 --enable-languages=all for second build if --full-gcc.
7580 (get_parser): Add --full-gcc option.
7581 (main): Update call to Context.
7582
7583 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7584
7585 [BZ #10797]
7586 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7587 Single Quotation Mark).
7588 (thousands_sep): Likewise.
7589 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7590 * localedata/locales/it_IT (thousands_sep): Use ".".
7591 (grouping): Use "3;3".
7592
7593 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7594
7595 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7596 x86_64 and i686 configs using --enable-obsolete-rpc
7597 --enable-obsolete-nsl.
7598
7599 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7600
7601 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7602
7603 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7604
7605 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7606 Increment size of new_argv by one.
7607
7608 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7609
7610 [BZ #17426]
7611 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7612 * localedata/locales/ar_IN (d_fmt): Likewise.
7613 * localedata/locales/bhb_IN (d_fmt): Likewise.
7614 * localedata/locales/bho_IN (d_fmt): Likewise.
7615 * localedata/locales/bn_BD (d_fmt): Likewise.
7616 * localedata/locales/bn_IN (d_fmt): Likewise.
7617 * localedata/locales/doi_IN (d_fmt): Likewise.
7618 * localedata/locales/gu_IN (d_fmt): Likewise.
7619 * localedata/locales/hi_IN (d_fmt): Likewise.
7620 * localedata/locales/hne_IN (d_fmt): Likewise.
7621 * localedata/locales/kn_IN (d_fmt): Likewise.
7622 * localedata/locales/mag_IN (d_fmt): Likewise.
7623 * localedata/locales/mai_IN (d_fmt): Likewise.
7624 * localedata/locales/mjw_IN (d_fmt): Likewise.
7625 * localedata/locales/ml_IN (d_fmt): Likewise.
7626 * localedata/locales/mni_IN (d_fmt): Likewise.
7627 * localedata/locales/mr_IN (d_fmt): Likewise.
7628 * localedata/locales/pa_IN (d_fmt): Likewise.
7629 * localedata/locales/raj_IN (d_fmt): Likewise.
7630 * localedata/locales/sat_IN (d_fmt): Likewise.
7631 * localedata/locales/sd_IN (d_fmt): Likewise.
7632 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7633 * localedata/locales/ta_IN (d_fmt): Likewise.
7634 * localedata/locales/ta_LK (d_fmt): Likewise.
7635 * localedata/locales/tcy_IN (d_fmt): Likewise.
7636 * localedata/locales/ur_IN (d_fmt): Likewise.
7637
7638 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7639 * localedata/locales/ks_IN (d_fmt): Likewise.
7640 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7641
7642 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7643 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7644 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7645 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7646
7647 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7648
7649 * NEWS: Mention exp and exp2 improvements.
7650 * math/Makefile (libm-support): Remove t_exp.
7651 (type-double-routines): Add math_err and e_exp_data.
7652 * sysdeps/aarch64/libm-test-ulps: Update.
7653 * sysdeps/arm/libm-test-ulps: Update.
7654 * sysdeps/i386/fpu/e_exp_data.c: New file.
7655 * sysdeps/i386/fpu/math_err.c: New file.
7656 * sysdeps/i386/fpu/t_exp.c: Remove.
7657 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7658 * sysdeps/ia64/fpu/math_err.c: New file.
7659 * sysdeps/ia64/fpu/t_exp.c: Remove.
7660 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7661 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7662 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7663 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7664 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7665 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7666 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7667 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7668 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7669 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7670 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7671 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7672 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7673 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7674 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7675 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7676
7677 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7678
7679 * sysdeps/alpha/fpu/math_private.h: Remove.
7680
7681 * sysdeps/generic/math_private.h
7682 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7683 Move this inline function ....
7684 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7685 * include/math.h [!_ISOMAC]: To here....
7686
7687 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7688
7689 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7690 code ....
7691 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7692 * include/fenv.h [!_ISOMAC]: ... to here.
7693 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7694 (feraiseexcept): Likewise.
7695 * math/fromfp.h: Do not include <fenv_private.h>.
7696 * math/s_cexp_template.c: Likewise.
7697 * math/s_csin_template.c: Likewise.
7698 * math/s_csinh_template.c: Likewise.
7699 * math/s_ctan_template.c: Likewise.
7700 * math/s_ctanh_template.c: Likewise.
7701 * math/s_iseqsig_template.c: Likewise.
7702 * math/w_acos_compat.c: Likewise.
7703 * math/w_acosf_compat.c: Likewise.
7704 * math/w_acosl_compat.c: Likewise.
7705 * math/w_asin_compat.c: Likewise.
7706 * math/w_asinf_compat.c: Likewise.
7707 * math/w_asinl_compat.c: Likewise.
7708 * math/w_j0_compat.c: Likewise.
7709 * math/w_j0f_compat.c: Likewise.
7710 * math/w_j0l_compat.c: Likewise.
7711 * math/w_j1_compat.c: Likewise.
7712 * math/w_j1f_compat.c: Likewise.
7713 * math/w_j1l_compat.c: Likewise.
7714 * math/w_jn_compat.c: Likewise.
7715 * math/w_jnf_compat.c: Likewise.
7716 * math/w_log10_compat.c: Likewise.
7717 * math/w_log10f_compat.c: Likewise.
7718 * math/w_log10l_compat.c: Likewise.
7719 * math/w_log2_compat.c: Likewise.
7720 * math/w_log2f_compat.c: Likewise.
7721 * math/w_log2l_compat.c: Likewise.
7722 * math/w_log_compat.c: Likewise.
7723 * math/w_logf_compat.c: Likewise.
7724 * math/w_logl_compat.c: Likewise.
7725 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7726 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7727 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7728 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7729 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7730 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7731 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7732 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7733 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7734 * sysdeps/ieee754/k_standardl.c: Likewise.
7735 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7736 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7737 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7738 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7739 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7740 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7741 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7742 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7743 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7744 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7745 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7746 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7747 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7748 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7749 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7750 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7751 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7752 * math/w_ilogb_template.c: Include <fenv.h> instead of
7753 <fenv_private.h>.
7754 * math/w_llogb_template.c: Likewise.
7755 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7756 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7757
7758 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7759
7760 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7761 * math/fromfp.h: Include <fenv_private.h>.
7762 * math/math-narrow.h: Likewise.
7763 * math/s_cexp_template.c: Likewise.
7764 * math/s_csin_template.c: Likewise.
7765 * math/s_csinh_template.c: Likewise.
7766 * math/s_ctan_template.c: Likewise.
7767 * math/s_ctanh_template.c: Likewise.
7768 * math/s_iseqsig_template.c: Likewise.
7769 * math/w_acos_compat.c: Likewise.
7770 * math/w_acosf_compat.c: Likewise.
7771 * math/w_acosl_compat.c: Likewise.
7772 * math/w_asin_compat.c: Likewise.
7773 * math/w_asinf_compat.c: Likewise.
7774 * math/w_asinl_compat.c: Likewise.
7775 * math/w_ilogb_template.c: Likewise.
7776 * math/w_j0_compat.c: Likewise.
7777 * math/w_j0f_compat.c: Likewise.
7778 * math/w_j0l_compat.c: Likewise.
7779 * math/w_j1_compat.c: Likewise.
7780 * math/w_j1f_compat.c: Likewise.
7781 * math/w_j1l_compat.c: Likewise.
7782 * math/w_jn_compat.c: Likewise.
7783 * math/w_jnf_compat.c: Likewise.
7784 * math/w_llogb_template.c: Likewise.
7785 * math/w_log10_compat.c: Likewise.
7786 * math/w_log10f_compat.c: Likewise.
7787 * math/w_log10l_compat.c: Likewise.
7788 * math/w_log2_compat.c: Likewise.
7789 * math/w_log2f_compat.c: Likewise.
7790 * math/w_log2l_compat.c: Likewise.
7791 * math/w_log_compat.c: Likewise.
7792 * math/w_logf_compat.c: Likewise.
7793 * math/w_logl_compat.c: Likewise.
7794 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7795 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7796 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7797 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7798 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7799 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7800 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7801 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7802 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7803 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7804 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7805 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7806 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7807 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7808 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7809 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7810 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7811 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7812 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7813 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7814 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7815 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7816 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7817 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7818 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7819 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7820 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7821 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7822 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7823 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7824 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7825 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7826 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7827 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7828 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7829 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7830 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7831 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7832 * sysdeps/ieee754/k_standardl.c: Likewise.
7833 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7834 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7835 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7836 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7837 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7838 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7839 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7840 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7841 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7842 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7843 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7844 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7845 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7846 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7847 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7848 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7849 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7850 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7851 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7852 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7853 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7854 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7855 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7856 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7857 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7858 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7859 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7860 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7861 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7862 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7863 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7864 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7865 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7866 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7867 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7868 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7869 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7870 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7871 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7872 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7873 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7874 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7875 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7876 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7877 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7878 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7879 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7880 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7881 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7882 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7883 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7884 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7885 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7886 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7887 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7888 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7889 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7890 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7891 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7892 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7893 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7894 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7895 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7896 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7897 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7898 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7899 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7900 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7901 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7902 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7903 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7904
7905 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7906
7907 [BZ #20271]
7908 * include/stdio.h (__libc_fatal): Mention newline in comment.
7909 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7910 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7911 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7912 * nss/nsswitch.c (__nss_next2): Likewise.
7913 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7914 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7915 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7916 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7917 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7918 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7919 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7920 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7921 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7922 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7923 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7924 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7925 (__netlink_assert_response): Likewise.
7926
7927 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7928
7929 * conform/glibcconform.py: New file.
7930 * conform/list-header-symbols.py: Likewise.
7931 * conform/list-header-symbols.pl: Remove.
7932 * conform/Makefile (tests-special): Only add linknamespace tests
7933 if [PYTHON].
7934 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7935
7936 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7937
7938 [BZ #23597]
7939 * support/Makefile (libsupport-routines): Add
7940 support_copy_file_range and xcopy_file_range.
7941 * support/support.h: Include <sys/types.h>.
7942 (support_copy_file_range): New prototype.
7943 * support/support_copy_file_range.c: New file. Copied and
7944 modified from io/copy_file_range-compat.c.
7945 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7946 instead of copy_file_range.
7947 * support/xcopy_file_range.c: New file.
7948 * support/xunistd.h (xcopy_file_range): New prototype.
7949
7950 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7951
7952 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7953 xpthread_create and xpthread_join.
7954
7955 2018-08-30 Florian Weimer <fweimer@redhat.com>
7956
7957 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7958
7959 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7960
7961 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7962 if malloc fails.
7963
7964 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7965
7966 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7967 and minus_oflow as non-finite.
7968
7969 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7970
7971 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7972 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7973 moved to fenv_private.h except for ...
7974 (TOINT_INTRINSICS): Kept in math_private.h.
7975 (roundtoint): Likewise.
7976 (converttoint): Likewise.
7977 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7978 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7979 * sysdeps/arm/math_private.h: Remove.
7980 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7981 ....
7982 * sysdeps/generic/math_private.h: ... this file. Include
7983 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7984 Include <fenv_private.h>. Remove functions and macros moved to
7985 fenv_private.h.
7986 * sysdeps/i386/fpu/math_private.h: Remove.
7987 * sysdeps/mips/math_private.h: Move to ....
7988 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7989 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7990 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7991 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7992 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7993 * sysdeps/powerpc/fpu/math_private.h: Do not include
7994 <fenv_private.h>.
7995 * sysdeps/riscv/rvf/math_private.h: Move to ....
7996 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7997 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7998 <fenv_private.h>.
7999 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
8000 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
8001 * sysdeps/sparc/fpu/math_private.h: Remove.
8002 * sysdeps/i386/fpu/fenv_private.h: Move to ....
8003 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
8004 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
8005 <fenv_private.h>.
8006 * sysdeps/x86_64/fpu/math_private.h: Do not include
8007 <sysdeps/i386/fpu/fenv_private.h>.
8008
8009 2018-08-28 Florian Weimer <fweimer@redhat.com>
8010
8011 [BZ #23578]
8012 * posix/tst-regcomp-truncated.c: New file.
8013 * posix/Makefile (tests): Add it.
8014 (tst-regcomp-truncated.out): Depend on generated locales.
8015
8016 2018-08-28 Florian Weimer <fweimer@redhat.com>
8017
8018 * support/test-container.c (main): Treat unshare failure with
8019 EPERM as an unsupported test.
8020
8021 2018-08-28 Florian Weimer <fweimer@redhat.com>
8022
8023 [BZ #23520]
8024 nscd: Fix use-after-free in addgetnetgrentX and its callers.
8025 * nscd/netgroupcache.c
8026 (addgetnetgrentX): Add tofreep parameter. Do not free
8027 heap-allocated buffer.
8028 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
8029 (addgetnetgrentX_ignore): New function.
8030 (addgetnetgrent): Call it.
8031 (readdgetnetgrent): Likewise.
8032
8033 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8034
8035 * string/memmem.c: Use memcmp for first match.
8036
8037 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
8038
8039 [BZ #17426]
8040 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8041
8042 2018-08-27 DJ Delorie <dj@redhat.com>
8043
8044 * support/Makefile (others): Don't list programs explicitly as a
8045 dependency of "others".
8046
8047 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8048
8049 * sysdeps/generic/math-tests-trap-force.h: New file.
8050 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8051 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8052 * sysdeps/powerpc/math-tests.h: Remove file.
8053 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8054
8055 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
8056 Torvald Riegel <triegel@redhat.com>
8057
8058 [BZ #23538]
8059 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8060 Update r to include the set wake-request flag if waiters are
8061 remaining after spinning.
8062
8063 2018-08-27 Joseph Myers <joseph@codesourcery.com>
8064
8065 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8066
8067 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
8068
8069 [BZ #23578]
8070 regex: fix uninitialized memory access
8071 I introduced this bug into gnulib in commit
8072 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8073 eventually it was merged into glibc. The bug was found by
8074 project-repo <bugs@feusi.co> and reported here:
8075 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8076 Diagnosis and draft fix reported by Assaf Gordon here:
8077 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8078 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8079 * posix/regex_internal.c (build_wcs_upper_buffer):
8080 Fix bug when mbrtowc returns 0.
8081
8082 2018-08-24 Carlos O'Donell <carlos@redhat.com>
8083
8084 * po/be.po: Update translation.
8085
8086 2018-08-24 DJ Delorie <dj@delorie.com>
8087
8088 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
8089 $(libunwind).
8090
8091 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
8092
8093 [BZ #23400]
8094 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
8095 create temporary files in source tree.
8096
8097 2018-08-24 Joseph Myers <joseph@codesourcery.com>
8098
8099 * sysdeps/generic/math-tests-trap.h: New file.
8100 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
8101 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
8102 * sysdeps/aarch64/math-tests.h: Remove file.
8103 * sysdeps/arm/math-tests.h: Likewise.
8104 * sysdeps/riscv/math-tests.h: Likewise.
8105 * sysdeps/aarch64/math-tests-trap.h: New file.
8106 * sysdeps/arm/math-tests-trap.h: Likewise.
8107 * sysdeps/riscv/math-tests-trap.h: Likewise.
8108
8109 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
8110
8111 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8112 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8113 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8114 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8115 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8116 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8117 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8118 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8119 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8120 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8121 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8122 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8123 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8124 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8125 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8126 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8127 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8128 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8129
8130 2018-08-23 Joseph Myers <joseph@codesourcery.com>
8131
8132 * sysdeps/generic/math-tests-exceptions.h: New file.
8133 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8134 (EXCEPTION_TESTS_float): Do not define here.
8135 (EXCEPTION_TESTS_double): Likewise.
8136 (EXCEPTION_TESTS_long_double): Likewise.
8137 (EXCEPTION_TESTS_float128): Likewise.
8138 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8139 Likewise.
8140 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8141 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8142 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8143 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8144 * sysdeps/mips/math-tests.h: Likewise.
8145 * sysdeps/nios2/math-tests.h: Likewise.
8146 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8147 (EXCEPTION_TESTS_float): Do not define here.
8148 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8149 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8150 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8151
8152 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8153
8154 * NEWS: Move optimized sinf entry to 2.29.
8155
8156 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8157
8158 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8159
8160 2018-08-22 DJ Delorie <dj@redhat.com>
8161
8162 * Makefile (testroot.pristine): New rules to initialize the
8163 test-in-container "testroot".
8164 * Makerules (all-testsuite): Add tests-container.
8165 * Rules (tests-expected): Add tests-container.
8166 (binaries-all-tests): Likewise.
8167 (tests-container): New, run these tests in the testroot container.
8168 * support/Makefile (others): Add *-container, support_paths.c,
8169 xmkdirp, and links-dso-program.
8170 * support/links-dso-program-c.c: New.
8171 * support/links-dso-program.cc: New.
8172 * support/test-container.c: New.
8173 * support/shell-container.c: New.
8174 * support/echo-container.c: New.
8175 * support/true-container.c: New.
8176 * support/xmkdirp.c: New.
8177 * support/xsymlink.c: New.
8178 * support/support_paths.c: New.
8179 * support/support.h: Add support paths prototypes.
8180 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8181
8182 * nss/tst-nss-test3.c: Convert to test-in-container.
8183 * nss/tst-nss-test3.root/: New.
8184
8185 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8186
8187 regex: port Gnulib code to z/OS POSIX environment
8188 Problem reported by Arnold Robbins in:
8189 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8190 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8191 Undef.
8192
8193 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8194
8195 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8196 (ROUNDING_TESTS_double): Remove.
8197 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8198 (ROUNDING_TESTS_double): Remove.
8199 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8200 (ROUNDING_TESTS_double): Remove.
8201 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8202 (ROUNDING_TESTS_float): Remove.
8203 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8204 (ROUNDING_TESTS_float): Remove.
8205 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8206 (ROUNDING_TESTS_float): Remove.
8207 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8208 !TEST_MATHVEC here.
8209 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8210 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8211
8212 * sysdeps/generic/math-tests-rounding.h: New file.
8213 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8214 (ROUNDING_TESTS_float): Do not define here.
8215 (ROUNDING_TESTS_double): Likewise.
8216 (ROUNDING_TESTS_long_double): Likewise.
8217 (ROUNDING_TESTS_float128): Likewise.
8218 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8219 (ROUNDING_TESTS_double): Undefine before defining.
8220 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8221 (ROUNDING_TESTS_double): Undefine before defining.
8222 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8223 (ROUNDING_TESTS_double): Undefine before defining.
8224 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8225 (ROUNDING_TESTS_float): Undefine before defining.
8226 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8227 (ROUNDING_TESTS_float): Undefine before defining.
8228 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8229 (ROUNDING_TESTS_float): Undefine before defining.
8230 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8231 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8232 not define here.
8233 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8234 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8235 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8236 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8237 (ROUNDING_TESTS_float): Do not define here.
8238 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8239 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8240 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8241 (ROUNDING_TESTS_float): Likewise.
8242 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8243 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8244 * sysdeps/mips/math-tests.h [__mips_soft_float]
8245 (ROUNDING_TESTS_float): Likewise.
8246 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8247 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8248 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8249 (ROUNDING_TESTS_double): Likewise.
8250 (ROUNDING_TESTS_long_double): Likewise.
8251
8252 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8253
8254 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8255 (PF_XDP): New macro.
8256 (AF_XDP): New macro.
8257 (SOL_XDP): New macro.
8258
8259 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8260
8261 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8262 (TCP_INQ): Likewise.
8263 (TCP_CM_INQ): Likewise.
8264 (TCP_REPAIR_ON): Likewise.
8265 (TCP_REPAIR_OFF): Likewise.
8266 (TCP_REPAIR_OFF_NO_WP): Likewise.
8267 (struct tcp_zerocopy_receive): New type.
8268
8269 2018-08-21 Florian Weimer <fweimer@redhat.com>
8270
8271 * support/support.h (support_descriptor_supports_holes): Declare.
8272 * support/Makefile (libsupport-routines): Add
8273 support_descriptor_supports_holes.
8274 * support/support_descriptor_supports_holes.c: New file.
8275 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8276 and stop testing if holes are not supported.
8277 * io/test-lfs.c (do_prepare): Likewise.
8278 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8279 Likewise.
8280 * timezone/tst-tzset.c (create_tz_file): Likewise.
8281 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8282 variable.
8283 (do_prepare): Set it.
8284 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8285
8286 2018-08-21 Florian Weimer <fweimer@redhat.com>
8287
8288 [BZ #17248]
8289 * Makeconfig (+cflags): Do not sort (and deduplicate).
8290
8291 2018-08-21 Florian Weimer <fweimer@redhat.com>
8292
8293 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8294 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8295
8296 2018-08-20 Florian Weimer <fweimer@redhat.com>
8297
8298 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8299 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8300
8301 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8302
8303 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8304 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8305 and ssi_arch members.
8306
8307 * elf/elf.c (NT_VMCOREDD): New macro.
8308 (AT_MINSIGSTKSZ): Likewise.
8309
8310 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8311
8312 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8313 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8314 s_cosf-ppc64 and s_cosf-power8.
8315 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8316 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8317 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8318 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8319 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8321 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8322 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8323 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8324 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8325 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8326 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8327
8328 2018-08-17 Florian Weimer <fweimer@redhat.com>
8329
8330 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8331
8332 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8333
8334 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8335
8336 2018-08-16 Florian Weimer <fweimer@redhat.com>
8337
8338 * configure.ac: Add --with-nonshared-cflags option.
8339 * config.make.in (extra-nonshared-cflags): Set variable.
8340 * Makeconfig (CFLAGS-.oS): Use it.
8341 * manual/install.texi (Configuring and compiling): Document
8342 --with-nonshared-cflags.
8343 * configure: Regenerate.
8344 * INSTALL: Likewise.
8345
8346 2018-08-16 Florian Weimer <fweimer@redhat.com>
8347
8348 * Makeconfig (ASFLAGS): Always append required assembler flags.
8349
8350 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8351
8352 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8353 (malloc_consolidate): Likewise.
8354
8355 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8356
8357 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8358
8359 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8360
8361 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8362 every strlen call.
8363
8364 * benchtests/bench-strlen.c: Print performance numbers in json.
8365
8366 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8367
8368 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8369 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8370 only for little endian.
8371 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8372 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8373 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8374 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8375 Add check for little endian.
8376 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8377 (__strcmp_power9): Add check for little endian.
8378 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8379 Add check for little endian.
8380 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8381 (__strncmp_power9): Add check for little endian.
8382 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8383 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8384 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8385 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8386 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8387
8388 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8389
8390 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8391 [!STRLEN](STRLEN): Set to __strlen.
8392 * sysdeps/aarch64/multiarch/strlen.c: New file.
8393 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8394 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8395 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8396 (__libc_ifunc_impl_list): Add strlen.
8397 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8398 strlen_generic and strlen_asimd.
8399
8400 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8401
8402 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8403 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8404 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8405
8406 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8407
8408 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8409
8410 2018-08-14 Florian Weimer <fweimer@redhat.com>
8411
8412 [BZ #23519]
8413 * include/stdio.h (__vfxprintf): Declare.
8414 * stdio-common/fxprintf.c (__vfxprintf): New function.
8415 (__fxprintf): Call it.
8416 * misc/err.c (convert_and_print): Remove function.
8417 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8418 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8419 * misc/Makefile (tests): Add tst-warn-wide.
8420 * misc/tst-warn-wide.c: New file.
8421
8422 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8423 Szabolcs Nagy <szabolcs.nagy@arm.com>
8424
8425 * NEWS: Mention sinf, cosf, sincosf.
8426 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8427 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8428 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8429 constants rather than including generic sincosf.h.
8430 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8431 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8432 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8433 (reduced_cos): Remove.
8434 (sinf_poly): New function.
8435 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8436
8437 2018-08-14 Florian Weimer <fweimer@redhat.com>
8438
8439 [BZ #23521]
8440 [BZ #23522]
8441 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8442 processing, bail out if no room, and close the stream before
8443 returning ERANGE.
8444 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8445 (tst-nss-files-alias-leak): Link with libdl.
8446 (tst-nss-files-alias-leak.out): Depend on nss_files.
8447
8448 * nss/tst-nss-files-alias-leak.c: New file.
8449
8450 2018-08-14 Florian Weimer <fweimer@redhat.com>
8451
8452 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8453 server_user, stat_user.
8454
8455 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8456
8457 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8458 version to 4.18.
8459 (io_pgetevents): New syscall.
8460 (rseq): Likewise.
8461
8462 * manual/install.texi (Configuring and compiling): Do not list
8463 tools used for testing pretty printers here.
8464 (Tools for Compilation): List Python, PExpect and GDB here.
8465 Update descriptions of uses of Perl and Python.
8466 * INSTALL: Regenerate.
8467
8468 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8469 version to 4.18.
8470
8471 2018-08-13 Florian Weimer <fweimer@redhat.com>
8472
8473 * misc/error.c (error): Add missing va_end call.
8474 (error_at_line): Likewise.
8475
8476 2018-08-13 Florian Weimer <fweimer@redhat.com>
8477
8478 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8479
8480 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8481
8482 * benchtests/scripts/benchout.schema.json (properties): Add
8483 new properties.
8484
8485 * benchtests/bench-skeleton.c (main): Add duration and
8486 iterations attributes.
8487
8488 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8489
8490 regex: Gnulib unibyte RRI uses bytes not chars
8491 Adjust the non-glibc code to agree with what Gawk needs for
8492 rational range interpretation (RRI) for regular expression ranges.
8493 In unibyte locales, Gawk wants ranges to use the underlying byte
8494 rather than the character code point. This change does not affect
8495 glibc proper.
8496 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8497 In unibyte locales, use the byte value rather than
8498 running it through btowc.
8499
8500 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8501
8502 * sysdeps/generic/math-tests-snan.h: New file.
8503 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8504 (SNAN_TESTS_float): Do not define here.
8505 (SNAN_TESTS_double): Likewise.
8506 (SNAN_TESTS_long_double): Likewise.
8507 (SNAN_TESTS_float128): Likewise.
8508 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8509 * sysdeps/i386/fpu/math-tests.h: Remove file.
8510 * sysdeps/ia64/math-tests-snan.h: New file.
8511 * sysdeps/ia64/math-tests.h: Remove file.
8512 * sysdeps/x86/math-tests.h: Likewise.
8513 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8514
8515 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8516 Szabolcs Nagy <szabolcs.nagy@arm.com>
8517
8518 * math/Makefile: Add s_sincosf_data.c.
8519 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8520 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8521 (sincosf_poly): Likewise.
8522 (reduce_small): Likewise.
8523 (reduce_large): Likewise.
8524 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8525 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8526 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8527 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8528
8529 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8530 Szabolcs Nagy <szabolcs.nagy@arm.com>
8531
8532 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8533 (converttoint): Use lround.
8534 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8535 document the semantics when TOINT_INTRINSICS is set.
8536 (converttoint): Likewise.
8537 (TOINT_RINT): Remove.
8538 (TOINT_SHIFT): Remove.
8539 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8540 path.
8541
8542 2018-08-10 Florian Weimer <fweimer@redhat.com>
8543
8544 [BZ #23497]
8545 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8546 function.
8547 (__old_getdents64): Use getdents64. Convert entries without
8548 moving them.
8549 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8550 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8551 tst-readdir64-compat.
8552
8553 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8554
8555 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8556 Fix unwind.
8557
8558 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8559
8560 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8561 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8562 code to s390x-mcount.h and #include it.
8563 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8564 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8565 (__fentry__): Add.
8566
8567 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8568
8569 * stdlib/Versions: Remove __fentry__.
8570 * sysdeps/i386/Versions: Add __fentry__.
8571 * sysdeps/x86_64/Versions: Add __fentry__.
8572
8573 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8574
8575 * sysdeps/s390/Makefile: Register the new tests.
8576 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8577 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8578 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8579 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8580 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8581 * sysdeps/s390/tst-dl-runtime.c: New file.
8582
8583 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8584
8585 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8586 Do not clobber R0.
8587
8588 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8589
8590 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8591 Do not clobber R0.
8592
8593 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8594
8595 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8596 Do not clobber R0.
8597
8598 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8599
8600 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8601 Do not clobber R0.
8602
8603 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8604
8605 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8606 Use symbolic offsets for stack variables.
8607
8608 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8609
8610 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8611 Use symbolic offsets for stack variables.
8612
8613 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8614
8615 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8616 Use symbolic offsets for stack variables.
8617
8618 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8619
8620 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8621 Use symbolic offsets for stack variables.
8622
8623 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8624
8625 * math/gen-libm-test.py: New file.
8626 * math/gen-libm-test.pl: Remove.
8627 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8628 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8629 gen-libm-test.pl.
8630 ($(libm-test-c-noauto-obj)): Likewise.
8631 ($(libm-test-c-auto-obj)): Likewise.
8632 ($(libm-test-c-narrow-obj)): Likewise.
8633 (regen-ulps): Likewise.
8634 * math/README.libm-test: Update references to gen-libm-test.pl.
8635 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8636 referencing gen-libm-test.pl.
8637 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8638 * math/libm-test-support.c: Likewise.
8639 * math/libm-test-support.h: Likewise.
8640 * sysdeps/generic/libm-test-ulps: Likewise.
8641
8642 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8643
8644 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8645 Fix value.
8646
8647 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8648
8649 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8650 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8651
8652 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8653
8654 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8655 symbols.
8656 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8657 __pthread_setspecific): Add hidden proto.
8658 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8659 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8660
8661 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8662
8663 * benchtests/bench-string.h (buf1_size, buf2_size): New
8664 variables.
8665 (init_sizes): New function.
8666 (test_init): Use it.
8667 (alloc_buf, exit_error): New functions.
8668 (alloc_bufs): Use ALLOC_BUF.
8669 (realloc_bufs): Remove.
8670 * benchtests/bench-memcmp.c (do_test): Adjust.
8671 * benchtests/bench-memset-large.c (do_test): Likewise.
8672 * benchtests/bench-memset-walk.c (do_test): Likewise.
8673 * benchtests/bench-memset.c (do_test): Likewise.
8674 * benchtests/bench-strncmp.c (do_test): Likewise.
8675
8676 2018-08-06 Andreas Schwab <schwab@suse.de>
8677
8678 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8679 of CONST_THREAD_AREA.
8680
8681 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8682
8683 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8684 (STATE_SAVE_MASK): Likewise.
8685 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8686 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8687 (STATE_SAVE_MASK): Likewise.
8688 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8689 instead of <cpu-features.h>.
8690
8691 2018-08-03 DJ Delorie <dj@redhat.com>
8692
8693 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8694 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8695
8696 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8697
8698 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8699
8700 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8701 after TEST_* calls.
8702 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8703 * math/libm-test-logb.inc (logb_test_data): Likewise.
8704
8705 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8706
8707 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8708 * string/strstr.c (AVAILABLE): Likewise.
8709
8710 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8711
8712 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8713 <init-arch.h>.
8714 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8715 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8716 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8717
8718 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8719
8720 * po/be.po: Update translation.
8721
8722 * po/be.po: Update translation.
8723
8724 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8725
8726 * sysdeps/x86/cpu-features-offsets.sym
8727 (rtld_global_ro_offsetof): Removed.
8728 (CPU_FEATURES_SIZE): Likewise.
8729 (CPUID_OFFSET): Likewise.
8730 (CPUID_SIZE): Likewise.
8731 (CPUID_EAX_OFFSET): Likewise.
8732 (CPUID_EBX_OFFSET): Likewise.
8733 (CPUID_ECX_OFFSET): Likewise.
8734 (CPUID_EDX_OFFSET): Likewise.
8735 (FAMILY_OFFSET): Likewise.
8736 (MODEL_OFFSET): Likewise.
8737 (FEATURE_OFFSET): Likewise.
8738 (FEATURE_SIZ): Likewise.
8739 (COMMON_CPUID_INDEX_1): Likewise.
8740 (COMMON_CPUID_INDEX_7): Likewise.
8741 (FEATURE_INDEX_1): Likewise.
8742 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8743
8744 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8745
8746 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8747 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8748 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8749 (install-locales): Depend on install-locale-archive.
8750 (install-locale-archive): Define.
8751 (install-locale-files): Define.
8752 (build-one-locale): Define macro.
8753 * manual/install.texi (Running make install): Document.
8754 * manual/INSTALL: Regenerate.
8755
8756 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8757
8758 * benchtests/scripts/compare_strings.py: Import traceback.
8759 (parse_file): Pretty-print error.
8760
8761 * NEWS: Mention the change.
8762 * elf/dl-tunables.list: Rename tune namespace to cpu.
8763 * sysdeps/powerpc/dl-tunables.list: Likewise.
8764 * sysdeps/x86/dl-tunables.list: Likewise.
8765 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8766 cpu.name.
8767 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8768 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8769 * manual/README.tunables: Likewise.
8770 * manual/tunables.texi: Likewise.
8771 * sysdeps/powerpc/cpu-features.c: Likewise.
8772 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8773 (init_cpu_features): Likewise.
8774 * sysdeps/x86/cpu-features.c: Likewise.
8775 * sysdeps/x86/cpu-features.h: Likewise.
8776 * sysdeps/x86/cpu-tunables.c: Likewise.
8777 * sysdeps/x86_64/Makefile: Likewise.
8778 * sysdeps/x86/dl-cet.c: Likewise.
8779
8780 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8781
8782 [BZ #23479]
8783 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8784 [__mips_hard_float].
8785 (FE_UNDERFLOW): Likewise.
8786 (FE_OVERFLOW): Likewise.
8787 (FE_DIVBYZERO): Likewise.
8788 (FE_INVALID): Likewise.
8789 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8790 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8791 (FE_UPWARD): Likewise.
8792 (FE_DOWNWARD): Likewise.
8793 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8794 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8795 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8796 [__mips_hard_float].
8797 (FP_ROUNDMODE): Likewise.
8798 (FP_RND_NEAREST): Likewise.
8799 (FP_RND_ZERO): Likewise.
8800 (FP_RND_PINF): Likewise.
8801 (FP_RND_MINF): Likewise.
8802 (FP_EX_INVALID): Likewise.
8803 (FP_EX_OVERFLOW): Likewise.
8804 (FP_EX_UNDERFLOW): Likewise.
8805 (FP_EX_DIVZERO): Likewise.
8806 (FP_EX_INEXACT): Likewise.
8807 (FP_INIT_ROUNDMODE): Likewise.
8808 * sysdeps/mips/nofpu/fesetenv.c: New file.
8809 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8810
8811 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8812
8813 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8814 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8815 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8816 conditional on [FE_UPWARD].
8817
8818 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8819
8820 regex: fix memory leak in Gnulib
8821 Problem and fix reported by Assaf Gordon in:
8822 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8823 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8824 range_ends members too, as they are defined in 'struct
8825 re_charset_t' even if not _LIBC. This affects only Gnulib.
8826
8827 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8828
8829 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8830 ...
8831 (get_common_indices): This.
8832 (init_cpu_features): Updated.
8833
8834 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8835
8836 * sysdeps/generic/math-tests-snan-payload.h: New file.
8837 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8838 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8839 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8840 * sysdeps/generic/math-tests.h: Include
8841 <math-tests-snan-payload.h>.
8842 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8843 * sysdeps/hppa/math-tests.h: Remove file.
8844 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8845 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8846 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8847 Likewise.
8848
8849 * sysdeps/generic/math-tests-snan-cast.h: New file.
8850 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8851 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8852 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8853 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8854
8855 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8856
8857 * version.h (RELEASE): Set to "development".
8858 (VERSION): Set to "2.28.9000".
8859 * NEWS (2.29): New section.
8860
8861 * version.h (RELEASE): Set to "stable".
8862 (VERSION): Set to "2.28".
8863 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8864 * NEWS: Add the list of bugs fixed in 2.28.
8865
8866 * po/ca.po: Update to latest version.
8867 * po/cs.po: Likewise
8868 * po/da.po: Likewise
8869 * po/el.po: Likewise
8870 * po/eo.po: Likewise
8871 * po/es.po: Likewise
8872 * po/fi.po: Likewise
8873 * po/fr.po: Likewise
8874 * po/gl.po: Likewise
8875 * po/hu.po: Likewise
8876 * po/ia.po: Likewise
8877 * po/id.po: Likewise
8878 * po/it.po: Likewise
8879 * po/ja.po: Likewise
8880 * po/ko.po: Likewise
8881 * po/lt.po: Likewise
8882 * po/nb.po: Likewise
8883 * po/nl.po: Likewise
8884 * po/pt_BR.po: Likewise
8885 * po/ru.po: Likewise
8886 * po/rw.po: Likewise
8887 * po/sk.po: Likewise
8888 * po/sl.po: Likewise
8889 * po/tr.po: Likewise
8890 * po/zh_CN.po: Likewise
8891 * po/zh_TW.po: Likewise
8892
8893 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8894
8895 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8896 initialization...
8897 (init): ... before initializing libpthread.
8898
8899 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8900 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8901 (__mach_setup_tls): ... new function.
8902 (mach_setup_tls): New alias.
8903 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8904 __mach_setup_thread.
8905 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8906 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8907 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8908 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8909
8910 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8911
8912 * manual/install.texi: Update versions.
8913 * INSTALL: Regenerate.
8914
8915 * manual/contrib.texi (Contributors): Update contributions.
8916
8917 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8918
8919 * po/be.po: Update translations.
8920
8921 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8922
8923 * sysdeps/sh/libm-test-ulps: Update.
8924
8925 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8926
8927 * po/bg.po: Update translations.
8928 * po/de.po: Likewise.
8929 * po/hr.po: Likewise.
8930 * po/pt_BR.po: Likewise.
8931 * po/sv.po: Likewise.
8932 * po/vi.po: Likewise.
8933
8934 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8935
8936 [BZ #23467]
8937 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8938 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8939 (CFLAGS-tst-cet-property-1.o): New.
8940 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8941 ($(objpfx)tst-cet-property-2): Likewise.
8942 ($(objpfx)tst-cet-property-2.out): Likewise.
8943 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8944 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8945 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8946 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8947 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8948
8949 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8950
8951 [BZ #23458]
8952 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8953
8954 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8955
8956 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8957 __sbrk): Do not set attribute_hidden.
8958 * sysdeps/mach/hurd/not-errno.h: New file.
8959 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8960 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8961
8962 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8963
8964 * po/uk.po: Update translations.
8965 * po/cs.po: Likewise.
8966 * po/pl.po: Likewise.
8967
8968 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8969
8970 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8971 parse beyond the note end.
8972
8973 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8974
8975 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8976 kernel does not support OFD locks.
8977 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8978
8979 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8980
8981 * sysdeps/mach/hurd/Versions (libc): Make __access and
8982 __access_noerrno external so they can override the ld symbols.
8983 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8984 __writev, __open64, __access_noerrno extern so they can be overrided.
8985 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8986 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8987
8988 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8989
8990 * po/libc.pot: Regenerate.
8991
8992 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8993
8994 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8995
8996 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8997
8998 [BZ #23459]
8999 * sysdeps/x86/cpu-features.c (get_extended_indices): New
9000 function.
9001 (init_cpu_features): Call get_extended_indices for both Intel
9002 and AMD CPUs.
9003 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
9004 Remove "for AMD" comment.
9005
9006 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
9007
9008 [BZ # 23456]
9009 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
9010 COMMON_CPUID_INDEX_80000001.
9011
9012 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
9013
9014 * string/tst-xbzero-opt.c (use_test_buffer): New function.
9015 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
9016
9017 2018-07-26 Florian Weimer <fweimer@redhat.com>
9018
9019 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
9020 aliases for symbols not in the implementation namespace.
9021
9022 2018-07-25 Carlos O'Donell <carlos@redhat.com>
9023
9024 [BZ #23393]
9025 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
9026 lowercase in LATIN script.
9027 * localedata/Makefile (test-input): Add en_US.UTF-8.
9028 * localedata/en_US.UTF-8.in: New file.
9029 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
9030 and restore old tests.
9031 * posix/tst-regexloc.c (do_test): Add back range expression test.
9032
9033 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9034
9035 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9036
9037 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9038
9039 * nptl/threads.h: Move to ...
9040 * sysdeps/nptl/threads.h: ... here.
9041 * sysdeps/hurd/stdc-predef.h: New file.
9042
9043 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9044
9045 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9046 tst-cet-setcontext-1 if CET is enabled.
9047 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9048 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9049
9050 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9051
9052 * include/threads.h: Move to ...
9053 * sysdeps/nptl/threads.h: ... here.
9054 * sysdeps/htl/threads.h: New file.
9055 * conform/Makefile (linknamespace-libs-ISO11): Use
9056 static-thread-library instead of linking libpthread.
9057 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9058
9059 2018-07-25 Florian Weimer <fweimer@redhat.com>
9060
9061 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9062 nanoseconds into seconds.
9063 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9064 (do_test): Likewise.
9065 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9066 (do_test): Likewise. Avoid nanosecond overflow and spurious
9067 timeouts due to system load.
9068 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9069 (child_wait): Increment it.
9070 (do_test): Wait as long as necessary until all expected threads
9071 have arrived.
9072
9073 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
9074 H.J. Lu <hongjiu.lu@intel.com>
9075
9076 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9077 __ssp.
9078 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9079 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9080 (__push___start_context): New.
9081 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9082 <asm/prctl.h>.
9083 (__getcontext): Record the current shadow stack base. Save the
9084 caller's shadow stack pointer and base.
9085 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9086 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9087 (__push___start_context): New prototype.
9088 (__makecontext): Call __push___start_context to allocate a new
9089 shadow stack, push __start_context onto the new stack as well
9090 as the new shadow stack.
9091 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
9092 <asm/prctl.h>.
9093 (__setcontext): Restore the target shadow stack.
9094 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
9095 <asm/prctl.h>.
9096 (__swapcontext): Record the current shadow stack base. Save
9097 the caller's shadow stack pointer and base. Restore the target
9098 shadow stack.
9099 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9100 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
9101 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
9102
9103 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9104
9105 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
9106 tst-setcontext8 and tst-setcontext9.
9107 * stdlib/tst-setcontext6.c: New file.
9108 * stdlib/tst-setcontext7.c: Likewise.
9109 * stdlib/tst-setcontext8.c: Likewise.
9110 * stdlib/tst-setcontext9.c: Likewise.
9111
9112 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9113
9114 * stdlib/Makefile ((tests): Add tst-setcontext5.
9115 * stdlib/tst-setcontext5.c: New file.
9116
9117 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9118
9119 * stdlib/Makefile (tests): Add tst-setcontext4.
9120 * stdlib/tst-setcontext4.c: New file.
9121
9122 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9123
9124 * stdlib/Makefile (tests): Add tst-swapcontext1.
9125 * stdlib/tst-swapcontext1.c: New test.
9126
9127 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9128
9129 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9130 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9131 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9132 and tst-cet-legacy-4c.
9133 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9134 and tst-cet-legacy-mod-4.
9135 (CFLAGS-tst-cet-legacy-2.c): New.
9136 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9137 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9138 (CFLAGS-tst-cet-legacy-3.c): Likewise.
9139 (CFLAGS-tst-cet-legacy-4.c): Likewise.
9140 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9141 ($(objpfx)tst-cet-legacy-1): Likewise.
9142 ($(objpfx)tst-cet-legacy-2): Likewise.
9143 ($(objpfx)tst-cet-legacy-2.out): Likewise.
9144 ($(objpfx)tst-cet-legacy-2a): Likewise.
9145 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9146 ($(objpfx)tst-cet-legacy-4): Likewise.
9147 ($(objpfx)tst-cet-legacy-4.out): Likewise.
9148 ($(objpfx)tst-cet-legacy-4a): Likewise.
9149 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9150 (tst-cet-legacy-4a-ENV): Likewise.
9151 ($(objpfx)tst-cet-legacy-4b): Likewise.
9152 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9153 (tst-cet-legacy-4b-ENV): Likewise.
9154 ($(objpfx)tst-cet-legacy-4c): Likewise.
9155 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9156 (tst-cet-legacy-4c-ENV): Likewise.
9157 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9158 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9159 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9160 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9161 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9162 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9163 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9164 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9165 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9166 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9167 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9168
9169 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9170
9171 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9172 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9173 with ssp_base.
9174 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9175 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9176 with ssp_base.
9177
9178 2018-07-25 Andreas Schwab <schwab@suse.de>
9179
9180 [BZ #23442]
9181 * locale/weightwc.h (findidx): Handle the case where usrc is a
9182 prefix of cp but one character too short.
9183
9184 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9185
9186 * NEWS: Add ISO C threads addition.
9187
9188 2018-07-24 Florian Weimer <fweimer@redhat.com>
9189
9190 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9191 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9192 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9193 4.13.
9194
9195 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9196
9197 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9198 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9199 <sys/prctl.h> and <asm/prctl.h>.
9200 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9201 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9202 and <asm/prctl.h>.
9203 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9204 ARCH_CET_LEGACY_BITMAP.
9205 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9206 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9207 * sysdeps/x86/libc-start.c: Include <startup.h>.
9208
9209 2018-07-24 Florian Weimer <fweimer@redhat.com>
9210
9211 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9212 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9213
9214 2018-07-24 Rical Jasan <rj@2c3t.io>
9215 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9216 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9217
9218 [BZ #14092]
9219 * manual/debug.texi: Update adjacent chapter name.
9220 * manual/probes.texi: Likewise.
9221 * manual/threads.texi (ISO C Threads): New section.
9222 (POSIX Threads): Convert to a section.
9223
9224 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9225 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9226
9227 [BZ# 14092]
9228 * nptl/Makefile (tests): Add new test files.
9229 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9230 * nptl/tst-cnd-basic.c: Likewise.
9231 * nptl/tst-cnd-broadcast.c: Likewise.
9232 * nptl/tst-cnd-timedwait.c: Likewise.
9233 * nptl/tst-mtx-basic.c: Likewise.
9234 * nptl/tst-mtx-recursive.c: Likewise.
9235 * nptl/tst-mtx-timedlock.c: Likewise.
9236 * nptl/tst-mtx-trylock.c: Likewise.
9237 * nptl/tst-thrd-basic.c: Likewise.
9238 * nptl/tst-thrd-detach.c: Likewise.
9239 * nptl/tst-thrd-sleep.c: Likewise.
9240 * nptl/tst-tss-basic.c: Likewise.
9241
9242 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9243
9244 [BZ #14092]
9245 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9246 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9247 symbols.
9248 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9249 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9250 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9251 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9252 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9253 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9254 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9255 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9256 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9257 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9258 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9259 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9261 Likewise.
9262 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9263 Likewise.
9264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9265 Likewise.
9266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9267 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9268 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9269 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9270 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9271 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9272 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9273 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9274 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9275 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9276 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9277 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9278 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9279 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9280 Likewise.
9281 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9282 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9283 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9284 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9285 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9286 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9287 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9288 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9289 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9290 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9291 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9292 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9293 ikewise.
9294 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9295 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9296 Likewise.
9297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9298 Likewise.
9299 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9300 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9301 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9302 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9303 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9304 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9305 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9306 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9307
9308 [BZ #14092]
9309 * conform/data/threads.h-data (thread_local): New macro.
9310 (TSS_DTOR_ITERATIONS): Likewise.
9311 (tss_t): New type.
9312 (tss_dtor_t): Likewise.
9313 (tss_create): New function.
9314 (tss_get): Likewise.
9315 (tss_set): Likewise.
9316 (tss_delete): Likewise.
9317 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9318 tss_get, and tss_set objects.
9319 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9320 * nptl/tss_create.c: New file.
9321 * nptl/tss_delete.c: Likewise.
9322 * nptl/tss_get.c: Likewise.
9323 * nptl/tss_set.c: Likewise.
9324 * sysdeps/nptl/threads.h (thread_local): New define.
9325 (TSS_DTOR_ITERATIONS): Likewise.
9326 (tss_t): New typedef.
9327 (tss_dtor_t): Likewise.
9328 (tss_create): New prototype.
9329 (tss_get): Likewise.
9330 (tss_set): Likewise.
9331 (tss_delete): Likewise.
9332
9333 [BZ #14092]
9334 * conform/data/threads.h-data (cnd_t): New type.
9335 (cnd_init): New function.
9336 (cnd_signal): Likewise.
9337 (cnd_broadcast): Likewise.
9338 (cnd_wait): Likewise.
9339 (cnd_timedwait): Likewise.
9340 (cnd_destroy): Likewise.
9341 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9342 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9343 object.
9344 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9345 * nptl/cnd_broadcast.c: New file.
9346 * nptl/cnd_destroy.c: Likewise.
9347 * nptl/cnd_init.c: Likewise.
9348 * nptl/cnd_signal.c: Likewise.
9349 * nptl/cnd_timedwait.c: Likewise.
9350 * nptl/cnd_wait.c: Likewise.
9351 * sysdeps/nptl/threads.h (cnd_t): New type.
9352 (cnd_init): New prototype.
9353 (cnd_signa): Likewise.
9354 (cnd_broadcast): Likewise.
9355 (cnd_wait): Likewise.
9356 (cnd_timedwait): Likewise.
9357 (cnd_destroy): Likewise.
9358
9359 [BZ #14092]
9360 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9361 (once_flag): New type.
9362 (call_once): New function.
9363 * nptl/Makefile (libpthread-routines): Add call_once object.
9364 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9365 * nptl/call_once.c: New file.
9366 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9367 (once_flag): New type.
9368 (call_once): New prototype.
9369
9370 [BZ #14092]
9371 * conform/data/threads.h-data (mtx_plain): New constant.
9372 (mtx_recursive): Likewise.
9373 (mtx_timed): Likewise.
9374 (mtx_t): New type.
9375 (mtx_init): New function.
9376 (mtx_lock): Likewise.
9377 (mtx_timedlock): Likewise.
9378 (mtx_trylock): Likewise.
9379 (mtx_unlock): Likewise.
9380 (mtx_destroy): Likewise.
9381 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9382 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9383 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9384 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9385 * nptl/mtx_destroy.c: New file.
9386 * nptl/mtx_init.c: Likewise.
9387 * nptl/mtx_lock.c: Likewise.
9388 * nptl/mtx_timedlock.c: Likewise.
9389 * nptl/mtx_trylock.c: Likewise.
9390 * nptl/mtx_unlock.c: Likewise.
9391 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9392 (mtx_recursive): Likewise.
9393 (mtx_timed): Likewise.
9394 (mtx_t): New type.
9395 (mtx_init): New prototype.
9396 (mtx_lock): Likewise.
9397 (mtx_timedlock): Likewise.
9398 (mtx_trylock): Likewise.
9399 (mtx_unlock): Likewise.
9400 (mtx_destroy): Likewise.
9401
9402 [BZ #14092]
9403 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9404 (linknamespace-libs-ISO11): Add libpthread.a.
9405 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9406 functions.
9407 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9408 * nptl/Makefile (headers): Add threads.h.
9409 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9410 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9411 thrd_yield.
9412 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9413 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9414 thrd_join, thrd_sleep, and thrd_yield symbols.
9415 * nptl/descr.h (struct pthread): Add c11 field.
9416 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9417 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9418 routine with expected function prototype.
9419 (__pthread_create_2_1): Add C11 threads check based on attribute
9420 value.
9421 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9422 * nptl/thrd_create.c: New file.
9423 * nptl/thrd_current.c: Likewise.
9424 * nptl/thrd_detach.c: Likewise.
9425 * nptl/thrd_equal.c: Likewise.
9426 * nptl/thrd_exit.c: Likewise.
9427 * nptl/thrd_join.c: Likewise.
9428 * nptl/thrd_priv.h: Likewise.
9429 * nptl/thrd_sleep.c: Likewise.
9430 * nptl/thrd_yield.c: Likewise.
9431 * include/threads.h: Likewise.
9432
9433 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9434
9435 * bits/indirect-return.h: New file.
9436 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9437 * sysdeps/x86/bits/indirect-return.h: Likewise.
9438 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9439 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9440 (swapcontext): Add __INDIRECT_RETURN.
9441 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9442 (prepare_test_buffer): Use it.
9443
9444 2018-07-24 Andreas Schwab <schwab@suse.de>
9445
9446 [BZ #23448]
9447 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9448 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9449
9450 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9451
9452 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9453 Redefine if shadow stack is enabled.
9454 (SYSCALL_ERROR_LABEL): Likewise.
9455 (__vfork): Pop shadow stack and jump back to to caller directly
9456 when shadow stack is in use.
9457 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9458 Redefine if shadow stack is enabled.
9459 (SYSCALL_ERROR_LABEL): Likewise.
9460 (__vfork): Pop shadow stack and jump back to to caller directly
9461 when shadow stack is in use.
9462
9463 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9464
9465 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9466 enabled.
9467 (foo): Likewise.
9468 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9469 (foo): Likewise.
9470
9471 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9472
9473 * scripts/build-many-glibcs.py (Context.checkout): Default
9474 binutils version to 2.31 branch.
9475
9476 2018-07-20 Zong Li <zong@andestech.com>
9477
9478 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9479 URL of gcc's tarball.
9480
9481 2018-07-20 Florian Weimer <fweimer@redhat.com>
9482
9483 [BZ #23396]
9484 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9485 not compare an extra byte after the end of the weights.
9486
9487 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9488
9489 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9490 to 1.
9491 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9492 hidden prototypes.
9493 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9494 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9495 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9496 list of libraries whose stack executability is expected.
9497 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9498 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9499 variable.
9500 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9501 libc.so libpthread.so.
9502
9503 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9504
9505 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9506 SOCK_NONBLOCK.
9507 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9508 and SOCK_NONBLOCK.
9509 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9510 implement __pipe2.
9511 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9512
9513 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9514
9515 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9516 library to improve command line parsing.
9517 (__main__): make schema file as optional parameter (--schema),
9518 defaulting to benchtests/scripts/benchout.schema.json.
9519 (main): move out of the parsing stuff to __main_  and leave it
9520 only as caller of main comparison functions.
9521
9522 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9523
9524 * NEWS: Add a note for Intel CET status.
9525 * manual/install.texi: Likewise.
9526 * INSTALL: Regenerated.
9527
9528 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9529
9530 [BZ #23140]
9531 * localedata/locales/oc_FR (mon): Rename to...
9532 (alt_mon): This, then update October (typo fix).
9533 (mon): New content (genitive case, month names preceded by
9534 "de" or "d’").
9535
9536 [BZ #23422]
9537 * localedata/locales/oc_FR (abday): Update all items.
9538 (day): Update Wednesday and Saturday (typo fixes).
9539 (abmon): Update all items, except May.
9540 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9541 (LC_IDENTIFICATION): Bump the revision number and date.
9542 Keep the "category" entries in alphabetic order.
9543 (LC_ADDRESS): Remove no longer needed comment.
9544 (LC_COLLATE): Use “copy "ca_ES"”.
9545 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9546 "name_mrs".
9547
9548 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9549
9550 * grp/tst_fgetgrent.c: Include <unistd.h>.
9551 (main): Use mkstemp instead of tmpnam.
9552 * io/test-utime.c (main): Likewise.
9553 * posix/annexc.c (macrofile): Change to modifiable array.
9554 (main): Remove macrofile here.
9555 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9556 macrofile here.
9557 (check_header): Do not remove macrofile here.
9558 * posix/bug-getopt1.c: Include <stdlib.h>.
9559 (do_test): Use mkstemp instead of tmpnam.
9560 * posix/bug-getopt2.c: Include <stdlib.h>.
9561 (do_test): Use mkstemp instead of tmpnam.
9562 * posix/bug-getopt3.c: Include <stdlib.h>.
9563 (do_test): Use mkstemp instead of tmpnam.
9564 * posix/bug-getopt4.c: Include <stdlib.h>.
9565 (do_test): Use mkstemp instead of tmpnam.
9566 * posix/bug-getopt5.c: Include <stdlib.h>.
9567 (do_test): Use mkstemp instead of tmpnam.
9568 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9569 (main): Use mkstemp instead of tmpnam.
9570 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9571 (main): Use mkstemp instead of tmpnam.
9572 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9573 (main): use mkstemp instead of tmpnam.
9574 * stdlib/isomac.c (macrofile): Change to modifiable array.
9575 (main): Remove macrofile here.
9576 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9577 macrofile here.
9578 (check_header): Do not remove macrofile here.
9579
9580 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9581
9582 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9583 glibc.tune.x86_shstk.
9584
9585 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9586
9587 * NEWS: Mention --enable-cet.
9588 * manual/install.texi: Document --enable-cet.
9589 * INSTALL: Regenerated.
9590
9591 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9592
9593 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9594 Add _CET_NOTRACK before indirect jump to jump table.
9595
9596 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9597
9598 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9599 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9600 to jump table.
9601
9602 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9603
9604 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9605 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9606 to jump table.
9607
9608 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9609
9610 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9611 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9612 to jump table.
9613
9614 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9615
9616 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9617 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9618 to jump table.
9619
9620 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9621
9622 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9623 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9624 to jump table.
9625 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9626
9627 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9628
9629 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9630 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9631 to jump table.
9632
9633 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9634
9635 * sysdeps/i386/i686/multiarch/memset-sse2.S
9636 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9637 to jump table.
9638
9639 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9640
9641 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9642 indirect jump to jump table.
9643
9644 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9645
9646 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9647 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9648 to jump table.
9649 (MEMCPY): Likewise.
9650
9651 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9652
9653 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9654 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9655 to jump table.
9656 (MEMCPY): Likewise.
9657
9658 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9659
9660 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9661 _CET_NOTRACK before indirect jump to jump table.
9662
9663 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9664
9665 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9666 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9667 to jump table.
9668
9669 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9670
9671 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9672 indirect jump to jump table.
9673
9674 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9675
9676 [BZ #22241]
9677 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9678 (LOCALES): Likewise.
9679 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9680 * localedata/locales/sah_RU: New file.
9681 * localedata/sah_RU.UTF-8.in: New file.
9682
9683 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9684
9685 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9686 "sysdep.h".
9687 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9688 _CET_ENDBR to indirect jump targets and adjust jump destination
9689 for _CET_ENDBR.
9690 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9691 "sysdep.h".
9692 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9693 _CET_ENDBR to indirect jump targets and adjust jump destination
9694 for _CET_ENDBR.
9695 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9696 "sysdep.h".
9697 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9698 _CET_ENDBR to indirect jump targets and adjust jump destination
9699 for _CET_ENDBR.
9700
9701 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9702
9703 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9704 _CET_ENDBR.
9705
9706 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9707
9708 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9709 _CET_ENDBR.
9710 (_dl_tlsdesc_undefweak): Likewise.
9711 (_dl_tlsdesc_dynamic): Likewise.
9712 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9713 (_dl_tlsdesc_resolve_rel): Likewise.
9714 (_dl_tlsdesc_resolve_rela): Likewise.
9715 (_dl_tlsdesc_resolve_hold): Likewise.
9716 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9717 (_dl_tlsdesc_undefweak): Likewise.
9718 (_dl_tlsdesc_dynamic): Likewise.
9719 (_dl_tlsdesc_resolve_rela): Likewise.
9720 (_dl_tlsdesc_resolve_hold): Likewise.
9721
9722 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9723
9724 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9725 (_fini): Likewise.
9726 * sysdeps/x86_64/crti.S (_init): Likewise.
9727 (_fini): Likewise.
9728
9729 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9730
9731 [BZ #23140]
9732 * localedata/locales/os_RU (mon): Rename to...
9733 (alt_mon): This.
9734 (mon): Import from CLDR (genitive case).
9735
9736 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9737
9738 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9739 cet-tunables.h> when CET is enabled.
9740
9741 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9742
9743 [BZ #21598]
9744 * configure.ac: Add --enable-cet.
9745 * configure: Regenerated.
9746 * elf/Makefille (all-built-dso): Add a comment.
9747 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9748 Include <dl-prop.h>.
9749 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9750 segment.
9751 * elf/dl-open.c: Include <dl-prop.h>.
9752 (dl_open_worker): Call _dl_open_check.
9753 * elf/rtld.c: Include <dl-prop.h>.
9754 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9755 _rtld_main_check.
9756 * sysdeps/generic/dl-prop.h: New file.
9757 * sysdeps/i386/dl-cet.c: Likewise.
9758 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9759 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9760 * sysdeps/x86/cet-tunables.h: Likewise.
9761 * sysdeps/x86/check-cet.awk: Likewise.
9762 * sysdeps/x86/configure: Likewise.
9763 * sysdeps/x86/configure.ac: Likewise.
9764 * sysdeps/x86/dl-cet.c: Likewise.
9765 * sysdeps/x86/dl-procruntime.c: Likewise.
9766 * sysdeps/x86/dl-prop.h: Likewise.
9767 * sysdeps/x86/libc-start.h: Likewise.
9768 * sysdeps/x86/link_map.h: Likewise.
9769 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9770 _CET_ENDBR.
9771 (_dl_runtime_profile): Likewise.
9772 (_dl_runtime_resolve_shstk): New.
9773 (_dl_runtime_profile_shstk): Likewise.
9774 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9775 if CET is enabled.
9776 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9777 (CFLAGS-.os): Likewise.
9778 (CFLAGS-.op): Likewise.
9779 (CFLAGS-.oS): Likewise.
9780 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9781 is enabled.
9782 (tests-special): Add $(objpfx)check-cet.out.
9783 (cet-built-dso): New.
9784 (+$(cet-built-dso:=.note)): Likewise.
9785 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9786 ($(objpfx)check-cet.out): New.
9787 (generated): Add check-cet.out.
9788 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9789 <cet-tunables.h>.
9790 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9791 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9792 (init_cpu_features): Call get_cet_status to check CET status
9793 and update dl_x86_feature_1 with CET status. Call
9794 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9795 (set_x86_shstk). Disable and lock CET in libc.a.
9796 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9797 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9798 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9799 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9800 (_CET_ENDBR): Define if not defined.
9801 (ENTRY): Add _CET_ENDBR.
9802 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9803 x86_shstk.
9804 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9805 _CET_ENDBR.
9806 (_dl_runtime_profile): Likewise.
9807
9808 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9809
9810 [BZ #21895]
9811 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9812 restore r2 on longjmp.
9813 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9814 test list.
9815 Added rules to build test tst-setjmp-bug21895-static.
9816 Added module setjmp-bug21895 and rules to build a shared object from it.
9817 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9818 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9819
9820 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9821
9822 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9823 * benchtests/bench-strstr.c: Likewise.
9824 * string/memmem.c (FASTSEARCH): Define.
9825 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9826 Add support for FASTSEARCH.
9827 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9828 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9829 (FASTSEARCH): Define.
9830 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9831 * string/test-strstr.c: Likewise.
9832
9833 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9834
9835 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9836 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9837
9838 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9839 H.J. Lu <hongjiu.lu@intel.com>
9840
9841 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9842 (__longjmp): Restore shadow stack pointer if shadow stack is
9843 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9844 isn't defined for __longjmp_cancel.
9845 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9846 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9847 and SHADOW_STACK_POINTER_OFFSET is defined.
9848 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9849 (setjmp): Save shadow stack pointer if shadow stack is enabled
9850 and SHADOW_STACK_POINTER_OFFSET is defined.
9851 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9852 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9853 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9854 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9855 <jmp_buf-ssp.h>.
9856 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9857 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9858 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9859 Remove jmp_buf-ssp.sym.
9860 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9861 <jmp_buf-ssp.h>.
9862 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9863 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9864 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9865 jmp_buf-ssp.sym.
9866 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9867 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9868 (__longjmp): Restore shadow stack pointer if shadow stack is
9869 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9870 isn't defined for __longjmp_cancel.
9871 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9872 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9873 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9874
9875 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9876
9877 [BZ #22563]
9878 * nptl/pthread_create.c: Include <tls-setup.h>.
9879 (__pthread_create_2_1): Call tls_setup_tcbhead.
9880 * sysdeps/generic/tls-setup.h: New file.
9881 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9882 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9883 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9884 Likewise.
9885 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9886 to feature_1.
9887 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9888 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9889 (X86_FEATURE_1_SHSTK): Likewise.
9890 (CET_ENABLED): Likewise.
9891 (IBT_ENABLED): Likewise.
9892 (SHSTK_ENABLED): Likewise.
9893
9894 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9895
9896 [BZ #23208]
9897 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9898 (LOCALES): Likewise.
9899 * localedata/dsb_DE.UTF-8.in: New file.
9900 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9901
9902 2018-07-12 Florian Weimer <fweimer@redhat.com>
9903
9904 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9905 __mprotect, not mprotect.
9906
9907 2018-07-11 Florian Weimer <fweimer@redhat.com>
9908
9909 * io/Makefile (headers): Add bits/statx.h.
9910
9911 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9912
9913 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9914 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9915 and headers.
9916 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9917 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9918 for utf8_gen.py
9919
9920 2018-07-10 Florian Weimer <fweimer@redhat.com>
9921
9922 * io/Makefile (routines): Add statx.
9923 (tests-internal): Add tst-statx.
9924 * io/Versions (GLIBC_2.28): Export statx.
9925 * io/bits/statx.h: New file.
9926 * io/sys/stat.h [__USE_GNU]: Include it.
9927 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9928 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9929 Define.
9930 * io/statx.c: New file.
9931 * io/statx_generic.: Likewise.
9932 * io/tst-statx.: Likewise.
9933 * include/bits/statx.h: Likewise.
9934 * sysdeps/unix/sysv/linux/kernel-features.h
9935 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9936 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9937 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9938 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9939 Undefine.
9940 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9941 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9942 * sysdeps/unix/sysv/linux/statx.c: New file.
9943 * manual/filesys.texi: Note that statx is undocumented.
9944 * sysdeps/**/libc*.abilist: Update.
9945
9946 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9947
9948 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9949 a kernel issue which lead to test failure in some cases.
9950
9951 2018-07-10 Florian Weimer <fweimer@redhat.com>
9952
9953 [BZ #23036]
9954 * posix/regexec.c (check_node_accept_bytes): When comparing
9955 weights, do not compare an extra byte after the end of the
9956 weights.
9957
9958 2018-07-10 Florian Weimer <fweimer@redhat.com>
9959
9960 * libio/readline.c: Fix copyright year.
9961 * libio/tst-readline.c Likewise.
9962 * nss/tst-nss-files-hosts-getent.c: Likewise.
9963
9964 2018-07-06 Florian Weimer <fweimer@redhat.com>
9965
9966 [BZ #18991]
9967 * nss/nss_files/files-XXX.c (internal_getent): Use
9968 __libc_readline_unlocked. Seek back to the start of the line if
9969 parsing failes with ERANGE.
9970 (get_contents_ret, get_contents): Remove.
9971 * nss/tst-nss-files-hosts-getent.c: New file.
9972 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9973 (tst-nss-files-hosts-getent): Link with -ldl.
9974
9975 2018-07-06 Florian Weimer <fweimer@redhat.com>
9976
9977 * include/stdio.h (__libc_readline_unlocked): Declare.
9978 (__ftello64, __fseeko64): Declare aliases.
9979 * libio/readline.c: New file.
9980 * libio/tst-readline.c: Likewise.
9981 (routines): Add readline.
9982 (tests-internal): Add tst-readlime.
9983 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9984 __libc_readline_unlocked.
9985 * libio/fseeko.c (__fseeko): Rename from fseeko.
9986 (fseeko): Add alias.
9987 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9988 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9989 (fseeko64): Add alias.
9990 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9991 * libio/ftello64.c (__ftello64): Rename from ftello64.
9992 (ftello64): Add alias.
9993
9994 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9995
9996 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9997 HWCAP_ATOMICS.
9998
9999 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
10000
10001 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
10002 Use dl_hwcap without masking.
10003 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
10004 Remove HWCAP_CPUID.
10005
10006 2018-07-06 Florian Weimer <fweimer@redhat.com>
10007
10008 * conform/conformtest.pl (checknamespace): Escape literal braces
10009 in regular expressions.
10010
10011 2018-07-06 Amit Pawar <amit.pawar@amd.com>
10012
10013 * sysdeps/x86/cpu-features.c (get_common_indeces):
10014 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
10015 * sysdeps/x86/cpu-features.c (init_cpu_features):
10016 AVX_Fast_Unaligned_Load is disabled for Excavator core.
10017
10018 2018-07-05 Florian Weimer <fweimer@redhat.com>
10019
10020 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
10021 protector.
10022 (CFLAGS-elf-init.oS): Likewise.
10023
10024 2018-07-05 Florian Weimer <fweimer@redhat.com>
10025 Carlos O'Donell <carlos@redhat.com>
10026
10027 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
10028 $(no-stack-protector). stack_chk_fail_local.c can be compiled
10029 with stack protector enabled because there is no risk of infinite
10030 recursion.
10031
10032 2018-07-05 Maciej W. Rozycki <macro@mips.com>
10033
10034 [BZ #19818]
10035 [BZ #23307]
10036 * libc-abis (ABSOLUTE): New ABI.
10037 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10038 * NEWS: Mention the new ABI.
10039
10040 2018-07-05 Florian Weimer <fweimer@redhat.com>
10041
10042 [BZ # 17662]
10043 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10044 (RENAME_WHITEOUT): Define.
10045 [__USE_GNU] (renameat2): Declare.
10046 * stdio-common/Makefile (routines): Add renameat2.
10047 (tests): Add tst-renameat2.
10048 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10049 * stdio-common/renameat2.c: New file.
10050 * stdio-common/tst-renameat2.c: Likewise.
10051 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10052 * manual/filesys.texi (Temporary Files): Note that renameat2 is
10053 undocumented.
10054 * sysdeps/unix/sysv/linux/kernel-features.h
10055 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10056 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10057 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10058 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10059 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10060 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10061 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10062 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10063 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10064 * include/stdio.h (__renameat): Add alias for renameat.
10065 * stdio-common/renameat.c (__renameat): Rename from renameat.
10066 Add hidden definition and alias.
10067 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10068 * sysdeps/mach/hurd/renameat.c: Likewise.
10069 * sysdeps/**/libc*.abilist: Add renameat2.
10070
10071 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10072
10073 * posix/bug-regex33.c: Fix build after regex sync.
10074
10075 2018-07-04 Carlos O'Donell <carlos@redhat.com>
10076
10077 [BZ #23164]
10078 * localedata/tst-langinfo-setlocale.c: New file.
10079 * localedata/tst-langinfo-setlocale-static.c: New file.
10080 * localedata/tst-langinfo-newlocale.c: New file.
10081 * localedata/tst-langinfo-newlocale-static.c: New file.
10082 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10083 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10084 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10085 (tests-static): Remove tst-langinfo-static. Add
10086 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10087 (tests-special): Remove $(objpfx)tst-langinfo.out,
10088 $(objpfx)tst-langinfo-static.out. Add
10089 $(objpfx)tst-langinfo-setlocale.out,
10090 $(objpfx)tst-langinfo-newlocale.out,
10091 $(objpfx)tst-langinfo-setlocale-static.out,
10092 $(objpfx)tst-langinfo-newlocale-static.out.
10093 ($(objpfx)tst-langinfo.out): Remove.
10094 ($(objpfx)tst-langinfo-static.out): Remove.
10095 ($(objpfx)tst-langinfo-newlocale.out): New target.
10096 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
10097 (test-xfail-tst-langinfo-newlocale-static): Add.
10098 ($(objpfx)tst-langinfo-setlocale.out): New target.
10099 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
10100 * localedata/tst-langinfo.c: Call test_locale.
10101 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
10102 data.
10103
10104 2018-07-04 Florian Weimer <fweimer@redhat.com>
10105
10106 testrun.sh: Implement --tool=strace, --tool=valgrind
10107 * Makefile (testrun-script): Define variable.
10108 (testrun.sh): Use variable.
10109 * manual/install.texi (Tools for Compilation): make 4.0 or later
10110 is required.
10111 * configure.ac: Check for make 4.0 or later.
10112 * INSTALL: Regenerate.
10113 * configure: Likewise.
10114
10115 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10116
10117 [BZ #23233]
10118 [BZ #21163]
10119 [BZ #18986]
10120 [BZ #13762]
10121 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10122 * posix/PCRE.tests: Remove invalid test.
10123 * posix/bug-regex28.c: Fix expected values for used syntax.
10124 * posix/bug-regex37.c: New file.
10125 * posix/bug-regex38.c: Likewise.
10126 * posix/regcomp.c: Sync with gnulib.
10127 * posix/regex.c: Likewise.
10128 * posix/regex.h: Likewise.
10129 * posix/regex_internal.c: Likewise.
10130 * posix/regex_internal.h: Likewise.
10131 * posix/regexec.c: Likewise.
10132
10133 2018-06-26 Mike FABIAN <mfabian@redhat.com>
10134
10135 [BZ #23308]
10136 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10137 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10138 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10139 * localedata/unicode-gen/PropList.txt: likewise.
10140 * localedata/unicode-gen/UnicodeData.txt: likewise.
10141 * localedata/charmaps/UTF-8: Regenerate.
10142 * localedata/locales/i18n_ctype: likewise.
10143 * localedata/locales/tr_TR: likewise.
10144 * localedata/locales/translit_circle: likewise.
10145 * localedata/locales/translit_cjk_compat: likewise.
10146 * localedata/locales/translit_combining: likewise.
10147 * localedata/locales/translit_compat: likewise.
10148 * localedata/locales/translit_font: likewise.
10149 * localedata/locales/translit_fraction: likewise.
10150
10151 2018-07-03 Florian Weimer <fweimer@redhat.com>
10152
10153 [BZ #23363]
10154 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10155 * stdio-common/tst-printf.sh: Adjust expected output.
10156 * LICENSES: Update.
10157
10158 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10159
10160 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10161 symbol.
10162
10163 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10164
10165 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10166 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10167 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10168 * stdio-common/tst-printfsz-islongdouble.c: New file.
10169 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10170 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10171 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10172 [subdir == stdio-common] (tests-internal): Add
10173 test-printf-size-ieee128, and test-printf-size-ibm128.
10174 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10175 (CFLAGS-test-printf-size-ibm128.c): New variables.
10176 [subdir == stdio-common] (tests-special): Add
10177 $(objpfx)test-printf-size-ieee128.out and
10178 $(objpfx)test-printf-size-ibm128.out.
10179 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10180 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10181 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10182 __printf_sizeieee128.
10183 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10184 New file.
10185 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10186 Likewise.
10187 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10188 Likewise.
10189
10190 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10191
10192 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10193 (exp2f_inline): Likewise.
10194 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10195 (__math_uflowf): Likewise.
10196 (__math_may_uflowf): Likewise.
10197 (__math_divzerof): Likewise.
10198 (__math_invalidf): Likewise.
10199 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10200 (__math_oflowf): Likewise.
10201 (__math_uflowf): Likewise.
10202 (__math_may_uflowf): Likewise.
10203 (__math_divzerof): Likewise.
10204 (__math_invalidf): Likewise.
10205
10206 2018-06-29 DJ Delorie <dj@redhat.com>
10207 Carlos O'Donell <carlos@redhat.com>
10208
10209 [BZ #23329]
10210 * include/libc-symbols.h: Comment the freeres framework.
10211 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10212 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10213 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10214 * dlfcn/dlerror.c: Include libc-symbols.h
10215 (__dlerror_main_freeres): New function.
10216 * dlfcn/dlfreeres.c: New file.
10217 * dlfcn/sdlfreeres.c: New file.
10218 * include/dlfcn.h: Declare __dlerror_main_freeres.
10219 * malloc/set-freeres.c: Declare __libdl_freeres, and
10220 __libpthread_freeres.
10221 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10222 the releavant libraries are loaded.
10223 * malloc/thread-freeres.c: Add comments.
10224 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10225 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10226 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10227 (__free_stacks): Rename to...
10228 (free_stacks): ...this. Mark static.
10229 (queue_stack): Call free_stacks.
10230 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10231 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10232 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10233 ptr_freeres element from struct.
10234 (pthread_functions): Remove .ptr_freeres from struct initializer.
10235 [SHARED] (nptl_freeres): Remove.
10236 * nptl/nptlfreeres.c: New file.
10237 * nptl/pthreadP.h
10238 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10239 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10240 attribute_hidden.
10241 (__free_stacks): Rename to...
10242 (__nptl_stacks_freeres): ...this.
10243 (__shm_directory_freeres): Declare.
10244 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10245 (__nptl_unwind_freeres): ...this.
10246 * resolv/res-close.c: Add comment.
10247 * resolv/resolv_conf.c: Include libc-symbols.h.
10248 * string/strerror_l.c: Include libc-symbols.h.
10249 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10250 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10251 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10252 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10253
10254 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10255
10256 * stdlib/tst-strfmon_l.c: Add tests for long double.
10257
10258 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10259
10260 [BZ #23208]
10261 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10262 * localedata/locales/dsb_DE: New file.
10263
10264 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10265
10266 [BZ #23140]
10267 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10268 genitive case).
10269 (alt_mon): New entry, import from CLDR (nominative case).
10270
10271 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10272
10273 [BZ #22996]
10274 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10275
10276 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10277
10278 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10279 Use vector registers.
10280
10281 * sysdeps/aarch64/multiarch/memmove_falkor.S
10282 (__memcpy_falkor): Use vector registers.
10283
10284 2018-06-29 Martin Sebor <msebor@redhat.com>
10285
10286 * manual/stdio.texi (Customizing Printf): Mention interaction
10287 with GCC built-ins.
10288
10289 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10290
10291 [BZ #23307]
10292 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10293 `st_value' is 0 if `st_shndx' is SHN_ABS.
10294 * elf/tst-absolute-zero.c: New file.
10295 * elf/tst-absolute-zero-lib.c: New file.
10296 * elf/tst-absolute-zero-lib.lds: New file.
10297 * elf/Makefile (tests): Add `tst-absolute-zero'.
10298 (modules-names): Add `tst-absolute-zero-lib'.
10299 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10300 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10301 ($(objpfx)tst-absolute-zero: New dependency.
10302
10303 2018-06-29 Zack Weinberg <zackw@panix.com>
10304
10305 * configure.ac: New command-line option --disable-crypt.
10306 Force --disable-nss-crypt when --disable-crypt is given, with a
10307 warning if it was explicitly enabled.
10308 * configure: Regenerate.
10309 * config.make.in: New boolean substitution variable $(build-crypt).
10310 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10311 when $(build-crypt).
10312 * manual/install.texi: Document --disable-crypt.
10313 * INSTALL: Regenerate.
10314
10315 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10316 which is never set.
10317 * conform/Makefile: Only include libcrypt.a in
10318 linknamespace-libs-xsi and linknamespace-libs-XPG4
10319 when $(build-crypt).
10320 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10321 USE_CRYPT to 1 when $(build-crypt).
10322 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10323 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10324 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10325
10326 2018-06-29 Zack Weinberg <zackw@panix.com>
10327
10328 * crypt/crypt.h, posix/unistd.h: Update comments and
10329 prototypes for crypt and crypt_r.
10330
10331 * manual/crypt.texi (Cryptographic Functions): New initial
10332 exposition.
10333 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10334 (Unpredictable Bytes): Improve initial exposition. Clarify error
10335 behavior of getentropy and getrandom.
10336 * manual/examples/genpass.c: Generate a salt using getentropy
10337 instead of the current time. Use hash $5$ (SHA-2-256).
10338 * manual/examples/testpass.c: Demonstrate validation against
10339 hashes generated with three different one-way functions.
10340
10341 * manual/intro.texi: crypt.texi does not need an overview
10342 anymore.
10343
10344 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10345 * manual/terminal.texi: Consistently refer to "passphrases"
10346 * instead of "passwords", and to the "user database" instead
10347 * of the "password database".
10348 * manual/users.texi: Similarly. Add notes about how actual
10349 passphrase hashes are now stored in the shadow database.
10350 Remove 20-year-old junk todo note.
10351
10352 2018-06-29 Zack Weinberg <zackw@panix.com>
10353
10354 * manual/crypt.texi: Use a normal top-level @node declaration.
10355 Move most of the introductory text to the 'crypt' section.
10356 Move the example programs below the @deftypefun for 'crypt_r'.
10357 Move the 'getpass' section...
10358 * manual/terminal.texi: ...here.
10359
10360 2018-06-29 Zack Weinberg <zackw@panix.com>
10361 Florian Weimer <fweimer@redhat.com>
10362
10363 * posix/unistd.h: Do not declare encrypt.
10364 (_XOPEN_CRYPT): Remove macro definition.
10365 (crypt): Declare only for _USE_MISC.
10366 * stdlib/stdlib.h: Do not declare setkey.
10367 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10368 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10369
10370 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10371 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10372 into compat symbols. Don't define initial_perm if it's not
10373 going to be used.
10374 * crypt/cert.c: Link explicitly with the expected versions for
10375 setkey and encrypt. If they are not available at all, mark
10376 the test as unsupported.
10377
10378 * sunrpc/des_crypt.c: Unconditionally block linkage with
10379 cbc_crypt and ecb_crypt for new binaries.
10380 * sunrpc/des_soft.c: Unconditionally block linkage with
10381 des_setparity for new binaries.
10382
10383 * manual/crypt.texi: Remove the entire "DES Encryption"
10384 section. Also remove the paragraph talking about FIPS 140-2
10385 from the introduction.
10386 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10387 of libgcrypt for "real" encryption, not DES.
10388 * manual/conf.texi (Constants for Sysconf): Mention that
10389 _XOPEN_CRYPT is no longer impelemented.
10390
10391 * conform/data/unistd.h-data: Remove crypt function declaration.
10392
10393 2018-06-29 Florian Weimer <fweimer@redhat.com>
10394
10395 [BZ #23351]
10396 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10397 (disallow_malloc_check): Remove variable.
10398 (__malloc_check_init): Adjust.
10399 (malloc_set_state): Update comment.
10400 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10401 declarations.
10402
10403 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10404
10405 [BZ #23140]
10406 * localedata/locales/ast_ES (mon): Rename to...
10407 (alt_mon): This.
10408 (mon): Import from CLDR (genitive case).
10409
10410 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10411 Jakub Sitnicki <jkbs@redhat.com>
10412
10413 [BZ #21812]
10414 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10415 on NLM_F_DUMP_INTR.
10416
10417 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10418
10419 * manual/llio.texi: Remove spurious space.
10420
10421 2018-06-28 Florian Weimer <fweimer@redhat.com>
10422
10423 [BZ #23349]
10424 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10425 _STRUCT_TIMESPEC.
10426
10427 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10428
10429 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10430 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10431 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10432 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10433 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10434 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10435 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10436
10437 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10438
10439 [BZ #23266]
10440 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10441 Copy and null-terminate entries that are not terminated, in
10442 addition to empty ones.
10443
10444 2018-06-27 Florian Weimer <fweimer@redhat.com>
10445
10446 [BZ #18023]
10447 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10448 (extend_alloca_account): Remove.
10449 * manual/stdio.texi (Variable Arguments Output): Update comment.
10450
10451 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10452
10453 * nptl/sockperf.c: Remove file.
10454
10455 2018-06-27 Florian Weimer <fweimer@redhat.com>
10456
10457 [BZ #18023]
10458 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10459 scratch_buffer instead of extend_alloca.
10460
10461 2018-06-27 Florian Weimer <fweimer@redhat.com>
10462
10463 [BZ #18023]
10464 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10465 scratch_buffer instead of extend_alloca. Update comments.
10466
10467 2018-06-27 Florian Weimer <fweimer@redhat.com>
10468
10469 [BZ #18023]
10470 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10471 instead of extend_alloca.
10472
10473 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10474
10475 [BZ #13888]
10476 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10477 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10478 /tmp.
10479 * scripts/test-installation.pl: Put temporary files in build
10480 directory, not /tmp.
10481 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10482 (CFLAGS-bug4.c): Likewise.
10483 (CFLAGS-bug5.c): Likewise.
10484 (CFLAGS-test-fseek.c): Likewise.
10485 (CFLAGS-test-popen.c): Likewise.
10486 (CFLAGS-test_rdwr.c): Likewise.
10487 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10488 /tmp.
10489 * stdio-common/bug4.c (main): Likewise.
10490 * stdio-common/bug5.c (main): Likewise.
10491 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10492 * stdio-common/test-popen.c (do_test): Likewise.
10493 * stdio-common/test_rdwr.c (main): Likewise.
10494
10495 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10496
10497 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10498 (sem_open): Set sem.newsem.pad to zero for valgrind.
10499
10500 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10501
10502 [BZ #20251]
10503 * NEWS: Mention fcntl64 addition.
10504 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10505 * login/utmp_file.c: Likewise.
10506 * sysdeps/posix/fdopendir.c: Likewise.
10507 * sysdeps/posix/opendir.c: Likewise.
10508 * sysdeps/unix/pt-fcntl.c: Likewise.
10509 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10510 __fcntl64_nocancel_adjusted): New prototype.
10511 (__fcntl_nocancel_adjusted): Remove prototype.
10512 * io/Makefile (routines): Add fcntl64.
10513 (CFLAGS-fcntl64.c): New rule.
10514 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10515 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10516 * io/fcntl.h (fcntl64): Add prototype and redirect if
10517 __USE_FILE_OFFSET64 is defined.
10518 * io/fcntl64.c: New file.
10519 * manual/llio.text: Add a note for which commands fcntl acts a
10520 cancellation point.
10521 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10522 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10523 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10524 New symbols.
10525 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10526 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10527 non-LFS case.
10528 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10529 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10530 to __fcntl64_nocancel.
10531 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10532 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10533 to __fcntl64_nocancel.
10534 * sysdeps/generic/not-cancel.h: Likewise.
10535 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10536 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10537 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10538 (fcntl64): New symbol.
10539 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10540 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10541 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10542 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10544 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10545 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10546 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10547 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10548 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10549 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10550 fcntl64): Likewise.
10551 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10552 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10553 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10554 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10555 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10556 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10557 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10558 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10559 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10561 Likewise.
10562 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10563 Likewise.
10564 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10565 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10566 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10567
10568 2018-06-26 Florian Weimer <fweimer@redhat.com>
10569
10570 Run thread shutdown functions in an explicit order.
10571 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10572 definition.
10573 (__libc_thread_freeres): Call thread shutdown functions
10574 explicitly.
10575 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10576 * include/string.h (__strerror_thread_freeres): Declare.
10577 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10578 arena_thread_freeres. No longer static. Remove thread shutdown
10579 hook registration.
10580 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10581 Declare.
10582 * resolv/res-close.c (__res_thread_freeres): Renamed from
10583 res_thread_freeres. No longer static. Remove thread shutdown
10584 hook registration.
10585 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10586 * resolv/resolv_conf.c (freeres): Remove incorrect section
10587 attribute and use libc_freeres_fn.
10588 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10589 strerror_thread_freeres. No longer static. Remove thread
10590 shutdown hook registration.
10591 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10592 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10593 shutdown hook registration.
10594 * Makerules (shlib.lds): Do not provide section boundary symbols
10595 for __libc_thread_subfreeres.
10596 * manual/memory.texi (Basic Allocation): Update comment.
10597
10598 2018-06-26 Florian Weimer <fweimer@redhat.com>
10599
10600 Remove always-defined _RPC_THREAD_SAFE_ macro.
10601 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10602 Do not define _RPC_THREAD_SAFE_.
10603 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10604 conditional.
10605 * sunrpc/clnt_perr.c: Likewise.
10606 * sunrpc/clnt_raw.c: Likewise.
10607 * sunrpc/clnt_simp.c: Likewise.
10608 * sunrpc/key_call.c: Likewise.
10609 * sunrpc/rpc_common.c: Likewise.
10610 * sunrpc/rpc_main.c: Likewise.
10611 * sunrpc/rpc_thread.c: Likewise.
10612 * sunrpc/svc.c: Likewise.
10613 * sunrpc/svc_raw.c: Likewise.
10614 * sunrpc/svc_simple.c: Likewise.
10615 * sumrpc/svcauth_des.c: Likewise.
10616
10617 2018-06-26 Florian Weimer <fweimer@redhat.com>
10618
10619 * libio/Makefile (tests-internal): Add tst-vtables,
10620 tst-vtables-interposed.
10621 * libio/tst-vtables.c: New file.
10622 * libio/tst-vtables-common.c: Likewise.
10623 * libio/tst-vtables-interposed.c: Likewise.
10624
10625 2018-06-26 Florian Weimer <fweimer@redhat.com>
10626
10627 * support/support_test_main.c (support_test_main): Only call
10628 setvbuf if not disables.
10629 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10630 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10631
10632 2018-06-26 Florian Weimer <fweimer@redhat.com>
10633
10634 [BZ #23313]
10635 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10636
10637 2018-06-25 Florian Weimer <fweimer@redhat.com>
10638
10639 [BZ #18023]
10640 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10641 Use struct scratch_buffer instead of extend_alloca.
10642
10643 2018-06-25 Florian Weimer <fweimer@redhat.com>
10644
10645 [BZ #18023]
10646 * nss/getent.c (initgroups_keys): Use dynarray instead of
10647 extend_alloca.
10648
10649 2018-06-25 Florian Weimer <fweimer@redhat.com>
10650
10651 [BZ #18023]
10652 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10653 Use struct scratch_buffer instead of extend_alloca.
10654
10655 2018-06-25 Florian Weimer <fweimer@redhat.com>
10656
10657 [BZ #18023]
10658 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10659 back to malloc directly, without stack allocations.
10660
10661 2018-06-25 Florian Weimer <fweimer@redhat.com>
10662
10663 [BZ #18023]
10664 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10665 of extend_alloca.
10666
10667 2018-06-25 Florian Weimer <fweimer@redhat.com>
10668
10669 [BZ #18023]
10670 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10671 of extend_alloca.
10672 * nscd/hstcache.c (addhstbyX): Likewise.
10673 * nscd/pwdcache.c (addpwbyX): Likewise.
10674 * nscd/servicescache.c (addservbyX): Likewise.
10675
10676 2018-06-25 Florian Weimer <fweimer@redhat.com>
10677
10678 [BZ #18023]
10679 * nscd/connections.c (read_cmdline): New function.
10680 (restart): Use it. Update comment.
10681
10682 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10683
10684 [BZ #23140]
10685 * localedata/locales/csb_PL (mon): Rename to...
10686 (alt_mon): This.
10687 (abmon): Rename to...
10688 (ab_alt_mon): This.
10689 (mon): Add with proper genitive forms, copy from Wikipedia.
10690 (abmon): Likewise.
10691
10692 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10693
10694 [BZ #19485]
10695 * localedata/locales/csb_PL (mon): Fix typos:
10696 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10697 (yesstr): Add, value is "jo".
10698 (nostr): Add, value is "nié".
10699
10700 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10701
10702 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10703 all log1p and significand functions on m680x0.
10704 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10705 of s_significand.c..
10706 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10707 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10708 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10709 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10710 s_log1p.c and include it..
10711
10712 2018-06-21 Vincent Chen <vincentc@andestech.com>
10713
10714 * elf/elf.h (R_NDS32_NONE): New define.
10715 (R_NDS32_32_RELA): Likewise.
10716 (R_NDS32_COPY): Likewise.
10717 (R_NDS32_GLOB_DAT): Likewise.
10718 (R_NDS32_JUMP_SLOT): Likewise.
10719 (R_NDS32_RELATIVE): Likewise.
10720 (R_NDS32_TLS_TPOFF): Likewise.
10721 (R_NDS32_TLS_DESC): Likewise.
10722
10723 2018-06-21 Mark Wielaard <mark@klomp.org>
10724
10725 * elf/elf.h (R_BPF_MAP_FD): Removed.
10726 (R_BPF_64_64, R_BPF_64_32): New.
10727
10728 2018-06-21 Florian Weimer <fweimer@redhat.com>
10729
10730 [BZ #23253]
10731 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10732 Renamed from libc_feholdsetround_ctx.
10733 (default_libc_feresetround_ctx): Renamed from
10734 libc_feresetround_ctx.
10735 (default_libc_feholdsetround_noex_ctx): Renamed from
10736 libc_feholdsetround_noex_ctx.
10737 (default_libc_feresetround_noex_ctx): Renamed from
10738 libc_feresetround_noex_ctx.
10739 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10740 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10741 forwardning to the old implementations under the new names.
10742 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10743 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10744 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10745 (libc_feresetround_ctx): Forward to default implements for i386
10746 and MATH_SET_BOTH_ROUNDING_MODES.
10747 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10748 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10749
10750 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10751
10752 * string/tst-cmp.c: Include <libc-diag.h>.
10753 (strncmp_max): Disable -Wstringop-overflow= around call to
10754 strncmp.
10755 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10756 strncasecmp.
10757
10758 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10759 (main): Disable -Wunused-value around call to strpbrk.
10760 * string/bug-strspn1.c: Include <libc-diag.h>.
10761 (main): Disable -Wunused-value around call to strspn.
10762
10763 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10764 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10765
10766 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10767 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10768
10769 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10770
10771 * math/Makefile (libm-calls): Move s_significandF to...
10772 (gen-libm-calls): ... here.
10773 * math/s_significand_template.c: New file.
10774 * math/s_significand.c: Removed.
10775 * math/s_significandf.c: Removed.
10776 * math/s_significandl.c: Removed.
10777 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10778 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10779
10780 * math/e_exp2_template.c (declare_mgen_finite_alias,
10781 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10782 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10783 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10784
10785 2018-06-20 Florian Weimer <fweimer@redhat.com>
10786
10787 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10788
10789 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10790
10791 [BZ #23280]
10792 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10793 floating-point number to strtod functions rather than possibly
10794 negating result of those functions.
10795 * stdio-common/tst-scanf-round.c: New file.
10796 * stdio-common/Makefile (tests): Add tst-scanf-round.
10797 ($(objpfx)tst-scanf-round): Depend on $(libm).
10798
10799 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10800
10801 * sysdeps/mach/hurd/localplt.data: Move to...
10802 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10803 R_386_GLOB_DAT like on Linux i386.
10804
10805 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10806
10807 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10808 (SHM_STAT_ANY): New macro.
10809 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10810 (SHM_STAT_ANY): Likewise.
10811 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10812 (SHM_STAT_ANY): Likewise.
10813 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10814 (SHM_STAT_ANY): Likewise.
10815 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10816 (SHM_STAT_ANY): Likewise.
10817 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10818 (SHM_STAT_ANY): Likewise.
10819 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10820 (SHM_STAT_ANY): Likewise.
10821 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10822 (SHM_STAT_ANY): Likewise.
10823 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10824 (SHM_STAT_ANY): Likewise.
10825 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10826 (SHM_STAT_ANY): Likewise.
10827 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10828 (SHM_STAT_ANY): Likewise.
10829 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10830 (SHM_STAT_ANY): Likewise.
10831
10832 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10833 (SEM_STAT_ANY): New macro.
10834 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10835 (SEM_STAT_ANY): Likewise.
10836 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10837 (SEM_STAT_ANY): Likewise.
10838 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10839 (SEM_STAT_ANY): Likewise.
10840 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10841 (SEM_STAT_ANY): Likewise.
10842 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10843 (SEM_STAT_ANY): Likewise.
10844 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10845 (SEM_STAT_ANY): Likewise.
10846 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10847 (SEM_STAT_ANY): Likewise.
10848 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10849 (SEM_STAT_ANY): Likewise.
10850 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10851 (SEM_STAT_ANY): Likewise.
10852
10853 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10854 (MSG_STAT_ANY): New macro.
10855 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10856 (MSG_STAT_ANY): Likewise.
10857 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10858 (MSG_STAT_ANY): Likewise.
10859 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10860 (MSG_STAT_ANY): Likewise.
10861 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10862 (MSG_STAT_ANY): Likewise.
10863 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10864 (MSG_STAT_ANY): Likewise.
10865 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10866 (MSG_STAT_ANY): Likewise.
10867 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10868 (MSG_STAT_ANY): Likewise.
10869 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10870 (MSG_STAT_ANY): Likewise.
10871 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10872 (MSG_STAT_ANY): Likewise.
10873
10874 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10875 (MAP_TYPE): Change value to 0x2b.
10876
10877 2018-06-18 Florian Weimer <fweimer@redhat.com>
10878
10879 [BZ #15722]
10880 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10881 socket with SOCK_CLOEXEC.
10882
10883 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10884
10885 [BZ #23303]
10886 * sysdeps/powerpc/powerpc64/le/Makefile
10887 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10888 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10889 (gnulib-tests): Also add $(f128-loader-link) for
10890 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10891
10892 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10893
10894 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10895 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10896 of sendfile.
10897 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10898 (sendfile64): New strong alias.
10899 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10900 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10901 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10902 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10903 attribute.
10904 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10905 ___pthread_get_cleanup_stack.
10906 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10907 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10908 * mach/shortcut.awk: Make syscall stubs include
10909 <mach-shortcuts-hidden.h> and add hidden definition.
10910 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10911 (__mach_msg): Add hidden prototype.
10912 * mach/msg.c: Include <mach.h>.
10913 (__mach_msg): Add hidden definition.
10914 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10915 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10916 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10917 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10918 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10919 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10920 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10921 prototype and definition.
10922 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10923 hidden target for _hurd_self_sigstate.
10924
10925 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10926
10927 [BZ #23007]
10928 * stdlib/tst-strtod-nan-sign-main.c: New file.
10929 * stdlib/tst-strtod-nan-sign.c: Likewise.
10930 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10931 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10932 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10933 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10934 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10935
10936 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10937
10938 [BZ #23007]
10939 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10940 appropriate sign.
10941
10942 2018-06-14 Florian Weimer <fweimer@redhat.com>
10943
10944 [BZ #23290]
10945 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10946 that the result stays within the ISO-8859-1 range.
10947 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10948 characters are defined in IBM273.
10949
10950 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10951
10952 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10953 __mach_task_self): Remove attribute_hidden.
10954
10955 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10956
10957 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10958 ignore -Wrestrict for one test.
10959
10960 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10961 Szabolcs Nagy <szabolcs.nagy@arm.com>
10962
10963 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10964
10965 2018-06-14 Florian Weimer <fweimer@redhat.com>
10966
10967 * scripts/update-abilist.sh: Accept empty list of files to patch.
10968
10969 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10970
10971 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10972 test-xfail-check-abi-libmachuser): Add.
10973 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10974 __libc_read and __libc_write to __read and __write.
10975 * sysdeps/hurd/include/hurd/port.h: New file.
10976 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10977 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10978 __thread_switch, __evc_wait): Move declarations to...
10979 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10980 attribute_hidden.
10981 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10982 use PLT to call _hurd_self_sigstate.
10983
10984 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10985
10986 [BZ #23279]
10987 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10988 MAX_EXP as overflowing.
10989 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10990 overflow flag.
10991 (round_str): Output also whether result overflows in each rounding
10992 mode.
10993 * stdlib/tst-strtod-round-data: Add more tests.
10994 * stdlib/tst-strtod-round-data.h: Regenerated.
10995 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10996 (TEST): Handle extra arguments for overflow flags.
10997 (struct test_overflow): New type.
10998 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10999 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
11000 (test_in_one_mode): Take argument with overflow information.
11001 (do_test): Update calls to test_in_one_mode.
11002
11003 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11004
11005 * elf/dl-load (_dl_dst_substitute): Correct comment.
11006 (_dl_dst_count): Likewise.
11007
11008 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
11009 lll_futex_timed_wait.
11010
11011 2018-06-12 Joseph Myers <joseph@codesourcery.com>
11012
11013 [BZ #23277]
11014 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
11015 attribute.
11016 * math/test-nan-const.c: New file.
11017 * math/Makefile (tests): Add test-nan-const.
11018 (CFLAGS-test-nan-const.c): New variable.
11019
11020 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11021
11022 * benchtests/scripts/compare_strings.py (process_results): Add
11023 funcs argument. Compare only functions which are selected.
11024 (main): Check if base function is among selected functions.
11025 Pass selected functions to process_results.
11026 (__main__): Add -f/--functions argument.
11027
11028 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
11029 Hongbo Zhang <hongbo.zhang@linaro.org>
11030
11031 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
11032 __memcpy_falkor for phecda core.
11033 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
11034 __memmove_falkor for phecda core.
11035 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11036 __memset_falkor for phecda core.
11037 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11038 for phecda core.
11039 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11040 macro to identify phecda core.
11041
11042 2018-06-12 Carlos O'Donell <carlos@redhat.com>
11043 Andreas Schwab <schwab@suse.de>
11044 Dmitry V. Levin <ldv@altlinux.org>
11045 Florian Weimer <fweimer@redhat.com>
11046
11047 [BZ #23102]
11048 [BZ #21942]
11049 [BZ #18018]
11050 [BZ #23259]
11051 CVE-2011-0536
11052 * elf/dl-dst.h: Remove DL_DST_COUNT.
11053 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11054 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11055 (is_dst): Comment. Support ELF gABI.
11056 (_dl_dst_count): Comment. Simplify and count DSTs.
11057 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
11058 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11059 locals.
11060
11061 2018-06-12 Zack Weinberg <zackw@panix.com>
11062
11063 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11064 * sysdeps/unix/sysv/linux/dl-sysdep.c
11065 Include not-cancel.h. Use __close_nocancel instead of __close,
11066 __open64_nocancel instead of __open, __read_nocancel instead of
11067 __libc_read, and __write_nocancel instead of __libc_write.
11068
11069 * csu/check_fds.c (check_one_fd)
11070 * sysdeps/posix/fdopendir.c (__fdopendir)
11071 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11072 instead of __fcntl and/or __libc_fcntl.
11073
11074 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11075 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11076 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11077 Use __open64_nocancel instead of __open_nocancel.
11078
11079 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11080 hidden_proto declarations to the end and issue them if either
11081 IS_IN(libc) or IS_IN(rtld).
11082 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11083 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11084 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11085 read_nocancel, waitpid_nocancel, write_nocancel.
11086
11087 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11088 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
11089 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
11090
11091 * nptl/pt-fcntl.c: New file.
11092 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
11093 (libpthread-routines): Add pt-fcntl.
11094 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
11095 (__libc_fcntl): Remove attribute_hidden.
11096 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
11097 __fcntl_nocancel_adjusted, not fcntl_common.
11098 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
11099 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
11100 to fcntl_nocancel.c.
11101 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
11102 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
11103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11104 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
11105
11106 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
11107 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
11108 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
11109 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11110 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11111 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11112 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11113 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11114 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11115 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11116 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11117 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11118 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11119 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11120 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11121 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11122 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11123 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11124 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11125 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11126
11127 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11128 libpthread-routines.
11129 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11130 defines nothing.
11131
11132 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11133 __libc_read, and __write instead of __libc_write. Define
11134 __open64 in addition to __open.
11135
11136 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11137
11138 [BZ #23250]
11139 [BZ #10686]
11140 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11141 to _private_tm[3] and add __glibc_reserved2.
11142 Add _Static_assert of offset of __private_ss == 0x30.
11143 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11144 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11145
11146 2018-06-12 Florian Weimer <fweimer@redhat.com>
11147
11148 x86: Make strncmp usable from rtld.
11149 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11150 __strncmp_ia32 if in libc (and not in rtld).
11151 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11152 strncmp if not in libc (and not to __strncmp_sse2).
11153
11154 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11155
11156 [BZ #23140]
11157 * localedata/locales/gd_GB (mon): Rename to...
11158 (alt_mon): This.
11159 (mon): Import from CLDR (genitive case).
11160 * localedata/locales/hsb_DE (mon): Rename to...
11161 (alt_mon): This.
11162 (mon): Import from CLDR (genitive case).
11163 * localedata/locales/wa_BE (mon): Rename to...
11164 (alt_mon): This.
11165 (mon): Add, fill with the proper genitive forms, but CLDR data
11166 is incomplete; completed according to the comments in this file.
11167 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11168
11169 * localedata/locales/wa_BE (country_name): Reword
11170 "Beljike" -> "Beldjike".
11171
11172 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11173
11174 [BZ #23272]
11175 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11176 cases of non-finite arguments.
11177 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11178
11179 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11180
11181 [BZ #23174]
11182 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11183
11184 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11185
11186 [BZ #23264]
11187 * include/unistd.h (__execvpex): New prototype.
11188 * posix/Makefile (tests): Add tst-spawn4.
11189 (tests-internal): Add tst-spawn4-compat.
11190 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11191 * posix/tst-spawn4-compat.c: New file.
11192 * posix/tst-spawn4.c: Likewise.
11193 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11194 binaries as shell scripts.
11195 * sysdeps/posix/spawni.c (__spawni): Likewise.
11196
11197 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11198
11199 [BZ #23145]
11200 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11201 ($(all-built-dso:=.dynsym): New target.
11202 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11203 ($(objpfx)check-initfini.out): New target.
11204 (generated): Add check-initfini.out.
11205 * scripts/check-initfini.awk: New file.
11206 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11207 (_fini): Likewise.
11208 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11209 (_fini): Likewise.
11210 * sysdeps/arm/crti.S (_init): Mark as hidden.
11211 (_fini): Likewise.
11212 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11213 (_fini): Likewise.
11214 * sysdeps/i386/crti.S (_init): Mark as hidden.
11215 (_fini): Likewise.
11216 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11217 (_fini): Likewise.
11218 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11219 (_fini): Likewise.
11220 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11221 (_fini): Likewise.
11222 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11223 (_fini): Likewise.
11224 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11225 (_fini): Likewise.
11226 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11227 (_fini): Likewise.
11228 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11229 (_fini): Likewise.
11230 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11231 (_fini): Likewise.
11232 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11233 (_fini): Likewise.
11234 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11235 (_fini): Likewise.
11236 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11237 (_fini): Likewise.
11238 * sysdeps/sh/crti.S (_init): Mark as hidden.
11239 (_fini): Likewise.
11240 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11241 (_fini): Likewise.
11242 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11243 (_fini): Likewise.
11244
11245 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11246
11247 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11248 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11249 and TF redirection to KFtype and KF only when the default
11250 long double type is not the IEEE 128-bit floating point type.
11251
11252 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11253
11254 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11255 macro.
11256 (HWCAP_USCAT): Likewise.
11257 (HWCAP_ILRCPC): Likewise.
11258 (HWCAP_FLAGM): Likewise.
11259 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11260 Increase to 28.
11261 (_dl_aarch64_cap_flags): Add new flag names.
11262
11263 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11264 (MAP_FIXED_NOREPLACE): New macro.
11265 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11266 (MAP_FIXED_NOREPLACE): Likewise.
11267 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11268 (MAP_FIXED_NOREPLACE): Likewise.
11269 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11270 (MAP_FIXED_NOREPLACE): Likewise.
11271 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11272 (MAP_FIXED_NOREPLACE): Likewise.
11273 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11274 (MAP_FIXED_NOREPLACE): Likewise.
11275 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11276 (MAP_FIXED_NOREPLACE): Likewise.
11277 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11278 (MAP_FIXED_NOREPLACE): Likewise.
11279 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11280 (MAP_FIXED_NOREPLACE): Likewise.
11281 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11282 (MAP_FIXED_NOREPLACE): Likewise.
11283 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11284 (MAP_FIXED_NOREPLACE): Likewise.
11285 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11286 (MAP_FIXED_NOREPLACE): Likewise.
11287 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11288 (MAP_FIXED_NOREPLACE): Likewise.
11289 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11290 (MAP_FIXED_NOREPLACE): Likewise.
11291 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11292 (MAP_FIXED_NOREPLACE): Likewise.
11293
11294 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11295 version to 4.17.
11296
11297 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11298
11299 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11300 version to 4.17
11301
11302 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11303
11304 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11305 int.
11306 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11307
11308 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11309
11310 * benchtests/scripts/compare_string.py: (process_results) Catch
11311 exception in non-existent base_func and catch exception in
11312 non-existent attribute.
11313 (parse_file) Catch exception if input file does not exist.
11314
11315 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11316
11317 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11318 options to avoid diff calculation and omit header, respectively.
11319 (main): process --no-diff and --no-header
11320
11321 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11322 H.J. Lu <hongjiu.lu@intel.com>
11323
11324 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11325 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11326 wcsncmp-sse2.
11327 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11328 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11329 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11330 and __wcsncmp_sse2.
11331 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11332 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11333 AVX unaligned load is fast and vzeroupper is preferred.
11334 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11335 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11336 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11337 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11338 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11339 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11340 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11341 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11342 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11343 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11344 is undefined.
11345
11346 2018-06-01 Florian Weimer <fweimer@redhat.com>
11347
11348 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11349 configuring with --disable-multi-arch, building with
11350 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11351 Haswell-era CPU.
11352
11353 2018-06-01 Florian Weimer <fweimer@redhat.com>
11354
11355 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11356 results from building with “-march=x86-64 -mtune=generic
11357 -mfpmath=sse” and running on a Haswell-era CPU.
11358
11359 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11360
11361 [BZ #18473]
11362 * soft-fp/sqrttf2.c: Remove file.
11363 * soft-fp/sqrtdf2.c: Move to ....
11364 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11365 <shlib-compat.h>.
11366 (__sqrtdf2): Make conditional on
11367 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11368 symbol.
11369 * soft-fp/sqrtsf2.c: Move to ....
11370 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11371 <shlib-compat.h>.
11372 (__sqrtsf2): Make conditional on
11373 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11374 symbol.
11375 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11376 (gcc-double-routines): Remove sqrtdf2.
11377 (gcc-quad-routines): Remove sqrttf2.
11378 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11379 Do not filter out sqrtsf2 and sqrtdf2.
11380 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11381 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11382
11383 2018-06-01 Florian Weimer <fweimer@redhat.com>
11384
11385 * sysdeps/generic/libcidn.abilist: Remove file.
11386
11387 2018-06-01 Florian Weimer <fweimer@redhat.com>
11388
11389 [BZ #23236]
11390 * libio/strfile.h (struct _IO_str_fields): Rename members to
11391 discourage their use and add comment.
11392 (_IO_STR_DYNAMIC): Remove unused macro.
11393 * libio/strops.c (_IO_str_init_static_internal): Do not use
11394 callback pointers. Call malloc and free.
11395 (_IO_str_overflow): Do not use callback pointers. Call malloc
11396 and free.
11397 (enlarge_userbuf): Likewise.
11398 (_IO_str_finish): Call free.
11399 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11400 _allocate_buffer_unused.
11401 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11402 and free.
11403 (enlarge_userbuf): Likewise.
11404 (_IO_wstr_finish): Call free.
11405 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11406 _allocate_buffer_unused, _free_buffer_unused.
11407 * libio/memstream.c (__open_memstream): Likewise.
11408 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11409 * libio/wmemstream.c (open_wmemstream): Likewise.
11410
11411 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11412
11413 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11414 AMD Ryzen 7 1800X.
11415
11416 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11417
11418 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11419 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11420 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11421 New file.
11422 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11423 Likewise.
11424 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11425
11426 2018-05-29 Florian Weimer <fweimer@redhat.com>
11427
11428 * support/Makefile (libsupport-routines): Add
11429 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11430 xpthread_barrierattr_setpshared.
11431 * support/xpthread_barrierattr_destroy.c: New file.
11432 * support/xpthread_barrierattr_init.c: Likewise.
11433 * support/xpthread_barrierattr_setpshared.c: Likewise.
11434
11435 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11436
11437 [BZ #23206]
11438 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11439 _r_debug and update DT_DEBUG for debugger.
11440
11441 2018-05-29 Florian Weimer <fweimer@redhat.com>
11442
11443 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11444 (tst-strtod5i.out): Likewise.
11445
11446 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11447
11448 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11449 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11450 (sparc64-quad-routines): New variable. Moved from ....
11451 [$(subdir) = soft-fp] (sysdep_routines): Add
11452 $(sparc64-quad-routines). Moved from ....
11453 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11454 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11455 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11456 moved from ....
11457 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11458 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11459 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11460 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11461 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11462 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11463 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11464 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11465 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11466 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11467 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11468 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11469 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11470 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11471 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11472 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11473 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11474 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11475 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11476 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11477 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11478 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11479 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11480 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11481 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11482 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11483 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11484 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11485 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11486 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11487 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11488 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11489 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11490 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11491 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11492 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11493 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11494 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11495 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11496 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11497 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11498 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11499 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11500 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11501 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11502 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11503 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11504 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11505 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11506 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11507 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11508 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11509 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11510 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11511 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11512 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11513 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11514 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11515
11516 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11517 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11518 (sparc32-quad-routines): New variable. Moved from ....
11519 [$(subdir) = soft-fp] (sysdep_routines): Add
11520 $(sparc32-quad-routines). Moved from ....
11521 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11522 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11523 moved from ....
11524 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11525 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11526 * sysdeps/sparc/sparc32/q_add.c: ... here.
11527 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11528 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11529 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11530 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11531 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11532 * sysdeps/sparc/sparc32/q_div.c: ... here.
11533 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11534 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11535 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11536 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11537 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11538 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11539 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11540 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11541 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11542 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11543 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11544 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11545 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11546 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11547 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11548 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11549 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11550 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11551 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11552 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11553 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11554 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11555 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11556 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11557 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11558 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11559 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11560 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11561 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11562 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11563 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11564 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11565 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11566 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11567 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11568 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11569 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11570 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11571 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11572 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11573 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11574 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11575 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11576 * sysdeps/sparc/sparc32/q_util.c: ... here.
11577 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11578 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11579 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11580 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11581
11582 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11583 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11584
11585 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11586 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11587 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11588 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11589
11590 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11591
11592 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11593 powerpc/soft-fp.
11594 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11595 Likewise.
11596 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11597 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11598
11599 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11600
11601 [BZ #23171]
11602 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11603 double version.
11604
11605 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11606
11607 * sysdeps/sh/Implies: Remove sh/soft-fp.
11608 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11609 * sysdeps/sh/sfp-machine.h: ... here.
11610
11611 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11612
11613 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11614 (__mempcpy_erms): Skip zero length.
11615 (__memmove_erms): Likewise.
11616 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11617 (__memset_erms): Likewise.
11618
11619 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11620
11621 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11622 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11623 Add functions moved from ....
11624 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11625 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11626 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11627 from ....
11628 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11629 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11630 * sysdeps/alpha/e_sqrtl.c: ... here.
11631 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11632 * sysdeps/alpha/local-soft-fp.h: ... here.
11633 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11634 * sysdeps/alpha/ots_add.c: ... here.
11635 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11636 * sysdeps/alpha/ots_cmp.c: ... here.
11637 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11638 * sysdeps/alpha/ots_cmpe.c: ... here.
11639 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11640 * sysdeps/alpha/ots_cvtqux.c: ... here.
11641 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11642 * sysdeps/alpha/ots_cvtqx.c: ... here.
11643 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11644 * sysdeps/alpha/ots_cvttx.c: ... here.
11645 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11646 * sysdeps/alpha/ots_cvtxq.c: ... here.
11647 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11648 * sysdeps/alpha/ots_cvtxt.c: ... here.
11649 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11650 * sysdeps/alpha/ots_div.c: ... here.
11651 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11652 * sysdeps/alpha/ots_mul.c: ... here.
11653 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11654 * sysdeps/alpha/ots_nintxq.c: ... here.
11655 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11656 * sysdeps/alpha/ots_sub.c: ... here.
11657 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11658 * sysdeps/alpha/sfp-machine.h: ... here.
11659
11660 2018-05-23 Florian Weimer <fweimer@redhat.com>
11661
11662 [BZ #19728]
11663 [BZ #19729]
11664 [BZ #22247]
11665 CVE-2016-6261
11666 CVE-2016-6263
11667 CVE-2017-14062
11668 Switch to extern IDNA implementation (libidn2).
11669 * libidn: Remove subdirectory.
11670 * LICENSES: Do not mention licensing conditions for the removed
11671 libidn code.
11672 * config.h.in (HAVE_LIBIDN): Remove.
11673 * include/dlfcn.h (__libc_dlopen): Update comment.
11674 * include/idna.h: Remove file.
11675 * inet/Makefile (routines): Add idna.
11676 (tests-static, tests-internal): Add tst-idna_name_classify.
11677 (LOCALES): Generate locales for tests.
11678 (tst-idna_name_classify.out): Depend on generated locales.
11679 * inet/idna_name_classify.c: New file.
11680 * inet/tst-idna_name_classify.c: Likewise.
11681 * inet/net-internal.h (__idna_to_dns_encoding)
11682 (__idna_from_dns_encoding): Declare.
11683 * inet/net-internal.h (enum idna_name_classification): Define.
11684 (__idna_name_classify): Declare.
11685 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11686 __idna_from_dns_encoding.
11687 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11688 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11689 name as a fallback in case of encoding errors.
11690 (getnameinfo): Use DEPRECATED_NI_IDN.
11691 * inet/idna.c: New file.
11692 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11693 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11694 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11695 (modules-names): Add tst-no-libidn2.
11696 (extra-test-objs): Add tst-no-libidn2.os.
11697 (LDFLAGS-tst-no-libidn2.so): Set soname.
11698 (LOCALES): Set, and generate locales.
11699 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11700 (tst-resolv-ai_idn-latin1): Likewise.
11701 (tst-resolv-ai_idn-nolibidn2): Likewise.
11702 (tst-resolv-ai_idn.out): Depend on locales.
11703 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11704 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11705 tst-no-libidn2.so.
11706 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11707 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11708 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11709 * resolv/tst-resolv-ai_idn.c: New file.
11710 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11711 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11712 * resolv/tst-no-libidn2.c: Likewise.
11713 * support/support_format_addrinfo.c (format_ai_flags): Do not
11714 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11715 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11716 (gaih_inet): Call __idna_to_dns_encoding and
11717 __idna_from_dns_encoding, and use the original (punycode) name if
11718 __idna_from_dns_encoding fails due to an encoding error.
11719 (getaddrinfo): Use DEPRECATED_AI_IDN.
11720 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11721 * sysdeps/unix/inet/configure: Remove file.
11722 * sysdeps/unix/inet/configure.ac: Likewise.
11723
11724 2018-05-23 Florian Weimer <fweimer@redhat.com>
11725
11726 Implement allocate_once.
11727 * include/allocate_once.h: New file.
11728 * misc/allocate_once.c: Likewise.
11729 * misc/tst-allocate_once.c: Likewise.
11730 * misc/Makefile (routines): Add allocate_once.
11731 (tests-internal): Add tst-allocate_once.
11732 (generated): Add tst-allocate_once.mtrace,
11733 tst-allocate_once-mem.out.
11734 (tests-special): Add tst-allocate_once-mem.out.
11735 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11736 (tst-allocate_once-mem.out): Call mtrace.
11737 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11738
11739 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11740
11741 [BZ #23196]
11742 * string/test-memcpy.c (do_test1): New function.
11743 (test_main): Call it.
11744
11745 2018-05-23 Andreas Schwab <schwab@suse.de>
11746
11747 [BZ #23196]
11748 CVE-2018-11237
11749 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11750 (L(preloop_large)): Save initial destination pointer in %r11 and
11751 use it instead of %rax after the loop.
11752 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11753
11754 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11755
11756 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11757 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11758 -I../soft-fp. Moved from ....
11759 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11760 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11761 * sysdeps/aarch64/e_sqrtl.c: ... here.
11762 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11763 * sysdeps/aarch64/sfp-machine.h: ... here.
11764
11765 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11766 -Wmaybe-uninitialized around access to fq[0].
11767 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11768 Likewise.
11769
11770 [BZ #18471]
11771 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11772 aliases for non-libc case of versioned symbols.
11773 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11774 (llseek): Define as compat symbol if
11775 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11776 with link warning.
11777 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11778 Make into a compat symbol, disabled for minimum symbol version
11779 GLIBC_2.28 and later.
11780 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11781
11782 2018-05-22 Florian Weimer <fweimer@redhat.com>
11783
11784 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11785 not add -mpreferred-stack-boundary=4.
11786 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11787 (stack-align-test-flags): Likewise.
11788 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11789 Likewise.
11790 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11791 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11792 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11793 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11794 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11795 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11796 (CFLAGS-tst-align2.c): Likewise.
11797
11798 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11799
11800 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11801 (index_arch_Prefer_FSRM): Likewise.
11802 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11803 Also check Prefer_FSRM.
11804 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11805 Also return OPTIMIZE (erms) for Prefer_FSRM.
11806
11807 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11808
11809 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11810 (index_cpu_FSRM): Likewise.
11811 (reg_FSRM): Likewise.
11812
11813 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11814
11815 * math/gen-tgmath-tests.py: Import sys.
11816 (Tests.__init__): Initialize macros_seen.
11817 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11818 if requested to do so for this macro.
11819 (Tests.add_all_tests): Take argument for macro for which to
11820 generate tests.
11821 (Tests.check_macro_list): New function.
11822 (main): Handle check-list argument and argument specifying macro
11823 for which to generate tests.
11824 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11825 [PYTHON] (tgmath3-macro-tests): Likewise.
11826 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11827 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11828 not test-tgmath3.c.
11829 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11830 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11831 to CFLAGS.
11832 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11833 [PYTHON] ($(foreach
11834 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11835 rule.
11836 [PYTHON] (tests-special): Add
11837 $(objpfx)test-tgmath3-macro-list.out.
11838 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11839
11840 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11841 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11842 later.
11843
11844 [BZ #22639]
11845 * time/tzset.c (SECSPERDAY): Cast to time_t.
11846 * time/tst-y2039.c: New file.
11847 * time/Makefile (tests): Add tst-y2039.
11848
11849 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11850
11851 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11852 (PREFETCH_ONE_SET): Remove duplicate line.
11853
11854 2018-05-17 Florian Weimer <fweimer@redhat.com>
11855
11856 * sysdeps/generic/math-type-macros-double.h: Include
11857 <math-nan-payload-double.h> after <libm-alias-double.h>.
11858 * sysdeps/generic/math-type-macros-float.h: Include
11859 <math-nan-payload-float.h> after <libm-alias-float.h>.
11860 * sysdeps/generic/math-type-macros-float128.h: Include
11861 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11862 * sysdeps/generic/math-type-macros-ldouble.h: Include
11863 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11864
11865 2018-05-17 Andreas Schwab <schwab@suse.de>
11866
11867 * resolv/res_send.c (__res_context_send): Don't set errno when
11868 returing error after malloc failure.
11869
11870 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11871
11872 * nptl/allocatestack.c (allocate_stack): Remove the
11873 !__ASSUME_PRIVATE_FUTEX paths.
11874 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11875 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11876 Likewise.
11877 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11878 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11879 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11880 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11881 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11882 !__ASSUME_PRIVATE_FUTEX path.
11883 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11884 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11885 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11886 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11887 !__ASSUME_PRIVATE_FUTEX macros.
11888 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11889 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11890 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11891 * sysdeps/unix/sysv/linux/kernel-features.h
11892 (__ASSUME_PRIVATE_FUTEX): Removed.
11893
11894 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11895
11896 * math/Makefile (libm-narrow-fns): Add div.
11897 (libm-test-funcs-narrow): Likewise.
11898 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11899 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11900 * math/gen-auto-libm-tests.c (test_functions): Add div.
11901 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11902 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11903 (NARROW_DIV_TRIVIAL): Likewise.
11904 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11905 macro.
11906 (__ddivl): Likewise.
11907 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11908 ddiv.
11909 (CFLAGS-nldbl-ddiv.c): New variable.
11910 (CFLAGS-nldbl-fdiv.c): Likewise.
11911 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11912 __nldbl_ddivl.
11913 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11914 prototype.
11915 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11916 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11917 * math/auto-libm-test-in: Add tests of div.
11918 * math/auto-libm-test-out-narrow-div: New generated file.
11919 * math/libm-test-narrow-div.inc: New file.
11920 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11921 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11922 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11923 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11924 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11925 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11926 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11927 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11928 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11929 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11930 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11931 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11932 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11933 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11934 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11935 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11936 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11937 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11938 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11939 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11940 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11941 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11942 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11943 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11944 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11945 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11946 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11947 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11948 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11949 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11950 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11951 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11952 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11953 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11954 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11955 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11956 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11957 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11958 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11959 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11960 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11961 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11962 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11963 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11964
11965 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11966
11967 [BZ #23178]
11968 * nscd/nscd-client.h (sendfileall): Remove prototype.
11969 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11970 (handle_request): Use writeall instead of sendfileall.
11971 * nscd/aicache.c (addhstaiX): Likewise.
11972 * nscd/grpcache.c (cache_addgr): Likewise.
11973 * nscd/hstcache.c (cache_addhst): Likewise.
11974 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11975 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11976 * nscd/pwdcache.c (cache_addpw): Likewise.
11977 * nscd/servicescache.c (cache_addserv): Likewise.
11978 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11979 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11980 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11981 Remove define.
11982
11983 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11984
11985 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11986 Include <string/strncat.c>.
11987 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11988 alias.
11989 (__GI___strncat): New hidden alias.
11990
11991 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11992
11993 * sysdeps/mips/mips32/libm-test-ulps: Update.
11994 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11995
11996 2018-05-16 Florian Weimer <fweimer@redhat.com>
11997
11998 * support/Makefile (libsupport-routines): Add support_quote_blob,
11999 support_test_compare_blob.
12000 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
12001 * support/check.h (TEST_COMPARE_BLOB): Define.
12002 (support_test_compare_blob): Declare.
12003 * support/support.h (support_quote_blob): Declare.
12004 * support/support_quote_blob.c: New file.
12005 * support/support_test_compare_blob.c: Likewise.
12006 * support/tst-support_quote_blob.c: Likewise.
12007 * support/tst-test_compare_blob.c: Likewise.
12008
12009 2018-05-16 Florian Weimer <fweimer@redhat.com>
12010
12011 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
12012 of <strtod_nan_double.h>.
12013 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
12014 instead of SET_MANTISSA.
12015 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
12016 of include <strtod_nan_float.h>.
12017 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
12018 instead of <strtod_nan_ldouble.h>.
12019 * stdlib/strtod_nan_double.h: Move to ...
12020 * sysdeps/generic/math-nan-payload-double.h: ... here.
12021 (FLOAT): Remove definition.
12022 (SET_MANTISSA): Rename to ...
12023 (SET_NAN_PAYLOAD): ... this.
12024 * stdlib/strtod_nan_float.h: Move to ...
12025 * sysdeps/generic/math-nan-payload-float.h: ... here.
12026 (FLOAT): Remove definition.
12027 (SET_MANTISSA): Rename to ...
12028 (SET_NAN_PAYLOAD): ... this.
12029 * sysdeps/generic/math-type-macros-double.h: Include
12030 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
12031 instead of <math-svid-compat.h>.
12032 * sysdeps/generic/math-type-macros-float.h: Include
12033 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
12034 instead of <math-svid-compat.h>.
12035 * sysdeps/generic/math-type-macros-float128.h: Include
12036 <math-nan-payload-float128.h>.
12037 * sysdeps/generic/math-type-macros-ldouble.h: Include
12038 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
12039 instead of <math-svid-compat.h>.
12040 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12041 check for definition.
12042 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12043 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12044 Include <ieee754_float128.h>.
12045 (FLOAT): Remove definition.
12046 (SET_MANTISSA): Rename to ...
12047 (SET_NAN_PAYLOAD): ... this.
12048 * sysdeps/ieee754/float128/strtof128_nan.c: Include
12049 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12050 Do not include <float128_private.h>.
12051 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12052 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12053 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12054 (FLOAT): Remove definition.
12055 (SET_MANTISSA): Rename to ...
12056 (SET_NAN_PAYLOAD): ... this.
12057 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12058 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12059 (FLOAT): Remove definition.
12060 (SET_MANTISSA): Rename to ...
12061 (SET_NAN_PAYLOAD): ... this.
12062 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12063 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12064 (FLOAT): Remove definition.
12065 (SET_MANTISSA): Rename to ...
12066 (SET_NAN_PAYLOAD): ... this.
12067 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12068 of "../stdlib/strtod_nan_double.h".
12069 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12070 of "../stdlib/strtod_nan_float.h".
12071 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12072 instead of "../stdlib/strtod_nan_ldouble.h".
12073 * manual/arith.texi (Parsing of Floats): Adjust comment.
12074
12075 2018-05-16 Joseph Myers <joseph@codesourcery.com>
12076
12077 * math/Makefile (libm-narrow-fns): Add mul.
12078 (libm-test-funcs-narrow): Likewise.
12079 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12080 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12081 * math/gen-auto-libm-tests.c (test_functions): Add mul.
12082 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12083 (NARROW_MUL_ROUND_TO_ODD): Likewise.
12084 (NARROW_MUL_TRIVIAL): Likewise.
12085 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12086 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12087 macro.
12088 (__dmull): Likewise.
12089 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
12090 dmul.
12091 (CFLAGS-nldbl-dmul.c): New variable.
12092 (CFLAGS-nldbl-fmul.c): Likewise.
12093 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12094 __nldbl_dmull.
12095 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
12096 prototype.
12097 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
12098 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
12099 * math/auto-libm-test-in: Add tests of mul.
12100 * math/auto-libm-test-out-narrow-mul: New generated file.
12101 * math/libm-test-narrow-mul.inc: New file.
12102 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
12103 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
12104 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
12105 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
12106 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
12107 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
12108 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
12109 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12110 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12111 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12112 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12113 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12114 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12115 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12116 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12117 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12118 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12119 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12120 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12121 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12122 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12123 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12124 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12125 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12126 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12127 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12128 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12129 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12130 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12131 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12132 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12133 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12134 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12135 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12137 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12138 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12139 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12140 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12141 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12142 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12143 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12144 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12145 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12146
12147 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12148
12149 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12150 with *%eax in call.
12151
12152 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12153
12154 * sysdeps/i386/ldsodefs.h: Removed.
12155 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12156 * sysdeps/x86/ldsodefs.h: This.
12157 (La_i86_regs): New.
12158 (La_i86_retval): Likewise.
12159 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12160 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12161
12162 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12163
12164 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12165 unnecessary testl.
12166
12167 2018-05-13 Alan Modra <amodra@gmail.com>
12168
12169 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12170 R_PARISC_TLS_DTPOFF32 reloc addend.
12171
12172 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12173
12174 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12175 * math/math.h: Restrict the prototype definition for the functions
12176 issignaling(_Float128) and iszero(_Float128); and template
12177 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12178 __HAVE_FLOAT128_UNLIKE_LDBL.
12179 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12180 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12181 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12182 __f128() constants; define the type _Float128 as long double;
12183 and reuse long double in __CFLOAT128.
12184
12185 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12186
12187 * sysdeps/generic/math_private.h: Do not include
12188 <math-barriers.h>.
12189 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12190 <math_private.h>.
12191 * math/fromfp.h: Include <math-barriers.h>.
12192 * math/math-narrow.h: Likewise.
12193 * math/s_nextafter.c: Likewise.
12194 * math/s_nexttowardf.c: Likewise.
12195 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12196 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12197 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12198 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12199 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12200 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12201 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12202 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12203 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12204 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12205 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12206 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12207 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12208 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12209 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12210 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12211 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12212 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12213 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12214 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12215 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12216 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12217 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12218 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12219 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12220 * sysdeps/ieee754/k_standardl.c: Likewise.
12221 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12222 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12223 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12224 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12225 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12226 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12227 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12228 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12229 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12230 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12231 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12232 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12233 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12234 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12235 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12236 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12237 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12238 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12239 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12240 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12241 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12242 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12243
12244 2018-05-11 Florian Weimer <fweimer@redhat.com>
12245
12246 Use 64-bit epoch values in the time zone file parser.
12247 * include/time.h (internal_time_t): Define.
12248 (__tzfile_compute): Use it.
12249 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12250 member.
12251 (transitions): Switch to internal_time_t.
12252 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12253 types.
12254 (__tzfile_compute): Use internal_time_t for timer argument. Check
12255 for truncation before calling __offtime.
12256
12257 2018-05-11 Florian Weimer <fweimer@redhat.com>
12258
12259 [BZ #23166]
12260 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12261 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12262 Likewise.
12263 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12264 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12265 export without --enable-obsolete-rpc.
12266 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12267 symbol. This should not have been exported, ever.
12268
12269 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12270
12271 [BZ #23152]
12272 * localedata/locales/gd_GB (abmon): Fix typo in May:
12273 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12274
12275 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12276
12277 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12278 Use multiple registers to copy data in loop tail.
12279
12280 * sysdeps/aarch64/multiarch/memmove_falkor.S
12281 (__memmove_falkor): Use multiple registers to move data in
12282 loop tail.
12283
12284 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12285
12286 * math/math-underflow.h: New file.
12287 * sysdeps/generic/math_private.h: Do not include <float.h>.
12288 (fabs_tg): Remove macro. Moved to math-underflow.h.
12289 (min_of_type_f): Likewise.
12290 (min_of_type_): Likewise.
12291 (min_of_type_l): Likewise.
12292 (min_of_type_f128): Likewise.
12293 (min_of_type): Likewise.
12294 (math_check_force_underflow): Likewise.
12295 (math_check_force_underflow_nonneg): Likewise.
12296 (math_check_force_underflow_complex): Likewise.
12297 * math/e_exp2_template.c: Include <math-underflow.h>.
12298 * math/k_casinh_template.c: Likewise.
12299 * math/s_catan_template.c: Likewise.
12300 * math/s_catanh_template.c: Likewise.
12301 * math/s_ccosh_template.c: Likewise.
12302 * math/s_cexp_template.c: Likewise.
12303 * math/s_clog10_template.c: Likewise.
12304 * math/s_clog_template.c: Likewise.
12305 * math/s_csin_template.c: Likewise.
12306 * math/s_csinh_template.c: Likewise.
12307 * math/s_csqrt_template.c: Likewise.
12308 * math/s_ctan_template.c: Likewise.
12309 * math/s_ctanh_template.c: Likewise.
12310 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12311 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12312 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12313 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12314 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12315 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12316 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12317 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12318 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12319 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12320 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12321 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12322 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12323 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12324 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12325 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12326 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12327 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12328 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12329 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12330 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12331 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12332 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12333 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12334 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12335 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12336 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12337 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12338 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12339 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12340 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12341 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12342 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12343 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12344 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12345 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12346 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12347 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12348 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12349 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12350 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12351 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12352 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12353 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12354 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12355 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12356 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12357 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12358 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12359 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12360 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12361 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12362 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12363 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12364 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12365 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12366 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12367 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12368 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12369 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12370 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12371 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12372 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12373 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12374 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12375 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12376 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12377 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12378 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12379 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12380 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12381 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12382 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12383 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12384 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12385 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12386 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12387 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12388 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12389 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12390 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12391 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12392 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12393 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12394
12395 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12396
12397 * sysdeps/generic/math-barriers.h: New file.
12398 * sysdeps/generic/math_private.h [!math_opt_barrier]
12399 (math_opt_barrier): Move to math-barriers.h.
12400 [!math_opt_barrier] (math_force_eval): Likewise.
12401 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12402 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12403 math-barriers.h.
12404 (math_force_eval): Likewise.
12405 * sysdeps/alpha/fpu/math-barriers.h: New file.
12406 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12407 math-barriers.h.
12408 (math_force_eval): Likewise.
12409 * sysdeps/x86/fpu/math-barriers.h: New file.
12410 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12411 math-barriers.h.
12412 (math_force_eval): Likewise.
12413 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12414 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12415 multiple-include guard for rename.
12416 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12417 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12418 math-barriers.h.
12419 (math_force_eval): Likewise.
12420
12421 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12422
12423 [BZ #22786]
12424 CVE-2018-11236
12425 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12426 computation.
12427 * stdlib/Makefile (test-bz22786): New test.
12428 * stdlib/test-bz22786.c: New test.
12429
12430 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12431
12432 * include/math-narrow-eval.h: New file. Contents moved from ....
12433 * sysdeps/generic/math_private.h: ... here.
12434 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12435 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12436 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12437 * stdlib/strtod_l.c: Likewise.
12438 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12439 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12440 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12441 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12442 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12443 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12444 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12445 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12446 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12447 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12448 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12449 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12450 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12451 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12452 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12453 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12454 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12455 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12456 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12457 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12458 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12459 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12460 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12461 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12462 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12463 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12464 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12465 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12466 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12467
12468 2018-05-08 Andreas Schwab <schwab@suse.de>
12469
12470 * sysdeps/nptl/internaltypes.h: Fix comment.
12471
12472 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12473
12474 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12475 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12476 hidden.
12477
12478 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12479
12480 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12481 of I into loop header.
12482 * benchtests/bench-memmove-walk.c
12483 (test_main): Likewise.
12484
12485 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12486
12487 Revert:
12488 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12489 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12490
12491 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12492
12493 [BZ #20419]
12494 * elf/dl-load.c (open_verify): Fix stack overflow.
12495 * elf/Makefile (tst-big-note): New test.
12496 * elf/tst-big-note-lib.S: New.
12497 * elf/tst-big-note.c: New.
12498
12499 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12500
12501 * scripts/abilist.awk: Ignore absolute symbols.
12502 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12503 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12504 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12505 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12506 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12507 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12508 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12509 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12510 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12511 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12512 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12513 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12514 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12515 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12516 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12517 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12518 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12519 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12520 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12521 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12522 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12523 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12524 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12525 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12526 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12527 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12528 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12529 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12530 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12531 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12532 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12533 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12534 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12535 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12536 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12537 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12538 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12539 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12540 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12541 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12542 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12543 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12544 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12545 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12546 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12547 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12548 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12549 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12550 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12551 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12552 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12553 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12554 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12555 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12556 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12557 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12558 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12559 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12560 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12561 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12562 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12563 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12564 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12565 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12566 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12567 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12568 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12569 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12570 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12571 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12572 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12573 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12574 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12575 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12576 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12577 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12578 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12579 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12580 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12581 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12582 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12583 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12584 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12585 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12586 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12587 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12588 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12589 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12590 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12591 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12592 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12593 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12594 Likewise.
12595 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12596 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12597 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12598 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12599 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12600 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12601 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12602 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12603 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12604 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12605 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12606 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12607 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12608 Likewise.
12609 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12610 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12611 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12612 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12613 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12614 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12615 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12616 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12617 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12618 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12619 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12620 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12621 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12622 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12623 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12624 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12625 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12626 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12627 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12628 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12629 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12630 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12631 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12632 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12633 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12634 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12635 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12636 Likewise.
12637 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12638 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12639 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12640 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12641 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12642 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12643 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12644 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12645 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12646 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12647 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12648 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12649 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12650 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12651 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12652 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12653 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12654 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12655 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12656 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12657 Likewise.
12658 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12659 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12660 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12661 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12662 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12663 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12664 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12665 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12666 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12667 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12668 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12669 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12670 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12671 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12672 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12673 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12674 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12675 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12676 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12677 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12678 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12679 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12680 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12681 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12682 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12683 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12684 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12685 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12686 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12687 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12688 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12690 Likewise.
12691 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12692 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12694 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12695 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12696 Likewise.
12697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12698 Likewise.
12699 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12700 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12701 Likewise.
12702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12703 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12704 Likewise.
12705 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12706 Likewise.
12707 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12710 Likewise.
12711 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12712 Likewise.
12713 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12714 Likewise.
12715 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12717 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12719 Likewise.
12720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12721 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12722 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12724 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12726 Likewise.
12727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12728 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12729 Likewise.
12730 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12731 Likewise.
12732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12733 Likewise.
12734 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12735 Likewise.
12736 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12738 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12739 Likewise.
12740 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12741 Likewise.
12742 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12743 Likewise.
12744 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12745 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12746 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12747 Likewise.
12748 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12749 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12750 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12751 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12752 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12753 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12754 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12755 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12756 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12757 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12758 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12759 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12760 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12761 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12762 Likewise.
12763 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12764 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12765 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12766 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12767 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12768 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12769 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12770 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12771 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12772 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12773 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12774 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12775 Likewise.
12776 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12777 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12778 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12779 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12780 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12781 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12782 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12783 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12784 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12785 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12786 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12787 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12788 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12789 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12790 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12791 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12792 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12793 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12794 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12795 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12796 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12797 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12798 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12799 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12800 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12801 Likewise.
12802 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12803 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12804 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12805 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12806 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12807 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12808 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12809 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12810 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12811 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12812 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12813 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12814 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12815 Likewise.
12816 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12817 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12818 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12819 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12820 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12821 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12822 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12823 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12824 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12825 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12826 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12827 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12828 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12829 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12830 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12831 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12832 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12833 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12834 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12835 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12836 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12837 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12838 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12839 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12840 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12841 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12842 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12843 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12844 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12845 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12846 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12847 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12848 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12849 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12850 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12851 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12852 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12853 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12854
12855 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12856
12857 [BZ #23137]
12858 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12859 Use atomic_load_acquire to load __tid.
12860
12861 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12862
12863 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12864 Restore the pointer into %rdx, after syscall and use %rdx,
12865 instead of %rsi, to restore context.
12866
12867 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12868
12869 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12870 Pop the pointer into %rdx after syscall and use %rdx, instead
12871 of %rsi, to restore context.
12872
12873 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12874
12875 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12876 handlers after setjmp.
12877 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12878 defined.
12879 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12880 <libc-pointer-arith.h>.
12881 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12882 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12883 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12884 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12885 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12886 * sysdeps/x86/__longjmp_cancel.S: New file.
12887 * sysdeps/x86/longjmp.c: Likewise.
12888 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12889
12890 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12891
12892 * NEWS: Add ustat.h deprecation entry.
12893 * bits/ustat.h: Remove file.
12894 * misc/sys/ustat.h: Likewise.
12895 * misc/ustat.h: Likewise.
12896 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12897 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12898 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12899 compatibility mode.
12900 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12901 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12902 generic Linux implementation.
12903
12904 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12905
12906 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12907 * math/w_expl_compat.c: Likewise.
12908 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12909
12910 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12911
12912 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12913
12914 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12915
12916 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12917 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12918 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12919 Remove.
12920 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12921 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12922 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12923 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12924 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12925 and SYSCALL_LL64.
12926
12927 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12928
12929 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12930
12931 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12932 * math/w_asin_template.c: Likewise.
12933 * math/w_atanh_template.c: Likewise.
12934
12935 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12936
12937 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12938 to powerpc/powerpc64/be for big-endian.
12939 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12940 little-endian.
12941
12942 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12943 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12944 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12945 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12946 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12947 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12948 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12949 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12950 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12951 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12952 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12953 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12954 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12955 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12956 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12957 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12958 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12959 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12960 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12961 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12962 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12963 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12964 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12965 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12966 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12967 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12968 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12969 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12970 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12971 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12972 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12973 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12974
12975 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12976 adjusted to imply powerpc64 and older processors on powerpc64/be.
12977 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12978 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12979 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12980 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12981 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12982 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12983 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12984 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12985 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12986 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12987 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12988 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12989 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12990 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12991 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12992 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12993 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12994 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12995 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12996 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12997 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12998 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12999 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
13000 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
13001 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
13002 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
13003 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
13004 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
13005 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
13006 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
13007 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
13008
13009 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
13010 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
13011 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
13012 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
13013
13014 * sysdeps/powerpc/powerpc64/be/Implies: New file.
13015 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
13016 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
13017 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
13018
13019 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
13020 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
13021 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
13022 * sysdeps/powerpc/powerpc64le/configure: Likewise.
13023 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
13024 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
13025 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
13026 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
13027 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
13028 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
13029 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
13030
13031 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
13032 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
13033 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
13034 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
13035 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13036 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13037 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13038 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13039 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13040 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13041 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13042
13043 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13044 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13045 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13046 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13047 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13048 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13049 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13050 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13051 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13052 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13053 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13054 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13055
13056 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13057 and adjusted to imply olders processors.
13058 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13059 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13060 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13061 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13062 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13063 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13064 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13065 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13066 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13067 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13068 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13069
13070 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13071 powerpc64/le.
13072 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13073 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13074
13075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13076 powerpc64le.
13077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13079
13080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13081 powerpc64/be.
13082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13084 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13085
13086 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13087 powerpc64 and adjusted.
13088 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
13089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
13090 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
13091 Likewise.
13092
13093 2018-04-27 Joseph Myers <joseph@codesourcery.com>
13094
13095 * sysdeps/tile: Remove.
13096 * sysdeps/unix/sysv/linux/tile: Likewise.
13097 * README (tilegx-*-linux-gnu): Remove from list of supported
13098 configurations.
13099 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
13100 contribution of support for generic Linux kernel syscall
13101 interface.
13102 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
13103 tilegx configurations.
13104 (Config.install_linux_headers): Do not handle tile.
13105 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
13106 in comment.
13107 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
13108 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
13109 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13110 conditional undefine and redefine.
13111 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13112 in comment.
13113 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13114 conditional undefine and redefine.
13115
13116 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
13117
13118 * signal/tst-sigaction.c: New file to test BZ #23069.
13119 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13120
13121 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13122
13123 [BZ #22766]
13124 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13125 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13126 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13127 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13128
13129 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13130
13131 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13132 _DIRENT_MATCHES_DIRENT64 is not defined.
13133 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13134 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13135 is defined.
13136 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13137 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13138
13139 2018-04-25 Joseph Myers <joseph@codesourcery.com>
13140
13141 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13142 version to GCC 8 branch.
13143
13144 2018-04-24 Joseph Myers <joseph@codesourcery.com>
13145
13146 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13147 (check_no_hidden): Use type of original function when declaring
13148 alias.
13149
13150 * sysdeps/unix/sysv/linux/sys/ptrace.h
13151 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13152 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13153 (struct __ptrace_seccomp_metadata): New type.
13154 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13155 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13156 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13157 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13158 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13159 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13160 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13161 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13162 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13163 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13164 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13165 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13166 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13167 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13168 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13169 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13170
13171 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13172
13173 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13174 defined.
13175 * dirent/versionsort.c (versionsort): Likewise.
13176 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13177 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13178 * dirent/versionsort64.c (versionsort64): Likewise.
13179 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13180 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13181 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13182 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13183 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13184 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13185 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13186 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13187 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13188 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13189 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13190 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13191 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13192 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13193
13194 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13195
13196 * elf/elf.h (NT_PPC_PKEY): New macro.
13197
13198 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13199
13200 [BZ #23094]
13201 * localedata/locales/hr_HR: fix thousands_sep and
13202 mon_thousands_sep
13203
13204 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13205
13206 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13207 (XTABS): Define to TAB3.
13208
13209 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13210
13211 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13212
13213 * dirent/scandir-tail-common.c: New file.
13214 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13215 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13216 * dirent/scandir.c: Use scandir-tail-common.c.
13217 * dirent/scandirat.c: Likewise.
13218 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13219 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13220 if _DIRENT_MATCHES_DIRENT64 is defined.
13221 * dirent/scandirat64.c (scandirat64): Likewise.
13222 * include/dirent.h (__scandir_tail): Only define iff
13223 _DIRENT_MATCHES_DIRENT64 is not defined.
13224 (__scandir64_tail): Define regardless.
13225 (__scandirat, scandirat64): Remove libc_hidden_proto.
13226 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13227 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13228 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13229 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13230 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13231 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13232 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13233
13234 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13235
13236 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13237 New macro.
13238 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13239 Increase to 24.
13240 (_dl_aarch64_cap_flags): Add asimdfhm.
13241
13242 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13243
13244 * sysdeps/nios2/libm-test-ulps: Update.
13245
13246 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13247
13248 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13249 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13250
13251 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13252 requirements.
13253 (_DIRENT_MATCHES_DIRENT64): Undef
13254 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13255 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13256 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13257 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13258 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13259 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13260 use getdents64 syscalls as base.
13261 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13262 symbol if required.
13263 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13264 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13265 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13266 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13267 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13268 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13269 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13270 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13271 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13272 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13273 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13274
13275 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13276
13277 * scripts/test_printers_common.py (init_test): Disable lock elision.
13278
13279 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13280
13281 * math/test-tgmath.c (count_double, count_float,
13282 count_ldouble, count_cdouble, count_cfloat,
13283 count_cldouble): Use volatile int.
13284
13285 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13286
13287 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13288 (conformtest-xfail-conds): Add i386-gnu.
13289 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13290 i386-gnu.
13291 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13292 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13293 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13294 msqid_ds.msg_lrpid): Likewise.
13295 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13296 Likewise.
13297 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13298 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13299 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13300 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13301 unsigned int.
13302 (struct statvfs64): Likewise.
13303 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13304 Likewise.
13305 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13306 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13307 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13308 instead of wait_queue.
13309 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13310 instead of vm_area_struct.
13311 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13312 struct sched_param definition to it.
13313 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13314 * bits/types/struct_sched_param.h: New file.
13315 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13316 <bits/types/struct_sched_param.h> instead of <sched.h>.
13317 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13318 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13319 generic version but include <bits/pthreadtypes.h> to make struct
13320 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13321 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13322 non-compliant.
13323 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13324 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13325 [__USE_XOPEN] (OFDEL): New macro.
13326 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13327 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13328 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13329 prototypes.
13330 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13331 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13332 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13333 non-compliant.
13334 * sysdeps/i386/sys/ucontext.h: Likewise.
13335 * sysdeps/m68k/sys/ucontext.h: Likewise.
13336 * sysdeps/mips/sys/ucontext.h: Likewise.
13337 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13338 * sysdeps/mach/hurd/i386/Makefile
13339 (test-xfail-POSIX/fcntl.h/conform): Add.
13340 (test-xfail-POSIX/signal.h/conform): Add.
13341 (test-xfail-POSIX/semaphore.h/conform): Add.
13342 (test-xfail-POSIX/regex.h/conform): Add.
13343 (test-xfail-POSIX/aio.h/conform): Add.
13344 (test-xfail-POSIX/mqueue.h/conform): Add.
13345 (test-xfail-POSIX/sys/types.h/conform): Add.
13346 (test-xfail-UNIX98/fcntl.h/conform): Add.
13347 (test-xfail-UNIX98/netdb.h/conform): Add.
13348 (test-xfail-UNIX98/signal.h/conform): Add.
13349 (test-xfail-UNIX98/semaphore.h/conform): Add.
13350 (test-xfail-UNIX98/regex.h/conform): Add.
13351 (test-xfail-UNIX98/aio.h/conform): Add.
13352 (test-xfail-UNIX98/ftw.h/conform): Add.
13353 (test-xfail-UNIX98/mqueue.h/conform): Add.
13354 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13355 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13356 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13357 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13358 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13359 (test-xfail-UNIX98/sys/types.h/conform): Add.
13360 (test-xfail-UNIX98/stdlib.h/conform): Add.
13361 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13362 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13363 (test-xfail-POSIX2008/netdb.h/conform): Add.
13364 (test-xfail-POSIX2008/signal.h/conform): Add.
13365 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13366 (test-xfail-POSIX2008/regex.h/conform): Add.
13367 (test-xfail-POSIX2008/aio.h/conform): Add.
13368 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13369 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13370 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13371 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13372 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13373 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13374 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13375 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13376 (test-xfail-XOPEN2K/signal.h/conform): Add.
13377 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13378 (test-xfail-XOPEN2K/regex.h/conform): Add.
13379 (test-xfail-XOPEN2K/aio.h/conform): Add.
13380 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13381 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13382 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13383 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13384 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13385 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13386 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13387 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13388 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13389 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13390 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13391 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13392 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13393 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13394 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13395 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13396 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13397 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13398 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13399 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13400 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13401 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13402 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13403 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13404 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13405 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13406 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13407 i386-gnu.
13408 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13409 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13410
13411 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13412
13413 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13414 --enable-obsolete for powerpc-linux-gnuspe.
13415
13416 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13417
13418 * conform/data/sys/un.h-data: Allow sun_ prefix.
13419 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13420 prototypes.
13421 * sysdeps/mach/include/mach.h: Likewise.
13422 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13423 * sysdeps/mach/include/mach_error.h: Likewise.
13424
13425 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13426
13427 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13428 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13429 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13430 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13431
13432 2018-04-16 Andreas Schwab <schwab@suse.de>
13433
13434 [BZ #19527]
13435 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13436
13437 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13438
13439 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13440 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13441
13442 2018-04-12 DJ Delorie <dj@redhat.com>
13443
13444 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13445 version to 4.16.
13446
13447 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13448
13449 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13450 (struct kernel_sigaction): Use the same definition on 31bit as is used
13451 on 64bit.
13452
13453 2018-04-09 Florian Weimer <fweimer@redhat.com>
13454
13455 [BZ #23037]
13456 * resolv/res_send.c (send_dg): Use designated initializers instead
13457 of assignment to zero-initialize other fields of struct mmsghdr.
13458
13459 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13460
13461 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13462 __READDIR_ALIAS): Undefine after usage.
13463 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13464 __READDIR_R_ALIAS): Likewise.
13465 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13466 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13467 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13468 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13469 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13470 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13471 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13472 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13473 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13474 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13475 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13476 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13477 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13478 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13479 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13480 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13481 * sysdeps/unix/sysv/linux/readdir.c: New file.
13482 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13483 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13484 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13485
13486 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13487
13488 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13489
13490 * manual/charset.texi (Converting a Character): Fix typo.
13491
13492 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13493
13494 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13495
13496 * sysdeps/arm/libm-test-ulps: Update.
13497
13498 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13499 as base implementation.
13500 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13501 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13502 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13503 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13504 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13505 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13506 remove unrequired definitions and update comments.
13507 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13508 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13509 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13510 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13511 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13512 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13513 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13514 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13515 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13516 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13517 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13518 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13519 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13520 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13521 and RESET_SA_RESTORER hooks.
13522
13523 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13524
13525 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13526
13527 2018-04-05 Florian Weimer <fweimer@redhat.com>
13528
13529 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13530 integer overflow, memory leak on error, and indeterminate errno
13531 value. Add a null wide character to terminate the result string.
13532 * manual/charset.texi (Converting a Character): Mention embedded
13533 null bytes in the mbrtowc input string. Explain what happens in
13534 the -2 result case. Do not claim that mbrtowc is simple or
13535 obvious to use. Adjust the description of the code example. Use
13536 @code, not @var, for concrete variables.
13537
13538 2018-04-05 Florian Weimer <fweimer@redhat.com>
13539
13540 * manual/examples/mbstouwcs.c: New file.
13541 * manual/charset.texi (Converting a Character): Include it.
13542
13543 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13544
13545 * include/dirent.h (dirfd): Add hidden proto.
13546 * dirent/dirfd.c (dirfd): Add hidden def.
13547 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13548 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13549
13550 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13551
13552 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13553 sin, cos and sincos to 1 ULP.
13554
13555 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13556
13557 [BZ #19818]
13558 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13559 symbols.
13560 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13561 * elf/tst-absolute-sym.c: New file.
13562 * elf/tst-absolute-sym-lib.c: New file.
13563 * elf/tst-absolute-sym-lib.lds: New file.
13564 * elf/Makefile (tests): Add `tst-absolute-sym'.
13565 (modules-names): Add `tst-absolute-sym-lib'.
13566 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13567 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13568 ($(objpfx)tst-absolute-sym): New dependency.
13569
13570 [BZ #19818]
13571 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13572 parameter.
13573 (SYMBOL_ADDRESS): New macro.
13574 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13575 SYMBOL_ADDRESS for symbol address calculation.
13576 * elf/dl-runtime.c (_dl_fixup): Likewise.
13577 (_dl_profile_fixup): Likewise.
13578 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13579 * elf/rtld.c (dl_main): Likewise.
13580 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13581 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13582 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13583 (elf_machine_rela): Likewise.
13584 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13585 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13586 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13587 (elf_machine_rela): Likewise.
13588 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13589 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13590 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13591 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13592 Likewise.
13593 (elf_machine_reloc): Likewise.
13594 (elf_machine_got_rel): Likewise.
13595 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13596 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13597 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13598 Likewise.
13599 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13600 Likewise.
13601 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13602 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13603 Likewise.
13604 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13605 Likewise.
13606 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13607 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13608 Likewise.
13609 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13610 Likewise.
13611 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13612 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13613
13614 2018-04-04 Zack Weinberg <zackw@panix.com>
13615
13616 * sysdeps/generic/internal-signals.h: Include signal.h,
13617 sigsetops.h, and stdbool.h.
13618 (__libc_signal_block_all): Actually block all signals.
13619 (__libc_signal_block_app): Likewise.
13620 (__libc_signal_restore_set): Actually restore the signal mask.
13621
13622 2018-04-04 Florian Weimer <fweimer@redhat.com>
13623
13624 inet: Actually build and run tst-deadline.
13625 * inet/Makefile (tests-internal): Add tst-deadline and do not
13626 overwrite the variable.
13627 (tests-static-internal): Remove variable.
13628
13629 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13630
13631 [BZ #22947]
13632 * bits/uio-ext.h (RWF_APPEND): New.
13633 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13634 * manual/llio.texi: Document RWF_APPEND.
13635 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13636 (RWF_SUPPORTED): Add RWF_APPEND.
13637
13638 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13639
13640 [BZ #22391]
13641 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13642 check for internal nptl signals.
13643 * nptl/sigaction.c (__sigaction): Likewise.
13644 * signal/sigaddset.c (sigaddset): Likewise.
13645 * signal/sigdelset.c (sigdelset): Likewise.
13646 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13647 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13648 value.
13649 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13650 to filter out internal nptl signals.
13651 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13652 also check realtime signals using standard macros.
13653 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13654 __is_internal_signal, __libc_signal_block_all,
13655 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13656 * sysdeps/nptl/sigfillset.c: Remove file.
13657 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13658 Change return to bool.
13659 (__clear_internal_signals): Remove SIGTIMER clean since it is
13660 equal to SIGCANEL on Linux.
13661 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13662 signal set was constructed using standard functions.
13663
13664 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13665
13666 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13667 ifname is too long.
13668 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13669 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13670 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13671 hidden def.
13672 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13673 * signal/sigaddset.c: Include <sigsetopts.h>.
13674 * signal/sigdelset.c: Likewise.
13675
13676 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13677
13678 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13679 (__cos): Likewise.
13680 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13681 logic as sin and cos.
13682
13683 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13684
13685 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13686 inputs. Return correct sign.
13687 (do_sincos): Remove small input check before do_sin, let do_sin set
13688 the sign.
13689 (__sin): Likewise.
13690 (__cos): Likewise.
13691
13692 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13693
13694 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13695 (do_cos_slow): Likewise.
13696 (do_sin_slow): Likewise.
13697 (reduce_and_compute): Likewise.
13698 (slow): Likewise.
13699 (slow1): Likewise.
13700 (slow2): Likewise.
13701 (sloww): Likewise.
13702 (sloww1): Likewise.
13703 (sloww2): Likewise.
13704 (bslow): Likewise.
13705 (bslow1): Likewise.
13706 (bslow2): Likewise.
13707 (cslow2): Likewise.
13708
13709 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13710
13711 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13712 (do_cos): Remove corp parameter and calculations.
13713 (do_sin): Likewise.
13714 (do_sincos): Remove cor variable.
13715 (__sin): Use do_sincos for huge inputs.
13716 (__cos): Likewise.
13717 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13718 (reduce_and_compute_sincos): Remove unused function.
13719
13720 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13721
13722 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13723 reduce_sincos, improve accuracy to 136 bits.
13724 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13725 (__sin): Use improved reduction and simplified do_sincos calculation.
13726 (__cos): Likewise.
13727 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13728
13729 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13730
13731 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13732 (do_sincos_2): Likewise.
13733 (__sin): Remove middle range reduction case.
13734 (__cos): Likewise.
13735 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13736 reduction case.
13737
13738 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13739
13740 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13741 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13742 inputs.
13743 (__cos): Likewise.
13744 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13745
13746 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13747
13748 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13749 version to 4.16
13750
13751 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13752
13753 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13754 Remove definitions.
13755 (opendir_oflags): Use O_DIRECTORY regardless.
13756 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13757 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13758
13759 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13760
13761 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13762 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13763 macros.
13764 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13765 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13766 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13767 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13768 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13769 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13770
13771 * htl/Makefile: Bump licence to LGPL 2.1+.
13772 * htl/alloca_cutoff.c: Likewise.
13773 * htl/cthreads-compat.c: Likewise.
13774 * htl/lockfile.c: Likewise.
13775 * htl/pt-alloc.c: Likewise.
13776 * htl/pt-cancel.c: Likewise.
13777 * htl/pt-cleanup.c: Likewise.
13778 * htl/pt-create.c: Likewise.
13779 * htl/pt-dealloc.c: Likewise.
13780 * htl/pt-detach.c: Likewise.
13781 * htl/pt-exit.c: Likewise.
13782 * htl/pt-getattr.c: Likewise.
13783 * htl/pt-initialize.c: Likewise.
13784 * htl/pt-internal.h: Likewise.
13785 * htl/pt-join.c: Likewise.
13786 * htl/pt-self.c: Likewise.
13787 * htl/pt-setcancelstate.c: Likewise.
13788 * htl/pt-setcanceltype.c: Likewise.
13789 * htl/pt-sigmask.c: Likewise.
13790 * htl/pt-spin-inlines.c: Likewise.
13791 * htl/pt-testcancel.c: Likewise.
13792 * htl/pt-yield.c: Likewise.
13793 * htl/tests/test-1.c: Likewise.
13794 * htl/tests/test-10.c: Likewise.
13795 * htl/tests/test-11.c: Likewise.
13796 * htl/tests/test-12.c: Likewise.
13797 * htl/tests/test-13.c: Likewise.
13798 * htl/tests/test-14.c: Likewise.
13799 * htl/tests/test-15.c: Likewise.
13800 * htl/tests/test-16.c: Likewise.
13801 * htl/tests/test-17.c: Likewise.
13802 * htl/tests/test-2.c: Likewise.
13803 * htl/tests/test-3.c: Likewise.
13804 * htl/tests/test-4.c: Likewise.
13805 * htl/tests/test-5.c: Likewise.
13806 * htl/tests/test-6.c: Likewise.
13807 * htl/tests/test-7.c: Likewise.
13808 * htl/tests/test-8.c: Likewise.
13809 * htl/tests/test-9.c: Likewise.
13810 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13811 * sysdeps/htl/bits/cancelation.h: Likewise.
13812 * sysdeps/htl/bits/pthread-np.h: Likewise.
13813 * sysdeps/htl/bits/pthread.h: Likewise.
13814 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13815 * sysdeps/htl/bits/semaphore.h: Likewise.
13816 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13817 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13818 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13819 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13820 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13821 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13822 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13823 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13824 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13825 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13826 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13827 * sysdeps/htl/old_pt-atfork.c: Likewise.
13828 * sysdeps/htl/pt-atfork.c: Likewise.
13829 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13830 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13831 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13832 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13833 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13834 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13835 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13836 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13837 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13838 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13839 * sysdeps/htl/pt-attr-init.c: Likewise.
13840 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13841 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13842 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13843 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13844 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13845 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13846 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13847 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13848 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13849 * sysdeps/htl/pt-attr.c: Likewise.
13850 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13851 * sysdeps/htl/pt-barrier-init.c: Likewise.
13852 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13853 * sysdeps/htl/pt-barrier.c: Likewise.
13854 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13855 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13856 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13857 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13858 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13859 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13860 * sysdeps/htl/pt-cond-init.c: Likewise.
13861 * sysdeps/htl/pt-cond-signal.c: Likewise.
13862 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13863 * sysdeps/htl/pt-cond-wait.c: Likewise.
13864 * sysdeps/htl/pt-cond.c: Likewise.
13865 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13866 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13867 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13868 * sysdeps/htl/pt-condattr-init.c: Likewise.
13869 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13870 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13871 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13872 * sysdeps/htl/pt-equal.c: Likewise.
13873 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13874 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13875 * sysdeps/htl/pt-getschedparam.c: Likewise.
13876 * sysdeps/htl/pt-getspecific.c: Likewise.
13877 * sysdeps/htl/pt-init-specific.c: Likewise.
13878 * sysdeps/htl/pt-key-create.c: Likewise.
13879 * sysdeps/htl/pt-key-delete.c: Likewise.
13880 * sysdeps/htl/pt-key.h: Likewise.
13881 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13882 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13883 * sysdeps/htl/pt-mutex-init.c: Likewise.
13884 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13885 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13886 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13887 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13888 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13889 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13890 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13891 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13892 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13893 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13894 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13895 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13896 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13897 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13898 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13899 * sysdeps/htl/pt-mutexattr.c: Likewise.
13900 * sysdeps/htl/pt-once.c: Likewise.
13901 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13902 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13903 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13904 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13905 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13906 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13907 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13908 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13909 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13910 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13911 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13912 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13913 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13914 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13915 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13916 * sysdeps/htl/pt-setschedparam.c: Likewise.
13917 * sysdeps/htl/pt-setschedprio.c: Likewise.
13918 * sysdeps/htl/pt-setspecific.c: Likewise.
13919 * sysdeps/htl/pt-spin.c: Likewise.
13920 * sysdeps/htl/pt-startup.c: Likewise.
13921 * sysdeps/htl/pthread.h: Likewise.
13922 * sysdeps/htl/sem-close.c: Likewise.
13923 * sysdeps/htl/sem-destroy.c: Likewise.
13924 * sysdeps/htl/sem-getvalue.c: Likewise.
13925 * sysdeps/htl/sem-init.c: Likewise.
13926 * sysdeps/htl/sem-open.c: Likewise.
13927 * sysdeps/htl/sem-post.c: Likewise.
13928 * sysdeps/htl/sem-timedwait.c: Likewise.
13929 * sysdeps/htl/sem-trywait.c: Likewise.
13930 * sysdeps/htl/sem-unlink.c: Likewise.
13931 * sysdeps/htl/sem-wait.c: Likewise.
13932 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13933 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13934 * sysdeps/mach/htl/pt-block.c: Likewise.
13935 * sysdeps/mach/htl/pt-spin.c: Likewise.
13936 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13937 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13938 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13939 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13940 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13941 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13942 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13943 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13944 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13945 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13946 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13947 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13948 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13949 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13950 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13951 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13952 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13953 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13954 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13955 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13956 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13957 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13958 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13959 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13960 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13961 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13962 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13963 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13964 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13965 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13966 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13967 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13968 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13969 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13970 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13971 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13972 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13973 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13974 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13975 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13976 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13977 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13978 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13979
13980 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13981 * README: Remove the mention of out-of-tree patches needed for
13982 GNU/Hurd.
13983
13984 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13985 (UTIME_NOW, UTIME_OMIT): Define macros.
13986
13987 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13988 instead of pthread_detach.
13989 (__cthread_fork): Call __pthread_create instead of pthread_create.
13990 (__cthread_keycreate): Call __pthread_key_create instead of
13991 pthread_key_create.
13992 (__cthread_getspecific): Call __pthread_getspecific instead of
13993 pthread_getspecific.
13994 (__cthread_setspecific): Call __pthread_setspecific instead of
13995 pthread_setspecific.
13996 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13997 __pthread_mutex_unlock instead of pthread_mutex_lock and
13998 pthread_mutex_unlock.
13999 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
14000 ___pthread_get_cleanup_stack.
14001 (__pthread_get_cleanup_stack): New strong alias.
14002 * htl/pt-create.c: Include <pthreadP.h>.
14003 (entry_point): Call __pthread_exit instead of pthread_exit.
14004 (pthread_create): Rename to __pthread_create.
14005 (pthread_create): New strong alias.
14006 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
14007 (pthread_detach): New strong alias.
14008 (__pthread_detach): Call __pthread_cond_broadcast instead of
14009 pthread_cond_broadcast.
14010 * htl/pt-exit.c: Include <pthreadP.h>.
14011 (__pthread_exit): Call __pthread_setcancelstate and
14012 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
14013 __pthread_get_cleanup_stack.
14014 * htl/pt-testcancel.c: Include <pthreadP.h>.
14015 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
14016 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
14017 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
14018 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
14019 pthread_attr_getstacksize.
14020 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
14021 Rename to __pthread_attr_getstackaddr.
14022 (pthread_attr_getstackaddr): New strong alias.
14023 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
14024 Rename to __pthread_attr_getstacksize.
14025 (pthread_attr_getstacksize): New strong alias.
14026 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
14027 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
14028 (pthread_attr_setstack): New strong alias.
14029 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
14030 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
14031 pthread_attr_getstacksize, pthread_attr_setstacksize and
14032 pthread_attr_setstackaddr.
14033 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
14034 Rename to __pthread_attr_setstackaddr.
14035 (pthread_attr_setstackaddr): New strong alias.
14036 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14037 Rename to __pthread_attr_setstacksize.
14038 (pthread_attr_setstacksize): New strong alias.
14039 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14040 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14041 pthread_exit.
14042 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14043 (__pthread_key_create): New hidden def.
14044 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14045 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14046 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14047 __pthread_exit, __pthread_key_create, __pthread_getspecific,
14048 __pthread_setspecific, __pthread_setcancelstate,
14049 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14050 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14051 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14052 declarations.
14053 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14054 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14055 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14056 (pthread_attr_setstackaddr): New strong alias.
14057 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14058 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14059 (pthread_attr_setstacksize): New strong alias.
14060 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14061 (call_exit): Call __pthread_exit instead of pthread_exit.
14062 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14063 (_pthread_mutex_init): New hidden definition.
14064 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14065 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14066 instead of pthread_attr_init and pthread_attr_setstack.
14067
14068 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14069 __vm_deallocate instead of vm_allocate and vm_deallocate.
14070 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14071 setenv.
14072 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14073 of geteuid.
14074 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14075 strdup.
14076 * hurd/siginfo.c: Include <libioP.h>.
14077 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14078 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14079 munmap.
14080 * mach/devstream.c: Include <libioP.h>.
14081 (dealloc_ref): Call __mach_port_deallocate instead of
14082 mach_port_deallocate.
14083 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14084 Call __mach_port_deallocate instead of mach_port_deallocate.
14085 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14086 pathconf.
14087 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14088 munmap.
14089 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
14090 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
14091 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
14092 of munmap.
14093 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
14094 of close.
14095 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
14096 instead of sysconf.
14097 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
14098 __clock_gettime instead of clock_gettime.
14099 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
14100 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14101 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
14102 * sysdeps/unix/bsd/stty.c (stty): Likewise.
14103 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
14104 tcgetattr.
14105 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
14106 __clock_gettime and __nanosleep instead of clock_gettime and
14107 nanosleep.
14108 * hurd/catch-signal.c (hurd_catch_signal): Rename to
14109 __hurd_catch_signal.
14110 (hurd_catch_signal): New strong alias.
14111 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14112 __hurd_catch_signal instead of hurd_catch_signal.
14113 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14114 * hurd/hurdexec.c (_hurd_init): Add hidden def.
14115 * hurd/hurdinit.c (_hurd_init): Add hidden def.
14116 * hurd/hurdsig.c: Include <mach/mig_support.h>.
14117 (_hurd_thread_sigstate): Add hidden def.
14118 (_hurd_internal_post_signal): Use __mutex_unlock instead of
14119 mutex_unlock.
14120 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14121 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14122 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14123 __hurd_file_name_path_lookup.
14124 (hurd_file_name_path_lookup): New strong alias.
14125 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14126 hurd_file_name_path_lookup.
14127 * mach/errstring.c (mach_error_type): Add hidden def.
14128 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14129 * mach/mutex-init.c (__mutex_init): Add hidden def.
14130 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14131 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14132 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14133 * sysdeps/mach/hurd/getcwd.c
14134 (_hurd_canonicalize_directory_name_internal): Rename to
14135 __hurd_canonicalize_directory_name_internal.
14136 (_hurd_canonicalize_directory_name_internal): New strong alias.
14137 (__canonicalize_directory_name_internal, __getcwd): Call
14138 __hurd_canonicalize_directory_name_internal instead of
14139 _hurd_canonicalize_directory_name_internal.
14140 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14141 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14142 hidden defs.
14143 * sysdeps/hurd/include/hurd.h: New file.
14144 * sysdeps/hurd/include/hurd/fd.h: New file.
14145 * sysdeps/hurd/include/hurd/signal.h: New file.
14146 * sysdeps/mach/include/lock-intern.h: New file.
14147 * sysdeps/mach/include/mach.h: New file.
14148 * sysdeps/mach/include/mach/mig_support.h: New file.
14149 * sysdeps/mach/include/mach_error.h: New file.
14150 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14151 prototype.
14152 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14153 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14154 _HEADER_H_HIDDEN_DEF macro.
14155 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14156 _hurd_fd_error_signal): Add hidden prototype.
14157 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14158 hidden def.
14159 * libio/iolibio.h (_IO_puts): New hidden prototype.
14160 * libio/ioputs.c (_IO_puts): New hidden def.
14161 * sysdeps/mach/hurd/localplt.data: New file.
14162
14163 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14164 Amos Jeffries <squid3@treenet.co.nz>
14165 David Michael <fedora.dm0@gmail.com>
14166 Marco Gerards <marco@gnu.org>
14167 Marcus Brinkmann <marcus@gnu.org>
14168 Neal H. Walfield <neal@gnu.org>
14169 Pino Toscano <toscano.pino@tiscali.it>
14170 Richard Braun <rbraun@sceen.net>
14171 Roland McGrath <roland@gnu.org>
14172 Samuel Thibault <samuel.thibault@ens-lyon.org>
14173 Thomas DiModica <ricinwich@yahoo.com>
14174 Thomas Schwinge <tschwinge@gnu.org>
14175
14176 * htl: New directory.
14177 * sysdeps/htl: New directory.
14178 * sysdeps/hurd/htl: New directory.
14179 * sysdeps/i386/htl: New directory.
14180 * sysdeps/mach/htl: New directory.
14181 * sysdeps/mach/hurd/htl: New directory.
14182 * sysdeps/mach/hurd/i386/htl: New directory.
14183 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14184 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14185 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14186
14187 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14188
14189 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14190 signals in thread created for runing timers.
14191
14192 2018-04-01 Florian Weimer <fweimer@redhat.com>
14193
14194 * support/support_format_addrinfo.c (support_format_addrinfo):
14195 Include unknown error number in formatted result.
14196
14197 2018-03-29 Florian Weimer <fweimer@redhat.com>
14198
14199 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14200 capture SIGBUS.
14201
14202 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14203
14204 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14205 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14206 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14207 (__ASSUME_CLONE_BACKWARDS): Define.
14208
14209 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14210
14211 [BZ #23024]
14212 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14213 early when linux sentinel value is set.
14214
14215 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14216
14217 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14218
14219 2018-03-27 Andreas Schwab <schwab@suse.de>
14220
14221 [BZ #23005]
14222 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14223 allocation of private copy of nsaddr_list fails.
14224
14225 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14226
14227 [BZ #16552]
14228 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14229 * sysdeps/unix/sysv/linux/umount.c: ... here.
14230 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14231 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14232 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14233 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14235 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14236 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14237
14238 2018-03-26 Andreas Schwab <schwab@suse.de>
14239
14240 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14241 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14242 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14243 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14244 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14245 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14246 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14247 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14248 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14249 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14250 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14251 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14252 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14253 (R_RISCV_NUM): Define.
14254
14255 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14256
14257 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14258 TLS declaration of errno.
14259 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14260 __libc_setup_tls.
14261 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14262 (ARCH_SETUP_TLS): Likewise.
14263 * sysdeps/mach/hurd/libc-start.h: New file copied from
14264 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14265 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14266 instead of __libc_setup_tls.
14267 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14268 __libc_setup_tls before initializing libpthread and running _hurd_init
14269 which starts the signal thread.
14270 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14271 Declare function.
14272 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14273
14274 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14275
14276 [BZ #22998]
14277 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14278 after it is defined.
14279
14280 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14281 Max Horn <max@quendi.de>
14282
14283 [BZ #22644]
14284 CVE-2017-18269
14285 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14286 branch conditions.
14287 * string/test-memmove.c (do_test2): New testcase.
14288
14289 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14290
14291 * sysdeps/generic/frame.h: Remove file.
14292 * sysdeps/arm/frame.h: Likewise.
14293 * sysdeps/hppa/frame.h: Likewise.
14294 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14295 macro.
14296 (GET_FRAME): Likewise.
14297 (GET_STACK): Likewise.
14298 (CALL_SIGHANDLER): Likewise.
14299 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14300 Likewise.
14301 (GET_FRAME): Likewise.
14302 (GET_STACK): Likewise.
14303 (CALL_SIGHANDLER): Likewise.
14304 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14305 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14306 (GET_FRAME): Likewise.
14307 (GET_STACK): Likewise.
14308 (CALL_SIGHANDLER): Likewise.
14309 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14310 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14311 (GET_FRAME): Likewise.
14312 (GET_STACK): Likewise.
14313 (ADVANCE_STACK_FRAME): Likewise.
14314 (CALL_SIGHANDLER): Likewise.
14315 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14316 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14317 (GET_FRAME): Likewise.
14318 (GET_STACK): Likewise.
14319 (CALL_SIGHANDLER): Likewise.
14320 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14321 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14322 (GET_FRAME): Likewise.
14323 (GET_STACK): Likewise.
14324 (CALL_SIGHANDLER): Likewise.
14325 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14326 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14327 (GET_FRAME): Likewise.
14328 (GET_STACK): Likewise.
14329 (CALL_SIGHANDLER): Likewise.
14330 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14331 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14332 (GET_FRAME): Likewise.
14333 (GET_STACK): Likewise.
14334 (CALL_SIGHANDLER): Likewise.
14335 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14336 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14337 (GET_FRAME): Likewise.
14338 (GET_STACK): Likewise.
14339 (CALL_SIGHANDLER): Likewise.
14340 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14341 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14342 (GET_FRAME): Likewise.
14343 (GET_STACK): Likewise.
14344 (CALL_SIGHANDLER): Likewise.
14345 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14346 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14347 (GET_FRAME): Likewise.
14348 (GET_STACK): Likewise.
14349 (CALL_SIGHANDLER): Likewise.
14350 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14351 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14352 (GET_FRAME): Likewise.
14353 (GET_STACK): Likewise.
14354 (CALL_SIGHANDLER): Likewise.
14355 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14356 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14357 (GET_FRAME): Likewise.
14358 (GET_STACK): Likewise.
14359 (CALL_SIGHANDLER): Likewise.
14360 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14361 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14362 (FIRST_FRAME_POINTER): Likewise.
14363 (ADVANCE_STACK_FRAME): Likewise.
14364 (GET_STACK): Likewise.
14365 (GET_FRAME): Likewise.
14366 (CALL_SIGHANDLER): Likewise.
14367 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14368 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14369 (ADVANCE_STACK_FRAME): Likewise.
14370 (GET_STACK): Likewise.
14371 (GET_FRAME): Likewise.
14372 (CALL_SIGHANDLER): Likewise.
14373 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14374 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14375 (GET_FRAME): Likewise.
14376 (GET_STACK): Likewise.
14377 (CALL_SIGHANDLER): Likewise.
14378 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14379 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14380 (GET_FRAME): Likewise.
14381 (GET_STACK): Likewise.
14382 (CALL_SIGHANDLER): Likewise.
14383
14384 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14385
14386 * sysdeps/x86_64/backtrace.c: Move to ....
14387 * debug/backtrace.c: ... here.
14388 * sysdeps/aarch64/backtrace.c: Remove file.
14389 * sysdeps/alpha/backtrace.c: Likewise.
14390 * sysdeps/hppa/backtrace.c: Likewise.
14391 * sysdeps/ia64/backtrace.c: Likewise.
14392 * sysdeps/mips/backtrace.c: Likewise.
14393 * sysdeps/nios2/backtrace.c: Likewise.
14394 * sysdeps/riscv/backtrace.c: Likewise.
14395 * sysdeps/sh/backtrace.c: Likewise.
14396 * sysdeps/tile/backtrace.c: Likewise.
14397
14398 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14399
14400 [BZ #22987]
14401 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14402 function.
14403 (fdimf): Likewise.
14404 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14405
14406 [BZ #17343]
14407 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14408 possibly overflowing computations.
14409
14410 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14411
14412 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14413 values from Linux-specific section now that it is in the GNU section.
14414 * sysdeps/gnu/errlist.c: Regenerate.
14415
14416 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14417
14418 * math/Makefile (libm-narrow-fns): Add sub.
14419 (libm-test-funcs-narrow): Likewise.
14420 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14421 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14422 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14423 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14424 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14425 (NARROW_SUB_TRIVIAL): Likewise.
14426 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14427 macro.
14428 (__dsubl): Likewise.
14429 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14430 dsub.
14431 (CFLAGS-nldbl-dsub.c): New variable.
14432 (CFLAGS-nldbl-fsub.c): Likewise.
14433 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14434 __nldbl_dsubl.
14435 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14436 prototype.
14437 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14438 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14439 * math/auto-libm-test-in: Add tests of sub.
14440 * math/auto-libm-test-out-narrow-sub: New generated file.
14441 * math/libm-test-narrow-sub.inc: New file.
14442 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14443 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14444 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14445 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14446 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14447 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14448 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14449 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14450 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14451 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14452 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14453 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14454 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14455 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14456 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14457 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14458 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14459 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14460 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14461 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14462 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14463 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14464 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14465 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14466 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14467 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14468 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14469 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14470 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14471 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14472 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14473 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14474 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14475 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14476 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14477 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14478 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14479 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14480 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14481 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14482 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14483 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14484 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14485 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14486 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14487 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14488
14489 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14490
14491 [BZ #20079]
14492 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14493
14494 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14495
14496 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14497
14498 2018-03-18 Richard Braun <rbraun@sceen.net>
14499
14500 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14501 thread reference.
14502
14503 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14504
14505 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14506 (__libc_cleanup_fct): Define function.
14507 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14508 __libc_cleanup_end): Rewrite implementation using
14509 __attribute__ ((__cleanup__)).
14510 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14511 * hurd/Makefile (routines): Add hurdlock.
14512 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14513 interface.
14514 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14515 * hurd/hurdpid.c: Include <lowlevellock.h>
14516 (_S_msg_proc_newids): Use lll_wait to synchronize.
14517 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14518 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14519 * mach/Makefile (lock-headers): Remove machine-lock.h.
14520 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14521 <machine-lock.h>.
14522 (__spin_lock_t): New type.
14523 (__SPIN_LOCK_INITIALIZER): New macro.
14524 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14525 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14526 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14527 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14528 (__mutex_init): Initialize with lll.
14529 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14530 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14531 needing lll.
14532 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14533 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14534 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14535 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14536 (__setpgid): Use lll for synchronization.
14537 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14538 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14539 instead of <cthreads.h>.
14540 (_IO_lock_inexpensive): New macro
14541 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14542 (__libc_lock_self0): New declaration.
14543 (__libc_lock_owner_self): New macro.
14544 (__libc_key_t): Remove type.
14545 (_LIBC_LOCK_INITIALIZER): New macro.
14546 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14547 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14548 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14549 __libc_lock_define_initialized_recursive,
14550 __rtld_lock_define_initialized_recursive,
14551 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14552 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14553 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14554 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14555 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14556 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14557 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14558 New macros.
14559 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14560 * hurd/hurdlock.c: New file.
14561 * hurd/hurdlock.h: New file.
14562 * mach/lowlevellock.h: New file
14563
14564 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14565
14566 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14567 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14568 when opening a symlink with O_NOFOLLOW.
14569 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14570 path when flags contains O_NOFOLLOW.
14571 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14572 if flags contains O_DIRECTORY and the result is a directory.
14573 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14574 oneself when the pointer given in D is nul (as set by ext2fs).
14575 * sysdeps/mach/hurd/mlockall.c: New file.
14576 * sysdeps/mach/hurd/munlockall.c: New file.
14577
14578 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14579
14580 * hurd/hurdsig.c: Include <pthread.h>.
14581 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14582 get the signal thread stack layout.
14583 * hurd/Makefile (headers): Remove threadvar.h.
14584 (inline-headers): Remove threadvar.h.
14585 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14586 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14587 __hurd_threadvar_max, __hurd_errno_location.
14588 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14589 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14590 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14591 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14592 unless TLS is not initialized yet, in which case we do not need a
14593 critical section yet anyway.
14594 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14595 <machine-sp.h>.
14596 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14597 declarations.
14598 (__hurd_threadvar_index): Remove enum.
14599 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14600 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14601 inlines.
14602 (__hurd_reply_port0): New variable declaration.
14603 (__hurd_local_reply_port): New macro.
14604 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14605 (interrupted_reply_port_location): Add thread_t parameter. Use it
14606 with THREAD_TCB to access thread-local variables.
14607 (_hurdsig_abort_rpcs): Pass ss->thread to
14608 interrupted_reply_port_location.
14609 (_hurd_internal_post_signal): Likewise.
14610 (_hurdsig_init): Use presence of cthread_fork instead of
14611 __hurd_threadvar_stack_mask to start signal thread by hand.
14612 Remove signal thread threadvar initialization.
14613 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14614 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14615 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14616 of threadvar.
14617 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14618 __libc_lock_self0.
14619 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14620 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14621 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14622 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14623 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14624 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14625 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14626 define variables.
14627 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14628 <hurd/threadvar.h>.
14629 [IS_IN(rtld)] (rtld_errno): New variable.
14630 [IS_IN(rtld)] (__errno_location): New weak function.
14631 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14632 * sysdeps/mach/hurd/errno.c: Remove file.
14633 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14634 (__fork): Remove THREADVAR_SPACE macro and its use.
14635 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14636 variable.
14637 (init): Do not initialize threadvar.
14638 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14639 symbol.
14640 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14641 __hurd_local_reply_port instead of threadvar.
14642 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14643 _hurd_sigstate fields.
14644 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14645 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14646 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14647 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14648 instead of threadvar.
14649 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14650 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14651 (use_threadvar, global_reply_port): Remove variables.
14652 (__hurd_reply_port0): New variable.
14653 (__mig_get_reply_port): Use __hurd_local_reply_port and
14654 __hurd_reply_port0 instead of threadvar.
14655 (__mig_dealloc_reply_port): Likewise.
14656 (__mig_init): Do not initialize threadvar.
14657 * sysdeps/mach/hurd/profil.c: Fix comment.
14658 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14659 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14660 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14661 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14662 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14663 __cthread_setspecific.
14664 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14665 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14666 __cthread_t instead of cthread_fork, cthread_detach,
14667 pthread_getattr_np, pthread_attr_getstack.
14668 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14669 __cthread_keycreate.
14670 (cthread_getspecific): Rename to __cthread_getspecific.
14671 (cthread_setspecific): Rename to __cthread_setspecific.
14672 (__libc_getspecific): Use __cthread_getspecific instead of
14673 cthread_getspecific.
14674 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14675 __cthread_keycreate instead of cthread_keycreate.
14676 (__libc_setspecific): Use __cthread_setspecific instead of
14677 cthread_setspecific.
14678 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14679 Likewise.
14680 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14681 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14682 testing whether it is defined.
14683
14684 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14685
14686 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14687 Define macro.
14688 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14689 * sysdeps/mach/i386/thread_state.h
14690 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14691 i386_THREAD_STATE.
14692 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14693 i386_THREAD_STATE.
14694 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14695
14696 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14697 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14698
14699 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14700 macros.
14701 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14702 descriptor instead of creating a new one.
14703 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14704
14705 * mach/setup-thread.c: Include <ldsodefs.h>.
14706 (__mach_setup_thread): Call _dl_allocate_tls, pass
14707 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14708 MACHINE_THREAD_STATE_FLAVOR, before getting
14709 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14710 MACHINE_THREAD_STATE_FLAVOR with the result.
14711 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14712 MACHINE_THREAD_STATE_FIX_NEW.
14713 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14714 too. Add original thread parameter.
14715
14716 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14717
14718 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14719 Remove inline function.
14720
14721 * sysdeps/i386/fpu/libm-test-ulps: Update.
14722 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14723
14724 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14725
14726 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14727 commit.
14728
14729 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14730
14731 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14732 (__sincos_code): Remove define and undefine.
14733 [__FAST_MATH__] (__sincos): Remove inline function.
14734 [__FAST_MATH__] (__sincosf): Remove inline function.
14735 [__FAST_MATH__] (__sincosl): Remove inline function.
14736 (__atan2l): Remove inline functions.
14737 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14738 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14739 function.
14740 (floor): Remove inline function.
14741 (ceil): Likewise.
14742 [__FAST_MATH__] (__ldexp_code): Remove macro.
14743 [__FAST_MATH__] (ldexp): Remove inline function.
14744 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14745 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14746 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14747 [__USE_ISOC99] (__lrint_code): Remove macro.
14748 [__USE_ISOC99] (__llrint_code): Likewise.
14749 [__USE_ISOC99] (lrintf): Remove inline function.
14750 [__USE_ISOC99] (lrint): Likewise.
14751 [__USE_ISOC99] (lrintl): Likewise.
14752 [__USE_ISOC99] (llrint): Likewise.
14753 [__USE_ISOC99] (llrintf): Likewise.
14754 [__USE_ISOC99] (llrintl): Likewise.
14755
14756 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14757
14758 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14759 (__ieee754_sqrtf): Remove.
14760 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14761 (__ieee754_sqrtf): Remove.
14762 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14763 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14764 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14765 (__ieee754_sqrtf): Remove.
14766 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14767 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14768 (sqrtf): Remove.
14769 (sqrtl): Remove.
14770 (__ieee754_sqrt): Remove.
14771 (__ieee754_sqrtf): Remove.
14772 (__ieee754_sqrtl): Remove.
14773 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14774 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14775 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14776 (__ieee754_sqrtf): Remove.
14777 (__ieee754_sqrtl): Remove.
14778
14779 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14780
14781 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14782 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14783 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14784 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14785 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14786 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14787 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14788 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14789 Likewise.
14790 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14791 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14792 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14793 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14794 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14795 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14796 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14797 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14798 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14799 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14800 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14801 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14802 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14803 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14804 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14805 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14806 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14807 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14808 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14809 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14810 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14811 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14812 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14813 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14814 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14815 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14816 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14817 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14818 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14819 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14820 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14821 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14822 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14823 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14824 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14825 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14826 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14827 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14828 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14829 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14830
14831 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14832
14833 * include/math.h (sqrt): Declare with asm redirect.
14834 (sqrtf): Likewise.
14835 (sqrtl): Likewise.
14836 (sqrtf128): Likewise.
14837 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14838 nonlib and libnldbl with -fmath-errno.
14839 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14840 * math/w_sqrt_template.c: Likewise.
14841 * math/w_sqrtf_compat.c: Likewise.
14842 * math/w_sqrtl_compat.c: Likewise.
14843 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14844 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14845 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14846 complex.h.
14847
14848 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14849
14850 * benchtests/Makefile: Define _ISOMAC.
14851 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14852 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14853 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14854 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14855 * benchtests/bench-timing.h: Define attribute_hidden.
14856
14857 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14858
14859 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14860 mov + lsr.
14861
14862 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14863
14864 [BZ #22963]
14865 * localedata/locales/cs_CZ (mon): Rename to...
14866 (alt_mon): This.
14867 (mon): Import from CLDR (genitive case).
14868
14869 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14870
14871 [BZ #22937]
14872 * localedata/locales/el_CY (abmon): Rename to...
14873 (ab_alt_mon): This.
14874 (abmon): Import from CLDR (abbreviated genitive case).
14875 * localedata/locales/el_GR (abmon): Rename to...
14876 (ab_alt_mon): This.
14877 (abmon): Import from CLDR (abbreviated genitive case).
14878
14879 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14880
14881 [BZ #22932]
14882 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14883
14884 2018-03-15 Robert Buj <robert.buj@gmail.com>
14885
14886 [BZ #22848]
14887 * localedata/locales/ca_ES (abmon): Rename to...
14888 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14889 (mon): Rename to...
14890 (alt_mon): This.
14891 (abmon): Import from CLDR (genitive case, month names preceded by
14892 "de" or "d’").
14893 (mon): Likewise.
14894 (abday): Synchronize with CLDR.
14895 (d_t_fmt): Likewise.
14896 (d_fmt): Likewise.
14897 (am_pm): Likewise.
14898
14899 (LC_TIME): Improve indentation.
14900 (LC_TELEPHONE): Likewise.
14901 (LC_NAME): Likewise.
14902 (LC_ADDRESS): Likewise.
14903
14904 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14905
14906 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14907 (lrintf): Remove definitions used only with old GCC.
14908 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14909 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14910 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14911 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14912 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14913 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14914 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14915 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14916 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14917 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14918 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14919 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14920 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14921 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14922 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14923 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14924 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14925 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14926 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14927 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14928 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14929 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14930 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14931 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14932 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14933 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14934 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14935 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14936
14937 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14938
14939 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14940 instruction to unbreak builds with binutils 2.26 and older.
14941
14942 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14943
14944 * sysdeps/aarch64/strncmp.S (count): New macro.
14945 (strncmp): Store misaligned length in SRC1 in COUNT.
14946 (mutual_align): Adjust.
14947 (misaligned8): Load dword at a time when it is safe.
14948
14949 2018-03-12 Zack Weinberg <zackw@panix.com>
14950
14951 [BZ #1190]
14952 [BZ #19476]
14953 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14954 if the _IO_EOF_SEEN bit is already set; update commentary.
14955 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14956 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14957
14958 * support/support_openpty.c, support/tty.h: New files.
14959 * support/Makefile (libsupport-routines): Add support_openpty.
14960
14961 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14962 New test cases.
14963 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14964 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14965
14966 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14967
14968 * po/pt_BR.po: Update translations.
14969
14970 2018-03-12 David Michael <fedora.dm0@gmail.com>
14971
14972 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14973 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14974 get a port to the startup server.
14975
14976 2018-03-11 Zack Weinberg <zackw@panix.com>
14977
14978 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14979 before nldbl-compat.h.
14980
14981 2018-03-10 Zack Weinberg <zackw@panix.com>
14982
14983 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14984 math.h or math_private.h.
14985
14986 * sysdeps/alpha/fpu/s_isnan.c
14987 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14988 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14989 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14990 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14991 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14992 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14993 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14994 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14995 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14996 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14997 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14998 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14999 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
15000 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
15001 Include math_private.h.
15002
15003 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
15004 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
15005 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
15006 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
15007 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
15008 * sysdeps/powerpc/power7/fpu/s_logb.c:
15009 Include math.h and math_private.h.
15010
15011 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
15012 uses of $at in .set noat / .set at.
15013
15014 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
15015
15016 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
15017 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
15018 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
15019 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
15020 Likewise.
15021
15022 2018-03-09 Florian Weimer <fweimer@redhat.com>
15023
15024 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
15025 in comment.
15026
15027 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
15028
15029 [BZ #22919]
15030 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
15031 Add nop before __startcontext, add explaining comments.
15032
15033 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15034
15035 [BZ #22926]
15036 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15037 empty for __SPE__.
15038 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15039 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15040 Do not build hardware transactional code for __SPE__.
15041 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15042 (__lll_trylock_elision): Likewise.
15043 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15044 (__lll_unlock_elision): Likewise.
15045
15046 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15047 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15048 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15049 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15050 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15051 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15052 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15053 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15054 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15055 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15056 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15057 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15058 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15059 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15060 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15061 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15062 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15063 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15064 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15065 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15066 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15067 * sysdeps/unix/sysv/linux/arm/kernel-features.h
15068 (__ASSUME_CLONE_BACKWARDS): Define.
15069 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15070 __clone2 if __NR_clone2 is defined.
15071 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15072 (__ASSUME_CLONE_BACKWARDS): Likewise.
15073 * sysdeps/unix/sysv/linux/i386/kernel-features.h
15074 (__ASSUME_CLONE_BACKWARDS): Likewise.
15075 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15076 (__ASSUME_CLONE2): Likewise.
15077 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15078 (__ASSUME_CLONE_BACKWARDS3): Likewise.
15079 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15080 variants and the define architecture can use.
15081 (__ASSUME_CLONE_DEFAULT): Define as default.
15082 * sysdeps/unix/sysv/linux/mips/kernel-features.h
15083 (__ASSUME_CLONE_BACKWARDS): Likewise.
15084 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15085 (__ASSUME_CLONE_BACKWARDS): Likewise.
15086 * sysdeps/unix/sysv/linux/s390/kernel-features.h
15087 (__ASSUME_CLONE_BACKWARDS2): Likewise.
15088
15089 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
15090
15091 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
15092
15093 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
15094 time.
15095
15096 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
15097 (do_test_limit): Likewise.
15098
15099 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
15100 for every implementation.
15101 (do_test): Likewise.
15102
15103 * benchtests/bench-strncmp.c: Convert output to json.
15104
15105 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
15106
15107 * io/futimens.c: Add missing start-of-file descriptive comment.
15108 * io/utime.c: Likewise.
15109 * misc/futimesat.c: Likewise.
15110 * misc/utimes.c: Likewise.
15111 * sysdeps/mach/hurd/futimesat.c: Likewise.
15112 * sysdeps/mach/hurd/utimes.c: Likewise.
15113 * sysdeps/posix/utime.c: Likewise.
15114 * sysdeps/posix/utimes.c: Likewise.
15115 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15116 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15117 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15118 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15119
15120 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15121
15122 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15123 hurd_futimes.
15124 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15125 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15126 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15127 (__futimens): Move implementation to...
15128 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15129 utime_tvalue_from_tspec): ... new helper functions.
15130 (hurd_futimens): New function.
15131 * sysdeps/mach/hurd/futimesat.c: New file.
15132 * sysdeps/mach/hurd/utimensat.c: New file.
15133
15134 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
15135
15136 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15137 UTIME_OMIT): New macros.
15138 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15139 before reverting to converting time spec to time value and calling
15140 __file_utimes.
15141 * sysdeps/mach/hurd/utime-helper.c: New file.
15142 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15143 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15144 reverting to utime_tvalue_from_tval and __file_utimes.
15145 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15146 (__lutimes): Just call hurd_futimens after lookup.
15147 * sysdeps/mach/hurd/utimes.c: Likewise.
15148
15149 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15150
15151 * bits/sigaction.h: Add include guard.
15152 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15153 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15154 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15155 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15156 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15157 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15158 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15159 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15160 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15161
15162 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15163
15164 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15165 -Wmaybe-uninitialized for -Os.
15166 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15167 this disabling.
15168
15169 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15170
15171 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15172 __INO_T_MATCHES_INO64_T is defined.
15173 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15174 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15175 of definition.
15176 * dirent/alphasort64.c: Likewise.
15177 * dirent/scandir.c: Likewise.
15178 * dirent/scandir64-tail.c: Likewise.
15179 * dirent/scandir64.c: Likewise.
15180 * dirent/scandirat.c: Likewise.
15181 * dirent/scandirat64.c: Likewise.
15182 * dirent/versionsort.c: Likewise.
15183 * dirent/versionsort64.c: Likewise.
15184 * include/dirent.h: Likewise.
15185
15186 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15187 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15188 for socketpair endpoint.
15189 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15190 WRITE_BUFFER_SIZE as buffer size for sending socket.
15191 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15192 issue on system where send is implemented with sendto syscall.
15193 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15194 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15195 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15196 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15197
15198 [BZ #21269]
15199 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15200 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15201 sa_restorer for vDSO case.
15202 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15203
15204 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15205
15206 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15207 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15208 * hurd/hurd/ioctl.h: Include <mach/port.h>
15209 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15210 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15211 <mach/mach_types.h> and <mach/message.h>.
15212 (headers): Move mach/param.h to bits/mach/param.h.
15213 * sysdeps/mach/i386/mach/param.h: Move file to ...
15214 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15215 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15216 of <mach/param.h>.
15217 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15218 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15219 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15220 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15221 trivial, for C++ conformity.
15222 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15223 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15224 Process mig output through $(migheadersed).
15225 * hurd/Makefile (migheadersed): Define variable.
15226 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15227 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15228 headers.
15229 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15230 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15231 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15232 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15233 <bits/types/sigset_t.h>.
15234 [!defined __USE_GNU]: Do not #error out.
15235 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15236 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15237 Include <stddef.h> and <bits/types/sigset_t.h>
15238 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15239 instead of sighandler_t.
15240 * stdlib/errno.h (error_t): Move definition to...
15241 * bits/types/error_t.h: ... new header.
15242 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15243 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15244 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15245 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15246 * hurd/hurd.h: Include <bits/types/error_t.h>
15247 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15248 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15249 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15250 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15251 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15252 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15253 * sysdeps/mach/hurd/futimens.c: New file.
15254
15255 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15256
15257 [BZ #22918]
15258 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15259 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15260 * nscd/gai.c (__nss_hosts_database): Readd definition.
15261 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15262 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15263 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15264
15265 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15266
15267 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15268 (ifunc_one): Likewise.
15269
15270 2018-03-01 DJ Delorie <dj@delorie.com>
15271
15272 [BZ #22342]
15273 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15274 key value.
15275
15276 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15277
15278 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15279 `match_pid' parameter.
15280 (td_ta_thr_iter): Update accordingly.
15281
15282 2018-03-01 Florian Weimer <fweimer@redhat.com>
15283
15284 * nptl/Makefile (install-lib-ldscripts): Remove.
15285 (install): Remove rule.
15286 ($(inst_libdir)/libpthread.so): Likewise.
15287
15288 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15289
15290 [BZ #22896]
15291 * localedata/locales/an_ES: update month and day names,
15292 improve d_fmt, improve postal_fmt, add country_post,
15293 add country_isbn
15294
15295 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15296
15297 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15298 Ukrainian instead of Bulgarian.
15299
15300 2018-03-01 Florian Weimer <fweimer@redhat.com>
15301
15302 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15303 reference.
15304
15305 2018-03-01 Florian Weimer <fweimer@redhat.com>
15306
15307 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15308 * nptl/Makefile (routines): Add pthread_atfork.
15309 (static-only-routines): Set to pthread_atfork.
15310 (libpthread-routines): Remove pthread_atfork.
15311 (libpthread-static-only-routines): Remove.
15312 (install): Update comment.
15313 (libpthread.so): Do not install libpthread_nonshared.a.
15314 (tests): Do not link with libpthread_nonshared.a.
15315 (generated): Remove libpthread_nonshared.a.
15316 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15317 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15318 with libpthread_nonshared.a.
15319
15320 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15321
15322 [BZ #22902]
15323 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15324 (libc_feholdexcept_setroundf128): New macro.
15325 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15326
15327 [BZ #15105]
15328 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15329 libc_hidden_def.
15330 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15331 * include/inttypes.h: New file.
15332
15333 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15334
15335 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15336 -Os in two more places.
15337
15338 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15339
15340 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15341 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15342 be sorted correctly at the moment because of a bug.
15343
15344 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15345
15346 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15347 treat ñ as a primary different character, sync the collation
15348 for Spanish with CLDR.
15349 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15350 * localedata/Makefile: Add new test files.
15351 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15352 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15353 collation order.
15354 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15355 * localedata/am_ET.UTF-8.in: New test file.
15356 * localedata/az_AZ.UTF-8.in: Likewise.
15357 * localedata/be_BY.UTF-8.in: Likewise.
15358 * localedata/ber_DZ.UTF-8.in: Likewise.
15359 * localedata/ber_MA.UTF-8.in: Likewise.
15360 * localedata/bg_BG.UTF-8.in: Likewise.
15361 * localedata/br_FR.UTF-8.in: Likewise.
15362 * localedata/cmn_TW.UTF-8.in: Likewise.
15363 * localedata/crh_UA.UTF-8.in: Likewise.
15364 * localedata/csb_PL.UTF-8.in: Likewise.
15365 * localedata/cv_RU.UTF-8.in: Likewise.
15366 * localedata/cy_GB.UTF-8.in: Likewise.
15367 * localedata/dz_BT.UTF-8.in: Likewise.
15368 * localedata/eo.UTF-8.in: Likewise.
15369 * localedata/es_ES.UTF-8.in: Likewise.
15370 * localedata/fa_IR.UTF-8.in: Likewise.
15371 * localedata/fi_FI.UTF-8.in: Likewise.
15372 * localedata/fil_PH.UTF-8.in: Likewise.
15373 * localedata/fur_IT.UTF-8.in: Likewise.
15374 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15375 * localedata/ha_NG.UTF-8.in: Likewise.
15376 * localedata/ig_NG.UTF-8.in: Likewise.
15377 * localedata/ik_CA.UTF-8.in: Likewise.
15378 * localedata/kk_KZ.UTF-8.in: Likewise.
15379 * localedata/ku_TR.UTF-8.in: Likewise.
15380 * localedata/ky_KG.UTF-8.in: Likewise.
15381 * localedata/ln_CD.UTF-8.in: Likewise.
15382 * localedata/mi_NZ.UTF-8.in: Likewise.
15383 * localedata/ml_IN.UTF-8.in: Likewise.
15384 * localedata/mn_MN.UTF-8.in: Likewise.
15385 * localedata/mr_IN.UTF-8.in: Likewise.
15386 * localedata/mt_MT.UTF-8.in: Likewise.
15387 * localedata/nb_NO.UTF-8.in: Likewise.
15388 * localedata/om_KE.UTF-8.in: Likewise.
15389 * localedata/os_RU.UTF-8.in: Likewise.
15390 * localedata/ps_AF.UTF-8.in: Likewise.
15391 * localedata/ro_RO.UTF-8.in: Likewise.
15392 * localedata/ru_RU.UTF-8.in: Likewise.
15393 * localedata/sc_IT.UTF-8.in: Likewise.
15394 * localedata/se_NO.UTF-8.in: Likewise.
15395 * localedata/sq_AL.UTF-8.in: Likewise.
15396 * localedata/sv_SE.UTF-8.in: Likewise.
15397 * localedata/szl_PL.UTF-8.in: Likewise.
15398 * localedata/tg_TJ.UTF-8.in: Likewise.
15399 * localedata/tk_TM.UTF-8.in: Likewise.
15400 * localedata/tt_RU.UTF-8.in: Likewise.
15401 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15402 * localedata/ug_CN.UTF-8.in: Likewise.
15403 * localedata/uz_UZ.UTF-8.in: Likewise.
15404 * localedata/vi_VN.UTF-8.in: Likewise.
15405 * localedata/yi_US.UTF-8.in: Likewise.
15406 * localedata/yo_NG.UTF-8.in: Likewise.
15407 * localedata/zh_CN.UTF-8.in: Likewise.
15408 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15409 file and fix bugs in the collation.
15410 * localedata/locales/az_AZ: Likewise.
15411 * localedata/locales/be_BY: Likewise.
15412 * localedata/locales/ber_DZ: Likewise.
15413 * localedata/locales/ber_MA: Likewise.
15414 * localedata/locales/bg_BG: Likewise.
15415 * localedata/locales/br_FR: Likewise.
15416 * localedata/locales/br_FR@euro: Likewise.
15417 * localedata/locales/ca_ES: Likewise.
15418 * localedata/locales/cns11643_stroke: Likewise.
15419 * localedata/locales/crh_UA: Likewise.
15420 * localedata/locales/cs_CZ: Likewise.
15421 * localedata/locales/csb_PL: Likewise.
15422 * localedata/locales/cv_RU: Likewise.
15423 * localedata/locales/cy_GB: Likewise.
15424 * localedata/locales/da_DK: Likewise.
15425 * localedata/locales/dz_BT: Likewise.
15426 * localedata/locales/en_CA: Likewise.
15427 * localedata/locales/eo: Likewise.
15428 * localedata/locales/es_CU: Likewise.
15429 * localedata/locales/es_EC: Likewise.
15430 * localedata/locales/es_ES: Likewise.
15431 * localedata/locales/es_US: Likewise.
15432 * localedata/locales/et_EE: Likewise.
15433 * localedata/locales/fa_IR: Likewise.
15434 * localedata/locales/fi_FI: Likewise.
15435 * localedata/locales/fil_PH: Likewise.
15436 * localedata/locales/fur_IT: Likewise.
15437 * localedata/locales/gez_ER@abegede: Likewise.
15438 * localedata/locales/ha_NG: Likewise.
15439 * localedata/locales/hr_HR: Likewise.
15440 * localedata/locales/hsb_DE: Likewise.
15441 * localedata/locales/hu_HU: Likewise.
15442 * localedata/locales/ig_NG: Likewise.
15443 * localedata/locales/ik_CA: Likewise.
15444 * localedata/locales/is_IS: Likewise.
15445 * localedata/locales/iso14651_t1_pinyin: Likewise.
15446 * localedata/locales/kk_KZ: Likewise.
15447 * localedata/locales/ku_TR: Likewise.
15448 * localedata/locales/ky_KG: Likewise.
15449 * localedata/locales/ln_CD: Likewise.
15450 * localedata/locales/lt_LT: Likewise.
15451 * localedata/locales/lv_LV: Likewise.
15452 * localedata/locales/mi_NZ: Likewise.
15453 * localedata/locales/ml_IN: Likewise.
15454 * localedata/locales/mn_MN: Likewise.
15455 * localedata/locales/mr_IN: Likewise.
15456 * localedata/locales/mt_MT: Likewise.
15457 * localedata/locales/nb_NO: Likewise.
15458 * localedata/locales/om_KE: Likewise.
15459 * localedata/locales/os_RU: Likewise.
15460 * localedata/locales/pl_PL: Likewise.
15461 * localedata/locales/ps_AF: Likewise.
15462 * localedata/locales/ro_RO: Likewise.
15463 * localedata/locales/ru_RU: Likewise.
15464 * localedata/locales/ru_UA: Likewise.
15465 * localedata/locales/sc_IT: Likewise.
15466 * localedata/locales/se_NO: Likewise.
15467 * localedata/locales/si_LK: Likewise.
15468 * localedata/locales/sq_AL: Likewise.
15469 * localedata/locales/sv_FI: Likewise.
15470 * localedata/locales/sv_FI@euro: Likewise.
15471 * localedata/locales/sv_SE: Likewise.
15472 * localedata/locales/szl_PL: Likewise.
15473 * localedata/locales/tg_TJ: Likewise.
15474 * localedata/locales/ti_ER: Likewise.
15475 * localedata/locales/tk_TM: Likewise.
15476 * localedata/locales/tl_PH: Likewise.
15477 * localedata/locales/tr_TR: Likewise.
15478 * localedata/locales/tt_RU: Likewise.
15479 * localedata/locales/tt_RU@iqtelif: Likewise.
15480 * localedata/locales/ug_CN: Likewise.
15481 * localedata/locales/uk_UA: Likewise.
15482 * localedata/locales/uz_UZ: Likewise.
15483 * localedata/locales/uz_UZ@cyrillic: Likewise.
15484 * localedata/locales/vi_VN: Likewise.
15485 * localedata/locales/yi_US: Likewise.
15486 * localedata/locales/yo_NG: Likewise.
15487
15488 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15489
15490 * gen-locales.mk: Make test files which contain @ modifiers in their
15491 name work.
15492 * localedata/gen-locale.sh: Likewise.
15493
15494 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15495
15496 * posix/tst-fnmatch.input: Fix results for range expressions
15497 for non C locales.
15498 * posix/tst-regexloc.c: Do not use a range expression for
15499 de_DE.ISO-8859-1 locale.
15500
15501 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15502
15503 * posix/bug-regex5.c: Fix test case because with the new
15504 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15505 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15506 file.
15507
15508 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15509
15510 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15511 downloaded from ISO, the collation order of @-. and space has changed.
15512 Therefore, this test file needed to be adapted.
15513 * localedata/fr_CA.UTF-8.in: Likewise.
15514 * localedata/fr_FR.UTF-8.in: Likewise.
15515 * localedata/uk_UA.UTF-8.in: Likewise.
15516
15517 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15518
15519 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15520 order of ȥ in the new iso14651_t1_common file.
15521 * localedata/pl_PL.UTF-8.in: Likewise.
15522
15523 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15524
15525 * localedata/locales/iso14651_t1_common: Add sections for various
15526 scripts to the iso14651_t1_common file.
15527
15528 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15529
15530 * localedata/locales/iso14651_t1_common: Use the code point of a
15531 character in the fourth collation level instead of IGNORE for all
15532 entries which have IGNORE on all 4 levels.
15533
15534 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15535
15536 * localedata/locales/iso14651_t1_common: Add some convenient collation
15537 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15538 rules similar to those in CLDR.
15539
15540 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15541
15542 * localedata/locales/iso14651_t1_common: The new version of this
15543 file downloaded from ISO contained several syntax errors which
15544 are fixed by this patch.
15545
15546 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15547
15548 * localedata/locales/iso14651_t1_common: replace all <U.....>
15549 with <U000.....> because glibc understands only 4 digit or 8 digit
15550
15551 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15552
15553 * localedata/locales/iso14651_t1_common: Necessary changes
15554 to make the file downloaded from ISO usable by glibc.
15555
15556 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15557
15558 [BZ #14095]
15559 * localedata/locales/iso14651_t1_common: Update file to
15560 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15561
15562 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15563
15564 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15565 of <nptl/pthreadP.h>
15566 (thread_attr_compare): Move function to...
15567 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15568 * sysdeps/nptl/timer_routines.h: ... new header.
15569 * sysdeps/mach/hurd/gai_misc.h: New file.
15570
15571 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15572
15573 * string/strcoll_l.c: Include <libc-diag.h>.
15574 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15575 declarations of seq1 and seq2.
15576
15577 [BZ #15105]
15578 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15579 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15580
15581 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15582
15583 [BZ #22433]
15584 [BZ #22807]
15585 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15586 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15587 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15588 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15589 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15590 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15591
15592 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15593
15594 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15595 macros used in __ptrace_request.
15596
15597 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15598
15599 [BZ #22792]
15600 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15601 to $(CC).
15602 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15603 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15604 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15605 <tcb-offsets.h>.
15606
15607 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15608
15609 [BZ #15105]
15610 * ctype/ctype.c (tolower): Use libc_hidden_def.
15611 (toupper): Likewise.
15612 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15613 [!_ISOMAC] (toupper): Likewise.
15614
15615 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15616
15617 * localedata/Makefile: Remove --quiet argument when
15618 installing locales
15619
15620 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15621
15622 [BZ #17438]
15623 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15624 in d_fmt.
15625 * localedata/locales/pt_PT (LC_TIME): likewise
15626
15627 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15628
15629 [BZ #22646]
15630 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15631 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15632 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15633
15634 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15635
15636 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15637
15638 * nptl/Makefile (routines): Remove unregister-atfork.
15639 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15640 (fork_handler_alloc): Remove function.
15641 (fork_handlers, fork_handler_init): New variables.
15642 (__fork_lock): Rename to atfork_lock.
15643 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15644 to use a dynamic array to add/remove atfork handlers.
15645 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15646 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15647 Remove declaration.
15648 (fork_handler): Remove next, refcntr, and need_signal member.
15649 (__run_fork_handler_type): New enum.
15650 (__run_fork_handlers): New prototype.
15651 * nptl/register-atfork.c: Remove file.
15652 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15653
15654 * sysdeps/nptl/nptl-signals.h: Move to ...
15655 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15656 comments.
15657 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15658 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15659 unnecessary check for SIGTIMER.
15660 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15661 remove unnecessary removal of SIGTIMER.
15662 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15663 include-signals.h rename.
15664 * nptl/pthreadP.h: Likewise.
15665 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15666 __is_internal_signal instead of __nptl_is_internal_signal.
15667
15668 2018-02-22 Andrew Waterman <andrew@sifive.com>
15669
15670 [BZ # 22884]
15671 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15672 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15673 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15674 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15675
15676 2018-02-22 DJ Delorie <dj@delorie.com>
15677
15678 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15679
15680 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15681
15682 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15683 do_misaligned, not misaligned8.
15684
15685 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15686
15687 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15688 Add memcpy_thunderx2.
15689 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15690 Increment to 4.
15691 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15692 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15693 and IS_THUNDERX2PA checks.
15694 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15695 Use macro to set name appropriately.
15696 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15697 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15698 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15699 New macro.
15700 (IS_THUNDERX2): New macro.
15701
15702 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15703
15704 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15705
15706 2018-02-21 Zack Weinberg <zackw@panix.com>
15707
15708 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15709 Define here, unconditionally.
15710 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15711 * libio/libioP.h: Remove #if 0 blocks.
15712 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15713 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15714 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15715
15716 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15717 Assume weak_alias is always defined.
15718
15719 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15720 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15721 Remove #if 0 and #ifdef TODO blocks.
15722 Assume text_set_element is always defined.
15723
15724 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15725 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15726 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15727
15728 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15729 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15730 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15731 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15732 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15733 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15734 Reformat bit flags for _flags field to make occupancy clearer.
15735 Update commentary.
15736 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15737 Keep definitions consistent with those in libio/libio.h.
15738
15739 * libio/libio.h (_IO_file_flags): Remove macro.
15740 All uses changed to _flags.
15741
15742 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15743 (__HAVE_COLUMN, _IO_BE): Don't define.
15744 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15745 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15746 * libio/libioP.h (EOF): Don't define.
15747 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15748 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15749 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15750 testing _IO_UNIFIED_JUMPTABLES.
15751
15752 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15753 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15754 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15755 (_IO_size_t): Delete; all uses changed to size_t.
15756 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15757 (_IO_off_t): Delete; all uses changed to off_t.
15758 (_IO_off64_t): Delete; all uses changed to off64_t.
15759 (_IO_pid_t): Delete; all uses changed to pid_t.
15760 (_IO_uid_t): Delete; all uses changed to uid_t.
15761 (_IO_wint_t): Delete; all uses changed to wint_t.
15762 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15763 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15764 (_IO_cookie_io_functions_t): Delete; all uses changed to
15765 cookie_io_functions_t.
15766 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15767 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15768 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15769 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15770
15771 * libio/iofopncook.c: Remove unnecessary forward declarations.
15772 * libio/iolibio.h: Correct outdated commentary.
15773 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15774 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15775 Remove unnecessary casts.
15776 * stdio-common/getline.c: Use _IO_getdelim directly.
15777 Don't redefine ssize_t.
15778 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15779 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15780 Remove outdated comments.
15781 * stdio-common/vfscanf.c: Don't redefine va_list.
15782
15783 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15784 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15785 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15786 which are always true, and __cplusplus, which is always false.
15787
15788 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15789
15790 [BZ #15105]
15791 [BZ #19463]
15792 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15793 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15794 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15795 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15796 libc_hidden_proto.
15797 [!_ISOMAC] (putc_unlocked): Likewise.
15798 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15799 define inline if [__USE_EXTERN_INLINES].
15800 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15801 putc_unlocked.
15802
15803 [BZ #15105]
15804 [BZ #19463]
15805 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15806 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15807 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15808 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15809 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15810 getc_unlocked.
15811 * time/tzfile.c (__tzfile_read): Likewise.
15812
15813 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15814
15815 [BZ #22517]
15816 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15817
15818 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15819
15820 * io/fcntl.h: Fix a typo in a comment.
15821
15822 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15823
15824 [BZ #22862]
15825 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15826 define _DEFAULT_SOURCE.
15827 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15828
15829 2018-02-21 Florian Weimer <fweimer@redhat.com>
15830
15831 [BZ #20890]
15832 * elf/cache.c (save_cache): Call fsync on temporary file before
15833 renaming it.
15834 (save_aux_cache): Call fdatasync on temporary file before renaming
15835 it.
15836
15837 2018-02-21 Florian Weimer <fweimer@redhat.com>
15838
15839 [BZ #22787]
15840 * include/caller.h: Remove file.
15841 * elf/dl-caller.c: Likewise.
15842 * elf/Makefile (dl-routines): Remove dl-caller.
15843 (shared-only-routines): Do not add dl-caller.
15844 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15845 __check_caller.
15846 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15847 member.
15848 (dl_open_worker): Do not call __check_caller.
15849 (_dl_open): Do not set caller_dl_open member.
15850 * elf/rtld.c (_rtld_global_ro): Do not initialize
15851 _dl_check_caller member.
15852 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15853 _dl_check_caller member.
15854 (_dl_check_caller): Remove declaration.
15855 * sysdeps/unix/sysv/linux/dl-execstack.c
15856 (_dl_make_stack_executable): Do not call __check_caller.
15857
15858 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15859
15860 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15861 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15862
15863 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15864
15865 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15866 description.
15867
15868 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15869
15870 [BZ #16335]
15871 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15872 of 199606L, 200112L, and 200809L.
15873 (_XOPEN_SOURCE): Document special values of 600 and 700.
15874 (_ISOC11_SOURCE): Document macro.
15875 (_ATFILE_SOURCE): Likewise.
15876 (_FORTIFY_SOURCE): Likewise.
15877
15878 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15879
15880 [BZ #15105]
15881 [BZ #19463]
15882 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15883 and define as weak alias of __ferror_unlocked. Use
15884 libc_hidden_weak.
15885 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15886 libc_hidden_proto.
15887 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15888 function if [__USE_EXTERN_INLINES].
15889 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15890 ferror_unlocked.
15891
15892 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15893
15894 [BZ #6889]
15895 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15896
15897 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15898
15899 [BZ #22818]
15900 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15901 the GLIBC_2.1 version.
15902
15903 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15904
15905 [BZ #21508]
15906 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15907 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15908 intl/tst-gettext-de.po from po/de.po by removing the
15909 POT-Creation-Date line.
15910 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15911 ../po/de.po.
15912 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15913 ../po/de.po.
15914
15915 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15916
15917 * mach/Makefile (headers): Add mach/param.h.
15918 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15919 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15920 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15921 (__ptsname_r): Move implementation to...
15922 (__ptsname_internal): ... new function. Add filling the STP
15923 structure.
15924
15925 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15926
15927 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15928 idouble to 1 ULP.
15929
15930 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15931
15932 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15933 syntax.
15934
15935 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15936
15937 * nptl/Makefile (tst-mutex8-ENV): Delete.
15938 * nptl/tst-mutex8.c (check_type):
15939 Add runtime check if mutex will be elided.
15940
15941 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15942
15943 [BZ #20980]
15944 [BZ #21234]
15945 * manual/install.texi (Configuring and compiling): Describe
15946 passing CC and CFLAGS on configure command line, not as
15947 environment variables. Use @code markup on those variables.
15948 Specify what options go in CC and what go in CFLAGS. Note the
15949 requirement to compile with optimization.
15950 * INSTALL: Regenerated.
15951
15952 [BZ #18124]
15953 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15954 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15955 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15956 __sigprocmask instead of sigprocmask.
15957 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15958 Likewise.
15959 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15960 __sigsetjmp and sigprocmask.
15961
15962 [BZ #15105]
15963 * include/argz.h (argz_next): Use libc_hidden_proto.
15964 (__argz_next): Likewise.
15965 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15966 (argz_next): Use libc_hidden_weak.
15967
15968 [BZ #15105]
15969 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15970 libc_hidden_proto.
15971 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15972 libc_hidden_def.
15973
15974 [BZ #15105]
15975 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15976 libc_hidden_proto.
15977 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15978
15979 [BZ #15105]
15980 [BZ #19463]
15981 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15982 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15983 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15984 (__feof_unlocked): New declaration, and inline function if
15985 [__USE_EXTERN_INLINES].
15986 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15987 instead of feof_unlocked.
15988 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15989 * nss/nsswitch.c (nss_parse_file): Likewise.
15990 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15991 Likewise.
15992 * time/getdate.c (__getdate_r): Likewise.
15993 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15994 Define as macro to call __feof_unlocked.
15995
15996 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15997
15998 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15999
16000 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
16001
16002 * math/Makefile: Remove mpexp.c and mplog.c
16003 * sysdeps/i386/fpu/mpexp.c: Delete file.
16004 * sysdeps/i386/fpu/mplog.c: Likewise.
16005 * sysdeps/ia64/fpu/mpexp.c: Likewise.
16006 * sysdeps/ia64/fpu/mplog.c: Likewise.
16007 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
16008 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
16009 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
16010 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
16011 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
16012 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
16013 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
16014 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
16015 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
16016 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16017 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
16018 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
16019 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16020 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
16021 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
16022 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16023
16024 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
16025
16026 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16027
16028 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16029
16030 * sysdeps/sh/libm-test-ulps: Update.
16031
16032 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16033
16034 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
16035 idouble to 1 ULP.
16036
16037 2018-02-12 Zack Weinberg <zackw@panix.com>
16038
16039 [BZ #19239]
16040 * posix/sys/types.h: Don't include sys/sysmacros.h.
16041 * misc/sys/sysmacros.h: Remove the conditional deprecation
16042 warnings for the macros defined by this header.
16043
16044 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16045
16046 * manual/probes.texi: Remove slowexp probes.
16047 * math/Makefile: Remove slowexp.
16048 * sysdeps/generic/math_private.h (__slowexp): Remove.
16049 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16050 document error bounds.
16051 * sysdeps/i386/fpu/slowexp.c: Remove.
16052 * sysdeps/ia64/fpu/slowexp.c: Remove.
16053 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16054 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16055 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16056 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16057 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16058 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16059 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16060 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16061 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16062 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16063 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16064
16065 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
16066
16067 [BZ #13932]
16068 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16069 * benchtests/pow-inputs: Update comment for slow path cases.
16070 * manual/probes.texi (slowpow_p10): Delete removed probe.
16071 (slowpow_p10): Likewise.
16072 * math/Makefile: Remove halfulp.c and slowpow.c.
16073 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16074 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16075 (__halfulp): Remove.
16076 (__slowpow): Remove.
16077 * sysdeps/i386/fpu/halfulp.c: Delete file.
16078 * sysdeps/i386/fpu/slowpow.c: Likewise.
16079 * sysdeps/ia64/fpu/halfulp.c: Likewise.
16080 * sysdeps/ia64/fpu/slowpow.c: Likewise.
16081 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16082 improve comments and add error analysis.
16083 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16084 (power1): Remove function:
16085 (log1): Remove error argument, add error analysis.
16086 (my_log2): Remove function.
16087 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16088 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16089 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
16090 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
16091 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
16092 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
16093 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
16094 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
16095 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
16096 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
16097 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
16098 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16099 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
16100 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16101
16102 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
16103
16104 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
16105 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
16106
16107 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
16108
16109 [BZ #22433]
16110 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16111 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16112 and PTRACE_SETHBPREGS.
16113
16114 2018-02-10 Zack Weinberg <zackw@panix.com>
16115
16116 [BZ #22830]
16117 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16118 correctly.
16119 * malloc/tst-malloc-stats-cancellation.c: New test case.
16120 * malloc/Makefile: Add new test case.
16121
16122 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16123
16124 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16125
16126 2018-02-10 Joseph Myers <joseph@codesourcery.com>
16127
16128 * math/Makefile (libm-narrow-fns): Add add.
16129 (libm-test-funcs-narrow): Likewise.
16130 * math/Versions (GLIBC_2.28): Add narrowing add functions.
16131 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16132 * math/gen-auto-libm-tests.c (test_functions): Add add.
16133 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16134 (NARROW_ADD_ROUND_TO_ODD): Likewise.
16135 (NARROW_ADD_TRIVIAL): Likewise.
16136 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16137 macro.
16138 (__daddl): Likewise.
16139 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16140 dadd.
16141 (CFLAGS-nldbl-dadd.c): New variable.
16142 (CFLAGS-nldbl-fadd.c): Likewise.
16143 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16144 __nldbl_daddl.
16145 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16146 prototype.
16147 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16148 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16149 * math/auto-libm-test-in: Add tests of add.
16150 * math/auto-libm-test-out-narrow-add: New generated file.
16151 * math/libm-test-narrow-add.inc: New file.
16152 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16153 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16154 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16155 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16156 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16157 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16158 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16159 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16160 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16161 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16162 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16163 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16164 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16165 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16166 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16167 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16168 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16169 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16170 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16171 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16172 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16173 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16174 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16175 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16176 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16177 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16178 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16179 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16180 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16181 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16182 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16183 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16188 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16189 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16190 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16191 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16192 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16193 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16194 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16195 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16196 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16197 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16198
16199 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16200 (f128-pairs): New variable.
16201 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16202 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16203 to CFLAGS.
16204 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16205 Also make tests add $(f128-loader-link) to gnulib-tests.
16206
16207 2018-02-09 DJ Delorie <dj@redhat.com>
16208
16209 [BZ #22827]
16210 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16211 64-bit ELF type for 64-bit ELF objects.
16212
16213 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16214
16215 * math/libm-test-driver.c (snan_tests_arg): New variable.
16216 * math/libm-test-support.h (snan_tests_arg): New declaration.
16217 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16218
16219 * math/Makefile (test-type-pairs): New variable.
16220 (test-type-pairs-f64xf128-yes): Likewise.
16221 (tests): Add test-narrow-macros.
16222 (libm-test-funcs-narrow): New variable.
16223 (libm-test-c-narrow): Likewise.
16224 (generated): Add $(libm-test-c-narrow).
16225 (libm-tests-base-narrow): New variable.
16226 (libm-tests-narrow): Likewise.
16227 (libm-tests): Add $(libm-tests-narrow).
16228 (libm-tests-for-type): Handle $(libm-tests-narrow).
16229 (libm-test-c-narrow-obj): New variable.
16230 ($(libm-test-c-narrow-obj)): New rule.
16231 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16232 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16233 $(o-iterator) to set dependencies and CFLAGS.
16234 * math/gen-auto-libm-tests.c: Document use for narrowing
16235 functions.
16236 (output_for_one_input_case): Take argument NARROW.
16237 (generate_output): Likewise. Update call to
16238 output_for_one_input_case.
16239 (main): Take --narrow option. Update call to generate_output.
16240 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16241 (apply_lit): Update call to _apply_lit.
16242 (apply_arglit): New function.
16243 (parse_args): Handle "a" arguments.
16244 (parse_auto_input): Handle format names using ":".
16245 * math/README.libm-test: Document "a" parameter type.
16246 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16247 (ARG_TYPE_TRUE_MIN): Likewise.
16248 (ARG_TYPE_MAX): Likwise.
16249 (ARG_MIN_EXP): Likewise.
16250 (ARG_MAX_EXP): Likewise.
16251 (ARG_MANT_DIG): Likewise.
16252 (TEST_COND_arg_ibm128): Likewise.
16253 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16254 (TEST_COND_arg_fmt): New macro.
16255 (init_max_error): Update prototype.
16256 * math/libm-test-support.c (test_ibm128): New variable.
16257 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16258 instead of using [TEST_COND_ibm128] conditional.
16259 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16260 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16261 [TEST_NARROW] (TEST_MSG): New definition.
16262 (arg_plus_zero): New macro.
16263 (arg_minus_zero): Likewise.
16264 (arg_plus_infty): Likewise.
16265 (arg_minus_infty): Likewise.
16266 (arg_qnan_value_pl): Likewise.
16267 (arg_qnan_value): Likewise.
16268 (arg_snan_value_pl): Likewise.
16269 (arg_snan_value): Likewise.
16270 (arg_max_value): Likewise.
16271 (arg_min_value): Likewise.
16272 (arg_min_subnorm_value): Likewise.
16273 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16274 (RUN_TEST_LOOP_aa_f): New macro.
16275 (TEST_SUFF): New macro.
16276 (TEST_SUFF_STR): Likewise.
16277 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16278 (TEST_COND_any_ibm128): New macro.
16279 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16280 this_func. Update call to init_max_error.
16281 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16282 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16283 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16284 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16285 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16286 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16287 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16288 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16289 * math/test-math-vector.h (TEST_NARROW): Likewise.
16290 * math/test-arg-double.h: New file.
16291 * math/test-arg-float128.h: Likewise.
16292 * math/test-arg-float32x.h: Likewise.
16293 * math/test-arg-float64.h: Likewise.
16294 * math/test-arg-float64x.h: Likewise.
16295 * math/test-arg-ldouble.h: Likewise.
16296 * math/test-math-narrow.h: Likewise.
16297 * math/test-narrow-macros.c: Likewise.
16298 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16299 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16300 test-narrow-macros-ldbl-64.
16301 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16302
16303 * math/bits/mathcalls-narrow.h: New file.
16304 * include/bits/mathcalls-narrow.h: Likewise.
16305 * math/math-narrow.h: Likewise.
16306 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16307 (__MATHCALL_NARROW_ARGS_2): Likewise.
16308 (__MATHCALL_NARROW_ARGS_3): Likewise.
16309 (__MATHCALL_NARROW_NORMAL): Likewise.
16310 (__MATHCALL_NARROW_REDIR): Likewise.
16311 (__MATHCALL_NARROW): Likewise.
16312 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16313 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16314 defined.
16315 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16316 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16317 (libm-narrow-fns): New variable.
16318 (libm-narrow-types-basic): Likewise.
16319 (libm-narrow-types-ldouble-yes): Likewise.
16320 (libm-narrow-types-float128-yes): Likewise.
16321 (libm-narrow-types-float128-alias-yes): Likewise.
16322 (libm-narrow-types): Likewise.
16323 (libm-routines): Add narrowing functions.
16324 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16325 (libc_feholdexcept_setroundf128): New macro.
16326 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16327 * sysdeps/ieee754/float128/float128_private.h: Include
16328 <math/math-narrow.h>.
16329 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16330 Undefine and redefine.
16331 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16332 (libm_alias_float_ldouble): Undefine and redefine.
16333 (libm_alias_double_ldouble): Likewise.
16334
16335 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16336
16337 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16338
16339 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16340 FPCR/FPSR.
16341
16342 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16343
16344 * manual/creature.texi: Convert references to gcc.info to gcc.
16345 * manual/stdio.texi: Likewise.
16346 * manual/string.texi: Likewise.
16347
16348 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16349
16350 [BZ #17979]
16351 * posix/bits/types.h (__int_least8_t): New typedef.
16352 (__uint_least8_t): Likewise.
16353 (__int_least16_t): Likewise.
16354 (__uint_least16_t): Likewise.
16355 (__int_least32_t): Likewise.
16356 (__uint_least32_t): Likewise.
16357 (__int_least64_t): Likewise.
16358 (__uint_least64_t): Likewise.
16359 * sysdeps/generic/stdint.h (int_least8_t): Define using
16360 __int_least8_t.
16361 (int_least16_t): Define using __int_least16_t.
16362 (int_least32_t): Define using __int_least32_t.
16363 (int_least64_t): Define using __int_least64_t.
16364 (uint_least8_t): Define using __uint_least8_t.
16365 (uint_least16_t): Define using __uint_least16_t.
16366 (uint_least32_t): Define using __uint_least32_t.
16367 (uint_least64_t): Define using __uint_least64_t.
16368 * wcsmbs/uchar.h: Include <bits/types.h>.
16369 (char16_t): Define using __uint_least16_t conditional only on
16370 [!__USE_ISOCXX11].
16371 (char32_t): Define using __uint_least32_t conditional only on
16372 [!__USE_ISOCXX11].
16373 * wcsmbs/test-char-types.c: New file.
16374 * wcsmbs/Makefile (tests): Add test-char-types.
16375
16376 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16377 version to 4.0.1.
16378
16379 2018-02-07 Zack Weinberg <zackw@panix.com>
16380
16381 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16382 Delete all contents except for definitions of _G_HAVE_MMAP and
16383 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16384 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16385 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16386 change as above.
16387
16388 * libio/libio.h: Don't include bits/_G_config.h here.
16389 Include stddef.h with __need_wchar_t defined. Include
16390 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16391 Define _IO_iconv_t here, directly.
16392 Don't define _IO_HAVE_ST_BLKSIZE.
16393 * libio/libioP.h: Include _G_config.h here. Move include of
16394 shlib-compat.h up with rest of includes. Simplify conditionals
16395 controlling definition of _IO_JUMPS_OFFSET.
16396
16397 * csu/init.c: Remove always-true #if around entire file.
16398 Don't include stdio.h. Set _IO_stdin_used to hardwired
16399 constant 0x20001, and update commentary.
16400 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16401 Replace all uses of _G_va_list with __gnuc_va_list.
16402 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16403 instead of #if _IO_HAVE_ST_BLKSIZE.
16404 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16405 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16406 not #ifdef.
16407
16408 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16409 multiple-include guard to match.
16410 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16411 into this file.
16412 Remove preprocessor conditionals that are always true and/or
16413 redundant to other preprocessor conditionals in the same nest.
16414 Include shlib-compat.h unconditionally.
16415 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16416 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16417 defined after including stdio.h.
16418 Use __BEGIN_DECLS/__END_DECLS.
16419
16420 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16421 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16422 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16423
16424 2018-02-07 Zack Weinberg <zackw@panix.com>
16425
16426 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16427 New single-type headers split from _G_config.h.
16428 * libio/bits/types/cookie_io_functions_t.h
16429 * libio/bits/types/struct_FILE.h
16430 New single-type headers split from libio.h.
16431
16432 * libio/Makefile: Install the above new headers. Don't install
16433 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16434 bits/libio-ldbl.h.
16435 * libio/_G_config.h, libio/libio.h: Delete file.
16436
16437 * libio/bits/libio.h: Remove improper-inclusion guard.
16438 Include stdio.h and don't repeat anything that it does.
16439 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16440 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16441 __io_read_fn as cookie_read_function_t,
16442 __io_write_fn as cookie_write_function_t,
16443 __io_seek_fn as cookie_seek_function_t,
16444 __io_close_fn as cookie_close_function_t,
16445 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16446 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16447 here, in the "compatibility defines" section. Remove an #if 0
16448 block. Use the "body" macros from bits/types/struct_FILE.h to
16449 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16450 and _IO_ferror_unlocked.
16451 Move prototypes of __uflow and __overflow...
16452
16453 * libio/stdio.h: ...here. Don't include bits/libio.h.
16454 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16455 directly from stdarg.h. Include bits/types/__fpos_t.h,
16456 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16457 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16458 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16459 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16460 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16461 __ssize_t, not _IO_ssize_t. Unconditionally define
16462 BUFSIZ as 8192 and EOF as (-1).
16463
16464 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16465 macros from bits/types/struct_FILE.h instead of _IO_* macros
16466 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16467 instead of _IO_ssize_t.
16468 * libio/bits/stdio2.h: Similarly.
16469
16470 * libio/iolibio.h: Add multiple-include guard.
16471 Include bits/libio.h after stdio.h.
16472 * libio/libioP.h: Add multiple-include guard.
16473 Include stdio.h and bits/libio.h before iolibio.h.
16474
16475 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16476 * include/bits/types/cookie_io_functions_t.h
16477 * include/bits/types/struct_FILE.h: New wrappers.
16478
16479 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16480 Get definitions of _G_fpos_t and _G_fpos64_t from
16481 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16482 respectively. Remove improper-inclusion guards.
16483
16484 * conform/data/stdio.h-data: Update expectations of va_list.
16485 * scripts/check-installed-headers.sh: Remove special case for
16486 libio.h and _G_config.h.
16487
16488 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16489
16490 [BZ #15105]
16491 [BZ #19463]
16492 * include/sys/sysmacros.h [!_ISOMAC]
16493 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16494 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16495 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16496 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16497 libc_hidden_proto.
16498 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16499 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16500 Likewise.
16501 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16502 Undefine and redefine to add use __gnu_dev_ prefix.
16503 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16504 Likewise.
16505 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16506 and define as hidden inline function.
16507 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16508 Likewise.
16509 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16510 Likewise.
16511 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16512 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16513 (gnu_dev_minor): Likewise.
16514 (gnu_dev_makedev): Likewise.
16515 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16516 makedev.
16517 * posix/wordexp.c (exec_comm_child): Likewise.
16518 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16519 instead of minor and __gnu_dev_major instead of major.
16520 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16521 __gnu_dev_major instead of major.
16522 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16523 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16524 instead of gnu_dev_minor.
16525 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16526 (SLAVE_P): Likewise.
16527 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16528 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16529 instead of major.
16530
16531 [BZ #21313]
16532 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16533 in another place.
16534 * locale/weightwc.h (findidx): Likewise.
16535
16536 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16537
16538 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16539 (slowlog_inexact): Likewise
16540 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16541 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16542
16543 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16544
16545 [BZ #22797]
16546 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16547 missing second underscore to parameter name.
16548
16549 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16550
16551 [BZ #14508]
16552 [BZ #15512]
16553 [BZ #17082]
16554 [BZ #20530]
16555 * bits/byteswap.h: Update file comment. Do not include
16556 <bits/byteswap-16.h>.
16557 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16558 constant.
16559 (__bswap_16): Define as inline function.
16560 (__bswap_constant_32): Reformat definition.
16561 (__bswap_32): Always define as inline function, not macro, using
16562 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16563 otherwise __bswap_constant_32.
16564 (__bswap_constant_64): Reformat definition. Do not use
16565 __extension__ here.
16566 (__bswap_64): Always define as inline function, not macro. Use
16567 __extension__ on function definition. Use __builtin_bswap64 if
16568 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16569 * string/test-endian-file-scope.c: New file.
16570 * string/test-endian-sign-conversion.c: Likewise.
16571 * string/Makefile (headers): Remove bits/byteswap-16.h.
16572 (tests): Add test-endian-file-scope and
16573 test-endian-sign-conversion.
16574 (CFLAGS-test-endian-sign-conversion.c): New variable.
16575 * bits/byteswap-16.h: Remove file.
16576 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16577 * sysdeps/ia64/bits/byteswap.h: Likewise.
16578 * sysdeps/m68k/bits/byteswap.h: Likewise.
16579 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16580 * sysdeps/s390/bits/byteswap.h: Likewise.
16581 * sysdeps/tile/bits/byteswap.h: Likewise.
16582 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16583 * sysdeps/x86/bits/byteswap.h: Likewise.
16584
16585 [BZ #17721]
16586 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16587 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16588 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16589 199901L] (__restrict): Define to restrict.
16590
16591 [BZ #19667]
16592 * string/testcopy.c: Include <support/support.h>. Do not include
16593 <malloc.h>. Use <support/test-driver.c>.
16594 (main): Rename to do_test. Make static. Use xmalloc instead of
16595 malloc.
16596
16597 [BZ #13575]
16598 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16599 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16600 (SSIZE_MAX): Define to INT_MAX.
16601 * posix/test-ssize-max.c: New file.
16602 * posix/Makefile (tests): Add test-ssize-max.
16603
16604 [BZ #19668]
16605 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16606 <support/support.h>. Do not include <malloc.h>.
16607 (query_auxv): Use xmalloc instead of malloc.
16608
16609 [BZ #14553]
16610 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16611 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16612 instead of loff_t.
16613
16614 2018-02-06 Florian Weimer <fweimer@redhat.com>
16615
16616 [BZ #18023]
16617 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16618 Use scratch_buffer instead of extend_alloca.
16619
16620 2018-02-06 Zack Weinberg <zackw@panix.com>
16621
16622 * libio/stdio.h: Don't define getc or putc as macros.
16623 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16624 not _IO_getc and _IO_putc.
16625
16626 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16627 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16628
16629 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16630
16631 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16632 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16633
16634 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16635
16636 [BZ #14890]
16637 * elf/elf.h (NT_PRFPREG): New macro.
16638 (NT_S390_VXRS_LOW): Likewise.
16639 (NT_S390_VXRS_HIGH): Likewise.
16640 (NT_S390_GS_CB): Likewise.
16641 (NT_S390_GS_BC): Likewise.
16642 (NT_S390_RI_CB): Likewise.
16643
16644 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16645 (MAP_SYNC): New macro.
16646 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16647 Likewise.
16648 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16649 (MAP_SYNC): Likewise.
16650 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16651 (MAP_SYNC): Likewise.
16652 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16653 (MAP_SYNC): Likewise.
16654 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16655 (MAP_SYNC): Likewise.
16656 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16657 (MAP_SYNC): Likewise.
16658 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16659 (MAP_SYNC): Likewise.
16660 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16661 Likewise.
16662 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16663 Likewise.
16664
16665 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16666 (MAP_SHARED_VALIDATE): New macro.
16667 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16668 (MAP_SHARED_VALIDATE): Likewise.
16669
16670 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16671
16672 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16673 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16674 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16675
16676 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16677
16678 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16679 (DT_NUM): Updated to 35.
16680
16681 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16682
16683 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16684 __builtin_expect with __glibc_likely and __glibc_unlikely.
16685 (elf_machine_rela): Likewise.
16686 (elf_machine_lazy_rel): Likewise.
16687
16688 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16689
16690 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16691 __builtin_expect with __glibc_likely and __glibc_unlikely.
16692 (elf_machine_lazy_rel): Likewise.
16693
16694 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16695
16696 [BZ #22638]
16697 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16698 SHARED.
16699 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16700
16701 2018-02-05 Andreas Schwab <schwab@suse.de>
16702
16703 [BZ #22761]
16704 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16705 string.
16706
16707 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16708
16709 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16710 not check against PTHREAD_STACK_MIN.
16711
16712 2018-02-02 Sean McKean <smckean83@gmail.com>
16713
16714 [BZ #22735]
16715 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16716
16717 2018-02-02 Florian Weimer <fweimer@redhat.com>
16718
16719 [BZ #22753]
16720 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16721 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16722 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16723 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16724 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16725 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16726 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16727 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16728 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16729 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16730 * misc/tst-preadvwritev2.c (do_test): Call it.
16731 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16732
16733 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16734
16735 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16736
16737 * benchtests/bench-memcmp.c: Print json instead of plain text.
16738
16739 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16740 every test run.
16741
16742 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16743
16744 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16745 version to 4.15.
16746 (s390_sthyi): New syscall.
16747
16748 * sysdeps/generic/ldbl-classify-compat.h: New file.
16749 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16750 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16751 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16752 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16753 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16754 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16755 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16756 <ldbl-classify-compat.h>.
16757 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16758 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16759 <ldbl-classify-compat.h>.
16760 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16761 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16762 <ldbl-classify-compat.h>.
16763 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16764 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16765 <ldbl-classify-compat.h>.
16766 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16767 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16768 <ldbl-classify-compat.h>.
16769 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16770 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16771 <ldbl-classify-compat.h>.
16772 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16773 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16774 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16775 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16776 * sysdeps/microblaze/math_private.h: Likewise.
16777 * sysdeps/nios2/math_private.h: Likewise.
16778 * sysdeps/sh/math_private.h: Likewise.
16779
16780 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16781 * sysdeps/m68k/coldfire/math_private.h: ... here.
16782 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16783 * sysdeps/tile/math_private.h: Likewise.
16784 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16785 Remove macro.
16786 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16787 Likewise.
16788
16789 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16790 Remove macro.
16791 (libc_fetestexcept): Likewise.
16792 (libc_feupdateenv_test): Likewise.
16793 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16794 (libc_fetestexcept): Likewise.
16795 (libc_feupdateenv_test): Likewise.
16796 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16797 (libc_fetestexcept): Likewise.
16798 (libc_feupdateenv_test): Likewise.
16799 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16800 (libc_fetestexcept): Likewise.
16801 (libc_feupdateenv_test): Likewise.
16802
16803 * sysdeps/generic/math_private.h
16804 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16805 New inline function.
16806 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16807 Likewise.
16808
16809 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16810 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16811 * sysdeps/generic/math_private.h
16812 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16813 inline function.
16814 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16815 Likewise.
16816 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16817 Likewise.
16818 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16819 Likewise.
16820 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16821 Likewise.
16822 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16823 Likewise.
16824 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16825 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16826 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16827 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16828 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16829 (__fegetenv): Likewise.
16830 (fesetenv): Likewise.
16831 (__fesetenv): Likewise.
16832 (feupdateenv): Likewise.
16833 (__feupdateenv): Likewise.
16834 (fegetround): Likewise.
16835 (__fegetround): Likewise.
16836 (fesetround): Likewise.
16837 (__fesetround): Likewise.
16838
16839 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16840 (feraiseexcept): New macro.
16841 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16842 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16843 Remove macro.
16844 (__feraiseexcept): Likewise.
16845 (feclearexcept): Likewise.
16846 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16847 (__feraiseexcept): Likewise.
16848 (feclearexcept): Likewise.
16849 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16850 (__feraiseexcept): Likewise.
16851 (feclearexcept): Likewise.
16852 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16853 (__feraiseexcept): Likewise.
16854 (feclearexcept): Likewise.
16855 (fetestexcept): Likewise.
16856
16857 * sysdeps/m68k/coldfire/math-tests.h: New file.
16858
16859 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16860 * sysdeps/m68k/bits/fenv.h: ... here.
16861 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16862 not define.
16863 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16864 Likewise.
16865 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16866 Likewise.
16867 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16868 Likewise.
16869 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16870 Likewise.
16871 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16872 Define to 0.
16873 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16874 (__FE_UNDEFINED): New enum constant.
16875 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16876 Do not define.
16877 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16878 Likewise.
16879 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16880 Likewise.
16881 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16882 to match generic bits/fenv.h.
16883 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16884 Do not define.
16885
16886 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16887 packed on bits.
16888 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16889 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16890 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16891 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16892
16893 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16894 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16895 Joseph Myers <joseph@codesourcery.com>
16896
16897 [BZ #21314]
16898 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16899 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16900 computation using c.
16901 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16902 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16903 computation using c.
16904
16905 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16906
16907 * version.h (RELEASE): Set to "development".
16908 (VERSION): Set to "2.27.9000".
16909 * NEWS (2.28): New section.
16910
16911 * version.h (RELEASE): Set to "stable".
16912 (VERSION): Set to "2.27".
16913 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16914
16915 * NEWS: Add the list of bugs fixed in 2.27.
16916
16917 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16918
16919 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16920 against PTHREAD_STACK_MIN.
16921
16922 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16923
16924 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16925 New entries.
16926 (Rafal Luzynski, Andreas Schwab): Update.
16927
16928 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16929
16930 [BZ #10871]
16931 * NEWS: List the languages which actually use the alternative
16932 months feature in this release. Also explain that "alt_mon" and
16933 "ab_alt_mon" are optional.
16934
16935 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16936
16937 [BZ #22765]
16938 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16939
16940 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16941
16942 * manual/install.texi (Tools for Compilation): Update the newest
16943 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16944 * INSTALL: Regenerated.
16945
16946 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16947
16948 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16949 instead of __builtin_expect.
16950
16951 2018-01-30 Florian Weimer <fweimer@redhat.com>
16952
16953 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16954 data.
16955 * nss/tst-nss-getpwent.c (do_test): Likewise.
16956
16957 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16958
16959 [BZ #10871]
16960 * localedata/locales/hr_HR (mon): Rename to...
16961 (alt_mon): This.
16962 (mon): Import from CLDR (genitive case).
16963 (d_t_fmt): Update the comment.
16964
16965 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16966
16967 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16968 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16969 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16970
16971 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16972
16973 * mach/Versions: Fix version when __mach_host_self_ was added.
16974 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16975 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16976 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16977 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16978 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16979 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16980 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16981 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16982 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16983 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16984 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16985 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16986 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16987 || to respect codestyle.
16988 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16989 (do_test_bz20181): Rename accordingly.
16990 * malloc/malloc.c: Include <assert.h>.
16991 (assert): Do not define.
16992 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16993 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16994 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16995 * sysdeps/mach/hurd/hp-timing.h: New file.
16996 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16997
16998 2018-01-29 Darius Rad <darius@bluespec.com>
16999
17000 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
17001
17002 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
17003
17004 * sysdeps/init_array/crti.S (.section .init_array): Add
17005 PREINIT_FUNCTION when defined.
17006 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
17007 * config.h.in: Regenerate.
17008 * manual/platform.texi: Add RISC-V documenation for
17009 __riscv_flush_icache.
17010 * sysdeps/riscv/__longjmp.S: New file.
17011 * sysdeps/riscv/backtrace.c: Likewise.
17012 * sysdeps/riscv/bits/endian.h: Likewise.
17013 * sysdeps/riscv/bits/setjmp.h: Likewise.
17014 * sysdeps/riscv/bits/wordsize.h: Likewise.
17015 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
17016 * sysdeps/riscv/bsd-setjmp.c: Likewise.
17017 * sysdeps/riscv/dl-trampoline.S: Likewise.
17018 * sysdeps/riscv/gccframe.h: Likewise.
17019 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
17020 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
17021 * sysdeps/riscv/machine-gmon.h: Likewise.
17022 * sysdeps/riscv/memusage.h: Likewise.
17023 * sysdeps/riscv/setjmp.S: Likewise.
17024 * sysdeps/riscv/sys/asm.h: Likewise.
17025 * sysdeps/riscv/tls-macros.h: Likewise.
17026 * sysdeps/riscv/dl-tls.h: New file.
17027 * sysdeps/riscv/libc-tls.c: Likewise.
17028 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
17029 * sysdeps/riscv/nptl/tls.h: Likewise.
17030 * sysdeps/riscv/stackinfo.h: Likewise.
17031 * sysdeps/riscv/bits/fenv.h: New file.
17032 * sysdeps/riscv/e_sqrtl.c: Likewise.
17033 * sysdeps/riscv/fpu_control.h: Likewise.
17034 * sysdeps/riscv/math-tests.h: Likewise.
17035 * sysdeps/riscv/nofpu/Implies: Likewise.
17036 * sysdeps/riscv/sfp-machine.h: Likewise.
17037 * sysdeps/riscv/tininess.h: Likewise.
17038 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17039 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17040 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17041 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17042 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17043 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17044 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17045 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17046 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17047 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17048 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17049 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17050 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17051 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17052 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17053 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17054 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17055 * sysdeps/riscv/rvd/s_finite.c: Likewise.
17056 * sysdeps/riscv/rvd/s_fma.c: Likewise.
17057 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17058 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17059 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17060 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17061 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17062 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17063 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17064 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17065 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17066 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17067 * sysdeps/riscv/rvf/fegetround.c: Likewise.
17068 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17069 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17070 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17071 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17072 * sysdeps/riscv/rvf/fesetround.c: Likewise.
17073 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17074 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17075 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17076 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17077 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17078 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17079 * sysdeps/riscv/rvf/math_private.h: Likewise.
17080 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17081 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17082 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17083 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17084 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17085 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17086 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17087 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17088 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
17089 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
17090 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
17091 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
17092 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
17093 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
17094 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
17095 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
17096 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
17097 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
17098 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
17099 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
17100 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
17101 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17102 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
17103 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
17104 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
17105 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
17106 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
17107 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
17108 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
17109 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17110 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17111 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17112 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17113 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17114 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17115 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17116 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17117 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17118 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17119 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17120 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17121 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17122 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17123 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17124 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17125 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17126 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17127 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17128 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17129 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17130 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17131 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17132 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17133 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17134 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17135 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17136 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17137 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17138 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17139 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17140 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17141 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17142 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17143 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17144 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17145 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17146 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17147 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17148 * sysdeps/riscv/Implies: New file.
17149 * sysdeps/riscv/Makefile: Likewise.
17150 * sysdeps/riscv/configure: Likewise.
17151 * sysdeps/riscv/configure.ac: Likewise.
17152 * sysdeps/riscv/nptl/Makefile: Likewise.
17153 * sysdeps/riscv/preconfigure: Likewise.
17154 * sysdeps/riscv/rv64/Implies-after: Likewise.
17155 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17156 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17157 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17158 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17159 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17160 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17161 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17162 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17163 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17164 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17165 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17166 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17167 (Config): Likewise.
17168
17169 2018-01-29 Florian Weimer <fweimer@redhat.com>
17170
17171 [BZ #22701]
17172 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17173 libnsl_hidden_proto.
17174 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17175 libnsl_hidden_proto.
17176 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17177 * nis/Makefile (libnsl-routines): Add nss-default only for
17178 build-obsolete-nsl.
17179 * nis/nis_defaults.c (__nis_default_ttl): Add
17180 libnsl_hidden_nolink_def.
17181 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17182 declaration.
17183 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17184 * nis/ypclnt.c (yp_maplist): Likewise.
17185
17186 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17187
17188 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17189 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17190
17191 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17192
17193 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17194 clean -dxfq for git updates when replacing sources.
17195
17196 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17197 --disable-libcilkrts unconditionally, not just for the final GCC
17198 build for Hurd.
17199
17200 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17201 version to 4.15.
17202
17203 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17204
17205 [BZ #10871]
17206 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17207 case).
17208
17209 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17210
17211 [BZ #10871]
17212 * localedata/locales/be_BY (mon): Rename to...
17213 (alt_mon): This, then synchronize with CLDR (nominative case).
17214 (abmon): Rename to...
17215 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17216 (mon): Import from CLDR (genitive case).
17217 (abmon): Likewise.
17218 * localedata/locales/be_BY@latin (mon): Rename to...
17219 (alt_mon): This.
17220 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17221
17222 * localedata/locales/be_BY@latin (lang_name): Reworded to
17223 "biełaruskaja mova".
17224
17225 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17226
17227 [BZ #10871]
17228 * localedata/locales/el_CY (mon): Renamed to...
17229 (alt_mon): This.
17230 (mon): Import from CLDR (genitive case).
17231 * localedata/locales/el_GR: Likewise.
17232
17233 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17234
17235 [BZ #10871]
17236 * localedata/locales/ru_RU (mon): Rename to...
17237 (alt_mon): This.
17238 (abmon): Rename to...
17239 (ab_alt_mon): This.
17240 (mon): Import from CLDR (genitive case).
17241 (abmon): Copy from the old content except the 5th month which is
17242 now in the genitive case, even when abbreviated.
17243 * localedata/locales/ru_UA: Likewise.
17244 * time/tst-strptime.c (day_tests): Add an actual example of
17245 a difference between %b and %Ob in Russian.
17246
17247 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17248
17249 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17250 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17251 a `c' variable.
17252 * resolv/res-close.c: Include <stdlib.h>.
17253 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17254 <sys/wait.h>, <time.h>, <sys/uio.h>.
17255 (NOT_CANCEL_H): Add inclusion guard.
17256 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17257 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17258 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17259 return 0.
17260 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17261 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17262 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17263 instead of void *.
17264 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17265 timer_ptr2id to cast struct timer_node * to void *.
17266 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17267 --disable-libcilkrts to gcc configure.
17268 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17269 and make them the default for now.
17270 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17271 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17272 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17273 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17274 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17275 MACH_IPC_COMPAT.
17276 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17277 __task_terminate would ever return successfully.
17278 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17279 to global scope.
17280 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17281 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17282 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17283 critical section to make code simpler and avoid warning.
17284 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17285 critical section to make code simpler and avoid warning.
17286 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17287 const char * instead of char *.
17288 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17289 __hurd_file_name_split, hurd_file_name_split,
17290 __hurd_directory_name_split, hurd_directory_name_split,
17291 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17292 hurd_file_name_path_lookup): Make lookup function parameter take a
17293 const char *name instead of char *name.
17294 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17295 __hurd_directory_name_split): Likewise.
17296 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17297 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17298 * sysdeps/mach/hurd/check_native.c: New file.
17299 * sysdeps/mach/hurd/check_pf.c: New file.
17300 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17301 (__freeifaddrs): Define macro to freeifaddrs.
17302 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17303 * sysdeps/mach/libmachuser.abilist: New file.
17304 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17305 (do_test_bz20181): Rename accordingly.
17306 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17307 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17308 <sys/mount.h>.
17309 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17310 version only if __USE_EXTERN_INLINES is defined.
17311 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17312 __hurd_sockfail): Likewise.
17313 (_hurd_fd_get): Always declare functions, and provide inline versions
17314 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17315 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17316 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17317 _hurd_port_set): Always declare functions, and provide inline versions
17318 only if __USE_EXTERN_INLINES and _LIBC are defined and
17319 IS_IN(libc).
17320 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17321 _hurd_critical_section_unlock): Likewise.
17322 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17323 * __hurd_threadvar_location): Likewise.
17324 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17325 _hurd_userlink_clear): Likewise.
17326 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17327 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17328 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17329 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17330 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17331 __spin_lock_locked): Likewise.
17332 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17333 __spin_lock_locked): Likewise.
17334 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17335 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17336 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17337 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17338 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17339 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17340 _POSIX_NO_TRUNC): Define to 0.
17341 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17342 check size against PTHREAD_STACK_MIN.
17343 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17344 IS_IN(libpthread)]: Include <sigsetops.h>.
17345 * mach/Makefile (user-interfaces): Add mach/gnumach.
17346 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17347 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17348 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17349 instead of invalid -1.
17350 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17351 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17352 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17353 <net/ppp_defs.h>.
17354
17355 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17356
17357 * hurd/fcntl-internal.h: New file.
17358
17359 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17360
17361 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17362
17363 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17364
17365 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17366
17367 [BZ #22701]
17368 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17369 Build only shared objects.
17370
17371 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17372
17373 * README: Update for hppa.
17374
17375 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17376
17377 * sysdeps/sparc/fpu/libm-test-ulps: Update
17378 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17379
17380 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17381
17382 Revert:
17383
17384 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17385
17386 [BZ #22563]
17387 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17388 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17389 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17390 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17391 to feature_1.
17392
17393 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17394
17395 [BZ #22563]
17396 * bits/types/__cancel_jmp_buf_tag.h: New file.
17397 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17398 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17399 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17400 * nptl/Makefile (headers): Add
17401 bits/types/__cancel_jmp_buf_tag.h.
17402 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17403 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17404 * sysdeps/nptl/pthread.h: Include
17405 <bits/types/__cancel_jmp_buf_tag.h>.
17406 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17407 __cancel_jmp_buf.
17408 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17409
17410 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17411
17412 [BZ #10871]
17413 * localedata/locales/uk_UA (mon): Renamed to...
17414 (alt_mon): This.
17415 (alt_digits): "0" removed and then renamed to...
17416 (mon): This.
17417 (date_fmt): Definition changed not to use the alternative
17418 digits hack.
17419
17420 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17421
17422 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17423 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17424 * elf/elf.h (EF_RISCV_RVC): New define.
17425 (EF_RISCV_FLOAT_ABI): Likewise.
17426 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17427 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17428 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17429 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17430 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17431 define.
17432 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17433
17434 2018-01-25 Andreas Schwab <schwab@suse.de>
17435
17436 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17437 single quotes.
17438 * sysdeps/gnu/configure: Regenerate.
17439 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17440 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17442 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17443 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17444 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17445 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17446 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17447
17448 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17449
17450 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17451 URL, and run autoconf, make it the default for now.
17452
17453 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17454
17455 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17456 soft-float ColdFire configuration.
17457
17458 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17459 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17460 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17461
17462 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17463 MicroBlaze file.
17464
17465 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17466 ....
17467 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17468 ... here.
17469 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17470 New file.
17471
17472 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17473 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17474 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17475 file.
17476
17477 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17478
17479 [BZ #22742]
17480 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17481 Rename to __reserved and add comment.
17482 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17483 Rename to __reserved.
17484
17485 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17486
17487 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17488 i686-gnu configurations.
17489 (Context.run_builds): Include mig, gnumach and hurd in components
17490 considered.
17491 (Context.checkout): Add mig, gnumach and hurd to components.
17492 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17493 hurd.
17494 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17495 (Config.build): Install gnumach headers, build mig and install
17496 hurd headers for 'gnu' OS.
17497 (Config.install_gnumach_headers): New function.
17498 (Config.install_hurd_headers): Likewise.
17499 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17500 when building for 'gnu' OS.
17501
17502 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17503
17504 * manual/tunables.texi (Hardware Capability Tunables): Fix
17505 spelling.
17506
17507 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17508
17509 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17510 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17511 (ALTMON_11, ALTMON_12): Improve documentation.
17512 * manual/time.texi (strftime): Likewise.
17513
17514 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17515
17516 [BZ #10871]
17517 * localedata/locales/pl_PL: Alternative month names added,
17518 primary month names are genitive now.
17519 * time/tst-strptime.c (day_tests): Actually use a genitive case
17520 of a month name in Polish language.
17521
17522 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17523
17524 [BZ #10871]
17525 * manual/locale.texi: Document ALTMON_1..12 constants for
17526 nl_langinfo. Specify when to use ALTMON instead of MON.
17527 * manual/time.texi (strftime, strptime): Document GNU extension
17528 permitting O modifier with %B and %b. Specify when to use
17529 %OB instead of %B.
17530
17531 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17532
17533 [BZ #10871]
17534 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17535 names, define them as the same as abbreviated month names explicitly.
17536 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17537 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17538 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17539 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17540 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17541 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17542 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17543 _NL_WABALTMON_12): New enum constants.
17544 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17545 wab_alt_mon, and ab_alt_mon_defined members.
17546 (time_output): Output ab_alt_mon and wab_alt_mon members.
17547 (time_read): Read them, initialize them as copies of abmon and wabmon
17548 respectively if they are missing, initialize ab_alt_mon_defined.
17549 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17550 * locale/programs/locfile-kw.h: Regenerate.
17551 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17552 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17553 and ru_RU.UTF-8.
17554 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17555 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17556 (__strftime_internal): Handle %Ob and %Oh formats.
17557 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17558 (__strptime_internal): Handle %Ob and %Oh formats.
17559 * time/tst-strptime.c (day_tests): Add more tests to parse different
17560 forms of month names including the new %Ob format specifier.
17561
17562 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17563
17564 [BZ #10871]
17565 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17566 define them as the same as primary full month names explicitly.
17567 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17568 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17569 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17570 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17571 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17572 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17573 _NL_WALTMON_12): New enum constants.
17574 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17575 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17576 macros.
17577 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17578 walt_mon, and alt_mon_defined members.
17579 (time_output): Output alt_mon and walt_mon members.
17580 (time_read): Read them, initialize them as copies of mon and wmon
17581 respectively if they are missing, initialize alt_mon_defined.
17582 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17583 * locale/programs/locfile-kw.h: Regenerate.
17584 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17585 * localedata/tst-langinfo.c (map): Add tests for the new constants
17586 ALTMON_1 .. ALTMON_12.
17587 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17588 and pl_PL.UTF-8.
17589 * time/strftime_l.c (f_altmonth): New macro.
17590 (__strftime_internal): Handle %OB format.
17591 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17592 (__strptime_internal): Handle %OB format.
17593 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17594 of month names including the new %OB format specifier.
17595
17596 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17597
17598 [BZ #22685]
17599 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17600 from ABORT_TRANSACTION.
17601 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17602 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17603 ABORT_TRANSACTION_IMPL): Likewise.
17604 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17605 Linux code, but remove the code that aborts transactions.
17606
17607 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17608
17609 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17610
17611 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17612
17613 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17614 in date: "2004-14-09" should be "2004-09-14".
17615 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17616 "2003-15-09" should be "2003-09-15".
17617
17618 2018-01-18 Arjun Shankar <arjun@redhat.com>
17619
17620 [BZ #22343]
17621 [BZ #22774]
17622 CVE-2018-6485
17623 CVE-2018-6551
17624 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17625 after padding.
17626 (_int_memalign): check for integer overflow before calling
17627 _int_malloc.
17628 * malloc/tst-malloc-too-large.c: New test.
17629 * malloc/Makefile: Add tst-malloc-too-large.
17630
17631 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17632
17633 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17634 in date: "2017-24-07" should be "2017-07-24".
17635 * localedata/locales/mai_IN: Likewise.
17636 * localedata/locales/mai_NP: Likewise.
17637
17638 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17639
17640 * po/ru.po: Update translations.
17641
17642 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17643
17644 [BZ #22719]
17645 * sysdeps/hppa/backtrace.c: New file.
17646
17647 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17648
17649 [BZ #22715]
17650 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17651 align La_x86_64_retval to VEC_SIZE.
17652
17653 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17654
17655 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17656 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17657
17658 2018-01-16 Florian Weimer <fweimer@redhat.com>
17659
17660 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17661 Move tst-thread-exit-clobber ...
17662 [$(CXX)] (tests-unsupported): ... to here.
17663
17664 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17665
17666 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17667 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17668 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17669 (_dl_aarch64_cap_flags): Update.
17670 (_DL_HWCAP_COUNT): Update.
17671
17672 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17673
17674 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17675 (_DL_HWCAP_LAST): Remove.
17676 (_DL_HWCAP_COUNT): Move to ...
17677 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17678 (_DL_HWCAP_COUNT): ... here.
17679
17680 2018-01-16 Florian Weimer <fweimer@redhat.com>
17681
17682 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17683 mode with GNU extensions.
17684
17685 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17686
17687 * elf/elf.h (NT_ARM_SVE): Define.
17688
17689 2018-01-15 Florian Weimer <fweimer@redhat.com>
17690
17691 [BZ #22636]
17692 * nptl/tst-minstack-throw.cc: New file.
17693 * nptl/Makefile (tests): Add tst-minstack-throw.
17694 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17695 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17696
17697 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17698
17699 * scripts/build-many-glibcs.py (Context.checkout): Default
17700 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17701 version to 1.1.0.
17702
17703 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17704
17705 [BZ #22707]
17706 * elf/elf.h (DF_1_STUB): Define.
17707 (DF_1_PIE): Define.
17708
17709 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17710
17711 [BZ #22697]
17712 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17713 Do not add 0.5 to integer or out-of-range arguments.
17714
17715 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17716
17717 * po/bg.po: Update translations.
17718 * po/cs.po: Likewise.
17719 * po/de.po: Likewise.
17720 * po/ko.po: Likewise.
17721 * po/pl.po: Likewise.
17722 * po/sv.po: Likewise.
17723 * po/uk.po: Likewise.
17724 * po/vi.po: Likewise.
17725
17726 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17727
17728 * aarch64/start.S (_start): Use __wrap_main.
17729 (__wrap_main): New local symbol.
17730
17731 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17732
17733 [BZ #22679]
17734 CVE-2018-1000001
17735 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17736 generic_getcwd if the path returned by getcwd syscall is not absolute.
17737 * io/tst-getcwd-abspath.c: New test.
17738 * io/Makefile (tests): Add tst-getcwd-abspath.
17739
17740 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17741
17742 * malloc/malloc.c (malloc_consolidate): Add size check.
17743
17744 2018-01-12 Florian Weimer <fweimer@redhat.com>
17745
17746 * support/write_message.c (write_message): Preserve errno.
17747 * support/check.c (print_failure): Likewise.
17748 * support/support_test_verify_impl.c (support_test_verify_impl):
17749 Likewise.
17750 * support/support_test_compare_failure.c
17751 (support_test_compare_failure): Likewise.
17752
17753 2018-01-12 Florian Weimer <fweimer@redhat.com>
17754
17755 [BZ #22701]
17756 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17757 Prevent installation of libnsl.so.
17758 (libnsl-inhibit-o): Do not build (or install) static libraries.
17759
17760 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17761
17762 [BZ #22657]
17763 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17764 before the day number which may produce a double space.
17765 (date_fmt): Likewise.
17766
17767 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17768
17769 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17770 instead of fegetenv.
17771
17772 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17773
17774 [BZ #22702]
17775 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17776 comment to say exceptions are discarded.
17777 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17778 __fegetenv.
17779 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17780 be enabled.
17781
17782 2018-01-11 Florian Weimer <fweimer@redhat.com>
17783
17784 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17785 and error message.
17786
17787 2018-01-11 Florian Weimer <fweimer@redhat.com>
17788
17789 [BZ #22636]
17790 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17791 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17792
17793 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17794
17795 [BZ #22693]
17796 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17797 negative arguments in test for NaN or infinity argument.
17798
17799 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17800
17801 * po/libc.pot: Regenerate.
17802
17803 2018-01-10 Florian Weimer <fweimer@redhat.com>
17804
17805 [BZ #22636]
17806 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17807 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17808
17809 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17810
17811 * hurd/hurd/fd.h: Include <fcntl.h>
17812 (__hurd_at_flags): New function.
17813 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17814 with call to __hurd_at_flags.
17815 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17816 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17817 __faccessat
17818 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17819 (__access_noerrno): Use __faccessat_common instead of access_common.
17820 (__access): Likewise.
17821 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17822 with a call to __faccessat.
17823 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17824 (__faccessat_common): ... this. Move implementation of __access into it when
17825 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17826 reauthenticate_cwdir_at helper to implement AT mechanism.
17827 (__faccessat_noerrno): New function, just calls __faccessat_common.
17828 (__faccessat): New function, just calls __faccessat_common.
17829 (faccessat): Define weak alias.
17830
17831 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17832
17833 [BZ #22691]
17834 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17835 (CFLAGS-s_fmaxmagl.c): New variable.
17836 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17837
17838 [BZ #22690]
17839 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17840 long int for arguments of possibly overflowing addition or
17841 subtraction.
17842 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17843
17844 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17845
17846 [BZ #22688]
17847 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17848 (CFLAGS-e_remainderl.c): New variable.
17849
17850 [BZ #22687]
17851 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17852 variable.
17853 (CFLAGS-s_cacoshl.c): Likewise.
17854 (CFLAGS-s_casinhl.c): Likewise.
17855 (CFLAGS-s_catanl.c): Likewise.
17856 (CFLAGS-s_catanhl.c): Likewise.
17857 (CFLAGS-s_cexpl.c): Likewise.
17858 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17859 (CFLAGS-s_csinhl.c): Likewise.
17860 (CFLAGS-s_clogl.c): Likewise.
17861 (CFLAGS-s_clog10l.c): Likewise.
17862 (CFLAGS-s_csinl.c): Likewise.
17863 (CFLAGS-s_csqrtl.c): Likewise.
17864
17865 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17866 2017-01-09 Svante Signell <svante.signell@gmail.com>
17867
17868 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17869 (_hurd_exec_paths): New function.
17870 * hurd/hurd.h (_hurd_exec): Deprecate function.
17871 (_hurd_exec_paths): Declare function.
17872 * hurd/Versions: Export _hurd_exec_paths.
17873 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17874 (__execve): Use __getcwd to build absolute path, and use
17875 _hurd_exec_paths instead of _hurd_exec.
17876 * sysdeps/mach/hurd/spawni.c: Likewise.
17877 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17878 _hurd_exec.
17879
17880 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17881
17882 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17883 test instead of failing in case of ENOENT returned by posix_openpt.
17884
17885 2018-01-08 Florian Weimer <fweimer@redhat.com>
17886
17887 resolv: Support binary labels in test framework.
17888 * support/resolv_test.c (struct to_be_freed): Remove.
17889 (struct compressed_name): New.
17890 (allocate_compressed_name, ascii_tolower)
17891 (compare_compressed_name): New functions.
17892 (struct resolv_response_builder): Update type of
17893 compression_offsets for use with tsearch. Rempve to_be_freed.
17894 (response_push_pointer_to_free): Remove function.
17895 (resolv_response_add_name): Rewrite using struct compressed_name
17896 and tsearch instead of hsearch_r.
17897 (response_builder_allocate): Remove initialization of
17898 compression_offsets.
17899 (response_builder_free): Update for removal of to_be_freed. Use
17900 tdestroy instead of hdestroy_r.
17901 * resolv/Makefile (tests): Add tst-resolv-binary.
17902 (tst-resolv-binary): Link with -lresolv -lpthread.
17903
17904 2018-01-08 Florian Weimer <fweimer@redhat.com>
17905
17906 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17907 time. Pass positive flag instead of negative flag to
17908 support_test_compare_failure.
17909 (support_test_compare_failure): Change negative parameter to
17910 positive.
17911 * support/support_test_compare_failure.c (report)
17912 (support_test_compare_failure): Likewise.
17913 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17914 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17915
17916 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17917
17918 [BZ #22637]
17919 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17920 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17921 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17922 stacksize.
17923 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17924
17925 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17926
17927 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17928 Add s_sincosf-sse2 and s_sincosf-fma.
17929 (CFLAGS-s_sincosf-fma.c): New.
17930 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17931 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17932 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17933 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17934 __sincosf is defined.
17935
17936 2018-01-08 Florian Weimer <fweimer@redhat.com>
17937
17938 * nptl/tst-thread-exit-clobber.cc: New file.
17939 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17940 C++11 mode.
17941 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17942 (tests): Add tst-thread-exit-clobber.
17943 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17944
17945 2018-01-08 Florian Weimer <fweimer@redhat.com>
17946
17947 * support/check.h (support_static_assert): Define.
17948 (TEST_COMPARE): Use it.
17949
17950 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17951
17952 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17953 [!__RLIM_T_MATCHES_RLIM64_T]
17954 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17955 __getrlimit64. Add libc_hidden_weak.
17956
17957 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17958
17959 * elf/elf.h (R_RISCV_NONE): New define.
17960 (R_RISCV_32): Likewise.
17961 (R_RISCV_64): Likewise.
17962 (R_RISCV_RELATIVE): Likewise.
17963 (R_RISCV_COPY): Likewise.
17964 (R_RISCV_JUMP_SLOT): Likewise.
17965 (R_RISCV_TLS_DTPMOD32): Likewise.
17966 (R_RISCV_TLS_DTPMOD64): Likewise.
17967 (R_RISCV_TLS_DTPREL32): Likewise.
17968 (R_RISCV_TLS_DTPREL64): Likewise.
17969 (R_RISCV_TLS_TPREL32): Likewise.
17970 (R_RISCV_TLS_TPREL64): Likewise.
17971 * Makerules (make-link-multidir): Make directories before linking into
17972 them.
17973 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17974 define.
17975 (VDSO_HASH_LINUX_4_15): Likewise.
17976 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17977 in subdirectories of lib.
17978 * nptl/Makefile (/librt.so): Always depend on
17979 "$(shared-thread-library)".
17980
17981 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17982
17983 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17984 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17985 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17986 (___tls_get_addr).
17987 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17988 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17989 "-O2 -march=i686".
17990 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17991 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17992 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17993 * sysdeps/gnu/glob-lstat-compat.c: New file.
17994 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17995 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17996
17997 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17998
17999 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
18000 Reserve 16 chars to reloc_addr before calling _itoa_word.
18001
18002 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18003
18004 [BZ #22678]
18005 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
18006 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
18007
18008 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
18009 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
18010
18011 * resource/tst-getrlimit.c: Add copyright header.
18012
18013 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18014 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18015
18016 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18017 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
18018 Define __GI_getrlimit64 as weak alias of __getrlimit64.
18019 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
18020 instead.
18021 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18022 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
18023 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
18024 RLIM64_INFINITY): Fix values to match the kernel ones.
18025 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
18026 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
18027 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
18028 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
18029 getrlimit64@@GLIBC_2_27.
18030 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
18031 and setrlimit64.
18032 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
18033 getrlimit, setrlimit, getrlimit64 and setrlimit64.
18034 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
18035 setrlimit, getrlimit64 and setrlimit64.
18036
18037 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
18038
18039 [BZ #22648]
18040 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18041 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18042
18043 2018-01-04 Joseph Myers <joseph@codesourcery.com>
18044
18045 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18046 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18047 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18048
18049 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18050
18051 [BZ #15479]
18052 [BZ #22666]
18053 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18054 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18055
18056 [BZ #15479]
18057 [BZ #22665]
18058 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18059 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18060 * sysdeps/alpha/fpu/s_floor.c: Likewise.
18061 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18062
18063 2018-01-04 Florian Weimer <fweimer@redhat.com>
18064
18065 [BZ #22667]
18066 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18067 Align the stack before calling exit.
18068 * stdlib/tst-makecontext-align.c: New file.
18069 * stdlib/Makefile (tests): Add tst-makecontext-align.
18070
18071 2018-01-04 Florian Weimer <fweimer@redhat.com>
18072
18073 Add support for calling dlvsym from libc.so.
18074 * include/dlfcn.h (__libc_dlvsym): Declare.
18075 * elf/Makefile (tests-static-internal): Add
18076 tst-libc_dlvsym-static.
18077 (tests-internal): Add tst-libc_dlvsym.
18078 (modules-names): Add tst-libc_dlvsym-dso.
18079 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18080 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18081 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18082 object tst-libc_dlvsym-dso.so needs to be built before running
18083 these tests.
18084 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18085 * elf/Versions: Export __libc_dlvsym.
18086 * elf/dl-libc.c (struct do_dlvsym_args): New.
18087 (do_dlvsym, __libc_dlvsym): New functions.
18088 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
18089 (_dl_open_hook2): New variable.
18090 (__libc_register_dl_open_hook): Set it.
18091 * elf/tst-libc_dlvsym-dso.c: New file.
18092 * elf/tst-libc_dlvsym-static.c: Likewise.
18093 * elf/tst-libc_dlvsym.c: Likewise.
18094 * elf/tst-libc_dlvsym.h: Likewise.
18095
18096 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18097
18098 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
18099 include <sys/mount.h>.
18100
18101 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
18102
18103 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
18104 Add __NO_MATH_ERRNO__ check.
18105
18106 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18107
18108 * sysdeps/mips/mips32/libm-test-ulps: Update.
18109 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18110
18111 2018-01-02 Florian Weimer <fweimer@redhat.com>
18112
18113 * misc/tst-pselect.c: Add copyright header.
18114
18115 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18116
18117 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18118 comment.
18119 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18120 comment.
18121 (settrlimit): Rename into setrlimit.
18122 (__sttrlimit): Rename into __setrlimit.
18123
18124 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18125 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18126 never defined in that case.
18127
18128 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18129
18130 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18131
18132 * sysdeps/arm/libm-test-ulps: Update.
18133
18134 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18135 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18136
18137 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18138
18139 * NEWS: Add cosf and sincosf to list of optimized functions.
18140
18141 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18142
18143 [BZ #22660]
18144 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18145 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18146 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18147 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18148
18149 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18150
18151 [BZ #22433]
18152 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18153
18154 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18155 making a copy of it.
18156
18157 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18158
18159 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18160 trailing whitespace removed.
18161 * scripts/config.guess: Update to version 2018-01-01.
18162 * scripts/config.sub: Update to version 2018-01-01.
18163 * scripts/move-if-change: Update from gnulib.
18164
18165 * NEWS: Update copyright dates.
18166 * catgets/gencat.c (print_version): Likewise.
18167 * csu/version.c (banner): Likewise.
18168 * debug/catchsegv.sh: Likewise.
18169 * debug/pcprofiledump.c (print_version): Likewise.
18170 * debug/xtrace.sh (do_version): Likewise.
18171 * elf/ldconfig.c (print_version): Likewise.
18172 * elf/ldd.bash.in: Likewise.
18173 * elf/pldd.c (print_version): Likewise.
18174 * elf/sotruss.sh: Likewise.
18175 * elf/sprof.c (print_version): Likewise.
18176 * iconv/iconv_prog.c (print_version): Likewise.
18177 * iconv/iconvconfig.c (print_version): Likewise.
18178 * locale/programs/locale.c (print_version): Likewise.
18179 * locale/programs/localedef.c (print_version): Likewise.
18180 * login/programs/pt_chown.c (print_version): Likewise.
18181 * malloc/memusage.sh (do_version): Likewise.
18182 * malloc/memusagestat.c (print_version): Likewise.
18183 * malloc/mtrace.pl: Likewise.
18184 * manual/libc.texinfo: Likewise.
18185 * nptl/version.c (banner): Likewise.
18186 * nscd/nscd.c (print_version): Likewise.
18187 * nss/getent.c (print_version): Likewise.
18188 * nss/makedb.c (print_version): Likewise.
18189 * posix/getconf.c (main): Likewise.
18190 * scripts/test-installation.pl: Likewise.
18191 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18192
18193 * All files with FSF copyright notices: Update copyright dates
18194 using scripts/update-copyrights.
18195 * locale/programs/charmap-kw.h: Regenerated.
18196 * locale/programs/locfile-kw.h: Likewise.
18197
18198 2017-12-31 Zack Weinberg <zackw@panix.com>
18199
18200 * libio/bits/libio-ldbl.h: Correct check for improper
18201 inclusion. Add own multiple include guard.
18202
18203 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18204 Dmitry V. Levin <ldv@altlinux.org>
18205
18206 [BZ #22625]
18207 CVE-2017-16997
18208 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18209 string token expansion. Check for NULL pointer or empty string possibly
18210 returned by expand_dynamic_string_token.
18211 (decompose_rpath): Check for empty path after dynamic string
18212 token expansion.
18213
18214 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18215
18216 [BZ #22433]
18217 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18218
18219 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18220 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18221 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18222 and PTRACE_SYSCALL.
18223 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18224 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18225 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18226 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18227 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18228 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18229
18230 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18231 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18232 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18233 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18234 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18235 bits/ptrace-shared.h.
18236 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18237 <bits/ptrace-shared.h>.
18238 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18239 __ptrace_peeksiginfo_flags, ptrace): Remove.
18240 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18241 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18242 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18243 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18244 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18245
18246 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18247
18248 [BZ #17804]
18249 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18250 end of the loop. Improve comments.
18251
18252 2017-12-29 Zack Weinberg <zackw@panix.com>
18253
18254 [BZ #22615]
18255 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18256 might be set on success.
18257
18258 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18259
18260 [BZ #22611]
18261 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18262 is unchanged on success.
18263
18264 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18265
18266 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18267 updated.
18268 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18269 expand_dynamic_string_token): Likewise.
18270 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18271 is_path argument.
18272
18273 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18274 contains ':'.
18275
18276 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18277 is set and name contains ':', and all code depending on these checks.
18278
18279 2017-12-24 Zack Weinberg <zackw@panix.com>
18280
18281 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18282 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18283 respectively.
18284 * libio/libio.h: Rename the original version of this file to
18285 libio/bits/libio.h. Error out if not included by stdio.h or the
18286 stub libio.h.
18287 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18288 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18289 if not included by bits/libio.h or the stub _G_config.h.
18290 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18291 sysdeps/unix/sysv/linux/bits. Error out if not included by
18292 bits/libio.h or the stub _G_config.h.
18293 * libio/stdio.h: Include bits/libio.h, not libio.h.
18294 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18295 well as libio.h and _G_config.h.
18296
18297 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18298 * libio/strfile.h, stdio-common/vfscanf.c
18299 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18300 Include stdio.h, not _G_config.h nor libio.h.
18301 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18302 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18303
18304 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18305
18306 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18307
18308 [BZ #22347]
18309 * stdlib/getrandom.c (getrandom): Fix comment.
18310 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18311
18312 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18313
18314 [BZ #21161]
18315 * manual/arith.texi (strtoul): Fix a typo.
18316
18317 [BZ #22596]
18318 * manual/arith.texi (finite): Fix the description of the return
18319 value.
18320
18321 2017-12-22 Eric Blake <ebb9@byu.net>
18322
18323 Avoid gcc warnings on cygwin
18324 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18325 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18326 Avoid unused variable.
18327
18328 2017-12-22 Florian Weimer <fweimer@redhat.com>
18329
18330 * io/Makefile (routines): Add copy_file_range.
18331 (tests): Add tst-copy_file_range.
18332 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18333 * io/Versions (GLIBC_2.27): Export copy_file_range.
18334 * io/copy_file_range-compat.c: New file.
18335 * io/copy_file_range.c: Likewise.
18336 * io/tst-copy_file_range-compat.c: Likewise.
18337 * io/tst-copy_file_range.c: Likewise.
18338 * manual/llio.texi (Copying File Data): New section.
18339 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18340 * support/Makefile (libsupport-routines): Add support-xfstat,
18341 xftruncate, xlseek.
18342 * support/support-xfstat.c: New file.
18343 * support/xftruncate.c: Likewise.
18344 * support/xlseek.c: Likewise.
18345 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18346 * sysdeps/unix/sysv/linux/**.abilist: Update.
18347 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18348
18349 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18350
18351 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18352 disable-multi-arch variant to aarch64-linux-gnu.
18353
18354 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18355
18356 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18357 trailing whitespace removed.
18358 * scripts/config.guess: Update to version 2017-12-17.
18359 * scripts/config.sub: Update to version 2017-11-23.
18360 * scripts/install-sh: Update to version 2017-09-23.17.
18361 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18362
18363 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18364
18365 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18366 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18367 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18368 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18369 * sysdeps/tile/crtn.S: Likewise.
18370 * sysdeps/tile/dl-start.S (_start): Likewise.
18371 * sysdeps/tile/dl-trampoline.S: Likewise.
18372 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18373 * sysdeps/tile/start.S (_start): Likewise.
18374 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18375 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18376 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18377 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18378 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18379 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18380 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18381
18382 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18383 comment.
18384 * sysdeps/tile/preconfigure: Remove tilegx folder.
18385 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18386 * sysdeps/tile/Implies: ... here.
18387 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18388 * sysdeps/tile/Makefile: ... here.
18389 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18390 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18391 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18392 * sysdeps/tile/bits/wordsize.h: ... here.
18393 * sysdeps/tile/tilegx/*: Move to ...
18394 * sysdeps/tile/*: ... here.
18395 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18396 * sysdeps/tile/tilegx32/Implies: ... here.
18397 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18398 * sysdeps/tile/tilegx64/Implies: ... here.
18399 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18400 to ...
18401 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18402 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18403 * sysdeps/unix/sysv/linux/tile/*: ... here.
18404 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18405 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18406 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18407 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18408
18409 * README: Remove tilepro-*-linux-gnu from supported architecture.
18410 * scripts/build-many-glibcs.py: Likewise.
18411 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18412 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18413 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18414 elf_machine_matches_host, elf_machine_dynamic,
18415 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18416 howto, elf_machine_rela): Likewise.
18417 * sysdeps/tile/dl-start.S (_start): Likewise.
18418 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18419 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18420 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18421 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18422 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18423 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18424 Likewise.
18425 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18426 * sysdeps/tile/preconfigure: Likewise.
18427 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18428 POINTER_CHK_GUARD): Likewise.
18429 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18430 * sysdeps/tile/start.S (_start): Likewise.
18431 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18432 Likewise.
18433 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18434 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18435 CMOVNEZ): Remove.
18436 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18437 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18438 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18439 Likewise.
18440 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18441 * sysdeps/tile/tilepro/Implies: Remove file.
18442 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18443 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18444 * sysdeps/tile/tilepro/memchr.c: Likewise.
18445 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18446 * sysdeps/tile/tilepro/memset.c: Likewise.
18447 * sysdeps/tile/tilepro/memusage.h: Likewise.
18448 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18449 * sysdeps/tile/tilepro/strchr.c: Likewise.
18450 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18451 * sysdeps/tile/tilepro/strlen.c: Likewise.
18452 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18453 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18454 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18455 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18456 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18457 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18458 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18459 Likewise.
18460 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18461 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18462 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18463 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18464 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18465 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18466 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18467 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18468 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18469 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18470 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18471 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18472 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18473 tilepro mention in comment.
18474
18475 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18476 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18477 * nptl/pthread_join_common.c: New file: common function used on
18478 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18479 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18480 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18481 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18482 (cleanup): Move definition to pthread_join_common.c.
18483 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18484 Remove superflous checks.
18485 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18486 Likewise.
18487
18488 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18489
18490 * sysdeps/aarch64/libm-test-ulps: Update.
18491
18492 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18493
18494 * sysdeps/aarch64/memset.S (MEMSET): Define.
18495
18496 2017-12-20 Florian Weimer <fweimer@redhat.com>
18497
18498 [BZ #22635]
18499 nptl: Provide full implementation of pthread_self in libc.so.
18500 * nptl/Makefile (routines): Add pthread_self.
18501 (libpthread-routines): Replace pthread_self with
18502 compat-pthread_self.
18503 * nptl/forward.c (pthread_self): Remove.
18504 * nptl/nptl-init.c (pthread_functions): Do not initialize
18505 ptr_pthread_self.
18506 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18507 * nptl/compat-pthread_self.c: New file.
18508 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18509 Remove ptr_pthread_self.
18510
18511 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18512
18513 * posix/regcomp.c: Fix spelling in comments.
18514 * posix/regex.h: Likewise.
18515 * posix/regex_internal.c: Likewise.
18516 * posix/regexec.c: Likewise.
18517
18518 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18519
18520 [BZ #22377]
18521 * math/Makefile [C++] (tests): Add test for iseqsig.
18522 * math/math.h [C++] (iseqsig): New implementation, which does
18523 not rely on __MATH_TG/__builtin_types_compatible_p.
18524 * math/test-math-iseqsig.cc: New file.
18525 * sysdeps/powerpc/powerpc64le/Makefile
18526 (CFLAGS-test-math-iseqsig.cc): New variable.
18527
18528 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18529
18530 * elf/dl-load.c (is_trusted_path): Remove.
18531 (fillin_rpath): Remove check_trusted argument and its use,
18532 all callers changed.
18533
18534 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18535
18536 [BZ #22630]
18537 * Makeconfig (link-pie-before-libc): Replace -pie with
18538 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18539 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18540 (tst-dlopen-aout-no-pie): New.
18541 (LDFLAGS-tst-prelink): Removed.
18542 (tst-prelink-no-pie): New.
18543 (LDFLAGS-tst-main1): Removed.
18544 (tst-main1-no-pie): New.
18545 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18546 (tst-gmon-no-pie): New.
18547
18548 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18549
18550 * manual/install.texi: Document that --enable-static-pie
18551 implies PIE.
18552 * INSTALL: Regenerated.
18553
18554 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18555
18556 [BZ #21309]
18557 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18558 unsigned.
18559
18560 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18561
18562 Revert:
18563
18564 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18565
18566 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18567
18568 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18569
18570 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18571 <errno.h>. Include "eexp.tbl".
18572 (half): New constant.
18573 (one): Likewise.
18574 (__ieee754_exp): Rewrite.
18575 (__slowexp): Remove prototype.
18576 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18577 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18578 * sysdeps/i386/fpu/slowexp.c: Likewise.
18579 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18580 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18581 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18582 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18583 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18584 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18585 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18586 comment.
18587 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18588 (CPPFLAGS-slowexp.c): Remove variable.
18589 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18590 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18591 (CFLAGS-slowexp-fma.c): Remove variable.
18592 (CFLAGS-slowexp-fma4.c): Likewise.
18593 (CFLAGS-slowexp-avx.c): Likewise.
18594 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18595 define as macro.
18596 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18597 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18598 * math/Makefile (type-double-routines): Remove slowexp.
18599 * manual/probes.texi (slowexp_p6): Remove.
18600 (slowexp_p32): Likewise.
18601
18602 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18603
18604 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18605 arithmetic.
18606
18607 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18608
18609 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18610
18611 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18612
18613 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18614
18615 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18616 <errno.h>. Include "eexp.tbl".
18617 (half): New constant.
18618 (one): Likewise.
18619 (__ieee754_exp): Rewrite.
18620 (__slowexp): Remove prototype.
18621 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18622 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18623 * sysdeps/i386/fpu/slowexp.c: Likewise.
18624 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18625 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18626 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18627 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18628 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18629 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18630 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18631 comment.
18632 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18633 (CPPFLAGS-slowexp.c): Remove variable.
18634 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18635 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18636 (CFLAGS-slowexp-fma.c): Remove variable.
18637 (CFLAGS-slowexp-fma4.c): Likewise.
18638 (CFLAGS-slowexp-avx.c): Likewise.
18639 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18640 define as macro.
18641 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18642 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18643 * math/Makefile (type-double-routines): Remove slowexp.
18644 * manual/probes.texi (slowexp_p6): Remove.
18645 (slowexp_p32): Likewise.
18646
18647 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18648 James Clarke <jrtc27@jrtc27.com>
18649
18650 [BZ #22603]
18651 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18652 addition.
18653
18654 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18655
18656 [BZ #22605]
18657 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18658 code.
18659
18660 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18661
18662 [BZ #22563]
18663 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18664 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18665 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18666 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18667 to feature_1.
18668
18669 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18670
18671 [BZ #22563]
18672 * bits/types/__cancel_jmp_buf_tag.h: New file.
18673 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18674 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18675 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18676 * nptl/Makefile (headers): Add
18677 bits/types/__cancel_jmp_buf_tag.h.
18678 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18679 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18680 * sysdeps/nptl/pthread.h: Include
18681 <bits/types/__cancel_jmp_buf_tag.h>.
18682 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18683 __cancel_jmp_buf.
18684 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18685
18686 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18687
18688 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18689 --enable-static-pie variants to x86_64, x32 and i686.
18690
18691 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18692
18693 [BZ #22631]
18694 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18695 argument for attrubutes. All callers changed.
18696 (__inline_mathop1): Likewise. All callers changed.
18697 (__inline_mathop): Likewise. All callers changed.
18698 [__USE_MISC] (scalbn): Use __inline_forward instead of
18699 __inline_forward_c.
18700 [__USE_ISOC99] (scalbln): Likewise.
18701 [__USE_ISOC99] (nearbyint): Likewise.
18702 [__USE_ISOC99] (lrint): Likewise.
18703 [__USE_MISC] (scalbnf): Likewise.
18704 [__USE_ISOC99] (scalblnf): Likewise.
18705 [__USE_ISOC99] (nearbyintf): Likewise.
18706 [__USE_ISOC99] (lrintf): Likewise.
18707 [__USE_MISC] (scalbnl): Likewise.
18708 [__USE_ISOC99] (scalblnl): Likewise.
18709 [__USE_ISOC99] (nearbyintl): Likewise.
18710 [__USE_ISOC99] (lrintl): Likewise.
18711 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18712 __inline_mathop and __m81_defun changed.
18713
18714 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18715 CPU or FPU for ARM hard-float configurations.
18716
18717 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18718
18719 * nptl/tst-attr3.c: Include <libc-diag.h>.
18720 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18721
18722 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18723
18724 * string/tester.c (test_strncat): Also disable -Warray-bounds
18725 warnings for two tests.
18726
18727 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18728
18729 [BZ #22614]
18730 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18731 $(cc-pie-default) == yes.
18732 * config.make.in (cc-pie-default): New.
18733 * configure.ac (libc_cv_pie_default): Renamed to ...
18734 (libc_cv_cc_pie_default): This.
18735 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18736 * configure: Regenerated.
18737
18738 2017-12-18 Florian Weimer <fweimer@redhat.com>
18739
18740 [BZ #20204]
18741 ld.so: Harden dl-libc/libdl hooks.
18742 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18743 (rtld_active): New function.
18744 * dlfcn/dladdr.c (__dladdr): Call it.
18745 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18746 * dlfcn/dlclose.c (__dlcose): Likewise.
18747 * dlfcn/dlerror.c (__dlerror): Likewise.
18748 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18749 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18750 * dlfcn/dlopen.c (__dlopen): Likewise.
18751 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18752 * dlfcn/dlsym.c (__dlsym): Likewise.
18753 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18754 * libio/vtables.c (_IO_vtable_check): Likewise.
18755 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18756 (__libc_dlclose): Likewise.
18757 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18758 assignment.
18759
18760 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18761
18762 [BZ #22446]
18763 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18764 buffers for readlink input and output.
18765
18766 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18767
18768 [BZ #22624]
18769 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18770 inhibit_stack_protector.
18771
18772 [BZ #22624]
18773 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18774 inhibit_stack_protector.
18775
18776 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18777
18778 [BZ #22627]
18779 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18780 code and invocation.
18781
18782 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18783
18784 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18785
18786 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18787
18788 [BZ #22505]
18789 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18790
18791 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18792
18793 * sysdeps/s390/fpu/libm-test-ulps: Update.
18794
18795 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18796
18797 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18798
18799 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18800
18801 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18802 constants to s_sincosf.h file.
18803 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18804 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18805 implementation.
18806 * sysdeps/ieee754/flt-32/s_sincosf.h:
18807 New file.
18808
18809 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18810
18811 [BZ #14681]
18812 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18813 before mtrace.
18814
18815 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18816
18817 [BZ #19574]
18818 * INSTALL: Regenerated.
18819 * Makeconfig (real-static-start-installed-name): New.
18820 (pic-default): Updated for --enable-static-pie.
18821 (pie-default): New for --enable-static-pie.
18822 (default-pie-ldflag): Likewise.
18823 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18824 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18825 Replace $(static-start-installed-name) with
18826 $(real-static-start-installed-name).
18827 (+prectorT): Updated for --enable-static-pie.
18828 (+postctorT): Likewise.
18829 (CFLAGS-.o): Add $(pie-default).
18830 (CFLAGS-.op): Likewise.
18831 * NEWS: Mention --enable-static-pie.
18832 * config.h.in (ENABLE_STATIC_PIE): New.
18833 * configure.ac (--enable-static-pie): New configure option.
18834 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18835 (have-static-pie): Likewise.
18836 Enable static PIE if linker supports --no-dynamic-linker.
18837 (ENABLE_STATIC_PIE): New AC_DEFINE.
18838 (enable-static-pie): New LIBC_CONFIG_VAR.
18839 * configure: Regenerated.
18840 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18841 gr$(start-installed-name) for --enable-static-pie.
18842 (extra-objs): Likewise.
18843 (install-lib): Likewise.
18844 (extra-objs): Add static-reloc.o and static-reloc.os
18845 ($(objpfx)$(start-installed-name)): Also depend on
18846 $(objpfx)static-reloc.o.
18847 ($(objpfx)r$(start-installed-name)): New.
18848 ($(objpfx)g$(start-installed-name)): Also depend on
18849 $(objpfx)static-reloc.os.
18850 ($(objpfx)gr$(start-installed-name)): New.
18851 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18852 in libc.a.
18853 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18854 initimage.
18855 * csu/static-reloc.c: New file.
18856 * elf/Makefile (routines): Add dl-reloc-static-pie.
18857 (elide-routines.os): Likewise.
18858 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18859 (tst-tls1-static-non-pie-no-pie): New.
18860 * elf/dl-reloc-static-pie.c: New file.
18861 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18862 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18863 STATIC_PIE_BOOTSTRAP.
18864 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18865 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18866 (tests-static): Likewise.
18867 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18868 (tst-gmon-static-no-pie): New.
18869 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18870 (CRT-tst-gmon-static-pie): Likewise.
18871 (tst-gmon-static-pie-ENV): Likewise.
18872 (tests-special): Likewise.
18873 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18874 (clean-tst-gmon-static-pie-data): Likewise.
18875 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18876 * gmon/tst-gmon-static-pie.c: New file.
18877 * manual/install.texi: Document --enable-static-pie.
18878 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18879 (_dl_get_dl_main_map): Likewise.
18880 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18881 * sysdeps/x86_64/configure.ac: Likewise.
18882 * sysdeps/i386/configure: Regenerated.
18883 * sysdeps/x86_64/configure: Likewise.
18884 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18885 (ASFLAGS-.op): Likewise.
18886
18887 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18888
18889 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18890 * posix/tst-mmap-offset.c (fname): Use /tmp.
18891 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18892
18893 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18894
18895 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18896
18897 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18898
18899 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18900 errno.
18901
18902 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18903
18904 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18905 --with-float=hard for arm-linux-gnueabihf configurations.
18906
18907 [BZ #14121]
18908 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18909 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18910 ($(mo-installed)): Use $(objpfx)%.mo.
18911 (realclean): Remove rule.
18912
18913 * po/Makefile (linguas): Remove rule and dependencies.
18914 (linguas.mo): Likewise.
18915 (.PHONY): Do not depend on linguas and linguas.mo.
18916 (podir): Remove variable.
18917 (pofiles): Likewise.
18918 [$(pofiles)] (%.po): Remove rule.
18919
18920 * sysdeps/sparc/sparc32/Makefile
18921 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18922 start-of-line whitespace in argument of echo.
18923 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18924 with whitespace. Generate __wrap_.udiv alias.
18925 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18926 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18927 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18928 * sysdeps/sparc/sparc32/urem.S: Likewise.
18929
18930 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18931
18932 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18933 for aligned inputs.
18934
18935 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18936
18937 * benchtests/bench-strcmp.c: Print output in JSON format.
18938
18939 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18940
18941 2017-12-14 Florian Weimer <fweimer@redhat.com>
18942
18943 [BZ #22607]
18944 CVE-2017-1000409
18945 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18946 the expanded path string.
18947
18948 2017-12-14 Florian Weimer <fweimer@redhat.com>
18949
18950 [BZ #22606]
18951 CVE-2017-1000408
18952 * elf/dl-load.c (system_dirs): Update comment.
18953 (nsystem_dirs_len): Use array_length.
18954 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18955
18956 2017-12-14 Florian Weimer <fweimer@redhat.com>
18957
18958 Simplify compiling most of support/ outside of glibc.
18959 * support/check_addrinfo.c: Include <string.h>.
18960 * support/check_dns_packet.c: Likewise.
18961 * support/check_hostent.c: Likewise.
18962 * support/support_can_chroot.c: Include <support/xunistd.h>.
18963 * support/support_format_addrinfo.c: Include <stdlib.h>
18964 * support/support_format_dns_packet.c: Include <stdbool.h>.
18965 * support/support_format_hostent.c: Include <stdlib.h>.
18966 * support/support_format_netent.c: Likewise.
18967 * support/support_write_string.c: Include <support/xunistd.h>.
18968 * support/xdlfcn.c: Include <stddef.h>.
18969
18970 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18971
18972 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18973
18974 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18975 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18976
18977 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18978 (sysdeps_routines): Add memset-niagara7.
18979 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18980 Likewise.
18981 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18982 file.
18983 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18984 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18985 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18986 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18987 Add niagara7 option.
18988 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18989 memset.
18990
18991 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18992 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18993 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18994 Likewise.
18995 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18996 New file.
18997 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18998 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18999 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19000 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
19001 and __memmove_niagara7.
19002 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
19003 Add niagara7 option.
19004 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
19005 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
19006 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
19007 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
19008 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
19009
19010 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
19011
19012 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
19013 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
19014 * sysdeps/sparc/sparc64/memmove.S: Likewise.
19015 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
19016
19017 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
19018 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
19019 _dl_sparc_cap_flags array.
19020 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
19021
19022 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19023
19024 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
19025 time whenever possible.
19026
19027 2017-12-12 Carlos O'Donell <carlos@redhat.com>
19028
19029 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
19030 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
19031
19032 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19033
19034 * soft-fp/fmadf4.c: Move to ....
19035 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19036 * soft-fp/fmasf4.c: Move to ....
19037 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19038 * soft-fp/fmatf4.c: Move to ....
19039 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19040 * sysdeps/ieee754/soft-fp/Makefile: New file.
19041 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19042 * sysdeps/arm/preconfigure: Regenerated.
19043 * sysdeps/arm/nofpu/Implies: New file.
19044 * sysdeps/arm/s_fma.c: Remove file.
19045 * sysdeps/arm/s_fmaf.c: Likewise.
19046 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19047 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19048 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19049 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19050 * sysdeps/microblaze/s_fma.c: Remove file.
19051 * sysdeps/microblaze/s_fmaf.c: Likewise.
19052 * sysdeps/mips/mips32/nofpu/Implies: New file.
19053 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19054 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19055 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19056 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19057 * sysdeps/mips/ieee754/s_fma.c: Remove file.
19058 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19059 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19060 implementation.
19061 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19062 * sysdeps/nios2/s_fma.c: Remove file.
19063 * sysdeps/nios2/s_fmaf.c: Likewise.
19064 * sysdeps/sh/nofpu/Implies: New file.
19065 * sysdeps/sh/s_fma.c: Remove file.
19066 * sysdeps/sh/s_fmaf.c: Likewise.
19067 * sysdeps/tile/Implies: Add ieee754/soft-fp.
19068 * sysdeps/tile/s_fma.c: Remove file.
19069 * sysdeps/tile/s_fmaf.c: Likewise.
19070
19071 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
19072
19073 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19074 Add s_cosf-sse2 and s_cosf-fma.
19075 (CFLAGS-s_cosf-fma.c): New.
19076 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19077 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19078 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19079
19080 2017-12-12 Steve Ellcey <sellcey@cavium.com>
19081
19082 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19083
19084 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19085
19086 * libio/Makefile (tests): Add tst-bz22415.
19087 (tst-bz22415-ENV): New rule.
19088 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
19089 (tests-special): Add tst-bz22415-mem.out.
19090 ($(objpfx)tst-bz22415-mem.out): New rule.
19091 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
19092 in case of a successful seek operation.
19093 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19094 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
19095 buffer is required.
19096 * libio/tst-bz22415.c: New test.
19097
19098 * sysdeps/ia64/fpu/libm-test-ulps: Update.
19099
19100 2017-12-12 James Clarke <jrtc27@jrtc27.com>
19101
19102 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
19103 __IPC_64 to 0 to avoid IPC_64 being set.
19104
19105 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19106
19107 [BZ #22593]
19108 * math/bits/mathcalls.h (nextafter): Remove const.
19109 (nexttoward): Likewise.
19110
19111 2017-12-12 Joseph Myers <joseph@codesourcery.com>
19112
19113 * configure.ac (--with-fp): Remove configure option.
19114 (with_fp_cond): New variable.
19115 (libc_cv_with_fp): New configure test. Use this variable instead
19116 of with_fp.
19117 * configure: Regenerated.
19118 * config.make.in (with-fp): Use @libc_cv_with_fp@.
19119 * manual/install.texi (Configuring and compiling): Remove
19120 --without-fp.
19121 * INSTALL: Regenerated.
19122 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19123 * sysdeps/mips/preconfigure (with_fp_cond): Define.
19124 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19125 * sysdeps/sh/preconfigure (with_fp_cond): Define.
19126 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19127 use --without-fp to configure glibc.
19128
19129 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
19130
19131 * manual/locale.texi (nl_langinfo): Fix a typo.
19132
19133 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
19134
19135 [BZ #22588]
19136 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19137
19138 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19139
19140 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19141 (CFLAGS-argp-parse.c): Likewise.
19142 (CFLAGS-argp-fmtstream.c): Likewise.
19143 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19144 (CPPFLAGS-sha512-crypt.c): Likewise.
19145 (CPPFLAGS-md5-crypt.c): Likewise.
19146 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19147 (CFLAGS-stack_chk_fail_local.c): Likewise.
19148 (CFLAGS-backtrace.c): Likewise.
19149 (CFLAGS-sprintf_chk.c): Likewise.
19150 (CFLAGS-snprintf_chk.c): Likewise.
19151 (CFLAGS-vsprintf_chk.c): Likewise.
19152 (CFLAGS-vsnprintf_chk.c): Likewise.
19153 (CFLAGS-asprintf_chk.c): Likewise.
19154 (CFLAGS-vasprintf_chk.c): Likewise.
19155 (CFLAGS-obprintf_chk.c): Likewise.
19156 (CFLAGS-dprintf_chk.c): Likewise.
19157 (CFLAGS-vdprintf_chk.c): Likewise.
19158 (CFLAGS-printf_chk.c): Likewise.
19159 (CFLAGS-fprintf_chk.c): Likewise.
19160 (CFLAGS-vprintf_chk.c): Likewise.
19161 (CFLAGS-vfprintf_chk.c): Likewise.
19162 (CFLAGS-gets_chk.c): Likewise.
19163 (CFLAGS-fgets_chk.c): Likewise.
19164 (CFLAGS-fgets_u_chk.c): Likewise.
19165 (CFLAGS-fread_chk.c): Likewise.
19166 (CFLAGS-fread_u_chk.c): Likewise.
19167 (CFLAGS-swprintf_chk.c): Likewise.
19168 (CFLAGS-vswprintf_chk.c): Likewise.
19169 (CFLAGS-wprintf_chk.c): Likewise.
19170 (CFLAGS-fwprintf_chk.c): Likewise.
19171 (CFLAGS-vwprintf_chk.c): Likewise.
19172 (CFLAGS-vfwprintf_chk.c): Likewise.
19173 (CFLAGS-fgetws_chk.c): Likewise.
19174 (CFLAGS-fgetws_u_chk.c): Likewise.
19175 (CFLAGS-read_chk.c): Likewise.
19176 (CFLAGS-pread_chk.c): Likewise.
19177 (CFLAGS-pread64_chk.c): Likewise.
19178 (CFLAGS-recv_chk.c): Likewise.
19179 (CFLAGS-recvfrom_chk.c): Likewise.
19180 (CFLAGS-tst-longjmp_chk.c): Likewise.
19181 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19182 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19183 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19184 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19185 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19186 (CFLAGS-tst-chk1.c): Likewise.
19187 (CFLAGS-tst-chk2.c): Likewise.
19188 (CFLAGS-tst-chk3.c): Likewise.
19189 (CFLAGS-tst-chk4.cc): Likewise.
19190 (CFLAGS-tst-chk5.cc): Likewise.
19191 (CFLAGS-tst-chk6.cc): Likewise.
19192 (CFLAGS-tst-lfschk1.c): Likewise.
19193 (CFLAGS-tst-lfschk2.c): Likewise.
19194 (CFLAGS-tst-lfschk3.c): Likewise.
19195 (CFLAGS-tst-lfschk4.cc): Likewise.
19196 (CFLAGS-tst-lfschk5.cc): Likewise.
19197 (CFLAGS-tst-lfschk6.cc): Likewise.
19198 (CFLAGS-tst-ssp-1.c): Likewise.
19199 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19200 (CFLAGS-scandir64.c): Likewise.
19201 (CFLAGS-scandir-tail.c): Likewise.
19202 (CFLAGS-scandir64-tail.c): Likewise.
19203 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19204 (CFLAGS-dl-tunables.c): Likewise.
19205 (CFLAGS-dl-runtime.c): Likewise.
19206 (CFLAGS-dl-lookup.c): Likewise.
19207 (CFLAGS-dl-iterate-phdr.c): Likewise.
19208 (CFLAGS-vismain.c): Likewise.
19209 (CFLAGS-tst-linkall-static.c): Likewise.
19210 (CFLAGS-tst-linkall-static.c): Likewise.
19211 (CPPFLAGS-dl-load.c): Likewise.
19212 (CFLAGS-ldconfig.c): Likewise.
19213 (CFLAGS-dl-cache.c): Likewise.
19214 (CFLAGS-cache.c): Likewise.
19215 (CFLAGS-rtld.c): Likewise.
19216 (CFLAGS-multiload.c): Likewise.
19217 (CFLAGS-filtmod1.c): Likewise.
19218 (CFLAGS-tst-align.c): Likewise.
19219 (CFLAGS-tst-align2.c): Likewise.
19220 (CFLAGS-tst-alignmod.c): Likewise.
19221 (CFLAGS-tst-alignmod2.c): Likewise.
19222 (CPPFLAGS-tst-execstack.c): Likewise.
19223 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19224 (CFLAGS-tst-latepthreadmod.c): Likewise.
19225 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19226 (CFLAGS-getgrnam_r.c): Likewise.
19227 (CFLAGS-getgrent_r.c): Likewise.
19228 (CFLAGS-getgrent.c): Likewise.
19229 (CFLAGS-fgetgrent.c): Likewise.
19230 (CFLAGS-fgetgrent_r.c): Likewise.
19231 (CFLAGS-putgrent.c): Likewise.
19232 (CFLAGS-initgroups.c): Likewise.
19233 (CFLAGS-getgrgid.c): Likewise.
19234 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19235 (CFLAGS-getsgent.c): Likewise.
19236 (CFLAGS-fgetsgent.c): Likewise.
19237 (CFLAGS-fgetsgent_r.c): Likewise.
19238 (CFLAGS-putsgent.c): Likewise.
19239 (CFLAGS-getsgnam.c): Likewise.
19240 (CFLAGS-getsgnam_r.c): Likewise.
19241 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19242 (CFLAGS-iconv_charmap.c): Likewise.
19243 (CFLAGS-dummy-repertoire.c): Likewise.
19244 (CFLAGS-charmap.c): Likewise.
19245 (CFLAGS-linereader.c): Likewise.
19246 (CFLAGS-simple-hash.c): Likewise.
19247 (CFLAGS-gconv_conf.c): Likewise.
19248 (CFLAGS-iconvconfig.c): Likewise.
19249 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19250 (CFLAGS-gethstbyad.c): Likewise.
19251 (CFLAGS-gethstbynm_r.c): Likewise.
19252 (CFLAGS-gethstbynm.c): Likewise.
19253 (CFLAGS-gethstbynm2_r.c): Likewise.
19254 (CFLAGS-gethstbynm2.c): Likewise.
19255 (CFLAGS-gethstent_r.c): Likewise.
19256 (CFLAGS-gethstent.c): Likewise.
19257 (CFLAGS-rcmd.c): Likewise.
19258 (CFLAGS-getnetbynm_r.c): Likewise.
19259 (CFLAGS-getnetbynm.c): Likewise.
19260 (CFLAGS-getnetbyad_r.c): Likewise.
19261 (CFLAGS-getnetbyad.c): Likewise.
19262 (CFLAGS-getnetent_r.c): Likewise.
19263 (CFLAGS-getnetent.c): Likewise.
19264 (CFLAGS-getaliasent_r.c): Likewise.
19265 (CFLAGS-getaliasent.c): Likewise.
19266 (CFLAGS-getrpcent_r.c): Likewise.
19267 (CFLAGS-getrpcent.c): Likewise.
19268 (CFLAGS-getservent_r.c): Likewise.
19269 (CFLAGS-getservent.c): Likewise.
19270 (CFLAGS-getprtent_r.c): Likewise.
19271 (CFLAGS-getprtent.c): Likewise.
19272 (CFLAGS-either_ntoh.c): Likewise.
19273 (CFLAGS-either_hton.c): Likewise.
19274 (CFLAGS-getnetgrent.c): Likewise.
19275 (CFLAGS-getnetgrent_r.c): Likewise.
19276 (CFLAGS-tst-checks-posix.c): Likewise.
19277 (CFLAGS-tst-sockaddr.c): Likewise.
19278 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19279 (CFLAGS-tst-translit.c): Likewise.
19280 (CFLAGS-tst-gettext2.c): Likewise.
19281 (CFLAGS-tst-codeset.c): Likewise.
19282 (CFLAGS-tst-gettext3.c): Likewise.
19283 (CFLAGS-tst-gettext4.c): Likewise.
19284 (CFLAGS-tst-gettext5.c): Likewise.
19285 (CFLAGS-tst-gettext6.c): Likewise.
19286 * io/Makefile (CFLAGS-open.c): Likewise.
19287 (CFLAGS-open64.c): Likewise.
19288 (CFLAGS-creat.c): Likewise.
19289 (CFLAGS-creat64.c): Likewise.
19290 (CFLAGS-fcntl.c): Likewise.
19291 (CFLAGS-poll.c): Likewise.
19292 (CFLAGS-ppoll.c): Likewise.
19293 (CFLAGS-lockf.c): Likewise.
19294 (CFLAGS-statfs.c): Likewise.
19295 (CFLAGS-fstatfs.c): Likewise.
19296 (CFLAGS-statvfs.c): Likewise.
19297 (CFLAGS-fstatvfs.c): Likewise.
19298 (CFLAGS-fts.c): Likewise.
19299 (CFLAGS-fts64.c): Likewise.
19300 (CFLAGS-ftw.c): Likewise.
19301 (CFLAGS-ftw64.c): Likewise.
19302 (CFLAGS-lockf.c): Likewise.
19303 (CFLAGS-posix_fallocate.c): Likewise.
19304 (CFLAGS-posix_fallocate64.c): Likewise.
19305 (CFLAGS-fallocate.c): Likewise.
19306 (CFLAGS-fallocate64.c): Likewise.
19307 (CFLAGS-read.c): Likewise.
19308 (CFLAGS-write.c): Likewise.
19309 (CFLAGS-test-stat.c): Likewise.
19310 (CFLAGS-test-lfs.c): Likewise.
19311 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19312 (CFLAGS-fputc.c): Likewise.
19313 (CFLAGS-fputwc.c): Likewise.
19314 (CFLAGS-freopen64.c): Likewise.
19315 (CFLAGS-freopen.c): Likewise.
19316 (CFLAGS-fseek.c): Likewise.
19317 (CFLAGS-fseeko64.c): Likewise.
19318 (CFLAGS-fseeko.c): Likewise.
19319 (CFLAGS-ftello64.c): Likewise.
19320 (CFLAGS-ftello.c): Likewise.
19321 (CFLAGS-fwide.c): Likewise.
19322 (CFLAGS-genops.c): Likewise.
19323 (CFLAGS-getc.c): Likewise.
19324 (CFLAGS-getchar.c): Likewise.
19325 (CFLAGS-getwc.c): Likewise.
19326 (CFLAGS-getwchar.c): Likewise.
19327 (CFLAGS-iofclose.c): Likewise.
19328 (CFLAGS-iofflush.c): Likewise.
19329 (CFLAGS-iofgetpos64.c): Likewise.
19330 (CFLAGS-iofgetpos.c): Likewise.
19331 (CFLAGS-iofgets.c): Likewise.
19332 (CFLAGS-iofgetws.c): Likewise.
19333 (CFLAGS-iofputs.c): Likewise.
19334 (CFLAGS-iofputws.c): Likewise.
19335 (CFLAGS-iofread.c): Likewise.
19336 (CFLAGS-iofsetpos64.c): Likewise.
19337 (CFLAGS-iofsetpos.c): Likewise.
19338 (CFLAGS-ioftell.c): Likewise.
19339 (CFLAGS-iofwrite.c): Likewise.
19340 (CFLAGS-iogetdelim.c): Likewise.
19341 (CFLAGS-iogetline.c): Likewise.
19342 (CFLAGS-iogets.c): Likewise.
19343 (CFLAGS-iogetwline.c): Likewise.
19344 (CFLAGS-ioputs.c): Likewise.
19345 (CFLAGS-ioseekoff.c): Likewise.
19346 (CFLAGS-ioseekpos.c): Likewise.
19347 (CFLAGS-iosetbuffer.c): Likewise.
19348 (CFLAGS-iosetvbuf.c): Likewise.
19349 (CFLAGS-ioungetc.c): Likewise.
19350 (CFLAGS-ioungetwc.c): Likewise.
19351 (CFLAGS-oldfileops.c): Likewise.
19352 (CFLAGS-oldiofclose.c): Likewise.
19353 (CFLAGS-oldiofgetpos64.c): Likewise.
19354 (CFLAGS-oldiofgetpos.c): Likewise.
19355 (CFLAGS-oldiofsetpos64.c): Likewise.
19356 (CFLAGS-oldiofsetpos.c): Likewise.
19357 (CFLAGS-peekc.c): Likewise.
19358 (CFLAGS-putc.c): Likewise.
19359 (CFLAGS-putchar.c): Likewise.
19360 (CFLAGS-putwc.c): Likewise.
19361 (CFLAGS-putwchar.c): Likewise.
19362 (CFLAGS-rewind.c): Likewise.
19363 (CFLAGS-wfileops.c): Likewise.
19364 (CFLAGS-wgenops.c): Likewise.
19365 (CFLAGS-oldiofopen.c): Likewise.
19366 (CFLAGS-iofopen.c): Likewise.
19367 (CFLAGS-iofopen64.c): Likewise.
19368 (CFLAGS-oldtmpfile.c): Likewise.
19369 (CFLAGS-tst_putwc.c): Likewise.
19370 * locale/Makefile (CFLAGS-md5.c): Likewise.
19371 (CFLAGS-charmap.c): Likewise.
19372 (CFLAGS-locfile.c): Likewise.
19373 (CFLAGS-charmap-dir.c): Likewise.
19374 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19375 (CFLAGS-getpt.c): Likewise.
19376 (CFLAGS-pt_chown.c): Likewise.
19377 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19378 (CFLAGS-obstack.c): Likewise.
19379 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19380 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19381 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19382 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19383 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19384 (CFLAGS-test-tgmath.c): Likewise.
19385 (CFLAGS-test-tgmath2.c): Likewise.
19386 (CFLAGS-test-tgmath-ret.c): Likewise.
19387 (CFLAGS-test-powl.c): Likewise.
19388 (CFLAGS-test-snan.c): Likewise.
19389 (CFLAGS-test-signgam-finite.c): Likewise.
19390 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19391 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19392 (CFLAGS-test-signgam-uchar.c): Likewise.
19393 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19394 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19395 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19396 (CFLAGS-test-signgam-uint.c): Likewise.
19397 (CFLAGS-test-signgam-uint-init.c): Likewise.
19398 (CFLAGS-test-signgam-uint-static.c): Likewise.
19399 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19400 (CFLAGS-test-signgam-ullong.c): Likewise.
19401 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19402 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19403 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19404 (CFLAGS-test-math-cxx11.cc): Likewise.
19405 (CFLAGS-test-math-isinff.cc): Likewise.
19406 (CFLAGS-test-math-iszero.cc): Likewise.
19407 (CFLAGS-test-math-issignaling.cc): Likewise.
19408 (CFLAGS-test-math-iscanonical.cc): Likewise.
19409 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19410 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19411 (CFLAGS-test-flt-eval-method.c): Likewise.
19412 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19413 (CFLAGS-test-finite-macros.c): Likewise.
19414 * misc/Makefile (CFLAGS-select.c): Likewise.
19415 (CFLAGS-tsearch.c): Likewise.
19416 (CFLAGS-lsearch.c): Likewise.
19417 (CFLAGS-pselect.c): Likewise.
19418 (CFLAGS-readv.c): Likewise.
19419 (CFLAGS-writev.c): Likewise.
19420 (CFLAGS-preadv.c): Likewise.
19421 (CFLAGS-preadv64.c): Likewise.
19422 (CFLAGS-pwritev.c): Likewise.
19423 (CFLAGS-pwritev64.c): Likewise.
19424 (CFLAGS-preadv2.c): Likewise.
19425 (CFLAGS-preadv64v2.c): Likewise.
19426 (CFLAGS-pwritev2.c): Likewise.
19427 (CFLAGS-pwritev64v2.c): Likewise.
19428 (CFLAGS-usleep.c): Likewise.
19429 (CFLAGS-syslog.c): Likewise.
19430 (CFLAGS-error.c): Likewise.
19431 (CFLAGS-getpass.c): Likewise.
19432 (CFLAGS-mkstemp.c): Likewise.
19433 (CFLAGS-mkstemp64.c): Likewise.
19434 (CFLAGS-getsysstats.c): Likewise.
19435 (CFLAGS-getusershell.c): Likewise.
19436 (CFLAGS-err.c): Likewise.
19437 (CFLAGS-tst-tsearch.c): Likewise.
19438 (CFLAGS-msync.c): Likewise.
19439 (CFLAGS-fdatasync.c): Likewise.
19440 (CFLAGS-fsync.c): Likewise.
19441 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19442 (CFLAGS-unwind.c): Likewise.
19443 (CFLAGS-unwind-forcedunwind.c): Likewise.
19444 (CFLAGS-pthread_cancel.c): Likewise.
19445 (CFLAGS-pthread_setcancelstate.c): Likewise.
19446 (CFLAGS-pthread_setcanceltype.c): Likewise.
19447 (CFLAGS-cancellation.c): Likewise.
19448 (CFLAGS-libc-cancellation.c): Likewise.
19449 (CFLAGS-pthread_exit.c): Likewise.
19450 (CFLAGS-forward.c): Likewise.
19451 (CFLAGS-pthread_testcancel.c): Likewise.
19452 (CFLAGS-pthread_join.c): Likewise.
19453 (CFLAGS-pthread_timedjoin.c): Likewise.
19454 (CFLAGS-pthread_once.c): Likewise.
19455 (CFLAGS-pthread_cond_wait.c): Likewise.
19456 (CFLAGS-sem_wait.c): Likewise.
19457 (CFLAGS-sem_timedwait.c): Likewise.
19458 (CFLAGS-fcntl.c): Likewise.
19459 (CFLAGS-lockf.c): Likewise.
19460 (CFLAGS-pread.c): Likewise.
19461 (CFLAGS-pread64.c): Likewise.
19462 (CFLAGS-pwrite.c): Likewise.
19463 (CFLAGS-pwrite64.c): Likewise.
19464 (CFLAGS-wait.c): Likewise.
19465 (CFLAGS-waitpid.c): Likewise.
19466 (CFLAGS-sigwait.c): Likewise.
19467 (CFLAGS-msgrcv.c): Likewise.
19468 (CFLAGS-msgsnd.c): Likewise.
19469 (CFLAGS-tcdrain.c): Likewise.
19470 (CFLAGS-open.c): Likewise.
19471 (CFLAGS-open64.c): Likewise.
19472 (CFLAGS-pause.c): Likewise.
19473 (CFLAGS-recv.c): Likewise.
19474 (CFLAGS-send.c): Likewise.
19475 (CFLAGS-accept.c): Likewise.
19476 (CFLAGS-sendto.c): Likewise.
19477 (CFLAGS-connect.c): Likewise.
19478 (CFLAGS-recvfrom.c): Likewise.
19479 (CFLAGS-recvmsg.c): Likewise.
19480 (CFLAGS-sendmsg.c): Likewise.
19481 (CFLAGS-close.c): Likewise.
19482 (CFLAGS-read.c): Likewise.
19483 (CFLAGS-write.c): Likewise.
19484 (CFLAGS-nanosleep.c): Likewise.
19485 (CFLAGS-sigsuspend.c): Likewise.
19486 (CFLAGS-msync.c): Likewise.
19487 (CFLAGS-fdatasync.c): Likewise.
19488 (CFLAGS-fsync.c): Likewise.
19489 (CFLAGS-pt-system.c): Likewise.
19490 (CFLAGS-tst-cleanup2.c): Likewise.
19491 (CFLAGS-tst-cleanupx2.c): Likewise.
19492 (CFLAGS-flockfile.c): Likewise.
19493 (CFLAGS-ftrylockfile.c): Likewise.
19494 (CFLAGS-funlockfile.c): Likewise.
19495 (CFLAGS-tst-initializers1.c): Likewise.
19496 (CFLAGS-tst-initializers1-c89.c): Likewise.
19497 (CFLAGS-tst-initializers1-c99.c): Likewise.
19498 (CFLAGS-tst-initializers1-c11.c): Likewise.
19499 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19500 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19501 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19502 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19503 (CFLAGS-nscd_getgr_r.c): Likewise.
19504 (CFLAGS-nscd_gethst_r.c): Likewise.
19505 (CFLAGS-nscd_getai.c): Likewise.
19506 (CFLAGS-nscd_initgroups.c): Likewise.
19507 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19508 (CFLAGS-pause.c): Likewise.
19509 (CFLAGS-pread.c): Likewise.
19510 (CFLAGS-pread64.c): Likewise.
19511 (CFLAGS-pwrite.c): Likewise.
19512 (CFLAGS-pwrite64.c): Likewise.
19513 (CFLAGS-sleep.c): Likewise.
19514 (CFLAGS-wait.c): Likewise.
19515 (CFLAGS-waitid.c): Likewise.
19516 (CFLAGS-waitpid.c): Likewise.
19517 (CFLAGS-getopt.c): Likewise.
19518 (CFLAGS-wordexp.c): Likewise.
19519 (CFLAGS-sysconf.c): Likewise.
19520 (CFLAGS-pathconf.c): Likewise.
19521 (CFLAGS-fpathconf.c): Likewise.
19522 (CFLAGS-spawn.c): Likewise.
19523 (CFLAGS-spawnp.c): Likewise.
19524 (CFLAGS-spawni.c): Likewise.
19525 (CFLAGS-glob.c): Likewise.
19526 (CFLAGS-glob64.c): Likewise.
19527 (CFLAGS-getconf.c): Likewise.
19528 (CFLAGS-nanosleep.c): Likewise.
19529 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19530 (CFLAGS-getpwent.c): Likewise.
19531 (CFLAGS-getpw.c): Likewise.
19532 (CFLAGS-fgetpwent_r.c): Likewise.
19533 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19534 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19535 (CFLAGS-mq_timedreceive.c): Likewise.
19536 (CFLAGS-mq_timedsend.c): Likewise.
19537 (CFLAGS-clock_nanosleep.c): Likewise.
19538 (CFLAGS-librt-cancellation.c): Likewise.
19539 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19540 (CFLAGS-getspent.c): Likewise.
19541 (CFLAGS-fgetspent.c): Likewise.
19542 (CFLAGS-fgetspent_r.c): Likewise.
19543 (CFLAGS-putspent.c): Likewise.
19544 (CFLAGS-getspnam.c): Likewise.
19545 (CFLAGS-getspnam_r.c): Likewise.
19546 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19547 (CFLAGS-sigsuspend.c): Likewise.
19548 (CFLAGS-sigtimedwait.c): Likewise.
19549 (CFLAGS-sigwait.c): Likewise.
19550 (CFLAGS-sigwaitinfo.c): Likewise.
19551 (CFLAGS-sigreturn.c): Likewise.
19552 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19553 (CFLAGS-vfwprintf.c): Likewise.
19554 (CFLAGS-tmpfile.c): Likewise.
19555 (CFLAGS-tmpfile64.c): Likewise.
19556 (CFLAGS-tempname.c): Likewise.
19557 (CFLAGS-psignal.c): Likewise.
19558 (CFLAGS-vprintf.c): Likewise.
19559 (CFLAGS-cuserid.c): Likewise.
19560 (CFLAGS-errlist.c): Likewise.
19561 (CFLAGS-siglist.c): Likewise.
19562 (CFLAGS-scanf15.c): Likewise.
19563 (CFLAGS-scanf17.c): Likewise.
19564 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19565 (CFLAGS-msort.c): Likewise.
19566 (CFLAGS-qsort.c): Likewise.
19567 (CFLAGS-system.c): Likewise.
19568 (CFLAGS-fmtmsg.c): Likewise.
19569 (CFLAGS-strfmon.c): Likewise.
19570 (CFLAGS-strfmon_l.c): Likewise.
19571 (CFLAGS-strfromd.c): Likewise.
19572 (CFLAGS-strfromf.c): Likewise.
19573 (CFLAGS-strfroml.c): Likewise.
19574 (CFLAGS-tst-bsearch.c): Likewise.
19575 (CFLAGS-tst-qsort.c): Likewise.
19576 (CFLAGS-tst-makecontext2.c): Likewise.
19577 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19578 (CFLAGS-xnlm_prot.c): Likewise.
19579 (CFLAGS-xrstat.c): Likewise.
19580 (CFLAGS-xyppasswd.c): Likewise.
19581 (CFLAGS-xklm_prot.c): Likewise.
19582 (CFLAGS-xrex.c): Likewise.
19583 (CFLAGS-xsm_inter.c): Likewise.
19584 (CFLAGS-xmount.c): Likewise.
19585 (CFLAGS-xrusers.c): Likewise.
19586 (CFLAGS-xspray.c): Likewise.
19587 (CFLAGS-xnfs_prot.c): Likewise.
19588 (CFLAGS-xrquota.c): Likewise.
19589 (CFLAGS-xkey_prot.c): Likewise.
19590 (CFLAGS-auth_unix.c): Likewise.
19591 (CFLAGS-key_call.c): Likewise.
19592 (CFLAGS-pmap_rmt.c): Likewise.
19593 (CFLAGS-clnt_perr.c): Likewise.
19594 (CFLAGS-openchild.c): Likewise.
19595 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19596 (CFLAGS-msgsnd.c): Likewise.
19597 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19598 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19599 (CFLAGS-tzset.c): Likewise.
19600 (CFLAGS-getdate.c): Likewise.
19601 (CFLAGS-test_time.c): Likewise.
19602 (CPPFLAGS-tst-tzname.c): Likewise.
19603 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19604 (CFLAGS-zic.c): Likewise.
19605 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19606 (CFLAGS-wcswidth.c): Likewise.
19607 (CFLAGS-wcstol.c): Likewise.
19608 (CFLAGS-wcstoul.c): Likewise.
19609 (CFLAGS-wcstoll.c): Likewise.
19610 (CFLAGS-wcstoull.c): Likewise.
19611 (CFLAGS-wcstod.c): Likewise.
19612 (CFLAGS-wcstold.c): Likewise.
19613 (CFLAGS-wcstof128.c): Likewise.
19614 (CFLAGS-wcstof.c): Likewise.
19615 (CFLAGS-wcstol_l.c): Likewise.
19616 (CFLAGS-wcstoul_l.c): Likewise.
19617 (CFLAGS-wcstoll_l.c): Likewise.
19618 (CFLAGS-wcstoull_l.c): Likewise.
19619 (CFLAGS-wcstod_l.c): Likewise.
19620 (CFLAGS-wcstold_l.c): Likewise.
19621 (CFLAGS-wcstof128_l.c): Likewise.
19622 (CFLAGS-wcstof_l.c): Likewise.
19623 (CPPFLAGS-tst-wchar-h.c): Likewise.
19624 (CPPFLAGS-wcstold_l.c): Likewise.
19625
19626 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19627
19628 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19629
19630 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19631 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19632
19633 * manual/tunables.texi (Hardware Capability Tunables): Document
19634 glibc.tune.cached_memopt.
19635 * sysdeps/powerpc/cpu-features.c: New file.
19636 * sysdeps/powerpc/cpu-features.h: New file.
19637 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19638 _dl_powerpc_cpu_features.
19639 * sysdeps/powerpc/dl-tunables.list: New file.
19640 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19641 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19642 (INIT_ARCH): Initialize use_aligned_memopt.
19643 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19644 IS_IN(rtld))]: Restrict dl_platform_init availability and
19645 initialize CPU features used by tunables.
19646 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19647 Add memcpy-power8-cached.
19648 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19649 __memcpy_power8_cached.
19650 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19651 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19652 New file.
19653
19654 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19655
19656 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19657 (CFLAGS-noinl-tester.c): Likewise.
19658 (CFLAGS-tst-strlen.c): Likewise.
19659 (CFLAGS-stratcliff.c): Likewise.
19660 (CFLAGS-test-ffs.c): Likewise.
19661 (CFLAGS-tst-inlcall.c): Likewise.
19662 (CFLAGS-tst-xbzero-opt.c): Likewise.
19663 (CFLAGS-memcpy.c): Likewise.
19664 (CFLAGS-wordcopy.c): Likewise.
19665
19666 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19667
19668 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19669 Store r15 on stack and add cfi rule.
19670 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19671 Likewise.
19672
19673 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19674
19675 [BZ #22577]
19676 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19677 call.
19678
19679 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19680
19681 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19682 Add s_sinf-sse2 and s_sinf-fma.
19683 (CFLAGS-s_sinf-fma.c): New.
19684 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19685 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19686 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19687
19688 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19689
19690 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19691
19692 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19693
19694 [BZ #22568]
19695 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19696 part of result to imaginary part of argument if it is zero and the
19697 real part of the argument is not finite.
19698 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19699 of result to real part of argument if it is zero and the imaginary
19700 part of the argument is not finite.
19701
19702 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19703
19704 [BZ #22524]
19705 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19706 and to the list of locales to be built for testing.
19707 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19708 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19709 and build the collation rules upon that.
19710
19711 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19712
19713 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19714 * manual/math.texi (Mathematics): Document support for _Float32.
19715 * math/Makefile (test-types): Add float32.
19716 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19717 * stdlib/Versions (GLIBC_2.27): Likewise.
19718 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19719 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19720 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19721 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19722 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19723 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19724 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19725 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19726 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19727 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19728 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19729 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19730 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19731 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19732 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19733 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19734 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19735 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19736 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19737 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19738 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19739 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19740 Likewise.
19741 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19742 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19743 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19744 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19745 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19746 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19747 Likewise.
19748 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19749 Likewise.
19750 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19751 Likewise.
19752 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19753 Likewise.
19754
19755 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19756 Likewise.
19757 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19758 Likewise.
19759 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19760 Likewise.
19761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19762 Likewise.
19763 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19764 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19765 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19766 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19767 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19768 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19769 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19770 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19771 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19772 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19773 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19774 Likewise.
19775 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19776 Likewise.
19777 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19778 Likewise.
19779 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19780 Likewise.
19781 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19782 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19783 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19784 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19785 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19786 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19787 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19788 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19789
19790 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19791
19792 * stdlib/strtof.c: Include <bits/floatn.h>
19793 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19794 and later undefine as macro. Define as weak alias if
19795 [!USE_WIDE_CHAR].
19796 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19797 and later undefine as macro. Define as weak alias if
19798 [USE_WIDE_CHAR].
19799 * stdlib/strtof_l.c: Include <bits/floatn.h>
19800 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19801 and later undefine as macro. Define as weak alias if
19802 [!USE_WIDE_CHAR].
19803 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19804 and later undefine as macro. Define as weak alias if
19805 [USE_WIDE_CHAR].
19806
19807 * stdlib/strfromf.c: Include <bits/floatn.h>.
19808 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19809 and later undefine as macro and define as weak alias.
19810
19811 * math/test-float32.h: New file.
19812
19813 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19814 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19815 (libm_alias_float_other_r): Create f32 alias.
19816 (libm_alias_float_r): Use semicolon before call to
19817 libm_alias_float_other_r.
19818
19819 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19820 second argument to libm_alias_float_other.
19821 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19822 second argument to libm_alias_float_other.
19823 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19824 argument to libm_alias_float_other.
19825
19826 [BZ #22561]
19827 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19828 real part of result for argument 0 + i * NaN.
19829 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19830 results for tests of 0 + i * NaN.
19831
19832 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19833
19834 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19835
19836 2017-12-06 David S. Miller <davem@davemloft.net>
19837
19838 * sysdeps/sparc/fpu/libm-test-ulps: Update
19839 exp_{downward,towardzero,upward} ulps.
19840
19841 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19842
19843 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19844 variables static.
19845
19846 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19847 (Y0_2D): Likewise.
19848 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19849 (Y0_2D): Likewise.
19850 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19851 (Y0_2D): Likewise.
19852 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19853 (Y0_2D): Likewise.
19854
19855 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19856
19857 [BZ #22515]
19858 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19859 and to the list of locales to be built for testing.
19860 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19861 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19862 and build the collation rules upon that.
19863
19864 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19865
19866 * NEWS: Add sinf to list of optimized functions.
19867
19868 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19869
19870 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19871 (__HAVE_FLOAT32X): Likewise.
19872 * manual/math.texi (Mathematics): Document support for _Float64
19873 and _Float32x.
19874 * math/Makefile (test-types): Add float64 and float32x.
19875 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19876 functions.
19877 * stdlib/Versions (GLIBC_2.27): Likewise.
19878 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19879 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19880 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19881 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19882 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19883 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19884 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19885 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19886 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19887 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19888 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19889 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19890 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19891 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19892 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19893 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19894 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19895 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19896 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19897 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19898 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19899 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19900 Likewise.
19901 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19902 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19903 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19904 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19905 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19906 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19907 Likewise.
19908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19909 Likewise.
19910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19911 Likewise.
19912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19913 Likewise.
19914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19915 Likewise.
19916 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19917 Likewise.
19918 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19919 Likewise.
19920 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19921 Likewise.
19922 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19923 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19924 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19925 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19926 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19927 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19928 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19929 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19930 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19931 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19932 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19933 Likewise.
19934 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19935 Likewise.
19936 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19937 Likewise.
19938 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19939 Likewise.
19940 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19941 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19942 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19943 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19944 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19945 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19946 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19947 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19948
19949 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19950
19951 * bits/floatn-common.h: Include <bits/long-double.h>.
19952 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19953 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19954 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19955 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19956 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19957 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19958 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19959 (__builtin_huge_valf64): Use __builtin_huge_vall.
19960 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19961 (__builtin_inff64): Use __builtin_infl.
19962 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19963 (__builtin_nanf64): Use __builtin_nanl.
19964 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19965 (__builtin_nansf64): Use __builtin_nansl.
19966
19967 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19968 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19969 Carlos O'Donnell <carlos@redhat.com>
19970
19971 * elf/dl-tunables.list: Add elision parameters.
19972 * manual/tunables.texi: Add entries about elision tunable.
19973 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19974 Add callback functions to dynamically enable/disable elision.
19975 Add multiple callbacks functions to set elision parameters.
19976 Deleted __libc_enable_secure check.
19977 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19978 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19979 * configure: Regenerated.
19980 * configure.ac: Option enable_lock_elision was deleted.
19981 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19982 * config.make.in: Remove references to enable_lock_elision.
19983 * manual/install.texi: Elision configure option was removed.
19984 * INSTALL: Regenerated to remove enable_lock_elision.
19985 * nptl/Makefile:
19986 Disable elision so it can verify error case for destroying a mutex.
19987 * sysdeps/powerpc/nptl/elide.h:
19988 Cleanup ENABLE_LOCK_ELISION check.
19989 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19990 * sysdeps/s390/configure: Regenerated.
19991 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19992 * nptl/tst-mutex8.c:
19993 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19994 * sysdeps/powerpc/powerpc32/sysdep.h:
19995 Deleted all ENABLE_LOCK_ELISION checks.
19996 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19997 * sysdeps/powerpc/sysdep.h: Likewise.
19998 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19999 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
20000 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
20001 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
20002 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
20003 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
20004 enable-lock-elision.
20005
20006 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20007
20008 * stdlib/strtod.c: Include <bits/floatn.h>.
20009 (BUILD_DOUBLE): New macro.
20010 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20011 (strtof64): Define and later undefine as macro. Define as weak
20012 alias if [!USE_WIDE_CHAR].
20013 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20014 (wcstof64): Define and later undefine as macro. Define as weak
20015 alias if [USE_WIDE_CHAR].
20016 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20017 (strtof32x): Define and later undefine as macro. Define as weak
20018 alias if [!USE_WIDE_CHAR].
20019 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20020 (wcstof32x): Define and later undefine as macro. Define as weak
20021 alias if [USE_WIDE_CHAR].
20022 * stdlib/strtod_l.c: Include <bits/floatn.h>.
20023 (BUILD_DOUBLE): New macro.
20024 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20025 (strtof64_l): Define and later undefine as macro. Define as weak
20026 alias if [!USE_WIDE_CHAR].
20027 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20028 (wcstof64_l): Define and later undefine as macro. Define as weak
20029 alias if [USE_WIDE_CHAR].
20030 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20031 (strtof32x_l): Define and later undefine as macro. Define as weak
20032 alias if [!USE_WIDE_CHAR].
20033 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20034 (wcstof32x_l): Define and later undefine as macro. Define as weak
20035 alias if [USE_WIDE_CHAR].
20036
20037 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20038
20039 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20040 (reduced): Use ones as double instead of integer.
20041
20042 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
20043
20044 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20045
20046 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20047
20048 * stdlib/strfromd.c: Include <bits/floatn.h>.
20049 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20050 and later undefine as macro and define as weak alias.
20051 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20052 Likewise.
20053
20054 * math/test-float32x.h: New file.
20055 * math/test-float64.h: Likewise.
20056
20057 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20058 (libm_alias_double_other_r_f64): New macro.
20059 (libm_alias_double_other_r_f32x): Likewise.
20060 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20061 libm_alias_double_other_r_f32x.
20062 (libm_alias_double_r): Use semicolon before call to
20063 libm_alias_double_other_r.
20064 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20065 <bits/floatn.h>.
20066 (libm_alias_double_other_r_f64): New macro.
20067 (libm_alias_double_other_r_f32x): Likewise.
20068 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20069 libm_alias_double_other_r_f32x.
20070
20071 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
20072
20073 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20074 int.
20075 (SINF_FUNC): Likewise. Replace floor with simple casts.
20076
20077 2017-12-05 Mike FABIAN <mfabian@redhat.com>
20078
20079 [BZ #22517]
20080 * localedata/Makefile: Add et_EE.UTF-8 to test-input
20081 and to the list of locales to be built for testing.
20082 * localedata/et_EE.UTF-8.in: New file for testing the collation.
20083 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20084 and build the collation rules upon that.
20085
20086 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
20087
20088 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
20089 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
20090 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
20091 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
20092 instead of __insn__xxx.
20093 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
20094 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
20095 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
20096 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
20097 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
20098 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
20099
20100 2017-12-05 Florian Weimer <fweimer@redhat.com>
20101
20102 Linux: Implement interfaces for memory protection keys
20103 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
20104 xsignal, xsysconf.
20105 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
20106 * support/xunistd.h (xsysconf): Declare.
20107 * support/xraise.c: New file.
20108 * support/xsigaction.c: Likewise.
20109 * support/xsignal.c: Likewise.
20110 * support/xsysconf.c: Likewise.
20111 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20112 pkey_set, pkey_get, pkey_mprotect.
20113 [misc] (tests): Add tst-pkey.
20114 (tst-pkey): Link with -lpthread.
20115 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20116 pkey_free, pkey_set, pkey_get, pkey_mprotect.
20117 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20118 (PKEY_DISABLE_WRITE): Define.
20119 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20120 Declare.
20121 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20122 (SEGV_PKUERR): Add.
20123 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20124 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20125 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20126 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20127 Add.
20128 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20129 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20130 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20131 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20132 * sysdeps/unix/sysv/linux/**.abilist: Update.
20133
20134 2017-12-05 Florian Weimer <fweimer@redhat.com>
20135
20136 * support/tst-test_compare.c (subprocess): Use long long instead
20137 of long argument for consistent type width across 32-bit and
20138 64-bit architectures.
20139 (do_test): Adjust expected output.
20140
20141 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20142
20143 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20144 (cosf): Define using libm_alias_float.
20145 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20146 (fabsf): Define using libm_alias_float.
20147 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20148 (fmaf): Define using libm_alias_float.
20149 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20150 (rintf): Define using libm_alias_float.
20151 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20152 (sinf): Define using libm_alias_float.
20153 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20154 <libm-alias-float.h>.
20155 (modff): Define using libm_alias_float.
20156 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20157 <libm-alias-float.h>.
20158 (logbf): Define using libm_alias_float.
20159 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20160 <libm-alias-float.h>.
20161 (ceilf): Define using libm_alias_float.
20162 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20163 <libm-alias-float.h>.
20164 (copysignf): Define using libm_alias_float.
20165 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20166 <libm-alias-float.h>.
20167 (floorf): Define using libm_alias_float.
20168 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20169 <libm-alias-float.h>.
20170 (llrintf): Define using libm_alias_float.
20171 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20172 <libm-alias-float.h>.
20173 (llroundf): Define using libm_alias_float.
20174 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20175 <libm-alias-float.h>.
20176 (lrintf): Define using libm_alias_float.
20177 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20178 <libm-alias-float.h>.
20179 (lroundf): Define using libm_alias_float.
20180 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20181 <libm-alias-float.h>.
20182 (nearbyintf): Define using libm_alias_float.
20183 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20184 <libm-alias-float.h>.
20185 (rintf): Define using libm_alias_float.
20186 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20187 <libm-alias-float.h>.
20188 (roundf): Define using libm_alias_float.
20189 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20190 <libm-alias-float.h>.
20191 (truncf): Define using libm_alias_float.
20192 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20193 Include <libm-alias-float.h>.
20194 (ceilf): Define using libm_alias_float.
20195 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20196 Include <libm-alias-float.h>.
20197 (copysignf): Define using libm_alias_float.
20198 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20199 Include <libm-alias-float.h>.
20200 (floorf): Define using libm_alias_float.
20201 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20202 Include <libm-alias-float.h>.
20203 (llrintf): Define using libm_alias_float.
20204 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20205 Include <libm-alias-float.h>.
20206 (llroundf): Define using libm_alias_float.
20207 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20208 Include <libm-alias-float.h>.
20209 (logbf): Define using libm_alias_float.
20210 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20211 Include <libm-alias-float.h>.
20212 (lrintf): Define using libm_alias_float.
20213 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20214 Include <libm-alias-float.h>.
20215 (lroundf): Define using libm_alias_float.
20216 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20217 Include <libm-alias-float.h>.
20218 (modff): Define using libm_alias_float.
20219 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20220 Include <libm-alias-float.h>.
20221 (roundf): Define using libm_alias_float.
20222 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20223 Include <libm-alias-float.h>.
20224 (truncf): Define using libm_alias_float.
20225 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20226 <libm-alias-float.h>.
20227 (llrintf): Define using libm_alias_float.
20228 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20229 <libm-alias-float.h>.
20230 (llroundf): Define using libm_alias_float.
20231 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20232 <libm-alias-float.h>.
20233 (ceilf): Define using libm_alias_float.
20234 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20235 <libm-alias-float.h>.
20236 (floorf): Define using libm_alias_float.
20237 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20238 <libm-alias-float.h>.
20239 (llroundf): Define using libm_alias_float.
20240 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20241 <libm-alias-float.h>.
20242 (lroundf): Define using libm_alias_float.
20243 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20244 <libm-alias-float.h>.
20245 (roundf): Define using libm_alias_float.
20246 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20247 <libm-alias-float.h>.
20248 (truncf): Define using libm_alias_float.
20249 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20250 <libm-alias-float.h>.
20251 (copysignf): Define using libm_alias_float.
20252 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20253 <libm-alias-float.h>.
20254 (llrintf): Define using libm_alias_float.
20255 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20256 <libm-alias-float.h>.
20257 (llroundf): Define using libm_alias_float.
20258 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20259 <libm-alias-float.h>.
20260 (lrintf): Define using libm_alias_float.
20261 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20262 <libm-alias-float.h>.
20263 (lroundf): Define using libm_alias_float.
20264 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20265 <libm-alias-float.h>.
20266 (ceilf): Define using libm_alias_float.
20267 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20268 <libm-alias-float.h>.
20269 (copysignf): Define using libm_alias_float.
20270 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20271 <libm-alias-float.h>.
20272 (cosf): Define using libm_alias_float.
20273 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20274 <libm-alias-float.h>.
20275 (floorf): Define using libm_alias_float.
20276 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20277 <libm-alias-float.h>.
20278 (llrintf): Define using libm_alias_float.
20279 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20280 <libm-alias-float.h>.
20281 (llroundf): Define using libm_alias_float.
20282 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20283 <libm-alias-float.h>.
20284 (logbf): Define using libm_alias_float.
20285 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20286 <libm-alias-float.h>.
20287 (modff): Define using libm_alias_float.
20288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20289 <libm-alias-float.h>.
20290 (roundf): Define using libm_alias_float.
20291 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20292 <libm-alias-float.h>.
20293 (sinf): Define using libm_alias_float.
20294 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20295 <libm-alias-float.h>.
20296 (truncf): Define using libm_alias_float.
20297 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20298 <libm-alias-float.h>.
20299 (ceilf): Define using libm_alias_float.
20300 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20301 <libm-alias-float.h>.
20302 (copysignf): Define using libm_alias_float.
20303 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20304 <libm-alias-float.h>.
20305 (floorf): Define using libm_alias_float.
20306 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20307 <libm-alias-float.h>.
20308 (llrintf): Define using libm_alias_float.
20309 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20310 <libm-alias-float.h>.
20311 (llroundf): Define using libm_alias_float.
20312 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20313 <libm-alias-float.h>.
20314 (nearbyintf): Define using libm_alias_float.
20315 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20316 <libm-alias-float.h>.
20317 (rintf): Define using libm_alias_float.
20318 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20319 <libm-alias-float.h>.
20320 (roundf): Define using libm_alias_float.
20321 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20322 <libm-alias-float.h>.
20323 (truncf): Define using libm_alias_float.
20324 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20325 <libm-alias-float.h>.
20326 (ceilf): Define using libm_alias_float.
20327 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20328 <libm-alias-float.h>.
20329 (floorf): Define using libm_alias_float.
20330 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20331 <libm-alias-float.h>.
20332 (llroundf): Define using libm_alias_float.
20333 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20334 <libm-alias-float.h>.
20335 (roundf): Define using libm_alias_float.
20336 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20337 <libm-alias-float.h>.
20338 (truncf): Define using libm_alias_float.
20339 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20340 <libm-alias-float.h>.
20341 (copysignf): Define using libm_alias_float.
20342 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20343 <libm-alias-float.h>.
20344 (llrintf): Define using libm_alias_float.
20345 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20346 <libm-alias-float.h>.
20347 (llroundf): Define using libm_alias_float.
20348 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20349 <libm-alias-float.h>.
20350 (cosf): Define using libm_alias_float.
20351 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20352 <libm-alias-float.h>.
20353 (llrintf): Define using libm_alias_float.
20354 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20355 <libm-alias-float.h>.
20356 (llroundf): Define using libm_alias_float.
20357 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20358 <libm-alias-float.h>.
20359 (sinf): Define using libm_alias_float.
20360
20361 2017-12-04 Florian Weimer <fweimer@redhat.com>
20362
20363 * support/check.h (TEST_COMPARE): Define.
20364 (support_test_compare_failure): Declare.
20365 * support/Makefile (libsupport-routines): Add
20366 support_test_compare_failure.
20367 (tests): Add tst-test_compare.
20368 * support /support_test_compare_failure.c: New file.
20369 * support/tst-test_compare.c: Likewise.
20370
20371 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20372
20373 [BZ #22527]
20374 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20375 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20376 available, this rewrite of the collation rules does reproduce
20377 the test file in the same order.
20378
20379 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20380
20381 [BZ #10580]
20382 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20383 digraphs in the month and day names. Using single code points for
20384 digraphs is deprecated. While there are dedicated Unicode
20385 codepoints, for the digraphs, these are included for backwards
20386 compatibility and modern texts use a sequence of Basic Latin
20387 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20388 This makes the month and day names agree exactly with CLDR now,
20389 CLDR does not use the single code points for the digraphs either.
20390
20391 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20392
20393 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20394
20395 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20396
20397 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20398 of floor.
20399
20400 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20401
20402 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20403 Define only for libc.so.
20404
20405 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20406
20407 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20408 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20409 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20410 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20411 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20412
20413 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20414
20415 [BZ #5997]
20416 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20417
20418 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20419
20420 [BZ libc/19170]
20421 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20422 PREINIT_FUNCTION_WEAK is nonzero.
20423 (gmon_initializer): New function. Put procedure label for it in
20424 .init_array section.
20425 (_init): Don't call PREINIT_FUNCTION.
20426 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20427 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20428 value when map argument is null.
20429
20430 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20431 depi instruction from PIC pc-relative sequence.
20432 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20433 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20434 (elf_machine_load_address): Likewise.
20435 (elf_machine_runtime_setup): Likewise.
20436
20437 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20438
20439 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20440 <libm-alias-double.h>.
20441 (logb): Define using libm_alias_double.
20442 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20443 <libm-alias-double.h>.
20444 (copysign): Define using libm_alias_double.
20445 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20446 <libm-alias-double.h>.
20447 (llrint): Define using libm_alias_double.
20448 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20449 <libm-alias-double.h>.
20450 (llround): Define using libm_alias_double.
20451 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20452 <libm-alias-double.h>.
20453 (lrint): Define using libm_alias_double.
20454 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20455 <libm-alias-double.h>.
20456 (lround): Define using libm_alias_double.
20457 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20458 Include <libm-alias-double.h>.
20459 (copysign): Define using libm_alias_double.
20460 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20461 Include <libm-alias-double.h>.
20462 (llrint): Define using libm_alias_double.
20463 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20464 Include <libm-alias-double.h>.
20465 (llround): Define using libm_alias_double.
20466 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20467 <libm-alias-double.h>.
20468 (logb): Define using libm_alias_double.
20469 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20470 Include <libm-alias-double.h>.
20471 (lrint): Define using libm_alias_double.
20472 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20473 Include <libm-alias-double.h>.
20474 (lround): Define using libm_alias_double.
20475 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20476 <libm-alias-double.h>.
20477 (llrint): Define using libm_alias_double.
20478 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20479 <libm-alias-double.h>.
20480 (llround): Define using libm_alias_double.
20481 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20482 <libm-alias-double.h>.
20483 (llround): Define using libm_alias_double.
20484 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20485 <libm-alias-double.h>.
20486 (lround): Define using libm_alias_double.
20487 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20488 <libm-alias-double.h>.
20489 (copysign): Define using libm_alias_double.
20490 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20491 <libm-alias-double.h>.
20492 (llrint): Define using libm_alias_double.
20493 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20494 <libm-alias-double.h>.
20495 (llround): Define using libm_alias_double.
20496 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20497 <libm-alias-double.h>.
20498 (lrint): Define using libm_alias_double.
20499 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20500 <libm-alias-double.h>.
20501 (lround): Define using libm_alias_double.
20502 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20503 <libm-alias-double.h>.
20504 (copysign): Define using libm_alias_double.
20505 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20506 <libm-alias-double.h>.
20507 (llrint): Define using libm_alias_double.
20508 (lrint): Likewise.
20509 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20510 <libm-alias-double.h>.
20511 (llround): Define using libm_alias_double.
20512 (lround): Likewise.
20513 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20514 <libm-alias-double.h>.
20515 (logb): Define using libm_alias_double.
20516 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20517 <libm-alias-double.h>.
20518 (copysign): Define using libm_alias_double.
20519 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20520 <libm-alias-double.h>.
20521 (llrint): Define using libm_alias_double.
20522 (lrint): Likewise.
20523 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20524 <libm-alias-double.h>.
20525 (llround): Define using libm_alias_double.
20526 (lround): Likewise.
20527 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20528 <libm-alias-double.h>.
20529 (llround): Define using libm_alias_double.
20530 (lround): Likewise.
20531 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20532 <libm-alias-double.h>.
20533 (copysign): Define using libm_alias_double.
20534 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20535 <libm-alias-double.h>.
20536 (llrint): Define using libm_alias_double.
20537 (lrint): Likewise.
20538 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20539 <libm-alias-double.h>.
20540 (llround): Define using libm_alias_double.
20541 (lround): Likewise.
20542 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20543 <libm-alias-double.h>.
20544 (llrint): Define using libm_alias_double.
20545 (lrint): Likewise.
20546 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20547 <libm-alias-double.h>.
20548 (llround): Define using libm_alias_double.
20549 (lround): Likewise.
20550
20551 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20552
20553 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20554 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20555 compat symbol based on llround.
20556
20557 * sysdeps/powerpc/power7/fpu/s_logb.c
20558 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20559 symbol based on __logb, not on logb.
20560 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20561 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20562 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20563 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20564
20565 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20566 (rint): Define using libm_alias_double.
20567 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20568 <libm-alias-double.h>.
20569 (modf): Define using libm_alias_double.
20570 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20571 <libm-alias-double.h>.
20572 (ceil): Define using libm_alias_double.
20573 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20574 <libm-alias-double.h>.
20575 (floor): Define using libm_alias_double.
20576 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20577 <libm-alias-double.h>.
20578 (nearbyint): Define using libm_alias_double.
20579 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20580 <libm-alias-double.h>.
20581 (rint): Define using libm_alias_double.
20582 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20583 <libm-alias-double.h>.
20584 (round): Define using libm_alias_double.
20585 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20586 <libm-alias-double.h>.
20587 (trunc): Define using libm_alias_double.
20588 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20589 <libm-alias-double.h>.
20590 (ceil): Define using libm_alias_double.
20591 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20592 Include <libm-alias-double.h>.
20593 (floor): Define using libm_alias_double.
20594 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20595 <libm-alias-double.h>.
20596 (modf): Define using libm_alias_double.
20597 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20598 Include <libm-alias-double.h>.
20599 (round): Define using libm_alias_double.
20600 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20601 Include <libm-alias-double.h>.
20602 (trunc): Define using libm_alias_double.
20603 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20604 <libm-alias-double.h>.
20605 (ceil): Define using libm_alias_double.
20606 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20607 <libm-alias-double.h>.
20608 (floor): Define using libm_alias_double.
20609 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20610 <libm-alias-double.h>.
20611 (round): Define using libm_alias_double.
20612 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20613 <libm-alias-double.h>.
20614 (trunc): Define using libm_alias_double.
20615 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20616 <libm-alias-double.h>.
20617 (ceil): Define using libm_alias_double.
20618 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20619 <libm-alias-double.h>.
20620 (floor): Define using libm_alias_double.
20621 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20622 <libm-alias-double.h>.
20623 (modf): Define using libm_alias_double.
20624 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20625 <libm-alias-double.h>.
20626 (round): Define using libm_alias_double.
20627 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20628 <libm-alias-double.h>.
20629 (trunc): Define using libm_alias_double.
20630 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20631 <libm-alias-double.h>.
20632 (ceil): Define using libm_alias_double.
20633 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20634 <libm-alias-double.h>.
20635 (floor): Define using libm_alias_double.
20636 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20637 <libm-alias-double.h>.
20638 (nearbyint): Define using libm_alias_double.
20639 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20640 <libm-alias-double.h>.
20641 (rint): Define using libm_alias_double.
20642 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20643 <libm-alias-double.h>.
20644 (round): Define using libm_alias_double.
20645 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20646 <libm-alias-double.h>.
20647 (trunc): Define using libm_alias_double.
20648 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20649 <libm-alias-double.h>.
20650 (ceil): Define using libm_alias_double.
20651 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20652 <libm-alias-double.h>.
20653 (floor): Define using libm_alias_double.
20654 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20655 <libm-alias-double.h>.
20656 (round): Define using libm_alias_double.
20657 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20658 <libm-alias-double.h>.
20659 (trunc): Define using libm_alias_double.
20660
20661 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20662 (fabs): Define using libm_alias_double.
20663 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20664 (fma): Define using libm_alias_double.
20665 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20666 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20667 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20668 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20669
20670 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20671
20672 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20673
20674 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20675 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20676 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20677
20678 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20679 due redirect macro.
20680
20681 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20682
20683 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20684
20685 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20686
20687 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20688 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20689 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20690 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20691
20692 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20693 (libm-sysdep_routines): Add s_nearbyintf-generic and
20694 s_nearbyint-generic.
20695 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20696 New file.
20697 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20698 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20699 Likewise.
20700 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20701 Likewise.
20702 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20703 file.
20704 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20705 Likewise.
20706
20707 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20708 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20709 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20710 file.
20711 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20712 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20713 Likewise.
20714 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20715 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20716 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20717
20718 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20719 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20720 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20721 file.
20722 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20723 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20724 Likewise.
20725 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20726 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20727 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20728
20729 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20730 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20731 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20732 file.
20733 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20734 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20735 Likewise.
20736 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20737 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20738 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20739
20740 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20741 (sysdep_calls): New rule.
20742 (sysdep_routines): Use sysdep_calls as base.
20743 (libm-sysdep_routines): Add generic rule for symbols shared with
20744 libc. Add s_copysign-generic and s_copysign-generic objects.
20745 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20746 New file.
20747 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20748 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20749 Likewise.
20750 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20751 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20752 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20753
20754 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20755
20756 [BZ #22519]
20757 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20758 the list of locales to be built for testing.
20759 * localedata/is_IS.UTF-8.in: New file.
20760 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20761 on iso14651_t1.
20762
20763 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20764
20765 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20766 <libm-alias-float.h>.
20767 (fabsf): Define using libm_alias_float.
20768
20769 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20770
20771 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20772
20773 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20774
20775 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20776 <libm-alias-float.h>.
20777 (fabsf): Define using libm_alias_float.
20778 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20779 <libm-alias-float.h>.
20780 (lrintf): Define using libm_alias_float.
20781 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20782 <libm-alias-float.h>.
20783 (rintf): Define using libm_alias_float.
20784
20785 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20786 <libm-alias-double.h>.
20787 (fabs): Define using libm_alias_double.
20788 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20789 <libm-alias-double.h>.
20790 (lrint): Define using libm_alias_double.
20791 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20792 <libm-alias-double.h>.
20793 (rint): Define using libm_alias_double.
20794
20795 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20796 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20797 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20798 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20799 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20800 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20801 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20802 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20803 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20804 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20805 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20806 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20807 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20808 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20809 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20810 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20811 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20812 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20813 s_atan_template.c.
20814 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20815 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20816 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20817 s_ceil_template.c.
20818 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20819 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20820 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20821 s_cos_template.c.
20822 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20823 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20824 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20825 s_expm1_template.c.
20826 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20827 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20828 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20829 s_fabs_template.c.
20830 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20831 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20832 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20833 s_floor_template.c.
20834 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20835 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20836 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20837 s_frexp_template.c.
20838 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20839 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20840 s_lrint_template.c.
20841 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20842 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20843 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20844 s_modf_template.c.
20845 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20846 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20847 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20848 s_nearbyint_template.c.
20849 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20850 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20851 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20852 s_remquo_template.c.
20853 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20854 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20855 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20856 s_rint_template.c.
20857 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20858 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20859 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20860 s_sin_template.c.
20861 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20862 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20863 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20864 s_sincos_template.c.
20865 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20866 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20867 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20868 s_tan_template.c.
20869 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20870 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20871 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20872 s_tanh_template.c.
20873 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20874 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20875 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20876 s_trunc_template.c.
20877 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20878 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20879 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20880 s_atan.c instead of including s_atan.c.
20881 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20882 s_atanf.c instead of including s_atanf.c.
20883 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20884 s_atanl.c instead of including s_atanl.c.
20885 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20886 instead of s_atan.c.
20887 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20888 instead of s_atanf.c.
20889 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20890 instead of s_atanl.c.
20891
20892 * scripts/update-copyrights: Do not handle intl/plural.c
20893 specially.
20894
20895 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20896
20897 [BZ #22432]
20898 * configure.ac (BISON): Require to be present.
20899 * configure: Regenerated.
20900 * intl/Makefile (generated): Add plural.c.
20901 [$(BISON) != no]: Make code unconditional.
20902 (plural.c): Change rule to $(objpfx)plural.c.
20903 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20904 * intl/plural.c: Remove.
20905 * manual/install.texi (Tools for Compilation): Document bison as
20906 required.
20907 * INSTALL: Regenerated.
20908
20909 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20910
20911 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20912 <libm-alias-double.h>.
20913 (llrint): Define using libm_alias_double.
20914 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20915 <libm-alias-float.h>.
20916 (llrintf): Define using libm_alias_float.
20917 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20918 <libm-alias-ldouble.h>.
20919 (llrintl): Define using libm_alias_ldouble.
20920
20921 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20922 declare_mgen_alias instead of weak_alias.
20923 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20924 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20925 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20926
20927 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20928
20929 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20930 Add add_n-generic.
20931 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20932 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20933 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20934
20935 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20936 Add submul_1-generic.
20937 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20938 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20939 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20940
20941 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20942 Add addmul_1-generic.
20943 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20944 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20945 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20946
20947 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20948 Add sub_n-generic.
20949 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20950 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20951 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20952
20953 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20954 Add mul_1-generic.
20955 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20956 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20957 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20958
20959 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20960
20961 According to CLDR, collation rules for Serbian and Bosnian
20962 should be the same as for Croatian.
20963
20964 [BZ #22534]
20965 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20966 and to the list of locales to be built for testing.
20967 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20968 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20969 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20970 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20971
20972 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20973
20974 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20975 to make test case pass.
20976 * localedata/hr_HR.UTF-8.in: Add more test strings.
20977
20978 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20979
20980 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20981
20982 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20983
20984 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20985 the list of locales to built for testing.
20986 * localedata/hr_HR.UTF-8.in: New file.
20987
20988 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20989
20990 [BZ #10580]
20991 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20992 iso14651_t1.
20993 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20994 CLDR (except use ligatures for the digraphs, CLDR does not use
20995 the ligatures), add first_workday, some fixes in the date and time
20996 formats.
20997 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20998 for Đ and đ.
20999 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
21000 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
21001 Add int_p_cs_precedes and int_n_cs_precedes.
21002 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
21003 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
21004 LC_MONETARY now).
21005 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
21006 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
21007 name_miss.
21008 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
21009 and lang_lib. Change postal_fmt.
21010
21011 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
21012
21013 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
21014 <setjmp.h>.
21015 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21016 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
21017 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21018 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
21019 * sysdeps/generic/setjmpP.h: New file.
21020 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
21021 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
21022 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
21023 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
21024 Add jmp_buf-ssp.sym.
21025 (tests): Add tst-saved_mask-1.
21026
21027 2017-11-30 Arjun Shankar <arjun@redhat.com>
21028
21029 [BZ #22375]
21030 CVE-2017-17426
21031 * malloc/malloc.c (__libc_malloc): Use checked_request2size
21032 instead of request2size.
21033
21034 2017-11-30 Joseph Myers <joseph@codesourcery.com>
21035
21036 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21037 (__lllrint): Remove alias.
21038 (lllrint): Likewise.
21039 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21040 (__lllrintf): Likewise.
21041 (lllrintf): Likewise.
21042
21043 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21044 <libm-alias-float.h>.
21045 (copysignf): Define using libm_alias_float.
21046 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21047 <libm-alias-float.h>.
21048 (fabsf): Define using libm_alias_float.
21049 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21050 Include <libm-alias-float.h>.
21051 (copysignf): Define using libm_alias_float.
21052 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21053 <libm-alias-float.h>.
21054 (fabsf): Define using libm_alias_float.
21055 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21056 <libm-alias-float.h>.
21057 (fdimf): Define using libm_alias_float.
21058 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21059 <libm-alias-float.h>.
21060 (fmaf): Define using libm_alias_float.
21061 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21062 <libm-alias-float.h>.
21063 (llrintf): Define using libm_alias_float.
21064 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21065 Include <libm-alias-float.h>.
21066 (nearbyintf): Define using libm_alias_float.
21067 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21068 <libm-alias-float.h>.
21069 (rintf): Define using libm_alias_float.
21070 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21071 <libm-alias-float.h>.
21072 (llrintf): Define using libm_alias_float.
21073 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21074 <libm-alias-float.h>.
21075 (lrintf): Define using libm_alias_float.
21076 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21077 <libm-alias-float.h>.
21078 (nearbyintf): Define using libm_alias_float.
21079 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21080 <libm-alias-float.h>.
21081 (rintf): Define using libm_alias_float.
21082 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21083 <libm-alias-float.h>.
21084 (ceilf): Define using libm_alias_float.
21085 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21086 <libm-alias-float.h>.
21087 (floorf): Define using libm_alias_float.
21088 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
21089 <libm-alias-float.h>.
21090 (fmaf): Define using libm_alias_float.
21091 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
21092 <libm-alias-float.h>.
21093 (lrintf): Define using libm_alias_float.
21094 (llrintf): Likewise.
21095 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
21096 <libm-alias-float.h>.
21097 (nearbyintf): Define using libm_alias_float.
21098 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
21099 <libm-alias-float.h>.
21100 (rintf): Define using libm_alias_float.
21101 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
21102 <libm-alias-float.h>.
21103 (truncf): Define using libm_alias_float.
21104 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
21105 <libm-alias-float.h>.
21106 (copysignf): Define using libm_alias_float.
21107 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
21108 <libm-alias-float.h>.
21109 (fabsf): Define using libm_alias_float.
21110 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21111 <libm-alias-float.h>.
21112 (lrintf): Define using libm_alias_float.
21113 (llrintf): Likewise.
21114 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21115 <libm-alias-float.h>.
21116 (nearbyintf): Define using libm_alias_float.
21117 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21118 <libm-alias-float.h>.
21119 (rintf): Define using libm_alias_float.
21120
21121 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21122
21123 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21124 <libm-alias-double.h>.
21125 (copysign): Define using libm_alias_double.
21126 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21127 <libm-alias-double.h>.
21128 (fabs): Define using libm_alias_double.
21129 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21130 Include <libm-alias-double.h>.
21131 (copysign): Define using libm_alias_double.
21132 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21133 <libm-alias-double.h>.
21134 (fabs): Define using libm_alias_double.
21135 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21136 <libm-alias-double.h>.
21137 (fdim): Define using libm_alias_double.
21138 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21139 <libm-alias-double.h>.
21140 (fma): Define using libm_alias_double.
21141 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21142 <libm-alias-double.h>.
21143 (llrint): Define using libm_alias_double.
21144 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21145 Include <libm-alias-double.h>.
21146 (nearbyint): Define using libm_alias_double.
21147 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21148 <libm-alias-double.h>.
21149 (rint): Define using libm_alias_double.
21150 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21151 <libm-alias-double.h>.
21152 (fabs): Define using libm_alias_double.
21153 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21154 <libm-alias-double.h>.
21155 (llrint): Define using libm_alias_double.
21156 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21157 <libm-alias-double.h>.
21158 (nearbyint): Define using libm_alias_double.
21159 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21160 <libm-alias-double.h>.
21161 (rint): Define using libm_alias_double.
21162 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21163 <libm-alias-double.h>.
21164 (ceil): Define using libm_alias_double.
21165 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21166 <libm-alias-double.h>.
21167 (floor): Define using libm_alias_double.
21168 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21169 <libm-alias-double.h>.
21170 (fma): Define using libm_alias_double.
21171 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21172 <libm-alias-double.h>.
21173 (lrint): Define using libm_alias_double.
21174 (llrint): Likewise.
21175 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21176 <libm-alias-double.h>.
21177 (nearbyint): Define using libm_alias_double.
21178 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21179 <libm-alias-double.h>.
21180 (rint): Define using libm_alias_double.
21181 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21182 <libm-alias-double.h>.
21183 (trunc): Define using libm_alias_double.
21184 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21185 <libm-alias-double.h>.
21186 (copysign): Define using libm_alias_double.
21187 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21188 <libm-alias-double.h>.
21189 (fabs): Define using libm_alias_double.
21190 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21191 <libm-alias-double.h>.
21192 (lrint): Define using libm_alias_double.
21193 (llrint): Likewise.
21194 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21195 <libm-alias-double.h>.
21196 (nearbyint): Define using libm_alias_double.
21197 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21198 <libm-alias-double.h>.
21199 (rint): Define using libm_alias_double.
21200
21201 [BZ #22229]
21202 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21203 <math_ldbl_opt.h>.
21204 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21205
21206 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21207 SPARC --disable-multi-arch glibc variants.
21208
21209 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21210 <libm-alias-float.h>.
21211 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21212 if [SHARED].
21213 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21214 <libm-alias-float.h>.
21215 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21216 if [SHARED].
21217 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21218 <libm-alias-float.h>.
21219 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21220 if [SHARED].
21221 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21222 <libm-alias-float.h>.
21223 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21224 if [SHARED].
21225 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21226 <libm-alias-float.h>.
21227 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21228 if [SHARED].
21229 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21230 <libm-alias-float.h>.
21231 (ceilf): Define using libm_alias_float.
21232 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21233 <libm-alias-float.h>.
21234 (floorf): Define using libm_alias_float.
21235 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21236 <libm-alias-float.h>.
21237 (fmaf): Define using libm_alias_float.
21238 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21239 <libm-alias-float.h>.
21240 (nearbyintf): Define using libm_alias_float.
21241 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21242 <libm-alias-float.h>.
21243 (rintf): Define using libm_alias_float.
21244 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21245 <libm-alias-float.h>.
21246 (truncf): Define using libm_alias_float.
21247 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21248 (copysignf): Define using libm_alias_float.
21249 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21250 (cosf): Define using libm_alias_float.
21251 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21252 (fabsf): Define using libm_alias_float.
21253 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21254 (fmaxf): Define using libm_alias_float.
21255 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21256 (fminf): Define using libm_alias_float.
21257 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21258 (llrintf): Define using libm_alias_float.
21259 [!__ILP32__] (lrintf): Likewise.
21260 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21261 (sincosf): Define using libm_alias_float.
21262 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21263 (sinf): Define using libm_alias_float.
21264 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21265 (lrintf): Define using libm_alias_float.
21266
21267 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21268 <libm-alias-double.h>.
21269 (atan): Define using libm_alias_double.
21270 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21271 <libm-alias-double.h>.
21272 (ceil): Define using libm_alias_double.
21273 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21274 <libm-alias-double.h>.
21275 (floor): Define using libm_alias_double.
21276 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21277 <libm-alias-double.h>.
21278 (fma): Define using libm_alias_double.
21279 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21280 <libm-alias-double.h>.
21281 (nearbyint): Define using libm_alias_double.
21282 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21283 <libm-alias-double.h>.
21284 (rint): Define using libm_alias_double.
21285 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21286 <libm-alias-double.h>.
21287 (sin): Define using libm_alias_double.
21288 (cos): Likewise.
21289 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21290 <libm-alias-double.h>.
21291 (tan): Define using libm_alias_double.
21292 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21293 <libm-alias-double.h>.
21294 (trunc): Define using libm_alias_double.
21295 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21296 (copysign): Define using libm_alias_double.
21297 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21298 (fabs): Define using libm_alias_double.
21299 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21300 (fmax): Define using libm_alias_double.
21301 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21302 (fmin): Define using libm_alias_double.
21303 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21304 (llrint): Define using libm_alias_double.
21305 [!__ILP32__] (lrint): Likewise.
21306 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21307 (lrint): Define using libm_alias_double.
21308
21309 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21310
21311 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21312 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21313 objects.
21314 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21315 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21316 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21317 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21318 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21319 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21320
21321 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21322 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21323 objects.
21324 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21325 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21326 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21327 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21328 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21329 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21330
21331 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21332 (libm-sysdep_routines): Add s_nearbyint-generic and
21333 s_nearbyintf-generic objects.
21334 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21335 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21336 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21337 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21338 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21339 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21340
21341 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21342 Add s_finitef-generic and s_finite-generic objects.
21343 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21344 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21345 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21346 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21347 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21348 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21349
21350 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21351 Add s_isinff-generic and s_isinf-generic objects.
21352 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21353 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21354 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21355 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21356 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21357 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21358
21359 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21360 Add s_isnanf-generic and s_isnan-generic objects.
21361 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21362 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21363 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21364 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21365 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21366 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21367
21368 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21369 macro.
21370 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21371 rule.
21372 (sysdep_routines): Use sysdep_calls as base.
21373 (libm-sysdep_routines): Add generic rule for symbols shared with
21374 libc. Add s_signbit-generic and s_signbitf-generic objects.
21375 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21376 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21377 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21378 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21379 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21380 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21381
21382 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21383
21384 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21385 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21386 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21387 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21388 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21389 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21390 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21391 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21392 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21393 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21394 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21395 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21396 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21397 libm_alias_float_r.
21398 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21399 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21400 (logf): Likewise.
21401 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21402 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21403 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21404 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21405 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21406 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21407 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21408 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21409 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21410 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21411 libm_alias_float.
21412 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21413 (cosf): Likewise.
21414 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21415 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21416 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21417 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21418 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21419 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21420 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21421 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21422 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21423 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21424 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21425 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21426 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21427 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21428 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21429 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21430 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21431 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21432 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21433 libm_alias_float.
21434 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21435 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21436 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21437 * sysdeps/ia64/fpu/w_lgammaf_main.c
21438 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21439 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21440
21441 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21442 Alexandre Oliva <aoliva@redhat.com>
21443
21444 [BZ #17750]
21445 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21446 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21447 accents sorting.
21448 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21449 sorting.
21450 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21451 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21452 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21453 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21454 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21455 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21456 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21457 instead of “ifdef DIACRIT_BACKWARD”.
21458
21459 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21460
21461 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21462 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21463 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21464 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21465 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21466 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21467 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21468 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21469 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21470 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21471 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21472 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21473 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21474 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21475 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21476 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21477 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21478 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21479 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21480 ($(have-as-vis3) == yes): Remove conditional.
21481 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21482 Likewise.
21483 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21484 file.
21485 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21486 file.
21487 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21488 file.
21489 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21490 file.
21491 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21492 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21493 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21494 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21495 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21496 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21497 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21498 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21499
21500 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21501
21502 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21503 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21504 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21505 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21506 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21507 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21508 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21509 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21510 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21511 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21512 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21513 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21514 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21515 libm_alias_double_r.
21516 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21517 (log): Likewise.
21518 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21519 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21520 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21521 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21522 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21523 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21524 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21525 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21526 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21527 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21528 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21529 libm_alias_double.
21530 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21531 (cos): Likewise.
21532 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21533 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21534 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21535 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21536 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21537 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21538 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21539 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21540 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21541 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21542 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21543 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21544 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21545 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21546 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21547 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21548 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21549 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21550 libm_alias_double.
21551 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21552 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21553 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21554 * sysdeps/ia64/fpu/w_lgamma_main.c
21555 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21556 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21557
21558 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21559
21560 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21561 address of $global$ into %dp register earlier. Use pc-relative
21562 instruction sequence for PIC case.
21563
21564 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21565
21566 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21567 (asinhf): Define using libm_alias_float.
21568 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21569 (atanf): Define using libm_alias_float.
21570 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21571 (cbrtf): Define using libm_alias_float.
21572 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21573 (ceilf): Define using libm_alias_float.
21574 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21575 (copysignf): Define using libm_alias_float.
21576 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21577 (expm1f): Define using libm_alias_float.
21578 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21579 (fabsf): Define using libm_alias_float.
21580 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21581 (floorf): Define using libm_alias_float.
21582 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21583 (fmaxf): Define using libm_alias_float.
21584 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21585 (fminf): Define using libm_alias_float.
21586 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21587 (frexpf): Define using libm_alias_float.
21588 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21589 (llrintf): Define using libm_alias_float.
21590 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21591 (logbf): Define using libm_alias_float.
21592 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21593 (lrintf): Define using libm_alias_float.
21594 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21595 (nearbyintf): Define using libm_alias_float.
21596 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21597 (remquof): Define using libm_alias_float.
21598 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21599 (rintf): Define using libm_alias_float.
21600 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21601 (truncf): Define using libm_alias_float.
21602 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21603 <libm-alias-float.h>.
21604 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21605 if [SHARED].
21606 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21607 <libm-alias-float.h>.
21608 (expf): Define using libm_alias_float, or libm_alias_float_other
21609 if [SHARED].
21610 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21611 <libm-alias-float.h>.
21612 (log2f): Define using libm_alias_float, or libm_alias_float_other
21613 if [SHARED].
21614 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21615 <libm-alias-float.h>.
21616 (logf): Define using libm_alias_float, or libm_alias_float_other
21617 if [SHARED].
21618 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21619 <libm-alias-float.h>.
21620 (powf): Define using libm_alias_float, or libm_alias_float_other
21621 if [SHARED].
21622 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21623 <libm-alias-float.h>.
21624 (cosf): Define using libm_alias_float.
21625 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21626 <libm-alias-float.h>.
21627 (sincosf): Define using libm_alias_float.
21628 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21629 <libm-alias-float.h>.
21630 (sinf): Define using libm_alias_float.
21631 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21632 (fmaxf): Define using libm_alias_float.
21633 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21634 (fminf): Define using libm_alias_float.
21635 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21636 <libm-alias-float.h>.
21637 (fmaf): Define using libm_alias_float.
21638
21639 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21640 (asinh): Define using libm_alias_double.
21641 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21642 (atan): Define using libm_alias_double.
21643 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21644 (cbrt): Define using libm_alias_double.
21645 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21646 (ceil): Define using libm_alias_double.
21647 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21648 (copysign): Define using libm_alias_double.
21649 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21650 (expm1): Define using libm_alias_double.
21651 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21652 (fabs): Define using libm_alias_double.
21653 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21654 (fdim): Define using libm_alias_double.
21655 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21656 (floor): Define using libm_alias_double.
21657 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21658 (fmax): Define using libm_alias_double.
21659 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21660 (fmin): Define using libm_alias_double.
21661 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21662 (frexp): Define using libm_alias_double.
21663 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21664 (llrint): Define using libm_alias_double.
21665 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21666 (logb): Define using libm_alias_double.
21667 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21668 (lrint): Define using libm_alias_double.
21669 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21670 (nearbyint): Define using libm_alias_double.
21671 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21672 (remquo): Define using libm_alias_double.
21673 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21674 (rint): Define using libm_alias_double.
21675 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21676 (trunc): Define using libm_alias_double.
21677 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21678 (fmax): Define using libm_alias_double.
21679 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21680 (fmin): Define using libm_alias_double.
21681 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21682 (fma): Define using libm_alias_double.
21683
21684 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21685
21686 [BZ #22370]
21687 * elf/dl-hwcaps.c (ROUND): Removed.
21688 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21689 and ELF_NOTE_NEXT_OFFSET.
21690 * elf/dl-load.c (ROUND): Removed.
21691 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21692 * elf/readelflib.c (ROUND): Removed.
21693 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21694 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21695 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21696 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21697
21698 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21699
21700 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21701 [!__fmaf] (fmaf): Define using libm_alias_float.
21702
21703 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21704 [!__fma] (fma): Define using libm_alias_double.
21705 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21706
21707 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21708
21709 [BZ #22336]
21710 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21711 and implement the collation rules for cs from CLDR on top of that.
21712 * Makefile: Add cs_CZ.UTF-8 to test-input.
21713 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21714
21715 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21716
21717 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21718
21719 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21720 Icarus Sparry <icarus.w.sparry@intel.com>
21721
21722 * benchtests/Makefile:Add BENCHSET to allow subsets of
21723 benchmarks to be run.
21724 * benchtests/README: Add documentation for: Running subsets of
21725 benchmarks.
21726
21727 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21728
21729 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21730 range of tests names.
21731
21732 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21733 result from property and remove "max", min" and "mean" from
21734 required properties based on benchtests/bench-skeleton.c.
21735
21736 2017-11-28 Florian Weimer <fweimer@redhat.com>
21737
21738 [BZ #20826]
21739 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21740 due to Internet requirement.
21741 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21742 tst-getaddrinfo5.
21743 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21744
21745 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21746
21747 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21748 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21749 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21750 (sysdep_routines): Add memset-ultra1.
21751 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21752 file.
21753 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21754 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21755 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21756 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21757 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21758 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21759 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21760 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21761
21762 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21763 file.
21764 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21765 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21766 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21767 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21768 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21769 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21770 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21771 macro.
21772 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21773 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21774 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21775 (sysdep_routines): Add memcpy-ultra1.
21776 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21777 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21778
21779 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21780
21781 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21782 (cfloat_versions): Take function argument without trailing 'f'.
21783 Call libm_alias_float_other.
21784 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21785 * sysdeps/alpha/fpu/cargf.c: Likewise.
21786 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21787 * sysdeps/alpha/fpu/conjf.c: Likewise.
21788 * sysdeps/alpha/fpu/crealf.c: Likewise.
21789 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21790 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21791 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21792 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21793 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21794 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21795 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21796 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21797 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21798 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21799 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21800 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21801 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21802 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21803 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21804 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21805 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21806 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21807 (clog10f): Use libm_alias_float_other.
21808 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21809 (ceilf): Define using libm_alias_float.
21810 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21811 (copysignf): Define using libm_alias_float.
21812 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21813 (fabsf): Define using libm_alias_float.
21814 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21815 (floorf): Define using libm_alias_float.
21816 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21817 (fmaxf): Define using libm_alias_float.
21818 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21819 (fminf): Define using libm_alias_float.
21820 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21821 (lrintf): Define using libm_alias_float.
21822 (llrintf): Likewise.
21823 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21824 (lroundf): Define using libm_alias_float.
21825 (llroundf): Likewise.
21826 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21827 (rintf): Define using libm_alias_float.
21828 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21829 (truncf): Define using libm_alias_float.
21830
21831 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21832 (ceilf): Define using libm_alias_float.
21833 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21834 (floorf): Define using libm_alias_float.
21835 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21836 (fmaf): Define using libm_alias_float.
21837 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21838 (fmaxf): Define using libm_alias_float.
21839 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21840 (fminf): Define using libm_alias_float.
21841 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21842 (llrintf): Define using libm_alias_float.
21843 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21844 (llroundf): Define using libm_alias_float.
21845 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21846 (lrintf): Define using libm_alias_float.
21847 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21848 (lroundf): Define using libm_alias_float.
21849 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21850 <libm-alias-float.h>.
21851 (nearbyintf): Define using libm_alias_float.
21852 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21853 (rintf): Define using libm_alias_float.
21854 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21855 (roundf): Define using libm_alias_float.
21856 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21857 (truncf): Define using libm_alias_float.
21858
21859 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21860 (ceil): Define using libm_alias_double.
21861 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21862 (copysign): Define using libm_alias_double.
21863 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21864 (fabs): Define using libm_alias_double.
21865 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21866 (floor): Define using libm_alias_double.
21867 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21868 (fmax): Define using libm_alias_double.
21869 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21870 (fmin): Define using libm_alias_double.
21871 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21872 (lrint): Define using libm_alias_double.
21873 (llrint): Likewise.
21874 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21875 (lround): Define using libm_alias_double.
21876 (llround): Likewise.
21877 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21878 (rint): Define using libm_alias_double.
21879 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21880 (trunc): Define using libm_alias_double.
21881
21882 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21883 (libm_alias_double_r): Add semicolon after weak_alias call.
21884
21885 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21886
21887 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21888 (ceil): Define using libm_alias_double.
21889 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21890 (floor): Define using libm_alias_double.
21891 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21892 (fma): Define using libm_alias_double.
21893 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21894 (fmax): Define using libm_alias_double.
21895 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21896 (fmin): Define using libm_alias_double.
21897 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21898 (llrint): Define using libm_alias_double.
21899 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21900 (llround): Define using libm_alias_double.
21901 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21902 (lrint): Define using libm_alias_double.
21903 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21904 (lround): Define using libm_alias_double.
21905 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21906 (nearbyint): Define using libm_alias_double.
21907 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21908 (rint): Define using libm_alias_double.
21909 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21910 (round): Define using libm_alias_double.
21911 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21912 (trunc): Define using libm_alias_double.
21913
21914 2017-11-27 Florian Weimer <fweimer@redhat.com>
21915
21916 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21917 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21918 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21919 (tests): Add tst-mlock2.
21920 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21921 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21922 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21923 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21924 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21925 for mlock. Document mlock2.
21926
21927 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21928
21929 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21930 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21931 Likewise.
21932 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21933 Likewise.
21934 * sysdeps/x86/Makeconfig: New file.
21935 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21936 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21937 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21938 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21939 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21940 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21941 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21942 Likewise.
21943 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21944 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21945 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21946 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21947 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21948 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21949 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21950 * manual/math.texi (Mathematics): Document support for _Float64x.
21951 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21952 * stdlib/Versions (GLIBC_2.27): Likewise.
21953 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21954 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21955 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21956 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21957 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21958 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21959 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21960 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21961 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21962 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21963 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21964 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21966 Likewise.
21967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21968 Likewise.
21969 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21970 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21971 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21972 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21973 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21974 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21975 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21976 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21977 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21978 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21979 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21980 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21981 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21982 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21983
21984 2017-11-27 Andreas Schwab <schwab@suse.de>
21985
21986 * elf/Makefile (dl-routines): Add dl-sort-maps.
21987 * elf/dl-sort-maps.c: New file.
21988 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21989 (_dl_sort_maps): Declare.
21990 * elf/dl-fini.c (_dl_sort_fini): Remove.
21991 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21992 * elf/dl-close.c (_dl_close_worker): Likewise.
21993 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21994 open-coding it.
21995 * elf/dl-open.c (dl_open_worker): Likewise.
21996
21997 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21998
21999 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
22000 using libm_alias_float128.
22001 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
22002 Likewise.
22003 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
22004 Likewise.
22005 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
22006 (setpayloadsigf128): Likewise.
22007 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
22008 Likewise.
22009 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
22010 Likewise.
22011
22012 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
22013 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
22014 -mfloat128 to CFLAGS.
22015 ($(foreach
22016 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
22017 Likewise.
22018 (CFLAGS-libm-test-support-float64x.c): New variable.
22019 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
22020 $(f128-loader-link) to gnulib-tests.
22021
22022 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
22023 (libm_alias_float128_other_r): If
22024 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
22025 alias.
22026 (libm_alias_float128_r): Add semicolon after weak_alias call.
22027 * sysdeps/generic/libm-alias-ldouble.h
22028 (libm_alias_ldouble_other_r_f128): New macro.
22029 (libm_alias_ldouble_other_r_f64x): Likewise.
22030 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22031 and libm_alias_ldouble_other_r_f64x.
22032 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
22033 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22034 (libm_alias_ldouble_other_r_f128): New macro.
22035 (libm_alias_ldouble_other_r_f64x): Likewise.
22036 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22037 and libm_alias_ldouble_other_r_f64x.
22038
22039 * stdlib/strfroml.c: Always include <stdlib.h>.
22040 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22041 undefine as macro and define as weak alias.
22042 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22043 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22044 <stdlib.h>.
22045 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22046 Define and later undefine as macro and define as weak alias.
22047
22048 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22049 Define and later undefine as macro. Define as weak alias if
22050 [!USE_WIDE_CHAR].
22051 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22052 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22053 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22054 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22055 Define and later undefine as macro. Define as weak alias if
22056 [!USE_WIDE_CHAR].
22057 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22058 Define and later undefine as macro. Define as weak alias if
22059 [USE_WIDE_CHAR].
22060 * sysdeps/ieee754/float128/strtof128_l.c
22061 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22062 Define and later undefine as macro. Define as weak alias if
22063 [!USE_WIDE_CHAR].
22064 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22065 Define and later undefine as macro. Define as weak alias if
22066 [USE_WIDE_CHAR].
22067 * sysdeps/ieee754/ldbl-128/strtold_l.c
22068 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22069 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22070 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22071 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22072 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22073 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22074 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22075 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22076 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22077 * sysdeps/ieee754/ldbl-96/strtold_l.c
22078 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22079 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
22080 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22081 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
22082
22083 * math/test-float64x.h: New file.
22084 * math/Makefile (type-float64x-yes): New variable.
22085 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22086
22087 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22088 function-like macro.
22089 (min_of_type_): Likewise.
22090 (min_of_type_l): Likewise.
22091 (min_of_type_f128): Likewise.
22092 (min_of_type): Pass () as last argument of __MATH_TG.
22093
22094 * stdlib/tst-strtod-round-skeleton.c
22095 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
22096 headers.
22097
22098 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
22099 for combinations of long double with _Float64 and _Float64x.
22100
22101 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
22102 (__DECL_SIMD_cosf32): Likewise.
22103 (__DECL_SIMD_cosf64): Likewise.
22104 (__DECL_SIMD_cosf32x): Likewise.
22105 (__DECL_SIMD_cosf64x): Likewise.
22106 (__DECL_SIMD_cosf128x): Likewise.
22107 (__DECL_SIMD_sinf16): Likewise.
22108 (__DECL_SIMD_sinf32): Likewise.
22109 (__DECL_SIMD_sinf64): Likewise.
22110 (__DECL_SIMD_sinf32x): Likewise.
22111 (__DECL_SIMD_sinf64x): Likewise.
22112 (__DECL_SIMD_sinf128x): Likewise.
22113 (__DECL_SIMD_sincosf16): Likewise.
22114 (__DECL_SIMD_sincosf32): Likewise.
22115 (__DECL_SIMD_sincosf64): Likewise.
22116 (__DECL_SIMD_sincosf32x): Likewise.
22117 (__DECL_SIMD_sincosf64x): Likewise.
22118 (__DECL_SIMD_sincosf128x): Likewise.
22119 (__DECL_SIMD_logf16): Likewise.
22120 (__DECL_SIMD_logf32): Likewise.
22121 (__DECL_SIMD_logf64): Likewise.
22122 (__DECL_SIMD_logf32x): Likewise.
22123 (__DECL_SIMD_logf64x): Likewise.
22124 (__DECL_SIMD_logf128x): Likewise.
22125 (__DECL_SIMD_expf16): Likewise.
22126 (__DECL_SIMD_expf32): Likewise.
22127 (__DECL_SIMD_expf64): Likewise.
22128 (__DECL_SIMD_expf32x): Likewise.
22129 (__DECL_SIMD_expf64x): Likewise.
22130 (__DECL_SIMD_expf128x): Likewise.
22131 (__DECL_SIMD_powf16): Likewise.
22132 (__DECL_SIMD_powf32): Likewise.
22133 (__DECL_SIMD_powf64): Likewise.
22134 (__DECL_SIMD_powf32x): Likewise.
22135 (__DECL_SIMD_powf64x): Likewise.
22136 (__DECL_SIMD_powf128x): Likewise.
22137
22138 * stdlib/Versions (libc): Move entries for wcstof128 and
22139 wcstof128_l to ....
22140 * wcsmbs/Versions (libc): ... here.
22141 Include <float128-abi.h>.
22142
22143 2017-11-24 Florian Weimer <fweimer@redhat.com>
22144
22145 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22146 bits/mman-shared.h.
22147 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22148 <bits/mman-shared.h>.
22149 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22150 to ...
22151 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22152 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22153 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22154 <bits/mman-shared.h>.
22155
22156 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22157
22158 [BZ #22457]
22159 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22160 posix_memalign/free.
22161 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22162
22163 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22164
22165 [BZ #22469]
22166 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22167 and implement the collation rules for pl from CLDR on top of that.
22168 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22169 of locales to be built for testing.
22170 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22171
22172 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22173
22174 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22175 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22176 libm_alias_ldouble_other.
22177 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22178 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22179 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22180 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22181 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22182 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22183 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22184 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22185 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22186 libm_alias_ldouble_r.
22187 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22188 libm_alias_ldouble_other.
22189 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22190 (log10l): Likewise.
22191 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22192 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22193 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22194 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22195 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22196 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22197 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22198 (atan2l): Likewise.
22199 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22200 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22201 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22202 libm_alias_ldouble.
22203 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22204 (cosl): Likewise.
22205 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22206 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22207 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22208 (expl): Likewise.
22209 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22210 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22211 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22212 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22213 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22214 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22215 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22216 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22217 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22218 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22219 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22220 libm_alias_ldouble.
22221 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22222 libm_alias_ldouble_other.
22223 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22224 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22225 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22226 libm_alias_ldouble.
22227 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22228 libm_alias_ldouble_other.
22229 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22230 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22231 * sysdeps/ia64/fpu/w_lgammal_main.c
22232 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22233 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22234
22235 2017-11-23 Florian Weimer <fweimer@redhat.com>
22236
22237 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22238 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22239 alike. Remove freeres marker.
22240 * malloc/arena.c (arena_thread_freeres): Call
22241 tcache_thread_shutdown.
22242
22243 2017-11-23 Florian Weimer <fweimer@redhat.com>
22244
22245 [BZ #22459]
22246 Export nscd hash function as __nss_hash.
22247 * include/nss.h (__nss_hash): Declare.
22248 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22249 symbol.
22250 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22251 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22252 of __nscd_hash.
22253 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22254 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22255 * nss/Makefiles (routines): Add nss_hash.
22256 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22257 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22258 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22259 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22260
22261 2017-11-23 Florian Weimer <fweimer@redhat.com>
22262
22263 [BZ #22478]
22264 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22265 Return error code, not -1.
22266 * signal/tst-sigwait-eintr.c: New file.
22267 * signal/Makefile (tests): Add tst-sigwait-eintr.
22268
22269 2017-11-23 Florian Weimer <fweimer@redhat.com>
22270
22271 Linux: Add memfd_create system call wrapper
22272 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22273 tst-memfd_create.
22274 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22275 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22276 [__USE_GNU] (memfd_create): Declare.
22277 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22278 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22279 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22280 * sysdeps/unix/sysv/linux/**.abilist: Update.
22281 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22282
22283 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22284
22285 * localedata/gen-locale.sh: Fix typo in variable name.
22286
22287 * resolv/res_debug.c (p_secstodate): Condition definition on
22288 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22289 directly as __p_secstodate, and as a compat symbol. Do not use
22290 libresolv_hidden_def.
22291 * resolv/resolv.h (p_secstodate): Remove macro and function
22292 declaration.
22293 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22294 using p_secstodate.
22295 * include/resolv.h (__p_secstodate): Do not use
22296 libresolv_hidden_proto.
22297 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22298 (tests-internal): ... here.
22299 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22300 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22301 and declare and use __p_secstodate and use compat_symbol_reference
22302 in that case.
22303 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22304 implementation returning 77.
22305
22306 [BZ #22463]
22307 * resolv/res_debug.c: Include <libc-diag.h>.
22308 (p_secstodate): Assert time_t at least as wide as u_long. On
22309 overflow, use integer seconds since the epoch as output, or use
22310 "<overflow>" as output and set errno to EOVERFLOW if integer
22311 seconds since the epoch would be 14 or more characters.
22312 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22313 for sprintf call.
22314 * resolv/tst-p_secstodate.c: New file.
22315 * resolv/Makefile (tests): Add tst-p_secstodate.
22316 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22317
22318 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22319 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22320 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22321
22322 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22323
22324 * posix/regcomp.c (init_word_char): Add comments.
22325
22326 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22327
22328 [BZ #22447]
22329 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22330 strlen to compute length of ut_user and set trailing NUL byte of
22331 result explicitly.
22332
22333 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22334
22335 [BZ #15537]
22336 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22337 using “copy "iso14651_t1"” and then implementing the
22338 collation rules for lv from CLDR on top of that.
22339 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22340 of locales to be built for testing.
22341 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22342 sorting.
22343
22344 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22345
22346 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22347 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22348 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22349 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22350 [__USE_MISC] (MADV_HWPOISON): New macro.
22351 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22352
22353 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22354
22355 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22356 -Wmissing-braces on GCC 4.9.
22357
22358 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22359
22360 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22361 * sysdeps/s390/s390-32/start.S (_start): Likewise
22362 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22363 (thread_start): Likewise.
22364 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22365 (thread_start): Likewise.
22366 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22367 (__makecontext_ret): Likewise.
22368 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22369 (__makecontext_ret): Likewise.
22370
22371 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22372
22373 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22374 __wcschrnul): Remove attribute_hidden.
22375
22376 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22377
22378 regex: don't assume uint64_t or uint32_t
22379 This avoids -Werror=overflow errors for 32-bit systems in
22380 the 64-bit case. Problem reported by Joseph Myers in:
22381 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22382 Also, when this code is used in Gnulib it ports to platforms
22383 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22384 them, and on some 32-bit compilers there is no uint64_t.
22385 Problem reported by Gianluigi Tiesi in:
22386 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22387 * posix/regcomp.c (init_word_char): Don't assume that the types
22388 uint64_t and uint32_t exist. Adapted from Gnulib patch
22389 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22390 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22391
22392 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22393
22394 * sysdeps/aarch64/memset-reg.h: New file.
22395 * sysdeps/aarch64/memset.S: Use it.
22396 (__memset): Rename to MEMSET macro.
22397 [ZVA_MACRO]: Use zva_macro.
22398 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22399 Add memset_generic and memset_falkor.
22400 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22401 (__libc_ifunc_impl_list): Add memset ifuncs.
22402 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22403 local variable zva_size.
22404 * sysdeps/aarch64/multiarch/memset.c: New file.
22405 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22406 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22407 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22408 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22409 (DCZID_DZP_MASK): New macro.
22410 (DCZID_BS_MASK): Likewise.
22411 (init_cpu_features): Read and set zva_size.
22412 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22413 (struct cpu_features): New member zva_size.
22414
22415 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22416 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22417 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22418
22419 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22420 backwards. Fix timing computation.
22421 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22422 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22423 on memset by N at a time. Fix timing computation.
22424
22425 2017-11-20 Florian Weimer <fweimer@redhat.com>
22426
22427 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22428 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22429
22430 2017-11-19 Florian Weimer <fweimer@redhat.com>
22431
22432 manual: Document mprotect
22433 * manual/memory.texi (Memory Protection): New section.
22434 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22435 documentation of PROT_* flags and reference the Memory Protection
22436 section instead.
22437
22438 2017-11-19 Florian Weimer <fweimer@redhat.com>
22439
22440 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22441 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22442 (Scatter-Gather): ... to here. Remove misleading comment.
22443
22444 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22445
22446 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22447 style.
22448
22449 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22450 when /proc/<pid>/setgroups does not exist.
22451
22452 2017-11-18 Florian Weimer <fweimer@redhat.com>
22453
22454 * sysdeps/unix/sysv/linux/tst-ttyname.c
22455 (become_root_in_mount_ns): Remove.
22456 (do_in_chroot_1): Call support_enter_mount_namespace.
22457 (do_in_chroot_2): Likewise.
22458 (do_test): Call support_become_root early.
22459
22460 2017-11-18 Florian Weimer <fweimer@redhat.com>
22461
22462 * support/namespace.h (support_enter_mount_namespace): Declare.
22463 * support/support_enter_mount_namespace.c: New file.
22464 * support/Makefile (libsupport-routines): Add
22465 support_enter_mount_namespace.
22466
22467 2017-11-18 Florian Weimer <fweimer@redhat.com>
22468
22469 * support/temp_file.c (support_create_temp_directory): Use
22470 test_dir and do not rely on the presence of the XXXXXX suffix.
22471 * support/temp_file.h (support_create_temp_directory): Update
22472 comment.
22473 * support/tst-xreadlink.c (do_test): Adjust.
22474 * support/support_chroot.c (support_chroot_create): Likewise.
22475
22476 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22477
22478 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22479 macro.
22480 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22481 htm-no-suspend.
22482
22483 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22484
22485 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22486 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22487 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22488 (ceill): Define using libm_alias_ldouble.
22489 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22490 <libm-alias-ldouble.h>.
22491 (copysignl): Define using libm_alias_ldouble.
22492 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22493 (fabsl): Define using libm_alias_ldouble.
22494 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22495 (floorl): Define using libm_alias_ldouble.
22496 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22497 (fmaxl): Define using libm_alias_ldouble.
22498 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22499 (fminl): Define using libm_alias_ldouble.
22500 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22501 (llrintl): Define using libm_alias_ldouble.
22502 (lrintl): Likewise.
22503 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22504 <libm-alias-ldouble.h>.
22505 (nearbyintl): Define using libm_alias_ldouble.
22506 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22507 (truncl): Define using libm_alias_ldouble.
22508 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22509 <libm-alias-ldouble.h>.
22510 (lrintl): Define using libm_alias_ldouble.
22511
22512 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22513 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22514 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22515 (asinhl): Define using libm_alias_ldouble.
22516 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22517 (atanl): Define using libm_alias_ldouble.
22518 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22519 (cbrtl): Define using libm_alias_ldouble.
22520 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22521 (ceill): Define using libm_alias_ldouble.
22522 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22523 (copysignl): Define using libm_alias_ldouble.
22524 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22525 (fabsl): Define using libm_alias_ldouble.
22526 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22527 (floorl): Define using libm_alias_ldouble.
22528 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22529 (fmaxl): Define using libm_alias_ldouble.
22530 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22531 (fminl): Define using libm_alias_ldouble.
22532 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22533 (frexpl): Define using libm_alias_ldouble.
22534 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22535 (llrintl): Define using libm_alias_ldouble.
22536 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22537 (logbl): Define using libm_alias_ldouble.
22538 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22539 (lrintl): Define using libm_alias_ldouble.
22540 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22541 (nearbyintl): Define using libm_alias_ldouble.
22542 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22543 (nextafterl): Define using libm_alias_ldouble.
22544 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22545 (remquol): Define using libm_alias_ldouble.
22546 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22547 (rintl): Define using libm_alias_ldouble.
22548 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22549 (truncl): Define using libm_alias_ldouble.
22550 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22551 (fmaxl): Define using libm_alias_ldouble.
22552 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22553 (fminl): Define using libm_alias_ldouble.
22554
22555 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22556 to C syntax instead of availability and properties of types.
22557 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22558 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22559 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22560 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22561 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22562 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22563
22564 2017-11-17 Florian Weimer <fweimer@redhat.com>
22565
22566 support_become_root: Enable file creation in namespaces.
22567 * support/support_become_root.c (setup_mapping): New function.
22568 (support_become_root): Call it.
22569
22570 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22571
22572 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22573 macro.
22574
22575 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22576
22577 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22578 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22579
22580 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22581
22582 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22583
22584 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22585 version to 4.14.
22586
22587 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22588
22589 * INSTALL: Fix botched up regeneration.
22590
22591 * NEWS: Update sourceare link to https.
22592 * configure.ac: Likewise.
22593 * crypt/md5test-giant.c: Likewise.
22594 * dlfcn/bug-atexit1.c: Likewise.
22595 * dlfcn/bug-atexit2.c: Likewise.
22596 * localedata/README: Likewise.
22597 * malloc/tst-mallocfork.c: Likewise.
22598 * manual/install.texi: Likewise.
22599 * nptl/tst-pthread-getattr.c: Likewise.
22600 * stdio-common/tst-fgets.c: Likewise.
22601 * stdio-common/tst-fwrite.c: Likewise.
22602 * sunrpc/Makefile: Likewise.
22603 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22604 * wcsmbs/tst-mbrtowc2.c: Likewise.
22605 * configure: Regenerate.
22606 * INSTALL: Regenerate.
22607
22608 2017-11-15 Martin Sebor <msebor@redhat.com>
22609
22610 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22611 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22612 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22613
22614 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22615
22616 [BZ #22145]
22617 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22618 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22619
22620 [BZ #22145]
22621 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22622 Defer is_pty check until end of the function.
22623 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22624
22625 [BZ #22145]
22626 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22627 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22628 (ttyname): Likewise.
22629 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22630 (__ttyname_r): Likewise.
22631
22632 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22633 int to bool.
22634
22635 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22636
22637 * manual/terminal.texi (Is It a Terminal):
22638 Mention ENODEV for ttyname and ttyname_r.
22639
22640 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22641
22642 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22643 constant and macro.
22644
22645 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22646 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22647 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22648 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22649 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22650 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22651
22652 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22653
22654 * signal/sigrelse.c (sigrelse): Optimize implementation.
22655
22656 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22657 (__sigpause): Rely on __sigsuspend to implement single thread
22658 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22659
22660 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22661
22662 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22663 kernel version to 4.14.
22664
22665 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22666
22667 [BZ #22442]
22668 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22669 Check if ifname is too long.
22670
22671 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22672
22673 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22674
22675 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22676
22677 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22678 was accidentally lost.
22679
22680 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22681
22682 * localedata/locales/az_IR: Add standard copyright header.
22683
22684 2017-11-15 Florian Weimer <fweimer@redhat.com>
22685
22686 [BZ #22439]
22687 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22688 not just the top one. Output a new "subheaps" statistic.
22689
22690 2017-11-15 Florian Weimer <fweimer@redhat.com>
22691
22692 [BZ #22408]
22693 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22694 under the per-arena lock.
22695 * malloc/Makefile (tests): Add tst-malloc_info.
22696 (tst-malloc_info): Link with libpthread.
22697 * malloc/tst-malloc_info.c: New file.
22698
22699 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22700
22701 [BZ #21660]
22702 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22703 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22704 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22705 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22706 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22707 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22708 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22709 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22710 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22711 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22712 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22713 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22714 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22715 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22716 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22717 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22718 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22719 (__floating_type): Likewise.
22720 (__real_integer_type): Likewise.
22721 (__complex_integer_type): Likewise.
22722 (__expr_is_real): Likewise.
22723 (__tgmath_real_type_sub): Likewise.
22724 (__tgmath_real_type): Likewise.
22725 (__tgmath_complex_type_sub): Likewise.
22726 (__tgmath_complex_type): Likewise.
22727 (__TGMATH_F128): Likewise.
22728 (__TGMATH_CF128): Likewise.
22729 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22730 new macros.
22731 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22732 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22733 Likewise.
22734 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22735 Likewise.
22736 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22737 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22738 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22739 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22740 Likewise.
22741 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22742 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22743 Likewise.
22744 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22745 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22746 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22747 Likewise.
22748 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22749 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22750 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22751 (cimag): Likewise.
22752 (creal): Likewise.
22753
22754 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22755
22756 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22757 for stpncpy calls for GCC 8.
22758 (test_strncat): Disable -Wstringop-truncation warning for strncat
22759 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22760 strncat call for GCC 7.
22761 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22762 calls for GCC 8.
22763 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22764 trailing NUL.
22765
22766 * string/bug-strncat1.c: Include <libc-diag.h>.
22767 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22768
22769 2017-11-13 Claude Paroz <claude@2xlibre.net>
22770
22771 [BZ #22387]
22772 * localedata/locales/aa_DJ: Improved readibility by replacing
22773 <Uxxxx> sequences in the ASCII printable range by their ASCII
22774 character equivalents.
22775 * localedata/locales/aa_ER: Likewise.
22776 * localedata/locales/aa_ER@saaho: Likewise.
22777 * localedata/locales/aa_ET: Likewise.
22778 * localedata/locales/af_ZA: Likewise.
22779 * localedata/locales/agr_PE: Likewise.
22780 * localedata/locales/ak_GH: Likewise.
22781 * localedata/locales/am_ET: Likewise.
22782 * localedata/locales/anp_IN: Likewise.
22783 * localedata/locales/ar_AE: Likewise.
22784 * localedata/locales/ar_BH: Likewise.
22785 * localedata/locales/ar_DZ: Likewise.
22786 * localedata/locales/ar_EG: Likewise.
22787 * localedata/locales/ar_IN: Likewise.
22788 * localedata/locales/ar_IQ: Likewise.
22789 * localedata/locales/ar_JO: Likewise.
22790 * localedata/locales/ar_KW: Likewise.
22791 * localedata/locales/ar_LB: Likewise.
22792 * localedata/locales/ar_LY: Likewise.
22793 * localedata/locales/ar_MA: Likewise.
22794 * localedata/locales/ar_OM: Likewise.
22795 * localedata/locales/ar_QA: Likewise.
22796 * localedata/locales/ar_SA: Likewise.
22797 * localedata/locales/ar_SD: Likewise.
22798 * localedata/locales/ar_SS: Likewise.
22799 * localedata/locales/ar_SY: Likewise.
22800 * localedata/locales/ar_TN: Likewise.
22801 * localedata/locales/ar_YE: Likewise.
22802 * localedata/locales/as_IN: Likewise.
22803 * localedata/locales/ast_ES: Likewise.
22804 * localedata/locales/ayc_PE: Likewise.
22805 * localedata/locales/az_AZ: Likewise.
22806 * localedata/locales/az_IR: Likewise.
22807 * localedata/locales/be_BY: Likewise.
22808 * localedata/locales/be_BY@latin: Likewise.
22809 * localedata/locales/bem_ZM: Likewise.
22810 * localedata/locales/ber_DZ: Likewise.
22811 * localedata/locales/ber_MA: Likewise.
22812 * localedata/locales/bg_BG: Likewise.
22813 * localedata/locales/bhb_IN: Likewise.
22814 * localedata/locales/bho_IN: Likewise.
22815 * localedata/locales/bi_VU: Likewise.
22816 * localedata/locales/bn_BD: Likewise.
22817 * localedata/locales/bn_IN: Likewise.
22818 * localedata/locales/bo_CN: Likewise.
22819 * localedata/locales/bo_IN: Likewise.
22820 * localedata/locales/br_FR: Likewise.
22821 * localedata/locales/brx_IN: Likewise.
22822 * localedata/locales/bs_BA: Likewise.
22823 * localedata/locales/byn_ER: Likewise.
22824 * localedata/locales/ca_AD: Likewise.
22825 * localedata/locales/ca_ES: Likewise.
22826 * localedata/locales/ca_FR: Likewise.
22827 * localedata/locales/ca_IT: Likewise.
22828 * localedata/locales/ce_RU: Likewise.
22829 * localedata/locales/chr_US: Likewise.
22830 * localedata/locales/cmn_TW: Likewise.
22831 * localedata/locales/crh_UA: Likewise.
22832 * localedata/locales/cs_CZ: Likewise.
22833 * localedata/locales/csb_PL: Likewise.
22834 * localedata/locales/cv_RU: Likewise.
22835 * localedata/locales/cy_GB: Likewise.
22836 * localedata/locales/da_DK: Likewise.
22837 * localedata/locales/de_AT: Likewise.
22838 * localedata/locales/de_BE: Likewise.
22839 * localedata/locales/de_CH: Likewise.
22840 * localedata/locales/de_DE: Likewise.
22841 * localedata/locales/de_IT: Likewise.
22842 * localedata/locales/de_LI: Likewise.
22843 * localedata/locales/de_LU: Likewise.
22844 * localedata/locales/doi_IN: Likewise.
22845 * localedata/locales/dv_MV: Likewise.
22846 * localedata/locales/dz_BT: Likewise.
22847 * localedata/locales/el_CY: Likewise.
22848 * localedata/locales/el_GR: Likewise.
22849 * localedata/locales/en_AG: Likewise.
22850 * localedata/locales/en_AU: Likewise.
22851 * localedata/locales/en_BW: Likewise.
22852 * localedata/locales/en_CA: Likewise.
22853 * localedata/locales/en_DK: Likewise.
22854 * localedata/locales/en_GB: Likewise.
22855 * localedata/locales/en_HK: Likewise.
22856 * localedata/locales/en_IE: Likewise.
22857 * localedata/locales/en_IL: Likewise.
22858 * localedata/locales/en_IN: Likewise.
22859 * localedata/locales/en_NG: Likewise.
22860 * localedata/locales/en_NZ: Likewise.
22861 * localedata/locales/en_PH: Likewise.
22862 * localedata/locales/en_SG: Likewise.
22863 * localedata/locales/en_US: Likewise.
22864 * localedata/locales/en_ZA: Likewise.
22865 * localedata/locales/en_ZM: Likewise.
22866 * localedata/locales/en_ZW: Likewise.
22867 * localedata/locales/eo: Likewise.
22868 * localedata/locales/es_AR: Likewise.
22869 * localedata/locales/es_BO: Likewise.
22870 * localedata/locales/es_CL: Likewise.
22871 * localedata/locales/es_CO: Likewise.
22872 * localedata/locales/es_CR: Likewise.
22873 * localedata/locales/es_CU: Likewise.
22874 * localedata/locales/es_DO: Likewise.
22875 * localedata/locales/es_EC: Likewise.
22876 * localedata/locales/es_ES: Likewise.
22877 * localedata/locales/es_GT: Likewise.
22878 * localedata/locales/es_HN: Likewise.
22879 * localedata/locales/es_MX: Likewise.
22880 * localedata/locales/es_NI: Likewise.
22881 * localedata/locales/es_PA: Likewise.
22882 * localedata/locales/es_PE: Likewise.
22883 * localedata/locales/es_PR: Likewise.
22884 * localedata/locales/es_PY: Likewise.
22885 * localedata/locales/es_SV: Likewise.
22886 * localedata/locales/es_US: Likewise.
22887 * localedata/locales/es_UY: Likewise.
22888 * localedata/locales/es_VE: Likewise.
22889 * localedata/locales/et_EE: Likewise.
22890 * localedata/locales/eu_ES: Likewise.
22891 * localedata/locales/eu_ES@euro: Likewise.
22892 * localedata/locales/fa_IR: Likewise.
22893 * localedata/locales/ff_SN: Likewise.
22894 * localedata/locales/fi_FI: Likewise.
22895 * localedata/locales/fil_PH: Likewise.
22896 * localedata/locales/fo_FO: Likewise.
22897 * localedata/locales/fr_BE: Likewise.
22898 * localedata/locales/fr_CA: Likewise.
22899 * localedata/locales/fr_CH: Likewise.
22900 * localedata/locales/fr_FR: Likewise.
22901 * localedata/locales/fr_LU: Likewise.
22902 * localedata/locales/fur_IT: Likewise.
22903 * localedata/locales/fy_DE: Likewise.
22904 * localedata/locales/fy_NL: Likewise.
22905 * localedata/locales/ga_IE: Likewise.
22906 * localedata/locales/gd_GB: Likewise.
22907 * localedata/locales/gez_ER: Likewise.
22908 * localedata/locales/gez_ET: Likewise.
22909 * localedata/locales/gl_ES: Likewise.
22910 * localedata/locales/gu_IN: Likewise.
22911 * localedata/locales/gv_GB: Likewise.
22912 * localedata/locales/ha_NG: Likewise.
22913 * localedata/locales/hak_TW: Likewise.
22914 * localedata/locales/he_IL: Likewise.
22915 * localedata/locales/hi_IN: Likewise.
22916 * localedata/locales/hif_FJ: Likewise.
22917 * localedata/locales/hne_IN: Likewise.
22918 * localedata/locales/hr_HR: Likewise.
22919 * localedata/locales/hsb_DE: Likewise.
22920 * localedata/locales/ht_HT: Likewise.
22921 * localedata/locales/hu_HU: Likewise.
22922 * localedata/locales/hy_AM: Likewise.
22923 * localedata/locales/i18n: Likewise.
22924 * localedata/locales/ia_FR: Likewise.
22925 * localedata/locales/id_ID: Likewise.
22926 * localedata/locales/ig_NG: Likewise.
22927 * localedata/locales/ik_CA: Likewise.
22928 * localedata/locales/is_IS: Likewise.
22929 * localedata/locales/it_CH: Likewise.
22930 * localedata/locales/it_IT: Likewise.
22931 * localedata/locales/iu_CA: Likewise.
22932 * localedata/locales/ja_JP: Likewise.
22933 * localedata/locales/ka_GE: Likewise.
22934 * localedata/locales/kk_KZ: Likewise.
22935 * localedata/locales/kl_GL: Likewise.
22936 * localedata/locales/kn_IN: Likewise.
22937 * localedata/locales/ko_KR: Likewise.
22938 * localedata/locales/kok_IN: Likewise.
22939 * localedata/locales/ks_IN: Likewise.
22940 * localedata/locales/ks_IN@devanagari: Likewise.
22941 * localedata/locales/ku_TR: Likewise.
22942 * localedata/locales/kw_GB: Likewise.
22943 * localedata/locales/ky_KG: Likewise.
22944 * localedata/locales/lb_LU: Likewise.
22945 * localedata/locales/lg_UG: Likewise.
22946 * localedata/locales/li_BE: Likewise.
22947 * localedata/locales/li_NL: Likewise.
22948 * localedata/locales/lij_IT: Likewise.
22949 * localedata/locales/ln_CD: Likewise.
22950 * localedata/locales/lo_LA: Likewise.
22951 * localedata/locales/lt_LT: Likewise.
22952 * localedata/locales/lv_LV: Likewise.
22953 * localedata/locales/lzh_TW: Likewise.
22954 * localedata/locales/mag_IN: Likewise.
22955 * localedata/locales/mai_IN: Likewise.
22956 * localedata/locales/mg_MG: Likewise.
22957 * localedata/locales/mhr_RU: Likewise.
22958 * localedata/locales/mi_NZ: Likewise.
22959 * localedata/locales/mk_MK: Likewise.
22960 * localedata/locales/ml_IN: Likewise.
22961 * localedata/locales/mn_MN: Likewise.
22962 * localedata/locales/mni_IN: Likewise.
22963 * localedata/locales/mr_IN: Likewise.
22964 * localedata/locales/ms_MY: Likewise.
22965 * localedata/locales/mt_MT: Likewise.
22966 * localedata/locales/my_MM: Likewise.
22967 * localedata/locales/nan_TW: Likewise.
22968 * localedata/locales/nan_TW@latin: Likewise.
22969 * localedata/locales/nb_NO: Likewise.
22970 * localedata/locales/nds_DE: Likewise.
22971 * localedata/locales/nds_NL: Likewise.
22972 * localedata/locales/ne_NP: Likewise.
22973 * localedata/locales/nhn_MX: Likewise.
22974 * localedata/locales/niu_NU: Likewise.
22975 * localedata/locales/niu_NZ: Likewise.
22976 * localedata/locales/nl_AW: Likewise.
22977 * localedata/locales/nl_BE: Likewise.
22978 * localedata/locales/nl_NL: Likewise.
22979 * localedata/locales/nn_NO: Likewise.
22980 * localedata/locales/nr_ZA: Likewise.
22981 * localedata/locales/nso_ZA: Likewise.
22982 * localedata/locales/oc_FR: Likewise.
22983 * localedata/locales/om_ET: Likewise.
22984 * localedata/locales/om_KE: Likewise.
22985 * localedata/locales/or_IN: Likewise.
22986 * localedata/locales/os_RU: Likewise.
22987 * localedata/locales/pa_IN: Likewise.
22988 * localedata/locales/pa_PK: Likewise.
22989 * localedata/locales/pap_AW: Likewise.
22990 * localedata/locales/pap_CW: Likewise.
22991 * localedata/locales/pl_PL: Likewise.
22992 * localedata/locales/ps_AF: Likewise.
22993 * localedata/locales/pt_BR: Likewise.
22994 * localedata/locales/pt_PT: Likewise.
22995 * localedata/locales/quz_PE: Likewise.
22996 * localedata/locales/raj_IN: Likewise.
22997 * localedata/locales/ro_RO: Likewise.
22998 * localedata/locales/ru_RU: Likewise.
22999 * localedata/locales/ru_UA: Likewise.
23000 * localedata/locales/rw_RW: Likewise.
23001 * localedata/locales/sa_IN: Likewise.
23002 * localedata/locales/sat_IN: Likewise.
23003 * localedata/locales/sc_IT: Likewise.
23004 * localedata/locales/sd_IN: Likewise.
23005 * localedata/locales/sd_IN@devanagari: Likewise.
23006 * localedata/locales/se_NO: Likewise.
23007 * localedata/locales/sgs_LT: Likewise.
23008 * localedata/locales/shs_CA: Likewise.
23009 * localedata/locales/si_LK: Likewise.
23010 * localedata/locales/sid_ET: Likewise.
23011 * localedata/locales/sk_SK: Likewise.
23012 * localedata/locales/sl_SI: Likewise.
23013 * localedata/locales/sm_WS: Likewise.
23014 * localedata/locales/so_DJ: Likewise.
23015 * localedata/locales/so_ET: Likewise.
23016 * localedata/locales/so_KE: Likewise.
23017 * localedata/locales/so_SO: Likewise.
23018 * localedata/locales/sq_AL: Likewise.
23019 * localedata/locales/sq_MK: Likewise.
23020 * localedata/locales/sr_ME: Likewise.
23021 * localedata/locales/sr_RS: Likewise.
23022 * localedata/locales/sr_RS@latin: Likewise.
23023 * localedata/locales/ss_ZA: Likewise.
23024 * localedata/locales/st_ZA: Likewise.
23025 * localedata/locales/sv_FI: Likewise.
23026 * localedata/locales/sv_SE: Likewise.
23027 * localedata/locales/sw_KE: Likewise.
23028 * localedata/locales/sw_TZ: Likewise.
23029 * localedata/locales/szl_PL: Likewise.
23030 * localedata/locales/ta_IN: Likewise.
23031 * localedata/locales/ta_LK: Likewise.
23032 * localedata/locales/tcy_IN: Likewise.
23033 * localedata/locales/te_IN: Likewise.
23034 * localedata/locales/tg_TJ: Likewise.
23035 * localedata/locales/th_TH: Likewise.
23036 * localedata/locales/the_NP: Likewise.
23037 * localedata/locales/ti_ER: Likewise.
23038 * localedata/locales/ti_ET: Likewise.
23039 * localedata/locales/tig_ER: Likewise.
23040 * localedata/locales/tk_TM: Likewise.
23041 * localedata/locales/tl_PH: Likewise.
23042 * localedata/locales/tn_ZA: Likewise.
23043 * localedata/locales/to_TO: Likewise.
23044 * localedata/locales/tpi_PG: Likewise.
23045 * localedata/locales/tr_CY: Likewise.
23046 * localedata/locales/tr_TR: Likewise.
23047 * localedata/locales/ts_ZA: Likewise.
23048 * localedata/locales/tt_RU: Likewise.
23049 * localedata/locales/tt_RU@iqtelif: Likewise.
23050 * localedata/locales/ug_CN: Likewise.
23051 * localedata/locales/uk_UA: Likewise.
23052 * localedata/locales/unm_US: Likewise.
23053 * localedata/locales/ur_IN: Likewise.
23054 * localedata/locales/ur_PK: Likewise.
23055 * localedata/locales/uz_UZ: Likewise.
23056 * localedata/locales/uz_UZ@cyrillic: Likewise.
23057 * localedata/locales/ve_ZA: Likewise.
23058 * localedata/locales/vi_VN: Likewise.
23059 * localedata/locales/wa_BE: Likewise.
23060 * localedata/locales/wae_CH: Likewise.
23061 * localedata/locales/wal_ET: Likewise.
23062 * localedata/locales/wo_SN: Likewise.
23063 * localedata/locales/xh_ZA: Likewise.
23064 * localedata/locales/yi_US: Likewise.
23065 * localedata/locales/yo_NG: Likewise.
23066 * localedata/locales/yue_HK: Likewise.
23067 * localedata/locales/yuw_PG: Likewise.
23068 * localedata/locales/zh_CN: Likewise.
23069 * localedata/locales/zh_HK: Likewise.
23070 * localedata/locales/zh_SG: Likewise.
23071 * localedata/locales/zh_TW: Likewise.
23072 * localedata/locales/zu_ZA: Likewise.
23073
23074 2017-11-13 Florian Weimer <fweimer@redhat.com>
23075
23076 * support/next_to_fault.h, support/next_to_fault.c: New files.
23077 * support/Makefile (libsupport-routines): Add next_to_fault.
23078 * resolv/tst-inet_pton.c (struct next_to_fault)
23079 (next_to_fault_allocate, next_to_fault_free): Remove.
23080 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23081
23082 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
23083
23084 * elf/dl-support.c: Include <dl-procruntime.c>.
23085 * include/link.h: Include <link_map.h>.
23086 * sysdeps/generic/dl-procruntime.c: New file.
23087 * sysdeps/generic/link_map.h: Likewise.
23088 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
23089 the writable ld.so namespace.
23090
23091 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
23092
23093 timezone: pacify GCC -Wstringop-truncation
23094 Problem reported by Martin Sebor in:
23095 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
23096 * timezone/zic.c (writezone): Use memcpy, not strncpy.
23097
23098 2017-11-12 Florian Weimer <fweimer@redhat.com>
23099
23100 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
23101 tst-xreadlink.
23102 (tests): Add tst-xreadlink.
23103 * support/support.h (xstrndup): Declare.
23104 * support/xunistd.h (xunlink, xreadlink): Declare.
23105 * support/temp_file.h (support_create_temp_directory): Declare.
23106 * support/temp_file.c (support_create_temp_directory): New function.
23107 * support/support_chroot.c (support_chroot_create): Use it.
23108 * support/xreadlink.c: New file.
23109 * support/xstrndup.c: Likewise.
23110 * support/xunlink.c: Likewise.
23111 * support/tst-xreadlink.c: Likewise.
23112
23113 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
23114
23115 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23116
23117 2017-11-11 Florian Weimer <fweimer@redhat.com>
23118
23119 [BZ #22409]
23120 [BZ #22412]
23121 * resolv/res_comp.c (printable_string, binary_hnok)
23122 (binary_leading_dash): New functions.
23123 (res_hnok): Reimplement using these functions and ns_name_pton.
23124 (res_ownok): Likewise.
23125 (res_mailok): Reimplement using printable_string, ns_name_pton and
23126 binary_hnok.
23127 (res_dnok): Reimplement using printable_string and ns_name_pton.
23128 * resolv/tst-res_hnok.c (tests): Add additional tests.
23129 (LETTERDIGITS, PRINTABLE): Define.
23130 (do_test): Adjust one_char results.
23131
23132 2017-11-11 Florian Weimer <fweimer@redhat.com>
23133
23134 [BZ #22413]
23135 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23136 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23137
23138 2017-11-11 Florian Weimer <fweimer@redhat.com>
23139
23140 * resolv/tst-ns_name_pton.c: New file.
23141 * resolv/Makefile (tests): Add tst-ns_name_pton.
23142 (tst-ns_name_pton): Link against libresolv.
23143
23144 2017-11-11 Florian Weimer <fweimer@redhat.com>
23145
23146 * resolv/tst-res_hnok.c: New file.
23147 * resolv/Makefile (tests): Add tst-res_hnok.
23148 (tst-res_hnok): Link against libresolv.
23149
23150 2017-11-11 Florian Weimer <fweimer@redhat.com>
23151
23152 * resolv/tst-resolv-network.c: Use test framework instead explicit
23153 main function.
23154
23155 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23156
23157 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23158 <jmp_buf-macros.h>.
23159 [!_ISOMAC] (STR_HELPER): New.
23160 [!_ISOMAC] (STR): Likewise.
23161 [!_ISOMAC] (TEST_SIZE): Likewise.
23162 [!_ISOMAC] (TEST_ALIGN): Likewise.
23163 [!_ISOMAC] (TEST_OFFSET): Likewise.
23164 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23165 field offsets of jmp_buf as well as sigjmp_buf.
23166 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23167 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23168 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23169 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23170 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23171 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23172 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23173 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23174 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23175 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23176 Likewise.
23177 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23178 Likewise.
23179 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23181 Likewise.
23182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23183 Likewise.
23184 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23185 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23186 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23187 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23188 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23189 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23190 Likewise.
23191 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23192 Likewise.
23193 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23194 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23195 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23196
23197 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23198
23199 * include/float.h
23200 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23201 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23202 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23203 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23204 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23205 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23206 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23207 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23208 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23209 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23210 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23211 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23212 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23213 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23214 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23215 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23216 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23217 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23218 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23219 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23220 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23221 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23222 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23223 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23224 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23225 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23226 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23227 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23228 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23229 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23230 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23231 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23232 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23233 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23234 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23235 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23236 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23237 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23238 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23239 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23240 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23241 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23242 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23243 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23244 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23245 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23246 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23247 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23248 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23249 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23250 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23251 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23252 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23253 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23254 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23255 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23256 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23257 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23258 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23259 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23260 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23261 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23262 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23263 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23264 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23265 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23266 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23267 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23268 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23269 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23270 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23271 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23272 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23273 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23274 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23275 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23276 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23277 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23278 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23279 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23280 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23281 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23282 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23283 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23284 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23285 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23286 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23287 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23288
23289 * stdlib/tst-strtod.h (F16): New macro.
23290 (F32): Likewise.
23291 (F64): Likewise.
23292 (F32X): Likewise.
23293 (F64X): Likewise.
23294 (F128X): Likewise.
23295 (IF_FLOAT16): Likewise.
23296 (IF_FLOAT32): Likewise.
23297 (IF_FLOAT64): Likewise.
23298 (IF_FLOAT32X): Likewise.
23299 (IF_FLOAT64X): Likewise.
23300 (IF_FLOAT128X): Likewise.
23301 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23302 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23303 (STRTOD_TEST_FOREACH): Likewise.
23304 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23305 (CHOOSE_f64): Likewise.
23306 (CHOOSE_f32x): Likewise.
23307 (CHOOSE_f64x): Likewise.
23308
23309 2017-11-07 Andreas Schwab <schwab@suse.de>
23310
23311 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23312
23313 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23314
23315 [BZ #22403]
23316 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23317 to be escaped.
23318 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23319 to be escaped.
23320
23321 2017-11-07 Claude Paroz <claude@2xlibre.net>
23322
23323 [BZ #22403]
23324 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23325 to be escaped.
23326 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23327 to be escaped.
23328 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23329 to be escaped.
23330
23331 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23332
23333 [BZ #22298]
23334 * nptl/allocatestack.c (allocate_stack): Check if
23335 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23336 __PTHREAD_MUTEX_HAVE_PREV is defined.
23337 * nptl/descr.h (pthread): Likewise.
23338 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23339 Likewise.
23340 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23341 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23342 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23343 * sysdeps/nptl/bits/thread-shared-types.h
23344 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23345 defines.
23346 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23347 of __WORDSIZE for internal layout.
23348 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23349 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23350 instead of __WORDSIZE whether to use an union for __spins and __list
23351 fields.
23352 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23353 case.
23354 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23355 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23356 defines.
23357 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23358 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23359 Likewise.
23360 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23361 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23362 Likewise.
23363 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23364 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23365 Likewise.
23366 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23367 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23368 Likewise.
23369 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23370 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23371 Likewise.
23372 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23373 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23374 Likewise.
23375 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23376 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23377 Likewise.
23378 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23379 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23380 Likewise.
23381 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23382 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23383 Likewise.
23384 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23385 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23386 Likewise.
23387 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23388 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23389 Likewise.
23390 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23391 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23392 Likewise.
23393 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23394 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23395 Likewise.
23396 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23397 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23398 Likewise.
23399
23400 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23401 New macros.
23402 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23403 checks for expected input type size.
23404 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23405 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23406 Likewise.
23407 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23408 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23409 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23410 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23411 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23412 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23413 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23414 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23415 superflous runtime assert check.
23416 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23417 Likewise.
23418 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23419 Likewise.
23420 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23421 Likewise.
23422 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23423 Likewise.
23424 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23425 Likewise.
23426 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23427 Likewise.
23428 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23429 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23430 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23431 Likewise.
23432 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23433 Likewise.
23434 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23435 Likewise.
23436 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23437 Likewise.
23438 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23439 Likewise.
23440 * nptl/pthread_attr_setinheritsched.c
23441 (__pthread_attr_setinheritsched): Likewise.
23442 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23443 Likewise.
23444 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23445 Likewise.
23446 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23447 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23448 __old_pthread_attr_setstack): Likewise.
23449 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23450 Likewise.
23451 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23452 Likewise.
23453 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23454 Likewise.
23455 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23456 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23457 Likewise.
23458 * nptl/tst-typesizes.c: Remove file.
23459
23460 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23461 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23462 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23463 checks for internal pthread_mutex_t offsets.
23464 * sysdeps/aarch64/nptl/pthread-offsets.h
23465 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23466 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23467 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23468 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23469 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23470 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23471 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23472 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23473 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23474 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23475 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23476 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23477 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23478 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23479 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23480 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23481 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23482 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23483
23484 2017-11-07 Florian Weimer <fweimer@redhat.com>
23485
23486 * bits/mman-linux.h: Move ...
23487 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23488 comment.
23489 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23490 outdated comment.
23491
23492 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23493
23494 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23495 Redefine STRNLEN as __strnlen_power8.
23496
23497 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23498
23499 * signal/sighold.c (sighold): Optimize implementation.
23500
23501 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23502 __NR_rt_sigqueueinfo.
23503
23504 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23505 __sigtimedwait.
23506 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23507 assume __NR_rt_sigtimedwait.
23508 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23509 and add LIBC_CANCEL_HANDLED for cancellation marking.
23510 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23511
23512 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23513 (sysdeps_routines): Add memchr_noneon.
23514 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23515 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23516 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23517 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23518 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23519 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23520 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23521
23522 * sysdeps/arm/arm-ifunc.h: New file.
23523 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23524 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23525 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23526 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23527 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23528 (__memcpy_neon): Avoid create hidden alias.
23529 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23530 (__memcpy_vfp): Likewise.
23531 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23532 (sysdep_routines): Add memcpy_arm.
23533 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23534
23535 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23536
23537 [BZ #22362]
23538 * Makerules (make-link-multidir): New.
23539 * config.make.in (multidir): New.
23540 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23541 * configure: Regenerated.
23542 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23543 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23544 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23545 New target.
23546
23547 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23548
23549 [BZ #22402]
23550 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23551 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23552
23553 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23554
23555 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23556 to be escaped.
23557
23558 2017-11-04 Florian Weimer <fweimer@redhat.com>
23559
23560 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23561
23562 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23563
23564 * math/math.h [__HAVE_DISTINCT_FLOAT16
23565 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23566 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23567 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23568 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23569 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23570 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23571 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23572 (__MATH_TG_F32): New macro.
23573 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23574 (__MATH_TG_F64X): Likewise.
23575 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23576 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23577
23578 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23579
23580 * po/de.po: Update translations.
23581 * po/ru.po: Likewise.
23582
23583 2017-11-03 Florian Weimer <fweimer@redhat.com>
23584
23585 * manual/filesys.texi (Hard Links): Document linkat.
23586
23587 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23588
23589 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23590 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23591 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23592 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23593 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23594 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23595 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23596 the same as _Float128.
23597 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23598 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23599 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23600
23601 * stdlib/stdlib.h
23602 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23603 Declare.
23604 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23605 Likewise.
23606 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23607 Likewise.
23608 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23609 (strtof32x): Likewise.
23610 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23611 (strtof64x): Likewise.
23612 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23613 (strtof128x): Likewise.
23614 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23615 (strfromf16): Likewise.
23616 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23617 (strfromf32): Likewise.
23618 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23619 (strfromf64): Likewise.
23620 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23621 (strfromf32x): Likewise.
23622 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23623 (strfromf64x): Likewise.
23624 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23625 (strfromf128x): Likewise.
23626 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23627 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23628 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23629 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23630 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23631 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23632
23633 2017-11-03 Richard Henderson <rth@twiddle.net>
23634
23635 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23636
23637 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23638
23639 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23640
23641 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23642
23643 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23644 DT_TLSDESC_GOT initialization.
23645 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23646 (_dl_tlsdesc_resolve_hold): Likewise.
23647 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23648 (_dl_tlsdesc_resolve_hold): Likewise.
23649 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23650 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23651
23652 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23653
23654 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23655
23656 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23657
23658 [BZ #18572]
23659 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23660 non-lazily for R_ARM_TLS_DESC.
23661
23662 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23663
23664 [BZ #17078]
23665 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23666 R_ARM_TLS_DESC case.
23667 (elf_machine_lazy_rel): Remove the prelink check.
23668
23669 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23670
23671 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23672 DT_TLSDESC_GOT initialization.
23673 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23674 (_dl_tlsdesc_resolve_rela): Likewise.
23675 (_dl_tlsdesc_resolve_hold): Likewise.
23676 (_dl_tlsdesc_undefweak): Remove ldar.
23677 (_dl_tlsdesc_dynamic): Likewise.
23678 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23679 (_dl_tlsdesc_resolve_rela): Likewise.
23680 (_dl_tlsdesc_resolve_hold): Likewise.
23681 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23682 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23683 (_dl_tlsdesc_resolve_rela): Likewise.
23684 (_dl_tlsdesc_resolve_hold): Likewise.
23685
23686 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23687
23688 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23689 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23690
23691 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23692
23693 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23694 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23695
23696 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23697
23698 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23699 Declare.
23700 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23701 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23702 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23703 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23704 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23705 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23706 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23707 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23708 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23709 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23710 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23711
23712 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23713
23714 [BZ #22382]
23715 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23716 * localedata/locales/tpi_PG: Add standard header.
23717
23718 2017-11-02 Florian Weimer <fweimer@redhat.com>
23719
23720 test-errno-linux: quotactl can fail with EPERM in containers.
23721 * sysdeps/unix/sysv/linux/test-errno-linux.c
23722 (LIST, LIST_FORWARD): New macros.
23723 (check_error_in_list): New function.
23724 (test_wrp_rv): Accept list of permitted error codes.
23725 (test_wrp_rv2): Remove.
23726 (test_wrp): Call test_wrp_rv with list of error codes.
23727 (test_wrp2): Accept list of error codes.
23728 (do_test): Adjust. Allow EPERM for quotactl.
23729
23730 2017-11-02 Florian Weimer <fweimer@redhat.com>
23731
23732 * stdio-common/bug16.c (do_test): Use array_length.
23733 * stdio-common/errlist.c (_sys_nerr): Likewise.
23734 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23735 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23736 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23737 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23738 (do_test): Use array_length.
23739 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23740 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23741 * stdio-common/tst-printf-round.c (do_test): Likewise.
23742 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23743 (CHECK): Use array_length.
23744 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23745 * stdio-common/tstscanf.c (main): Likewise.
23746 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23747
23748 2017-11-02 Florian Weimer <fweimer@redhat.com>
23749
23750 Add array_length and array_end macros.
23751 * include/array_length.h: New file.
23752
23753 2017-11-02 Florian Weimer <fweimer@redhat.com>
23754
23755 [BZ #22332]
23756 * posix/tst-glob-tilde.c (do_noescape): New variable.
23757 (one_test): Process it.
23758 (do_test): Set do_noescape. Add unescaping test case.
23759
23760 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23761
23762 * math/complex.h
23763 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23764 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23765 with appropriate macros defined and undefined.
23766 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23767 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23768 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23769 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23770 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23771 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23772 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23773 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23774 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23775 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23776
23777 * math/complex.h
23778 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23779 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23780 that for long double. Do not condition define and undefine of
23781 _Mdouble_complex_ on [__CFLOAT128].
23782
23783 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23784
23785 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23786 of <sysdeps/generic/sysdep.h>.
23787 (ALIGNARG): Removed.
23788 (ASM_SIZE_DIRECTIVE): Likewise.
23789 (ENTRY): Likewise.
23790 (END): Likewise.
23791 (ENTRY_CHK): Likewise.
23792 (END_CHK): Likewise.
23793 (syscall_error): Likewise.
23794 (mcount): Likewise.
23795 (PSEUDO_END): Likewise.
23796 (L): Likewise.
23797 (atom_text_section): Likewise.
23798 * sysdeps/x86/sysdep.h: New file.
23799 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23800 of <sysdeps/generic/sysdep.h>.
23801 (ALIGNARG): Removed.
23802 (ASM_SIZE_DIRECTIVE): Likewise.
23803 (ENTRY): Likewise.
23804 (END): Likewise.
23805 (ENTRY_CHK): Likewise.
23806 (END_CHK): Likewise.
23807 (syscall_error): Likewise.
23808 (mcount): Likewise.
23809 (PSEUDO_END): Likewise.
23810 (L): Likewise.
23811 (atom_text_section): Likewise.
23812
23813 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23814
23815 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23816 category of LC_CTYPE set to "i18n:2012".
23817 * localedata/locales/i18n_ctype: Regenerate.
23818
23819 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23820
23821 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23822 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23823 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23824 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23825
23826 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23827 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23828 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23829 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23830
23831 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23832
23833 * math/complex.h
23834 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23835 New macro.
23836 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23837 Likewise.
23838 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23839 Likewise.
23840 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23841 (CMPLXF32X): Likewise.
23842 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23843 (CMPLXF64X): Likewise.
23844 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23845 (CMPLXF128X): Likewise.
23846
23847 * math/math.h
23848 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23849 (__MATH_EVAL_FMT2): Define to add 0.0f.
23850
23851 2017-10-31 Alan Modra <amodra@gmail.com>
23852
23853 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23854 include sysdep.h.
23855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23856 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23857 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23859 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23861 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23862 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23863 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23864 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23865 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23866 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23867 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23868 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23869 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23870 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23871 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23872 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23873 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23874 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23875 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23876 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23877 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23878 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23879 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23880 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23881 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23882 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23883 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23884 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23885 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23886 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23887 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23888 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23889 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23890 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23891 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23892 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23893 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23894 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23895 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23896 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23897 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23898 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23899 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23900 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23901 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23902 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23903 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23904 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23905 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23906 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23907 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23908 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23909 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23910 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23911 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23912 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23913 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23914 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23915 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23916 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23917 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23918 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23919 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23920 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23921 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23922 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23923 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23924
23925 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23926 include sysdep.h and math_ldbl_opt.h.
23927
23928 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23929 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23930 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23931 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23932 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23933 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23934 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23937 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23940 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23943 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23945 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23946 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23947 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23948 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23949 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23950 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23951 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23952 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23953 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23954
23955 2017-10-31 Alan Modra <amodra@gmail.com>
23956
23957 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23958 string/strncase_l.c, not string/strncase.c.
23959 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23960 (libc_hidden_def): Redefine.
23961
23962 2017-10-31 Alan Modra <amodra@gmail.com>
23963
23964 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23965 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23966 (__strcasecmp): Don't define.
23967
23968 2017-10-31 Alan Modra <amodra@gmail.com>
23969
23970 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23971 IS_IN (libc).
23972 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23973 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23974 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23975
23976 2017-10-31 Alan Modra <amodra@gmail.com>
23977
23978 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23979 USE_AS_STPNCPY.
23980
23981 2017-10-31 Alan Modra <amodra@gmail.com>
23982
23983 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23984 Redefine only when SHARED.
23985
23986 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23987
23988 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23989 Include <bits/math-finite.h> with appropriate macros defined and
23990 undefined.
23991 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23992 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23993 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23994 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23995 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23996
23997 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23998 [!_Mlong_double_] (_Mlong_double_): Likewise.
23999 [!_Mfloat16_] (_Mfloat16_): Likewise.
24000 [!_Mfloat32_] (_Mfloat32_): Likewise.
24001 [!_Mfloat64_] (_Mfloat64_): Likewise.
24002 [!_Mfloat128_] (_Mfloat128_): Likewise.
24003 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
24004 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
24005 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
24006 (_Mdouble_): Define without indirection through those macros.
24007 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
24008 [!_Mfloat128_] (_Mfloat128_): Likewise.
24009 [_Mlong_double_] (_Mlong_double_): Likewise.
24010 (_Mdouble_): Define without indirection through those macros.
24011 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
24012 not add -D_Mlong_double_=double.
24013 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
24014 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
24015
24016 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24017
24018 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
24019
24020 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24021
24022 * sysdeps/x86/libc-start.c: Reformat.
24023
24024 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
24025
24026 [BZ #22353]
24027 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
24028 (1): Renamed to ...
24029 (L(Src0)): This.
24030 (L(Src1)): New.
24031 (L(Src2)): Likewise.
24032 (L(1)): Renamed to ...
24033 (L(Src3)): This.
24034
24035 2017-10-30 Joseph Myers <joseph@codesourcery.com>
24036
24037 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24038 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24039 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24040 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24041 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24042 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24043 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24044 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24045 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24046 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24047 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24048 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24049 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24050 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24051 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24052 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24053 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24054 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24055 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24056 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24057 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24058 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24059 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24060 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24061 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24062 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24063 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24064 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24065 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24066 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24067 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24068 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24069 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24070 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24071 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24072 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24073 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24074 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24075 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24076 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24077 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24078 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24079 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24080 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24081 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24082 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24083 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24084 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24085 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24086 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24087 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24088 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
24089 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
24090 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
24091 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
24092 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
24093 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
24094 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
24095 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
24096 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
24097 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
24098 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
24099 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
24100 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
24101 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
24102 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
24103
24104 2017-10-30 Florian Weimer <fweimer@redhat.com>
24105
24106 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
24107 always defined.
24108 * io/tst-mkdirat.c (do_test): Likewise.
24109 * io/tst-mkfifoat.c (do_test): Likewise.
24110 * io/tst-mknodat.c (do_test): Likewise.
24111 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24112 * locale/programs/locale.c (select_dirs): Likewise.
24113 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24114 * posix/bug-glob2.c (my_readdir): Likewise.
24115 * posix/tst-dir.c (main): Likewise.
24116 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24117 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24118
24119 2017-10-30 Florian Weimer <fweimer@redhat.com>
24120
24121 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24122 just __USE_GNU.
24123
24124 2017-10-30 Florian Weimer <fweimer@redhat.com>
24125
24126 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24127 Convert to support/test-driver.c.
24128 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24129 New macro parameters.
24130 (PRINTF): Remove macro. Use test_verbose conditionals instead.
24131 * posix/tst-gnuglob.c: New file.
24132 * posix/tst-gnuglob64.c: Likewise.
24133 * posix/Makefile (tests): Add tst-gnuglob64.
24134
24135 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
24136
24137 [BZ #19485]
24138 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24139 and use a better translation for March in “mon”.
24140 * localedata/locales/csb_PL: Use more ASCII to improve the
24141 readability of the source.
24142
24143 2017-10-30 Mike FABIAN <mfabian@redhat.com>
24144
24145 [BZ #13953]
24146 * localedata/locales/km_KH: Use ASCII as much
24147 as possible for better readability of the source and
24148 remove useless comments.
24149 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24150 was commented out and apparently wrong anyway because it was
24151 using Lao characters. If Buddhist era should be used
24152 for km_KH, a native speaker should write the correct formaat
24153 for Khmer.
24154 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24155 (According to CLDR, the first weekday for Cambodia is Sunday).
24156 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24157 (These were using Lao characters which must be wrong. If we get
24158 the correct data from a native speaker, we could add it back, until
24159 then it is better not to have name_mr and name_mrs at all than
24160 having it wrong).
24161
24162 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24163
24164 * locale/loadlocale.c: Correct size of
24165 _nl_value_type_LC_<category> arrays.
24166
24167 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24168
24169 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24170 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24171 with appropriate macros defined and undefined.
24172 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24173 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24174 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24175 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24176 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24177
24178 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24179
24180 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24181 "-O2 -march=i586".
24182
24183 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24184
24185 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24186 with lowercase letters to make it agree with CLDR.
24187
24188 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24189
24190 [BZ #15260]
24191 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24192 first letters of yesstr and nostr in yesexpr and noexpr,
24193 not for the full words.
24194 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24195 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24196 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24197 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24198 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24199 first letters of yesstr and nostr in yesexpr and noexpr,
24200 until now only English was matched in yesexpr and noexpr.
24201 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24202 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24203 fil but not for tl. As tl and fil are very similar, using fil
24204 is probably better than using English.
24205
24206 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24207
24208 [BZ #21706]
24209 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24210 in yesstr and nostr.
24211
24212 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24213
24214 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24215 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24216 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24217 Likewise.
24218 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24219 Likewise.
24220 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24221 Likewise.
24222 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24223 Likewise.
24224 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24225 (SNANF128X): Likewise.
24226
24227 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24228 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24229 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24230 (HUGE_VAL_F32): Likewise.
24231 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24232 (HUGE_VAL_F64): Likewise.
24233 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24234 (HUGE_VAL_F32X): Likewise.
24235 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24236 (HUGE_VAL_F64X): Likewise.
24237 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24238 (HUGE_VAL_F128X): Likewise.
24239
24240 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24241
24242 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24243 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24244 for the br_FR locale.
24245
24246 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24247
24248 [BZ #21706]
24249 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24250
24251 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24252
24253 * locale/programs/record-status.h: Define globals, and function
24254 prototypes. Move function bodies...
24255 * locale/programs/record-status.c: ... to here. New file.
24256 * iconv/Makefile (iconv_prog-modules): Add record-status.
24257 * locale/Makefile (lib-modules): Likewise.
24258 * iconv/iconv_prog.c: Remove verbose.
24259 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24260 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24261 record a warning about ASCII compatibility.
24262 * locale/programs/ld-monetary.c (monetary_finish): If
24263 warn_int_curr_symbol is true then record a warning about the symbol
24264 not being in our ISO 4217 list.
24265 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24266 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24267 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24268 (OPT_NO_WARN): Define.
24269 (OPT_WARN): Define.
24270 (options): Add entry for --no-warnings, and --warnings.
24271 (set_warnings): New function to enable/disable warnings.
24272 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24273 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24274 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24275 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24276 Pass flags to generate_locale.
24277 (generate_locale): Accept new flag argument and pass it to localedef
24278 invocation.
24279 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24280 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24281
24282 * localedata/Makefile (test-input-data): Use full file name.
24283 * localedata/da_DK.in: Rename to...
24284 * localedata/da_DK.ISO-8859-1.in: ...this.
24285 * localedata/de_DE.in: Rename to...
24286 * localedata/de_DE.ISO-8859-1.in: ...this.
24287 * localedata/en_US.in: Rename to...
24288 * localedata/en_US.ISO-8859-1.in: ...this.
24289 * localedata/fr_FR.in: Rename to...
24290 * localedata/fr_FR.UTF-8.in: ... this.
24291 * localedata/hr_HR.in: Rename to...
24292 * localedata/hr_HR.ISO-8859-2.in: ...this.
24293 * localedata/hu_HU.in: Rename to...
24294 * localedata/hu_HU.UTF-8.in: ...this.
24295 * localedata/si_LK.in: Rename to...
24296 * localedata/si_LK.UTF-8.in: ...this.
24297 * localedata/sv_SE.in: Rename to...
24298 * localedata/sv_SE.ISO-8859-1.in: ...this.
24299 * localedata/tr_TR.in: Rename to...
24300 * localedata/tr_TR.UTF-8.in: ...this.
24301 * localedata/uk_UA.in: Rename to...
24302 * localedata/uk_UA.UTF-8.in: ...this.
24303 * localedata/sort-test.sh: Test file is locale name with the
24304 suffix.
24305
24306 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24307 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24308 file.
24309 * localedata/locales/i18n_ctype: Regenerate.
24310 * localedata/locales/tr_TR: Likewise.
24311 * localedata/locales/translit_circle: Likewise.
24312 * localedata/locales/translit_cjk_compat: Likewise.
24313 * localedata/locales/translit_combining: Likewise.
24314 * localedata/locales/translit_compat: Likewise.
24315 * localedata/locales/translit_font: Likewise.
24316 * localedata/locales/translit_fraction: Likewise.
24317
24318 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24319
24320 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24321 lxvd2x/stxvd2x with lvx/stvx.
24322 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24323
24324 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24325
24326 * include/alloc_buffer.h: Replace "if if " with "if " in
24327 comments.
24328 * sysdeps/mips/memcpy.S: Likkewise.
24329 * sysdeps/mips/memset.S: Likewise.
24330 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24331 Likewise.
24332 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24333 Likewise.
24334 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24335 Likewise.
24336
24337 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24338
24339 [BZ #15261]
24340 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24341 yesexpr and noexpr.
24342 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24343 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24344 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24345 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24346 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24347 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24348 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24349
24350 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24351
24352 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24353 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24354 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24355 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24356 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24357 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24358 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24359 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24360 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24361 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24362 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24363 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24364
24365 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24366
24367 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24368 as possible for better readability of the source.
24369 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24370 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24371 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24372 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24373 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24374 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24375 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24376 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24377 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24378 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24379 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24380 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24381 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24382 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24383 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24384 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24385 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24386 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24387 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24388 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24389 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24390 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24391 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24392 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24393 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24394 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24395 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24396 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24397 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24398 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24399 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24400 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24401 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24402 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24403 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24404 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24405 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24406 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24407 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24408 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24409 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24410 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24411 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24412 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24413 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24414 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24415 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24416 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24417 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24418 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24419 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24420 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24421 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24422 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24423 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24424 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24425 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24426 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24427 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24428 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24429 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24430 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24431 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24432 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24433 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24434 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24435 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24436 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24437 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24438 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24439 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24440 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24441 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24442 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24443 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24444 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24445 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24446 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24447 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24448 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24449 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24450 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24451 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24452 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24453 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24454 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24455 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24456 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24457 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24458 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24459 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24460 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24461 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24462 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24463 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24464 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24465 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24466 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24467 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24468 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24469 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24470 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24471 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24472 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24473 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24474 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24475 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24476 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24477 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24478 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24479 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24480 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24481 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24482 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24483 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24484 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24485 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24486 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24487 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24488 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24489 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24490 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24491 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24492 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24493 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24494 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24495 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24496 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24497 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24498 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24499 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24500 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24501 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24502 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24503 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24504 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24505 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24506 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24507 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24508 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24509 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24510 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24511 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24512 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24513 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24514 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24515 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24516 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24517 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24518 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24519 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24520 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24521 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24522 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24523 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24524 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24525 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24526 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24527 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24528 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24529 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24530 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24531 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24532 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24533 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24534 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24535 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24536 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24537 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24538 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24539 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24540 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24541 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24542 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24543
24544 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24545
24546 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24547 (Use first letters of yesstr and nostr correctly instead of using
24548 full words).
24549
24550 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24551
24552 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24553 (Use first letters of yesstr and nostr correctly).
24554
24555 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24556
24557 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24558 also check for the first characters of yesstr and nostr.
24559 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24560 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24561
24562 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24563
24564 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24565 also check for Chinese characters.
24566
24567 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24568
24569 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24570 match also for the contents of yesstr and nostr. As the first letter
24571 of yesstr and nostr is equal, checking only for the first letter
24572 is not enough.
24573
24574 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24575
24576 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24577 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24578
24579 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24580
24581 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24582 of main contributor.
24583
24584 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24585
24586 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24587 instead of using English.
24588
24589 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24590
24591 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24592 by including the first letters of nostr and yesexpr in the regexp.
24593 Also make it more readable by using ASCII where possible.
24594
24595 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24596
24597 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24598 the first letter of nostr in the regexp. It agrees with CLDR now.
24599 Also make it more readable by using ASCII where possible.
24600
24601 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24602
24603 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24604 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24605 these strings contain a U+17D6 (which somewhat looks like a colon)
24606 instead of a real colon to separate the full words for “yes”
24607 and “no” from the single letter responses.
24608
24609 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24610
24611 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24612 it agree with CLDR (include the first letter of yesstr).
24613 Also make it more readable by using ASCII where possible.
24614
24615 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24616
24617 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24618 and improve yesexpr and noexpr. The yesstr and nostr apparently
24619 came from CLDR. And CLDR has a bug there: these strings contain
24620 a U+0903 (which looks like a colon) instead of a real colon
24621 to separate the full words for “yes” and “no” from the single
24622 letter responses.
24623
24624 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24625
24626 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24627 letters of the full yesstr and nostr in yesexpr and noexpr.
24628
24629 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24630
24631 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24632 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24633 * localedata/locales/an_ES: Make source more readable by using ASCII
24634 where possible.
24635
24636 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24637
24638 [BZ #20952]
24639 * localedata/locales/yuw_PG: New file.
24640 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24641 * locale/iso-639.def: Add Yau (Uruwa).
24642
24643 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24644
24645 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24646
24647 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24648
24649 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24650 (__libc_realloc): Likewise.
24651 (_mid_memalign): Likewise.
24652 (__libc_calloc): Likewise.
24653
24654 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24655
24656 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24657 by adding the generic +1 and -0 as in all other locales.
24658 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24659 day names and make it more readable by using ASCII where possible.
24660
24661 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24662
24663 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24664 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24665
24666 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24667
24668 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24669 WNOHANG in waitpid call.
24670
24671 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24672
24673 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24674 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24675
24676 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24677 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24678 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24679 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24680 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24681 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24682 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24683 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24684 variables.
24685
24686 2017-10-23 Michael Collison <michael.collison@arm.com>
24687
24688 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24689 with __builtin_sqrt.
24690 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24691 with __builtin_sqrtf.
24692 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24693 with __builtin_ceil.
24694 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24695 with __builtin_ceilf.
24696 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24697 with __builtin_floor.
24698 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24699 with __builtin_floorf.
24700 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24701 with __builtin_fma.
24702 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24703 with __builtin_fmaf.
24704 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24705 with __builtin_fmax.
24706 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24707 with __builtin_fmaxf.
24708 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24709 with __builtin_fmin.
24710 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24711 with __builtin_fminf.
24712 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24713 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24714 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24715 with builtin_rint and conversion to int.
24716 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24717 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24718 with builtin_llround.
24719 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24720 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24721 with builtin_rint and conversion to long int.
24722 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24723 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24724 with builtin_lround.
24725 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24726 with builtin_lroundf.
24727 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24728 statements with __builtin_nearbyint.
24729 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24730 statements with __builtin_nearbyintf.
24731 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24732 with __builtin_rint.
24733 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24734 with __builtin_rintf.
24735 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24736 with __builtin_round.
24737 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24738 with __builtin_roundf.
24739 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24740 with __builtin_trunc.
24741 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24742 with __builtin_truncf.
24743 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24744 and s_l[l]round[f].c too.
24745
24746 2017-10-23 Alan Modra <amodra@gmail.com>
24747
24748 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24749 Adjust stack after restoring regs. Add missing LR cfi_restore.
24750
24751 2017-10-23 Alan Modra <amodra@gmail.com>
24752
24753 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24754 Move LR save and frame setup/teardown and LR restore to
24755 immediately around memset call. Provide cfi.
24756
24757 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24758
24759 * sysdeps/i386/fpu/e_powf.S: Removed.
24760 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24761 * sysdeps/i386/fpu/w_powf.c: Likewise.
24762 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24763 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24764 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24765 Add e_powf-sse2.
24766 (CFLAGS-e_powf-sse2.c): New.
24767 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24768 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24769
24770 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24771
24772 * sysdeps/i386/fpu/e_log2f.S: Removed.
24773 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24774 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24775 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24776 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24777 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24778 Add e_log2f-sse2.
24779 (CFLAGS-e_log2f-sse2.c): New.
24780 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24781 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24782
24783 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24784
24785 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24786 Add e_powf-fma.
24787 (CFLAGS-e_powf-fma.c): New.
24788 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24789 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24790
24791 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24792
24793 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24794 Add e_log2f-fma.
24795 (CFLAGS-e_log2f-fma.c): New.
24796 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24797 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24798
24799 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24800
24801 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24802 Add e_logf-fma.
24803 (CFLAGS-e_logf-fma.c): New.
24804 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24805 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24806
24807 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24808
24809 * sysdeps/i386/fpu/e_logf.S: Removed.
24810 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24811 * sysdeps/i386/fpu/w_logf.c: Likewise.
24812 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24813 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24814 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24815 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24816 Add e_logf-sse2.
24817 (CFLAGS-e_logf-sse2.c): New.
24818 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24819 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24820
24821 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24822
24823 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24824 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24825 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24826 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24827 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24828 Add e_exp2f-sse2.
24829 (CFLAGS-e_exp2f-sse2.c): New.
24830 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24831 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24832
24833 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24834
24835 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24836 Add e_exp2f-fma.
24837 (CFLAGS-e_exp2f-fma.c): New.
24838 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24839 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24840
24841 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24842
24843 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24844 * sysdeps/i386/fpu/e_expf.S: Likewise.
24845 * sysdeps/i386/fpu/math_errf.c: Likewise.
24846 * sysdeps/i386/fpu/w_expf.c: Likewise.
24847 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24848 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24849 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24850 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24851 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24852 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24853 Remove e_expf-ia32.
24854 (CFLAGS-e_expf-sse2.c): New.
24855 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24856 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24857
24858 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24859
24860 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24861 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24862 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24863 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24864 e_expf.c.
24865 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24866 New.
24867 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24868 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24869 Renamed to ...
24870 (__redirect_expf): This.
24871 (SYMBOL_NAME): Changed to expf.
24872 (__ieee754_expf): Renamed to ...
24873 (__expf): This.
24874 (__GI___expf): This.
24875 (__ieee754_expf): Add strong_alias.
24876 (__expf_finite): Likewise.
24877 (__expf): New.
24878 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24879
24880 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24881
24882 [BZ #22332]
24883 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24884 unescaping.
24885
24886 2017-10-21 Florian Weimer <fweimer@redhat.com>
24887
24888 * posix/Makefile (tests): Add tst-glob-tilde.
24889 (tests-special): Add tst-glob-tilde-mem.out
24890 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24891 (tst-glob-tilde-mem.out): Add mtrace check.
24892 * posix/tst-glob-tilde.c: New file.
24893
24894 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24895
24896 * bits/floatn-common.h: New file.
24897 * math/Makefile (headers): Add bits/floatn-common.h.
24898 * bits/floatn.h: Include <bits/floatn-common.h>.
24899 * sysdeps/ia64/bits/floatn.h: Likewise.
24900 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24901 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24902 * sysdeps/powerpc/bits/floatn.h: Likewise.
24903 * sysdeps/x86/bits/floatn.h: Likewise.
24904
24905 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24906
24907 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24908 indicates whether compiler emits an warning for alias for
24909 functions with incompatible types.
24910
24911 [BZ #22273]
24912 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24913 the auxiliary process is terminated by a signal before calling _exit
24914 or execve.
24915
24916 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24917
24918 [BZ #21265]
24919 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24920 New.
24921 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24922 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24923 and bit_arch_XSAVEC_Usable if needed.
24924 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24925 and bit_arch_Use_dl_runtime_resolve_opt.
24926 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24927 Removed.
24928 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24929 (bit_arch_Prefer_No_AVX512): Updated.
24930 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24931 (bit_arch_XSAVEC_Usable): New.
24932 (STATE_SAVE_OFFSET): Likewise.
24933 (STATE_SAVE_MASK): Likewise.
24934 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24935 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24936 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24937 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24938 (index_arch_XSAVEC_Usable): New.
24939 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24940 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24941 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24942 is enabled.
24943 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24944 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24945 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24946 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24947 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24948 _dl_runtime_resolve_xsavec.
24949 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24950 Removed.
24951 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24952 instead of VEC_SIZE.
24953 (REGISTER_SAVE_BND0): Removed.
24954 (REGISTER_SAVE_BND1): Likewise.
24955 (REGISTER_SAVE_BND3): Likewise.
24956 (REGISTER_SAVE_RAX): Always defined to 0.
24957 (VMOV): Removed.
24958 (_dl_runtime_resolve_avx): Likewise.
24959 (_dl_runtime_resolve_avx_slow): Likewise.
24960 (_dl_runtime_resolve_avx_opt): Likewise.
24961 (_dl_runtime_resolve_avx512): Likewise.
24962 (_dl_runtime_resolve_avx512_opt): Likewise.
24963 (_dl_runtime_resolve_sse): Likewise.
24964 (_dl_runtime_resolve_sse_vex): Likewise.
24965 (USE_FXSAVE): New.
24966 (_dl_runtime_resolve_fxsave): Likewise.
24967 (USE_XSAVE): Likewise.
24968 (_dl_runtime_resolve_xsave): Likewise.
24969 (USE_XSAVEC): Likewise.
24970 (_dl_runtime_resolve_xsavec): Likewise.
24971 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24972 Removed.
24973 (_dl_runtime_resolve_avx512_opt): Likewise.
24974 (_dl_runtime_resolve_avx): Likewise.
24975 (_dl_runtime_resolve_avx_opt): Likewise.
24976 (_dl_runtime_resolve_sse): Likewise.
24977 (_dl_runtime_resolve_sse_vex): Likewise.
24978 (_dl_runtime_resolve_fxsave): New.
24979 (_dl_runtime_resolve_xsave): Likewise.
24980 (_dl_runtime_resolve_xsavec): Likewise.
24981
24982 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24983
24984 [BZ #22320]
24985 CVE-2017-15670
24986 * posix/glob.c (__glob): Fix one-byte overflow.
24987
24988 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24989
24990 * malloc/malloc.c (sysdep-cancel.h): Add include.
24991
24992 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24993
24994 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24995
24996 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24997
24998 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24999 (tests): Remove $(objpfx)ga_test depdendency.
25000 * resolv/ga_test.c: Remove file.
25001
25002 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25003
25004 [BZ #18812]
25005 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
25006 * localedata/locales/kab_DZ: New file.
25007
25008 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25009
25010 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
25011 _dl_relocate_static_pie instead of _dl_start to compute load
25012 address in static PIE.
25013
25014 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
25015
25016 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
25017
25018 2017-10-20 Mike FABIAN <mfabian@redhat.com>
25019
25020 [BZ #13605]
25021 * localedata/SUPPORTED: Add shn_MM/UTF-8.
25022 * localedata/locales/shn_MM: New file.
25023
25024 2017-10-20 Florian Weimer <fweimer@redhat.com>
25025
25026 [BZ #22321]
25027 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
25028 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
25029 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
25030 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
25031 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
25032 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
25033
25034 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
25035
25036 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25037
25038 2017-10-19 Joseph Myers <joseph@codesourcery.com>
25039
25040 * sysdeps/mips/ieee754/bits/floatn.h: New file.
25041
25042 [BZ #22322]
25043 * sysdeps/mips/bits/long-double.h: Move to ....
25044 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25045
25046 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
25047
25048 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25049
25050 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
25051 H.J. Lu <hongjiu.lu@intel.com>
25052
25053 [BZ #22299]
25054 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25055 GLRO(dl_platform) to NULL.
25056 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25057 (modules-names): Add tst-platformmod-1 and
25058 x86_64/tst-platformmod-2.
25059 (CFLAGS-tst-platform-1.c): New.
25060 (CFLAGS-tst-platformmod-1.c): Likewise.
25061 (CFLAGS-tst-platformmod-2.c): Likewise.
25062 (LDFLAGS-tst-platformmod-2.so): Likewise.
25063 ($(objpfx)tst-platform-1): Likewise.
25064 ($(objpfx)tst-platform-1.out): Likewise.
25065 (tst-platform-1-ENV): Likewise.
25066 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25067 * sysdeps/x86_64/tst-platform-1.c: New file.
25068 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25069 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25070
25071 2017-10-19 Mike FABIAN <mfabian@redhat.com>
25072
25073 [BZ #13994]
25074 * locale/iso-639.def: Add Karbi.
25075 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25076 * localedata/locales/mjw_IN: New file.
25077
25078 2017-10-18 Joseph Myers <joseph@codesourcery.com>
25079
25080 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25081 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25082 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25083 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25084 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25085 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25086 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25087 <bits/floatn.h>.
25088 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25089 (libm_alias_ldouble_other_r): Also create _Float128 alias.
25090 * manual/math.texi (Mathematics): Document additional architecture
25091 support for _Float128.
25092 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25093 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25094 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25095 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25096 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25097 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25098 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25099 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25100 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25101 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25102 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25103 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25104 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25105 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25106 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25107
25108 2017-10-18 Renlin Li <renlin.li@arm.com>
25109
25110 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25111 _DYNAMIC symbol to calculate load address.
25112
25113 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
25114
25115 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25116 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25117 summary bits.
25118 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25119 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25120
25121 2017-10-18 Mike FABIAN <mfabian@redhat.com>
25122
25123 [BZ #16777]
25124 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25125 and improve readability by using more ASCII.
25126 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25127 and improve readability by using more ASCII.
25128
25129 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
25130
25131 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25132 not all targets support atomics on bool.
25133
25134 2017-10-17 Joseph Myers <joseph@codesourcery.com>
25135
25136 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25137 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25138 __f128.
25139 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25140 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25141 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25142 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25143 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25144 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25145
25146 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25147
25148 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25149 defines.
25150
25151 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25152
25153 [BZ #22159]
25154 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25155 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25156 (do_check_remalloced_chunk): Fix build bug.
25157 (do_check_malloc_state): Add assert that checks arena->top.
25158 (malloc_consolidate): Remove initialization.
25159 (int_mallinfo): Remove call to malloc_consolidate.
25160 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25161
25162 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25163
25164 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25165 (have_fastchunks): Remove.
25166 (clear_fastchunks): Remove.
25167 (set_fastchunks): Remove.
25168 (malloc_state): Add have_fastchunks.
25169 (malloc_init_state): Use have_fastchunks.
25170 (do_check_malloc_state): Remove incorrect invariant checks.
25171 (_int_malloc): Use have_fastchunks.
25172 (_int_free): Likewise.
25173 (malloc_consolidate): Likewise.
25174
25175 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25176
25177 * malloc/malloc.c (tcache_put): Inline.
25178 (tcache_get): Inline.
25179
25180 2017-10-17 Jordi Mallach <jordi@gnu.org>
25181
25182 Aurelien Jarno <aurelien@aurel32.net>
25183 [BZ #2522]
25184 * localedata/locales/ca_ES@valencia: New file.
25185 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25186
25187 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25188
25189 [BZ #22296]
25190 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25191 < 6.x
25192
25193 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25194
25195 * scripts/build-many-glibcs.py (Context.add_all_configs):
25196 Add arm-linux-gnueabihf multiarch extra_glibcs.
25197
25198 * sysdeps/generic/ifunc-init.h: New file.
25199 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25200
25201 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25202
25203 [BZ #22019]
25204 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25205 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25206 * stdlib/tst-strfmon_l.c: adapt test case.
25207
25208 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25209
25210 * sysdeps/generic/float128-abi.h: New file.
25211 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25212 non-__prefixed symbols to ....
25213 * math/Versions: ... here. Include <float128-abi.h>.
25214 * stdlib/Versions ... and here. Include <float128-abi.h>
25215
25216 2017-10-16 Florian Weimer <fweimer@redhat.com>
25217
25218 * version.h (VERSION): Switch to ".9000" as the development
25219 version suffix.
25220
25221 2017-10-16 Florian Weimer <fweimer@redhat.com>
25222
25223 [BZ #22050]
25224 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25225 compat_symbol_reference to access non-default version.
25226
25227 2017-10-16 Florian Weimer <fweimer@redhat.com>
25228
25229 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25230
25231 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25232
25233 * include/shlib-compat.h (compat_symbol_reference): Update
25234 comment.
25235
25236 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25237
25238 * math/Makefile (test-types): Add
25239 $(type-float128-$(float128-alias-fcts)).
25240 * math/test-float128.h (TYPE_STR): Define conditional on
25241 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25242 (ULP_IDX): Likewise.
25243 (ULP_I_IDX): Likewise.
25244
25245 * stdlib/strtold.c: Include <bits/floatn.h>
25246 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25247 and later undefine as macro. Define as weak alias if
25248 [!USE_WIDE_CHAR].
25249 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25250 and later undefine as macro. Define as weak alias if
25251 [USE_WIDE_CHAR].
25252 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25253 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25254 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25255 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25256 Define and later undefine as macro. Define as weak alias if
25257 [USE_WIDE_CHAR].
25258 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25259 <bits/floatn.h>.
25260 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25261 Define and later undefine as macro. Define as weak alias if
25262 [!USE_WIDE_CHAR].
25263 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25264 Define and later undefine as macro. Define as weak alias if
25265 [USE_WIDE_CHAR].
25266
25267 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25268
25269 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25270 record_verbose messages.
25271
25272 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25273
25274 [BZ #22052]
25275 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25276 to silence -O3 -Wall warning with GCC 7.
25277
25278 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25279
25280 * Makeconfig (+link-static-before-libc): Use the first of
25281 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25282 * gmon/Makefile (tests): Add tst-gmon-static.
25283 (tests-static): Likewise.
25284 (CFLAGS-tst-gmon-static.c): New.
25285 (CRT-tst-gmon-static): Likewise.
25286 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25287 (tst-gmon-static-ENV): Likewise.
25288 (tests-special): Likewise.
25289 ($(objpfx)tst-gmon-static.out): Likewise.
25290 (clean-tst-gmon-static-data): Likewise.
25291 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25292 * gmon/tst-gmon-static-gprof.sh: New file.
25293 * gmon/tst-gmon-static.c: Likewise.
25294
25295 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25296
25297 [BZ #22295]
25298 * locale/programs/linereader.c (get_string): Don't warn on
25299 non-symbolic character.
25300
25301 [BZ #22294]
25302 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25303 int_curr_symbol.
25304
25305 [BZ #22292]
25306 * locale/programs/record-status.h: New file
25307 * locale/programs/locale.c: Add comment.
25308 * locale/programs/charmap-dir.c: Don't include error.h.
25309 (charmap_opendir): Use record_error.
25310 * locale/programs/charmap.c: Don't include error.h.
25311 (charmap_read): Use record_error, and record_warning.
25312 (parse_charmap): Likewise.
25313 * locale/programs/ld-address.c: Don't include error.h.
25314 (address_finish): Use record_error, and record_warning.
25315 * locale/programs/ld-collate.c: Don't include error.h.
25316 (collate_finish): Use record_error, and record_error_at_line.
25317 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25318 (ctype_class_new): Likewise.
25319 (ctype_map_new): Likewise.
25320 (set_one_default): Likewise.
25321 (set_class_defaults): Likewise.
25322 (translit_flatten): Likewise.
25323 (allocate_arrays): Use record_error, and record_verbose.
25324 * locale/programs/ld-identification.c: Don't include error.h.
25325 (indentation_finish): Use record_error and record_warning.
25326 * locale/programs/ld-measurement.c: Don't include error.h.
25327 (measurement_finish): Use record_error.
25328 * locale/programs/ld-messages.c
25329 (message_finish): Likewise.
25330 * locale/programs/ld-monetary.c
25331 (monetary_finish): Likewise.
25332 * locale/programs/ld-name.c (name_finish): Use record_error
25333 and record_warning.
25334 * locale/programs/ld-numeric.c
25335 (numeric_finish): Use record_error.
25336 * locale/programs/ld-paper.c: Don't include error.h.
25337 (paper_finish): Use record_error.
25338 * locale/programs/ld-telephone.c: Don't include error.h.
25339 (telephone_finish): Use record_error.
25340 * locale/programs/ld-time.c (time_finish): Likewise.
25341 * locale/programs/linereader.h (lr_error): Make inline func.
25342 * locale/programs/localedef.c: Define recorded_warning_count,
25343 and recorded_error_count.
25344 (main): Use record_error. Use recorded_error_count and
25345 recorded_warning_count to issue correct error returns.
25346 (add_to_readlist): Use record_error.
25347 (find_locale): Likewise.
25348 (load_locale): Likewise.
25349 * locale/programs/localedef.h: Remove be_quiet
25350 and WITH_CUR_LOCALE.
25351 * locale/programs/locarchive.c (compare_from_file): Use
25352 record_error.
25353 * locale/programs/locfile.c (write_locale_data): Use
25354 record_error.
25355 * locale/programs/repertoire.c: Dont include error.h.
25356 (repertoire_complain): Use record_error.
25357 * localedata/tst-fmon.sh: Expect failures from localedef.
25358 * localedata/tst-locale.sh: Likewise.
25359 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25360
25361 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25362 (REPORTS): Likewise.
25363 (check): Likewise.
25364 (i18n): Rename to...
25365 (i18n_ctype): ...this.
25366 (i18n-report): Rename to...
25367 (i18n_ctype-report): ...this.
25368 * localedata/locales/i18n_ctype: Regenerate.
25369 * localedata/locales/i18n: copy i18n_ctype.
25370
25371 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25372
25373 * stdlib/strfroml.c: Include <bits/floatn.h>.
25374 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25375 Define before include of <stdlib.h> and undefine afterwards, then
25376 define as weak alias.
25377
25378 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25379 Undefine and restore default definition. Use
25380 libm_alias_ldouble_other.
25381
25382 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25383
25384 [BZ #22153]
25385 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25386 in coredumps.
25387
25388 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25389
25390 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25391 Assign sym_map to be map for local symbols, as TLS relocations
25392 use sym_map to determine whether the symbol is defined and to
25393 extract the TLS information.
25394 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25395 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25396
25397 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25398
25399 [BZ #22189]
25400 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25401 (math_force_eval): Add powerpc version.
25402
25403 [BZ #22142]
25404 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25405 -DBL_MAX.
25406 (do_test): Likewise.
25407 * stdio-common/tst-printf.sh: Likewise.
25408 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25409 ifdef clause in order to set the carry bit right. Replace r0 by
25410 0 without changing the behavior.
25411
25412 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25413
25414 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25415 <libm-alias-ldouble.h>.
25416 (fabsl): Define using libm_alias_ldouble.
25417 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25418 <libm-alias-ldouble.h>.
25419 (fabsl): Define using libm_alias_ldouble.
25420
25421 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25422 Remove conditional code.
25423
25424 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25425 Rename to __clog10_internal_l.
25426 (__clog10_internal_l): Define aliases using
25427 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25428 with __clog10.
25429
25430 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25431
25432 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25433 * benchtests/sincosf-inputs: New file.
25434 * benchtests/cosf-inputs: New file.
25435 * benchtests/sinf-inputs: New file.
25436
25437 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25438
25439 * posix/tst-spawn.c (do_test): Wait for both children.
25440
25441 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25442
25443 [BZ #22284]
25444 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25445 tests-pie): Add tst-gmon-pie.
25446 (CFLAGS-tst-gmon-pie.c): New.
25447 (CRT-tst-gmon-pie): Likewise.
25448 (tst-gmon-pie-ENV): Likewise.
25449 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25450 ($(objpfx)tst-gmon-pie.out): Likewise.
25451 (clean-tst-gmon-pie-data): Likewise.
25452 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25453 * gmon/gmon.c [PIC]: Include <link.h>.
25454 [PIC] (callback): New function.
25455 (write_hist): Add an argument for load address. Subtract load
25456 address from PCs.
25457 (write_call_graph): Likewise.
25458 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25459 it to write_hist and write_call_graph.
25460 * gmon/tst-gmon-pie.c: New file.
25461
25462 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25463
25464 * math/Makefile (test-types-basic): New variable.
25465 (test-types): Likewise.
25466 (libm-test-support): Use $(test-types) instead of $(types).
25467 (libm-tests-base-normal): Likewise.
25468 (libm-tests-base-finite): Likewise.
25469 (libm-tests-base-inline): Likewise.
25470 (generated): Likewise.
25471 ($(objpfx)libm-test-support-$(t).c): Likewise.
25472 (libm-tests-for-type iterator): Likewise.
25473 (libm-test-support iterator): Likewise.
25474 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25475 (ulp_idx): Use ULP_IDX.
25476 * math/test-ldouble.h: Include <float.h>.
25477 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25478 (ULP_IDX): New macro.
25479 (ULP_I_IDX): Likewise.
25480 * math/test-double.h (ULP_IDX): Likewise.
25481 (ULP_I_IDX): Likewise.
25482 * math/test-float.h (ULP_IDX): Likewise.
25483 (ULP_I_IDX): Likewise.
25484 * math/test-float128.h (ULP_IDX): Likewise.
25485 (ULP_I_IDX): Likewise.
25486
25487 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25488
25489 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25490 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25491 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25492 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25493 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25494 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25495 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25496 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25497 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25498 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25499 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25500 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25501 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25502 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25503 (SINGLE_THREAD_BY_GLOBAL): Define.
25504 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25505 Likewise.
25506 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25507 Likewise.
25508 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25509 Likewise.
25510 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25511 Likewise.
25512 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25513 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25514 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25515 Likewise.
25516
25517 2017-10-11 Andreas Schwab <schwab@suse.de>
25518
25519 * nis/Makefile (aux): Remove.
25520 * nscd/Makefile (aux): Add nscd_hash.
25521 (nscd-modules): Likewise.
25522 ($(objpfx)nscd): Don't depend on libnsl.
25523 * nscd/nscd_hash.c: New file.
25524 * nscd/nscd_hash.h: Likewise.
25525 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25526 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25527 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25528 instead of <nis/rpcsvc/nis.h>.
25529 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25530
25531 2017-10-11 Florian Weimer <fweimer@redhat.com>
25532
25533 [BZ #22078]
25534 Avoid large NSS buffers with many addresses, aliases.
25535 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25536 using dynarrays and struct alloc_buffer.
25537 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25538 (tst-nss-files-hosts-multi): Link with -ldl.
25539 * nss/tst-nss-files-hosts-multi.c: New file.
25540
25541 2017-10-11 Florian Weimer <fweimer@redhat.com>
25542
25543 [BZ #18023]
25544 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25545 scratch_buffer. Eliminate gotos.
25546
25547 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25548
25549 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25550 libm_alias_ldouble_other.
25551 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25552 undefine and redefine.
25553 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25554 (exp10l): Do not define here.
25555 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25556 (weak_alias): Undefine and redefine.
25557 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25558 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25559 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25560 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25561
25562 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25563 [!__fma] (fma): Define using libm_alias_double.
25564 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25565 [!__fmaf] (fmaf): Define using libm_alias_float.
25566 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25567 (fmal): Define using libm_alias_ldouble.
25568
25569 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25570
25571 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25572 New macro.
25573 (libm_alias_double_other): Likewise.
25574 (libm_alias_double_r): Use libm_alias_double_other_r.
25575 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25576 New macro.
25577 (libm_alias_float_other): Likewise.
25578 (libm_alias_float_r): Use libm_alias_float_other_r.
25579 * sysdeps/generic/libm-alias-float128.h
25580 (libm_alias_float128_other_r): New macro.
25581 (libm_alias_float128_other): Likewise.
25582 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25583 * sysdeps/generic/libm-alias-ldouble.h
25584 (libm_alias_ldouble_other_r): New macro.
25585 (libm_alias_ldouble_other): Likewise.
25586 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25587 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25588 (libm_alias_double_other_r): New macro.
25589 (libm_alias_double_other): Likewise.
25590 (libm_alias_double_r): Use libm_alias_double_other_r.
25591 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25592 (libm_alias_ldouble_other_r): New macro.
25593 (libm_alias_ldouble_other): Likewise.
25594 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25595 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25596 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25597 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25598 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25599 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25600 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25601 * math/w_exp2f.c: Use libm_alias_float_other.
25602 * math/w_expf.c: Likewise.
25603 * math/w_log2f.c: Likewise.
25604 * math/w_logf.c: Likewise.
25605 * math/w_powf.c: Likewise.
25606 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25607 [!__exp2f]: Use libm_alias_float_other.
25608 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25609 [!__expf]: Use libm_alias_float_other.
25610 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25611 [!__log2f]: Use libm_alias_float_other.
25612 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25613 [!__logf]: Use libm_alias_float_other.
25614 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25615 [!__powf]: Use libm_alias_float_other.
25616
25617 2017-10-10 Florian Weimer <fweimer@redhat.com>
25618
25619 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25620 function.
25621 (_nss_files_gethostbyname3_r): Call it.
25622
25623 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25624
25625 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25626 error. Remove default definition of declare_mgen_alias.
25627 [!declare_mgen_alias_r]: Likewise.
25628 * sysdeps/generic/math-type-macros-double.h
25629 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25630 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25631 (declare_mgen_alias_r): Likewise.
25632 * sysdeps/generic/math-type-macros-float128.h
25633 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25634 * sysdeps/generic/math-type-macros-ldouble.h
25635 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25636 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25637 macro.
25638 (declare_mgen_alias_r_s): Likewise.
25639 (declare_mgen_alias_r): Likewise.
25640 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25641 (lgamma_r): Define using libm_alias_double_r.
25642 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25643 (lgammaf_r): Define using libm_alias_float_r.
25644 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25645 (lgammal_r): Define using libm_alias_ldouble_r.
25646 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25647 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25648
25649 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25650
25651 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25652 extern declaration.
25653
25654 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25655
25656 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25657
25658 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25659
25660 [BZ #21326]
25661 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25662 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25663 * math/Makefile (test-math-cxx11): New test.
25664 * math/test-math-cxx11.cc: New file.
25665
25666 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25667
25668 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25669
25670 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25671 call to allocate the slave pty file descriptor.
25672
25673 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25674
25675 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25676 [!__fma] (fma): Define using libm_alias_double.
25677 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25678 [!__fma] (fma): Define using libm_alias_double.
25679
25680 * sysdeps/ieee754/float128/float128_private.h: Include
25681 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25682 (libm_alias_ldouble_r): Undefine and redefine.
25683 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25684 <libm-alias-ldouble.h>.
25685 (asinhl): Define using libm_alias_ldouble.
25686 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25687 <libm-alias-ldouble.h>.
25688 (atanl): Define using libm_alias_ldouble.
25689 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25690 <libm-alias-ldouble.h>.
25691 (cbrtl): Define using libm_alias_ldouble.
25692 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25693 <libm-alias-ldouble.h>.
25694 (ceill): Define using libm_alias_ldouble.
25695 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25696 <libm-alias-ldouble.h>.
25697 (copysignl): Define using libm_alias_ldouble.
25698 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25699 <libm-alias-ldouble.h>.
25700 (cosl): Define using libm_alias_ldouble.
25701 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25702 <libm-alias-ldouble.h>.
25703 (erfl): Define using libm_alias_ldouble.
25704 (erfcl): Likewise.
25705 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25706 <libm-alias-ldouble.h>.
25707 (expm1l): Define using libm_alias_ldouble.
25708 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25709 <libm-alias-ldouble.h>.
25710 (fabsl): Define using libm_alias_ldouble.
25711 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25712 <libm-alias-ldouble.h>.
25713 (floorl): Define using libm_alias_ldouble.
25714 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25715 <libm-alias-ldouble.h>.
25716 (fmal): Define using libm_alias_ldouble.
25717 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25718 <libm-alias-ldouble.h>.
25719 (frexpl): Define using libm_alias_ldouble.
25720 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25721 libm_alias_ldouble.
25722 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25723 <libm-alias-ldouble.h>.
25724 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25725 libm_alias_ldouble.
25726 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25727 <libm-alias-ldouble.h>.
25728 (getpayloadl): Define using libm_alias_ldouble.
25729 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25730 <libm-alias-ldouble.h>.
25731 (llrintl): Define using libm_alias_ldouble.
25732 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25733 <libm-alias-ldouble.h>.
25734 (llroundl): Define using libm_alias_ldouble.
25735 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25736 <libm-alias-ldouble.h>.
25737 (logbl): Define using libm_alias_ldouble.
25738 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25739 <libm-alias-ldouble.h>.
25740 (lrintl): Define using libm_alias_ldouble.
25741 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25742 <libm-alias-ldouble.h>.
25743 (lroundl): Define using libm_alias_ldouble.
25744 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25745 <libm-alias-ldouble.h>.
25746 (modfl): Define using libm_alias_ldouble.
25747 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25748 <libm-alias-ldouble.h>.
25749 (nearbyintl): Define using libm_alias_ldouble.
25750 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25751 <libm-alias-ldouble.h>.
25752 (nextafterl): Define using libm_alias_ldouble.
25753 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25754 <libm-alias-ldouble.h>.
25755 (nextupl): Define using libm_alias_ldouble.
25756 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25757 <libm-alias-ldouble.h>.
25758 (remquol): Define using libm_alias_ldouble.
25759 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25760 <libm-alias-ldouble.h>.
25761 (rintl): Define using libm_alias_ldouble.
25762 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25763 <libm-alias-ldouble.h>.
25764 (roundevenl): Define using libm_alias_ldouble.
25765 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25766 <libm-alias-ldouble.h>.
25767 (roundl): Define using libm_alias_ldouble.
25768 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25769 using libm_alias_ldouble.
25770 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25771 <libm-alias-ldouble.h>.
25772 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25773 Define using libm_alias_ldouble.
25774 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25775 <libm-alias-ldouble.h>.
25776 (sincosl): Define using libm_alias_ldouble.
25777 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25778 <libm-alias-ldouble.h>.
25779 (sinl): Define using libm_alias_ldouble.
25780 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25781 <libm-alias-ldouble.h>.
25782 (tanhl): Define using libm_alias_ldouble.
25783 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25784 <libm-alias-ldouble.h>.
25785 (tanl): Define using libm_alias_ldouble.
25786 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25787 <libm-alias-ldouble.h>.
25788 (totalorderl): Define using libm_alias_ldouble.
25789 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25790 <libm-alias-ldouble.h>.
25791 (totalordermagl): Define using libm_alias_ldouble.
25792 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25793 <libm-alias-ldouble.h>.
25794 (truncl): Define using libm_alias_ldouble.
25795 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25796 libm_alias_ldouble.
25797 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25798 libm_alias_ldouble.
25799 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25800 <libm-alias-ldouble.h>.
25801 (weak_alias): Do not undefine and redefine.
25802 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25803 (copysignl): Define with long_double_symbol only if [IS_IN
25804 (libc)].
25805 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25806 <libm-alias-ldouble.h>.
25807 (weak_alias): Do not undefine and redefine.
25808 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25809 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25810 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25811 <libm-alias-ldouble.h>.
25812 (weak_alias): Do not undefine and redefine.
25813 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25814 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25815 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25816 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25817 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25818 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25819 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25820 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25821 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25822 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25823 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25824 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25825 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25826 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25827 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25828 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25829 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25830 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25831 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25832 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25833 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25834 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25835 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25836 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25837 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25838 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25839
25840 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25841
25842 [BZ #22111]
25843 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25844 (tcache_thread_freeres): Set tcache_shutting_down before
25845 freeing the tcache.
25846 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25847 * malloc/tst-malloc-tcache-leak.c: New file.
25848
25849 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25850
25851 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25852 back to powerpc32 file.
25853 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25854 (memrchr): Add __memrchr_power8 to ifunc list.
25855 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25856 extra bytes for unaligned inputs.
25857
25858 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25859
25860 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25861 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25862 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25863 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25864 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25865
25866 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25867
25868 * sysdeps/arm/libm-test-ulps: Update.
25869
25870 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25871 <libm-alias-ldouble.h>.
25872 (asinhl): Define using libm_alias_ldouble.
25873 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25874 <libm-alias-ldouble.h>.
25875 (cbrtl): Define using libm_alias_ldouble.
25876 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25877 <libm-alias-ldouble.h>.
25878 (copysignl): Define using libm_alias_ldouble.
25879 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25880 <libm-alias-ldouble.h>.
25881 (cosl): Define using libm_alias_ldouble.
25882 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25883 <libm-alias-ldouble.h>.
25884 (erfl): Define using libm_alias_ldouble.
25885 (erfcl): Likewise.
25886 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25887 <libm-alias-ldouble.h>.
25888 (fmal): Define using libm_alias_ldouble.
25889 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25890 <libm-alias-ldouble.h>.
25891 (frexpl): Define using libm_alias_ldouble.
25892 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25893 libm_alias_ldouble.
25894 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25895 <libm-alias-ldouble.h>.
25896 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25897 libm_alias_ldouble.
25898 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25899 <libm-alias-ldouble.h>.
25900 (getpayloadl): Define using libm_alias_ldouble.
25901 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25902 <libm-alias-ldouble.h>.
25903 (llrintl): Define using libm_alias_ldouble.
25904 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25905 <libm-alias-ldouble.h>.
25906 (llroundl): Define using libm_alias_ldouble.
25907 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25908 <libm-alias-ldouble.h>.
25909 (lrintl): Define using libm_alias_ldouble.
25910 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25911 <libm-alias-ldouble.h>.
25912 (lroundl): Define using libm_alias_ldouble.
25913 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25914 <libm-alias-ldouble.h>.
25915 (modfl): Define using libm_alias_ldouble.
25916 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25917 <libm-alias-ldouble.h>.
25918 (nextupl): Define using libm_alias_ldouble.
25919 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25920 <libm-alias-ldouble.h>.
25921 (remquol): Define using libm_alias_ldouble.
25922 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25923 <libm-alias-ldouble.h>.
25924 (roundevenl): Define using libm_alias_ldouble.
25925 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25926 <libm-alias-ldouble.h>.
25927 (roundl): Define using libm_alias_ldouble.
25928 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25929 using libm_alias_ldouble.
25930 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25931 <libm-alias-ldouble.h>.
25932 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25933 <libm-alias-ldouble.h>.
25934 (setpayloadsigl): Define using libm_alias_ldouble.
25935 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25936 <libm-alias-ldouble.h>.
25937 (sincosl): Define using libm_alias_ldouble.
25938 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25939 <libm-alias-ldouble.h>.
25940 (sinl): Define using libm_alias_ldouble.
25941 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25942 <libm-alias-ldouble.h>.
25943 (tanhl): Define using libm_alias_ldouble.
25944 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25945 <libm-alias-ldouble.h>.
25946 (tanl): Define using libm_alias_ldouble.
25947 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25948 <libm-alias-ldouble.h>.
25949 (totalorderl): Define using libm_alias_ldouble.
25950 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25951 <libm-alias-ldouble.h>.
25952 (totalordermagl): Define using libm_alias_ldouble.
25953 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25954 libm_alias_ldouble.
25955 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25956 libm_alias_ldouble.
25957
25958 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25959
25960 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25961 memmove_falkor.
25962 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25963 (__libc_ifunc_impl_list): Likewise.
25964 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25965 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25966
25967 * benchtests/bench-memmove-walk.c: New file.
25968 * benchtests/Makefile (string-benchset): Add it.
25969
25970 * benchtests/bench-memset-walk.c: New file.
25971 * benchtests/Makefile (string-benchset): Add it.
25972
25973 * benchtests/bench-memcpy-walk.c: New file.
25974 * benchtests/Makefile (string-benchset): Add it.
25975
25976 2017-10-05 Florian Weimer <fweimer@redhat.com>
25977
25978 nscd: Eliminate compilation time dependency in the build output.
25979 * nscd/nscd_stat.c (STATDATA_VERSION)
25980 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25981 (STATDATA_VERSION_FULL): New macro definitions.
25982 (compilation): Remove.
25983 (struct statdata): Adjust version member.
25984 (send_stats): Set version from STATDATA_VERSION_FULL.
25985 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25986
25987 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25988
25989 * configure.ac (--enable-add-ons): Remove option.
25990 (machine): Do not mention add-ons in comment.
25991 (LIBC_PRECONFIGURE): Likewise.
25992 (add_ons): Remove variable and sanity checks and logic to locate
25993 add-ons.
25994 (add_ons_automatic): Remove variable.
25995 (configured_add_ons): Likewise.
25996 (add_ons_sfx): Likewise.
25997 (add_ons_pfx): Likewise.
25998 (add_on_subdirs): Likewise.
25999 (sysnames_add_ons): Likewise. Remove loop over add-ons and
26000 consideration of add-ons in Implies handling.
26001 (sysdeps_add_ons): Likewise.
26002 * configure: Regenerated.
26003 * libidn/configure.ac: Remove.
26004 * libidn/configure: Likewise.
26005 * sysdeps/unix/inet/configure.ac: New file.
26006 * sysdeps/unix/inet/configure: New generated file.
26007 * sysdeps/unix/inet/Subdirs: Add libidn.
26008 * Makeconfig (sysdeps-srcdirs): Remove variable.
26009 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
26010 ($(common-objpfx)config.status): Do not depend on add-on files.
26011 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
26012 comment.
26013 (all-subdirs): Do not include $(add-on-subdirs).
26014 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
26015 * config.make.in (add-ons): Remove variable.
26016 (add-on-subdirs): Likewise.
26017 (sysdeps-add-ons): Likewise.
26018 * manual/Makefile (add-chapters): Remove.
26019 ($(objpfx)texis): Do not depend on $(add-chapters).
26020 (nonexamples): Do not handle $(add-chapters).
26021 (examples): Do not handle $(add-ons).
26022 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
26023 libc-texinfo.sh.
26024 * manual/install.texi (Installation): Do not mention add-ons.
26025 (--enable-add-ons): Do not document configure option.
26026 * INSTALL: Regenerated.
26027 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
26028 * manual/maint.texi (Hierarchy Conventions): Do not mention
26029 add-ons.
26030 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
26031 --enable-add-ons.
26032 * scripts/gen-sorted.awk: Do not handle Subdirs files from
26033 add-ons.
26034 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
26035 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26036
26037 2017-10-05 Andreas Schwab <schwab@suse.de>
26038
26039 [BZ #15142]
26040 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
26041 (_IO_flush_all_lockp): Always lock list_all_lock.
26042 (_IO_flush_all_linebuffered): Likewise.
26043 (_IO_unbuffer_all): Likewise.
26044
26045 2017-10-05 Florian Weimer <fweimer@redhat.com>
26046
26047 [BZ #15436]
26048 Do not flush stdio streams on abort.
26049 * stdlib/abort.c (fflush): Remove macro definition.
26050 (abort): Remove stages related to stdio flushing.
26051
26052 2017-10-05 Florian Weimer <fweimer@redhat.com>
26053
26054 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26055
26056 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
26057
26058 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26059
26060 2017-10-05 Florian Weimer <fweimer@redhat.com>
26061
26062 * support/support_format_hostent.c (support_format_hostent): Add
26063 more error information for NETDB_INTERNAL.
26064
26065 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26066
26067 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26068 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26069 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26070 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26071 AC_DEFINE if multi-arch is enabled.
26072 * sysdeps/i386/configure: Regenerated.
26073
26074 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26075
26076 * Makeconfig (+link-static-before-libc): Use
26077 $(DEFAULT-LDFLAGS-$(@F)).
26078 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26079 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26080 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26081
26082 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26083
26084 * elf/Makefile (tests): Add tst-main1.
26085 (modules-names): Add tst-main1mod.
26086 ($(objpfx)tst-main1): New.
26087 (CRT-tst-main1): Likewise.
26088 (LDFLAGS-tst-main1): Likewise.
26089 (LDLIBS-tst-main1): Likewise.
26090 (tst-main1mod.so-no-z-defs): Likewise.
26091 * elf/tst-main1.c: New file.
26092 * elf/tst-main1mod.c: Likewise.
26093
26094 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
26095
26096 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
26097
26098 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26099
26100 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
26101 (fma): Define using libm_alias_double.
26102 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
26103 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
26104 <math_ldbl_opt.h>.
26105 (fmal): Do not define as compat symbol here.
26106 * sysdeps/alpha/fpu/s_fma.c: New file.
26107
26108 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26109
26110 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26111
26112 2017-10-04 Joseph Myers <joseph@codesourcery.com>
26113
26114 [BZ #22229]
26115 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26116 <math_ldbl_opt.h>
26117 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26118 and libc.
26119 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26120 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26121 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26122 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26123 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26124 Include <math_ldbl_opt.h>
26125 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26126 and libc.
26127 (compat_symbol): Undefine and redefine.
26128 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26129 <math_ldbl_opt.h>
26130 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26131 (compat_symbol): Undefine and redefine.
26132 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26133 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26134 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26135 GLIBC_2_1 for libm.
26136 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26137 GLIBC_2.0 copysignl symbol.
26138 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26139 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26140
26141 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26142
26143 2017-10-04 Florian Weimer <fweimer@redhat.com>
26144
26145 * scripts/check-local-headers.sh: Ignore nspr4 header file
26146 directory in addition to nspr.
26147
26148 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
26149
26150 [BZ #17956]
26151 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26152 * configure: Regenerate.
26153 * crypt/Makefile (nss-cpp-flags): New variable.
26154 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26155 (CPPFLAGS-md5-crypt.c): Use it.
26156 * scripts/check-local-headers.sh: Ignore nspr header file
26157 directory.
26158
26159 2017-10-04 Andreas Schwab <schwab@suse.de>
26160
26161 * nis/Makefile (services): Remove compat.
26162 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26163 ($(objpfx)libnss_compat.so): Remove rule.
26164 * nis/Versions (libnss_compat): Remove.
26165 * nss/Makefile (services): Add compat.
26166 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26167 * nss/Versions (libnss_compat): Define.
26168 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26169 Don't include <rpc/types.h>. Replace bool_t by bool.
26170 * nss/nss_compat/compat-initgroups.c: Likewise.
26171 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26172 instead of <rpcsrv/ypclnt.h>.
26173 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26174 yp_get_default_domain.
26175 * nss/nss_compat/compat-pwd.c: Likewise.
26176 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26177 yp_get_default_domain.
26178 * nss/nss_compat/nisdomain.c: New file.
26179 * nss/nss_compat/nisdomain.h: Likewise.
26180
26181 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26182
26183 [BZ #22244]
26184 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26185 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26186
26187 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26188
26189 [BZ #22243]
26190 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26191 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26192
26193 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26194
26195 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26196 "movl main@GOTOFF(%ebx), %eax".
26197
26198 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26199
26200 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26201 allow undefined _DYNAMIC in PIE libc.a.
26202 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26203 Likewse.
26204
26205 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26206
26207 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26208 check _DYNAMIC.
26209
26210 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26211
26212 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26213 check _DYNAMIC.
26214
26215 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26216
26217 * math/test-math-iscanonical.cc (error): Replace bool with int.
26218
26219 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26220
26221 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26222 (modf): Define using libm_alias_double, only if [!__modf].
26223 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26224 <libm-alias-double.h>.
26225 (modf): Define using libm_alias_double, only if [!__modf].
26226 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26227 compat symbol here.
26228 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26229 (weak_alias): Do not undefine and redefine.
26230 (strong_alias): Likewise.
26231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26232 (weak_alias): Likewise.
26233 (strong_alias): Likewise.
26234
26235 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26236 (logb): Define using libm_alias_double, only if [!__logb].
26237 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26238 <libm-alias-double.h>.
26239 (logb): Define using libm_alias_double, only if [!__logb].
26240 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26241 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26242 (weak_alias): Do not undefine and redefine.
26243 (strong_alias): Likewise.
26244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26245 (weak_alias): Likewise.
26246 (strong_alias): Likewise.
26247
26248 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26249
26250 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26251 Check SHARED instead PIC.
26252
26253 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26254
26255 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26256 [!__fmaf] (fmaf): Define using libm_alias_float.
26257
26258 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26259 (frexp): Define using libm_alias_double.
26260 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26261 <libm-alias-double.h>.
26262 (frexp): Define using libm_alias_double.
26263 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26264 compat symbol here.
26265
26266 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26267
26268 [BZ #22235]
26269 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26270 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26271 (CFLAGS-test-math-iscanonical.cc): New variable.
26272 * math/test-math-iscanonical.cc: New file.
26273 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26274 Provide a C++ implementation based on function overloading,
26275 rather than using __MATH_TG, which uses C-only builtins.
26276 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26277 Likewise.
26278 * sysdeps/powerpc/powerpc64le/Makefile
26279 (CFLAGS-test-math-iscanonical.cc): New variable.
26280
26281 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26282
26283 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26284 (ceil): Define using libm_alias_double.
26285 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26286 (floor): Define using libm_alias_double.
26287 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26288 <libm-alias-double.h>.
26289 (llround): Define using libm_alias_double.
26290 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26291 <libm-alias-double.h>.
26292 (lround): Define using libm_alias_double.
26293 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26294 <libm-alias-double.h>.
26295 (nearbyint): Define using libm_alias_double.
26296 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26297 <libm-alias-double.h>.
26298 (remquo): Define using libm_alias_double.
26299 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26300 (rint): Define using libm_alias_double.
26301 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26302 (round): Define using libm_alias_double.
26303 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26304 (trunc): Define using libm_alias_double.
26305 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26306 <libm-alias-double.h>.
26307 (ceil): Define using libm_alias_double.
26308 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26309 <libm-alias-double.h>.
26310 (floor): Define using libm_alias_double.
26311 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26312 <libm-alias-double.h>.
26313 (llround): Define using libm_alias_double.
26314 [_LP64] (lround): Likewise.
26315 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26316 <libm-alias-double.h>.
26317 [!_LP64] (lround): Define using libm_alias_double.
26318 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26319 <libm-alias-double.h>.
26320 (nearbyint): Define using libm_alias_double.
26321 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26322 <libm-alias-double.h>.
26323 (remquo): Define using libm_alias_double.
26324 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26325 <libm-alias-double.h>.
26326 (rint): Define using libm_alias_double.
26327 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26328 <libm-alias-double.h>.
26329 (round): Define using libm_alias_double.
26330 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26331 <libm-alias-double.h>.
26332 (trunc): Define using libm_alias_double.
26333 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26334 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26335 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26336 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26337 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26338 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26339 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26340 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26341 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26342
26343 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26344
26345 * math/w_remainder.c: New file.
26346 * math/w_remainderf.c: New file.
26347 * math/w_remainderl.c: New file.
26348
26349 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26350
26351 * elf/rtld.c (BOOTSTRAP_MAP): New.
26352 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26353 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26354 Likewise.
26355 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26356 Likewise.
26357 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26358 Likewise.
26359
26360 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26361
26362 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26363 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26364 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26365 rtld_hidden_data_ver): Define to empty.
26366 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26367 __assert_perror_fail): Likewise.
26368 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26369 (__rewinddir): Likewise.
26370 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26371 (__profile_frequency): Likewise.
26372 * include/setjmp.h (__sigsetjmp): Likewise.
26373 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26374 __libc_sigaction): Likewise.
26375 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26376 not set hidden attribute.
26377 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26378 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26379 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26380 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26381 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26382 __fxstatat64): Likewise.
26383 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26384 (__uname): Likewise.
26385 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26386 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26387 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26388 (NO_RTLD_HIDDEN): Set.
26389 * sysdeps/mach/hurd/configure: Refresh.
26390 * config.h.in: Refresh.
26391
26392 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26393
26394 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26395 (atan): Define using libm_alias_double.
26396 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26397 (tan): Define using libm_alias_double.
26398 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26399 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26400
26401 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26402 define as weak alias of __atan. Do not define any aliases if
26403 [__atan].
26404 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26405 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26406 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26407 as weak alias of __tan. Do not define any aliases if [__tan].
26408 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26409 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26410 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26411 __atan.
26412 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26413 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26414 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26415 and define as weak alias of __atan.
26416 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26417 __atan.
26418 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26419 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26420 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26421 define as weak alias of __tan.
26422
26423 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26424
26425 * math/w_lgamma.c: New file.
26426 * math/w_lgammaf.c: New file.
26427 * math/w_lgammal.c: New file.
26428
26429 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26430
26431 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26432 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26433 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26434 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26435 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26436 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26437 * sysdeps/i386/fpu/w_log2f.c: New file.
26438 * sysdeps/i386/fpu/w_logf.c: New file.
26439 * sysdeps/i386/fpu/w_powf.c: New file.
26440 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26441 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26442 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26443
26444 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26445 H.J. Lu <hongjiu.lu@intel.com>
26446
26447 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26448 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26449 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26450 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26451 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26452 the new expf code.
26453 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26454 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26455 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26456 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26457 * sysdeps/i386/fpu/w_exp2f.c: New file.
26458 * sysdeps/i386/fpu/w_expf.c: New file.
26459 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26460 * sysdeps/x86_64/fpu/w_expf.c: New file.
26461
26462 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26463
26464 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26465 (log2f): Likewise.
26466 (powf): Likewise.
26467 * math/w_log2f.c: New file.
26468 * math/w_logf.c: New file.
26469 * math/w_powf.c: New file.
26470 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26471 * math/w_logf_compat.c (__logf_compat): Likewise.
26472 * math/w_powf_compat.c (__powf_compat): Likewise.
26473 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26474 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26475 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26476 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26477 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26478 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26479 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26480 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26481 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26482 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26483 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26484 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26485 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26486 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26487 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26488 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26489 Likewise.
26490 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26491 Likewise.
26492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26493 Likewise.
26494 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26495 Likewise.
26496 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26497 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26498 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26499 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26500 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26501 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26502 Likewise.
26503 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26504 Likewise.
26505 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26506 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26507 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26508
26509 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26510
26511 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26512 (sysdep_routines): Add memrchr_power8.
26513 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26514 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26515 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26516 New file.
26517 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26518 (memrchr): Add __memrchr_power8 to ifunc list.
26519 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26520
26521 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26522
26523 [BZ #18822]
26524 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26525 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26526 libc_hidden_def.
26527 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26528 (__posix_fallocate64_l64): Likewise.
26529
26530 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26531
26532 [BZ #18822]
26533 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26534 (__sched_setaffinity_new): Add libc_hidden_proto and
26535 libc_hidden_def.
26536
26537 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26538
26539 [BZ #18822]
26540 * include/glob.h (__glob64): Add libc_hidden_proto.
26541 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26542 libc_hidden_def.
26543
26544 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26545
26546 [BZ #18822]
26547 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26548 attribute_hidden.
26549
26550 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26551
26552 [BZ #18822]
26553 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26554
26555 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26556
26557 [BZ #18822]
26558 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26559 libc_hidden_def.
26560
26561 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26562
26563 [BZ #18822]
26564 * csu/version.c (__libc_print_version): Add attribute_hidden.
26565
26566 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26567
26568 [BZ #18822]
26569 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26570
26571 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26572
26573 [BZ #18822]
26574 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26575
26576 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26577
26578 [BZ #18822]
26579 * nscd/nscd_helper.c (__nis_hash): New prototype.
26580
26581 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26582
26583 [BZ #18822]
26584 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26585 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26586 libc_hidden_def.
26587 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26588 * termios/tcgetattr.c (__tcgetattr): Likewise.
26589
26590 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26591
26592 [BZ #18822]
26593 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26594 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26595 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26596 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26597 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26598
26599 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26600
26601 [BZ #18822]
26602 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26603
26604 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26605
26606 [BZ #18822]
26607 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26608 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26609
26610 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26611
26612 [BZ #18822]
26613 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26614
26615 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26616
26617 [BZ #18822]
26618 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26619 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26620
26621 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26622
26623 [BZ #18822]
26624 * include/ifreq.h: New file.
26625 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26626 (__ifreq): Likewise.
26627 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26628 (__ifreq): Likewise.
26629
26630 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26631
26632 [BZ #18822]
26633 * include/idna.h: New file.
26634 * inet/getnameinfo.c: Include <idna.h> instead of
26635 <libidn/idna.h>.
26636 (__idna_to_unicode_lzlz): Removed.
26637 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26638 <libidn/idna.h>.
26639 (__idna_to_ascii_lz): Removed.
26640 (__idna_to_unicode_lzlz): Likewise.
26641
26642 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26643
26644 [BZ #18822]
26645 * include/plural-exp.h: New file.
26646 * intl/plural-exp.c: Include <plural-exp.h> instead of
26647 "plural-exp.h".
26648
26649 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26650
26651 [BZ #18822]
26652 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26653 "getsourcefilter.h".
26654 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26655 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26656 "getsourcefilter.h".
26657 (__get_sol): Removed.
26658
26659 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26660
26661 [BZ #18822]
26662 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26663 to ...
26664 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26665
26666 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26667
26668 [BZ #18822]
26669 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26670 attribute_hidden.
26671
26672 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26673
26674 [BZ #18822]
26675 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26676
26677 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26678
26679 [BZ #18822]
26680 * include/search.h (__tdestroy): Add libc_hidden_proto.
26681 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26682
26683 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26684
26685 [BZ #18822]
26686 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26687
26688 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26689
26690 [BZ #18822]
26691 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26692 attribute_hidden.
26693
26694 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26695
26696 [BZ #18822]
26697 * include/signal.h (__kill): Add libc_hidden_proto.
26698 (__sigblock): Likewise.
26699 (__sigprocmask): Likewise.
26700 (__sigaltstack): Likewise.
26701 * signal/kill.c (__kill): Add libc_hidden_def.
26702 * signal/sigblock.c (__sigblock): Likewise.
26703 * signal/sigprocmask.c (__sigprocmask): Likewise.
26704 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26705 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26706 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26707 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26708 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26709 Likewise.
26710 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26711 Likewise.
26712 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26713 (__sigprocmask): Likewise.
26714 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26715 Likewise.
26716 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26717 (__sigprocmask): Likewise.
26718 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26719 Likewise.
26720
26721 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26722
26723 [BZ #18822]
26724 * include/string.h (__strsep): Add libc_hidden_proto.
26725 * string/strsep.c (__strsep): Add libc_hidden_def.
26726
26727 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26728
26729 [BZ #18822]
26730 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26731 attribute_hidden.
26732 (__spawni): Likewise.
26733
26734 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26735
26736 [BZ #18822]
26737 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26738 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26739 libc_hidden_def.
26740
26741 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26742
26743 [BZ #18822]
26744 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26745
26746 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26747
26748 [BZ #18822]
26749 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26750 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26751 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26752 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26753 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26754 Likewise.
26755 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26756 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26757
26758 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26759
26760 [BZ #18822]
26761 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26762 (__dcigettext): Likewise.
26763
26764 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26765
26766 [BZ #18822]
26767 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26768 libc_hidden_proto.
26769 (__get_nprocs): Likewise.
26770 (__get_phys_pages): Likewise.
26771 (__get_avphys_pages): Likewise.
26772 (__get_child_max): Add attribute_hidden.
26773 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26774 (__get_nprocs): Likewise.
26775 (__get_phys_pages): Likewise.
26776 (__get_avphys_pages): Likewise.
26777 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26778 libc_hidden_def.
26779 (__get_nprocs): Likewise.
26780 (__get_phys_pages): Likewise.
26781 (__get_avphys_pages): Likewise.
26782 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26783 libc_hidden_def.
26784 (__get_nprocs_conf): Likewise.
26785 (__get_phys_pages): Likewise.
26786 (__get_avphys_pages): Likewise.
26787
26788 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26789
26790 [BZ #18822]
26791 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26792 attribute_hidden.
26793 (__netlink_close): Likewise.
26794 (__netlink_free_handle): Likewise.
26795 (__netlink_request): Likewise.
26796
26797 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26798
26799 [BZ #18822]
26800 * include/rpc/rpc.h (__rpc_thread_variables): Add
26801 attribute_hidden.
26802 (__rpc_thread_svc_cleanup): Likewise.
26803 (__rpc_thread_clnt_cleanup): Likewise.
26804 (__rpc_thread_key_cleanup): Likewise.
26805
26806 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26807
26808 [BZ #18822]
26809 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26810 (__writev): Likewise.
26811 * misc/readv.c (__readv): Add libc_hidden_def.
26812 * misc/writev.c (__writev): Likewise.
26813 * sysdeps/posix/readv.c (__readv): Likewise.
26814 * sysdeps/posix/writev.c (__writev): Likewise.
26815 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26816 (__readv): Likewise.
26817 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26818 (__writev): Likewise.
26819
26820 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26821
26822 [BZ #18822]
26823 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26824 (__regcomp): Add libc_hidden_proto.
26825 (__regexec): Likewise.
26826 (__regfree): Likewise.
26827 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26828 (__regfree): Likewise.
26829 * posix/regexec.c (__regexec): Likewise.
26830
26831 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26832
26833 [BZ #18822]
26834 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26835 (__getutent): Likewise.
26836 (__getutid): Likewise.
26837 (__getutline): Likewise.
26838 (__pututline): Likewise.
26839 (__getutent_r): Likewise.
26840 (__getutid_r): Likewise.
26841 (__getutline_r): Likewise.
26842 (__utmpname): Add attribute_hidden.
26843 (__setutent): Likewise.
26844 (__endutent): Likewise.
26845 * login/getutent.c (__getutent): Add libc_hidden_def.
26846 * login/getutent_r.c (__getutent_r): Likewise.
26847 (__pututline): Likewise.
26848 * login/getutid.c (__getutid): Likewise.
26849 * login/getutid_r.c (__getutid_r): Likewise.
26850 * login/getutline.c (__getutline): Likewise.
26851 * login/getutline_r.c (__getutline_r): Likewise.
26852 * login/updwtmp.c (__updwtmp): Likewise.
26853
26854 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26855
26856 [BZ #18822]
26857 * include/dirent.h (__opendir): Always add attribute_hidden.
26858 (__fdopendir): Likewise.
26859 (__closedir): Likewise.
26860 (__readdir): Likewise.
26861 (__readdir64): Add libc_hidden_proto.
26862 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26863 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26864 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26865 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26866 New alias.
26867
26868 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26869
26870 [BZ #18822]
26871 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26872 * include/netdb.h (__gethostbyaddr_r): Likewise.
26873 (__gethostbyname_r): Likewise.
26874 (__gethostbyname2_r): Likewise.
26875 (__getnetbyaddr_r): Likewise.
26876 (__getnetbyname_r): Likewise.
26877 (__getservbyname_r): Likewise.
26878 (__getservbyport_r): Likewise.
26879 (__getprotobyname_r): Likewise.
26880 (__getprotobynumber_r): Likewise.
26881 (__getnetgrent_r): Likewise.
26882 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26883 (__getrpcbynumber_r): Likewise.
26884 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26885
26886 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26887
26888 [BZ #18822]
26889 * include/stdio.h (__fcloseall): Add attribute_hidden.
26890 (__getline): Likewise.
26891 (__path_search): Likewise.
26892 (__gen_tempname): Likewise.
26893 (__libc_message): Likewise.
26894 (__flockfile): Likewise.
26895 (__funlockfile): Likewise.
26896 (__fxprintf): Likewise.
26897 (__fxprintf_nocancel): Likewise.
26898
26899 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26900
26901 [BZ #18822]
26902 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26903 (__sgetsgent_r): Likewise.
26904
26905 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26906
26907 [BZ #18822]
26908 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26909 (__statfs64): Likewise.
26910 (__fstatfs64): Likewise.
26911 * include/sys/statvfs.h (__statvfs64): Likewise.
26912 (__fstatvfs64): Likewise.
26913 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26914 (__statfs_filesize_max): Likewise.
26915 (__statfs_symlinks): Likewise.
26916 (__statfs_chown_restricted): Likewise.
26917
26918 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26919
26920 [BZ #18822]
26921 * include/time.h (__tzstring): Add attribute_hidden.
26922 (__tzfile_read): Likewise.
26923 (__tzfile_compute): Likewise.
26924 (__tzfile_default): Likewise.
26925 (__tzset_parse_tz): Likewise.
26926 (__offtime): Likewise.
26927 (__asctime_r): Likewise.
26928 (__tzset): Likewise.
26929 (__tz_convert): Likewise.
26930 (__getdate_r): Likewise.
26931 (__getclktck): Likewise.
26932
26933 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26934
26935 [BZ #18822]
26936 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26937 (__nscd_unmap): Likewise.
26938 (__nscd_cache_search): Likewise.
26939 (__nscd_get_nl_timestamp): Likewise.
26940 (__nscd_getpwnam_r): Likewise.
26941 (__nscd_getpwuid_r): Likewise.
26942 (__nscd_getgrnam_r): Likewise.
26943 (__nscd_getgrgid_r): Likewise.
26944 (__nscd_gethostbyname_r): Likewise.
26945 (__nscd_gethostbyname2_r): Likewise.
26946 (__nscd_gethostbyaddr_r): Likewise.
26947 (__nscd_getai): Likewise.
26948 (__nscd_getgrouplist): Likewise.
26949 (__nscd_getservbyname_r): Likewise.
26950 (__nscd_getservbyport_r): Likewise.
26951 (__nscd_innetgr): Likewise.
26952 (__nscd_setnetgrent): Likewise.
26953
26954 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26955
26956 [BZ #18822]
26957 * include/gmp.h: Declare internal functions only if _ISOMAC is
26958 undefined.
26959 (__mpn_extract_double): Add attribute_hidden.
26960 (__mpn_extract_long_double): Likewise.
26961 (__mpn_extract_float128): Likewise.
26962 (__mpn_construct_float): Likewise.
26963 (__mpn_construct_double): Likewise.
26964 (__mpn_construct_long_double): Likewise.
26965 (__mpn_construct_float128): Likewise.
26966 (mpn_add_1): Likewise.
26967 (mpn_addmul_1): Likewise.
26968 (mpn_add_n): Likewise.
26969 (mpn_cmp): Likewise.
26970 (mpn_divrem): Likewise.
26971 (mpn_lshift): Likewise.
26972 (mpn_mul): Likewise.
26973 (mpn_mul_1): Likewise.
26974 (mpn_rshift): Likewise.
26975 (mpn_sub_1): Likewise.
26976 (mpn_submul_1): Likewise.
26977 (mpn_sub_n): Likewise.
26978
26979 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26980
26981 [BZ #18822]
26982 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26983 (__wcscat): Likewise.
26984 (__btowc): Likewise.
26985 (__wcrtomb): Likewise.
26986 (__mbsrtowcs): Likewise.
26987 (__wcsrtombs): Likewise.
26988 (__mbsnrtowcs): Likewise.
26989 (__wcsnrtombs): Likewise.
26990 (__wcsncpy): Likewise.
26991 (__wcpncpy): Likewise.
26992 (__wmemcpy): Likewise.
26993 (__wmempcpy): Likewise.
26994 (__wmemmove): Likewise.
26995 (__wcschrnul): Likewise.
26996 (__vfwscanf): Likewise.
26997 (__vswprintf): Likewise.
26998 (__fwprintf): Likewise.
26999 (__vfwprintf): Likewise.
27000
27001 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27002
27003 [BZ #18822]
27004 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
27005 (__getgrgid_r): Likewise.
27006 (__getgrnam_r): Likewise.
27007 * include/pwd.h (__getpwuid_r): Likewise.
27008 (__getpwnam_r): Likewise.
27009 (__fgetpwent_r): Likewise.
27010 * include/shadow.h (__getspnam_r): Likewise.
27011 (__sgetspent_r): Likewise.
27012 (__fgetspent_r): Likewise.
27013
27014 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27015
27016 [BZ #18822]
27017 * include/unistd.h (__access): Add attribute_hidden.
27018 (__lseek64): Likewise.
27019 (__libc_pread64): Likewise.
27020 (__pipe2): Likewise.
27021 (__sleep): Likewise.
27022 (__chdir): Likewise.
27023 (__fchdir): Likewise.
27024 (__getcwd): Likewise.
27025 (__rmdir): Likewise.
27026 (__execvpe): Likewise.
27027 (__execve): Likewise.
27028 (__setsid): Likewise.
27029 (__getuid): Likewise.
27030 (__geteuid): Likewise.
27031 (__getgid): Likewise.
27032 (__getegid): Likewise.
27033 (__getgroups): Likewise.
27034 (__group_member): Likewise.
27035 (__ttyname_r): Likewise.
27036 (__isatty): Likewise.
27037 (__readlink): Likewise.
27038 (__unlink): Likewise.
27039 (__gethostname): Likewise.
27040 (__profil): Likewise.
27041 (__getdtablesize): Likewise.
27042 (__brk): Likewise.
27043 (__ftruncate): Likewise.
27044 (__ftruncate64): Likewise.
27045
27046 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27047
27048 [BZ #18822]
27049 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27050 * argp/argp-fs-xinl.c: Likewise.
27051 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27052 * argp/argp-parse.c: Include <argp.h>.
27053 * argp/argp-xinl.c: Likewise.
27054 * include/argp-fmtstream.h: New file.
27055 * include/argp.h (__argp_error): Add attribute_hidden.
27056 (__argp_failure): Likewise.
27057 (__argp_input): Likewise.
27058 (__argp_state_help): Likewise.
27059
27060 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27061
27062 [BZ #18822]
27063 * include/wchar.h (____wcstof_l_internal): New prototype.
27064 (____wcstod_l_internal): Likewise.
27065 (____wcstold_l_internal): Likewise.
27066 (____wcstol_l_internal): Likewise.
27067 (____wcstoul_l_internal): Likewise.
27068 (____wcstoll_l_internal): Likewise.
27069 (____wcstoull_l_internal): Likewise.
27070 (____wcstof128_l_internal): Likewise.
27071 * sysdeps/ieee754/float128/wcstof128.c
27072 (____wcstof128_l_internal): Removed.
27073 * sysdeps/ieee754/float128/wcstof128_l.c
27074 (____wcstof128_l_internal): Likewise.
27075 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27076 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27077 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27078 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27079 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27080 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27081 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27082 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27083 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27084 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27085
27086 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27087
27088 [BZ #18822]
27089 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
27090 instead of <sys/statvfs.h>.
27091 (__internal_statvfs): Removed.
27092 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
27093 instead of <sys/statvfs.h>.
27094 (__internal_statvfs64): Removed.
27095 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
27096 "internal_statvfs.h" instead of <sys/statvfs.h>.
27097 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
27098 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
27099 instead of <sys/statvfs.h>.
27100 (__internal_statvfs): Removed.
27101 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
27102 instead of <sys/statvfs.h>.
27103 (__internal_statvfs64): Removed.
27104
27105 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27106
27107 [BZ #18822]
27108 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
27109 (__gconv_close): Likewise.
27110 (__gconv): Likewise.
27111 (__gconv_find_transform): Likewise.
27112 (__gconv_lookup_cache): Likewise.
27113 (__gconv_compare_alias_cache): Likewise.
27114 (__gconv_load_cache): Likewise.
27115 (__gconv_get_path): Likewise.
27116 (__gconv_close_transform): Likewise.
27117 (__gconv_release_cache): Likewise.
27118 (__gconv_find_shlib): Likewise.
27119 (__gconv_release_shlib): Likewise.
27120 (__gconv_get_builtin_trans): Likewise.
27121 (__gconv_compare_alias): Likewise.
27122 * include/dlfcn.h (_dlerror_run): Likewise.
27123 * include/stdio.h (__fortify_fail_abort): Likewise.
27124 * include/time.h (__tz_compute): Likewise.
27125 (__strptime_internal): Likewise.
27126 * intl/gettextP.h (_nl_find_domain): Likewise.
27127 (_nl_load_domain): Likewise.
27128 (_nl_find_msg): Likewise.
27129 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27130 (EXTRACT_PLURAL_EXPRESSION): Likewise.
27131 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27132 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27133 (__gai_find_request): Likewise.
27134 (__gai_remove_request): Likewise.
27135 (__gai_notify): Likewise.
27136 (__gai_notify_only): Likewise.
27137 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27138 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27139 (_dl_non_dynamic_init): Likewise.
27140 (_dl_aux_init): Likewise.
27141 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27142 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27143 Likewise.
27144 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27145 (__wcsmbs_clone_conv): Likewise.
27146 (__wcsmbs_named_conv): Likewise.
27147
27148 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27149
27150 [BZ #18822]
27151 * include/stdlib.h (__random): Add attribute_hidden.
27152 (__random_r): Likewise.
27153 (__srandom_r): Likewise.
27154 (__initstate_r): Likewise.
27155 (__setstate_r): Likewise.
27156 (__erand48_r): Likewise.
27157 (__nrand48_r): Likewise.
27158 (__jrand48_r): Likewise.
27159 (__srand48_r): Likewise.
27160 (__seed48_r): Likewise.
27161 (__lcong48_r): Likewise.
27162 (__drand48_iterate): Likewise.
27163 (__setenv): Likewise.
27164 (__unsetenv): Likewise.
27165 (__clearenv): Likewise.
27166 (__ptsname_r): Likewise.
27167 (__posix_openpt): Likewise.
27168 (__add_to_environ): Likewise.
27169 (__realpath): Add libc_hidden_proto.
27170 (__ecvt_r): Likewise.
27171 (__fcvt_r): Likewise.
27172 (__qecvt_r): Likewise.
27173 (__qfcvt_r): Likewise.
27174 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27175 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27176
27177 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27178
27179 [BZ #18822]
27180 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27181 * include/time.h (__mktime_internal): Likewise.
27182 * libio/iolibio.h (__fopen_internal): Likewise.
27183
27184 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27185
27186 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27187 pointer in frame.
27188 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27189 Correct offset used to restore PIC register.
27190
27191 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27192
27193 [BZ libc/22165]
27194 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27195 code to load address of __getcontext_ret when generating PIC code.
27196
27197 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27198
27199 * elf/Makefile (tests-static-internal): Add
27200 tst-tls1-static-non-pie.
27201 (LDFLAGS-tst-tls1-static-non-pie): New.
27202 * elf/tst-tls1-static-non-pie.c: New file.
27203
27204 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27205
27206 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27207 (asinh): Define using libm_alias_double.
27208 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27209 (cbrt): Define using libm_alias_double.
27210 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27211 <libm-alias-double.h>.
27212 (copysign): Define using libm_alias_double.
27213 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27214 (erf): Define using libm_alias_double.
27215 (erfc): Likewise.
27216 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27217 (expm1): Define using libm_alias_double.
27218 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27219 (fabs): Define using libm_alias_double.
27220 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27221 libm_alias_double.
27222 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27223 <libm-alias-double.h>.
27224 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27225 libm_alias_double.
27226 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27227 <libm-alias-double.h>.
27228 (getpayload): Define using libm_alias_double.
27229 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27230 <libm-alias-double.h>.
27231 (llrint): Define using libm_alias_double.
27232 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27233 (lrint): Define using libm_alias_double.
27234 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27235 <libm-alias-double.h>.
27236 (nextup): Define using libm_alias_double.
27237 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27238 <libm-alias-double.h>.
27239 (roundeven): Define using libm_alias_double.
27240 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27241 libm_alias_double.
27242 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27243 <libm-alias-double.h>.
27244 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27245 using libm_alias_double.
27246 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27247 (cos): Define using libm_alias_double.
27248 (sin): Likewise.
27249 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27250 <libm-alias-double.h>.
27251 (sincos): Define using libm_alias_double.
27252 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27253 (tanh): Define using libm_alias_double.
27254 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27255 <libm-alias-double.h>.
27256 (totalorder): Define using libm_alias_double.
27257 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27258 <libm-alias-double.h>.
27259 (totalordermag): Define using libm_alias_double.
27260 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27261 libm_alias_double.
27262 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27263 libm_alias_double.
27264 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27265 <libm-alias-double.h>.
27266 (getpayload): Define using libm_alias_double.
27267 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27268 <libm-alias-double.h>.
27269 (roundeven): Define using libm_alias_double.
27270 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27271 <libm-alias-double.h>.
27272 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27273 <libm-alias-double.h>.
27274 (totalorder): Define using libm_alias_double.
27275 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27276 <libm-alias-double.h>.
27277 (totalordermag): Define using libm_alias_double.
27278 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27279 libc compat symbol here.
27280 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27281 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27282 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27283 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27284 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27285 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27286 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27287 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27288 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27289 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27290
27291 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27292
27293 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27294 _dl_relocate_static_pie instead of _dl_start to compute load
27295 address in static PIE. Return 0 if _DYNAMIC is undefined for
27296 static executable.
27297
27298 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27299
27300 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27301 _DYNAMIC is undefined for static executable.
27302
27303 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27304
27305 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27306
27307 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27308
27309 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27310
27311 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27312
27313 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27314 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27315 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27316 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27317 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27318 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27319 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27320 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27321 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27322 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27323 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27324 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27325 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27326 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27327 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27328 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27329 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27330
27331 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27332
27333 * math/bits/cmathcalls.h (cimag): Remove inline.
27334 (creal): Remove inline.
27335 (conj): Remove inline.
27336
27337 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27338
27339 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27340 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27341 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27342 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27343 (issignalingf_inline): Likewise.
27344 (POWF_LOG2_TABLE_BITS): Likewise.
27345 (POWF_LOG2_POLY_ORDER): Likewise.
27346 (POWF_SCALE_BITS): Likewise.
27347 (POWF_SCALE): Likewise.
27348 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27349 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27350 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27351
27352 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27353
27354 * math/Makefile (type-float-routines): Add e_log2f_data.
27355 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27356 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27357 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27358 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27359 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27360 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27361 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27362
27363 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27364
27365 * math/Makefile (type-float-routines): Add e_logf_data.
27366 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27367 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27368 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27369 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27370 * sysdeps/i386/fpu/e_logf_data.c: New file.
27371 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27372 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27373
27374 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27375
27376 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27377 undefined _DYNAMIC in PIE libc.a.
27378 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27379 Likewse.
27380
27381 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27382
27383 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27384 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27385 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27386 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27387 (__signbit): Remove.
27388 (__signbitl): Remove.
27389 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27390 (__signbit): Remove.
27391 (__signbitl): Remove.
27392 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27393 (__signbit): Remove.
27394 (__signbitl): Remove.
27395 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27396 (__signbit): Remove.
27397 (__signbitl): Remove.
27398 * sysdeps/tile/bits/mathinline.h: Delete file.
27399 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27400 (__signbit): Remove.
27401 (__signbitl): Remove.
27402
27403 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27404
27405 * math/math.h: Improve handling of C99 isgreater macros.
27406 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27407 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27408 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27409 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27410 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27411
27412 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27413
27414 * sysdeps/aarch64/libm-test-ulps: Update.
27415
27416 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27417
27418 [BZ #22225]
27419 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27420 math_opt_barrier on argument when doing arithmetic on it.
27421 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27422 Likewise. Use math_force_eval not math_opt_barrier after
27423 arithmetic.
27424 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27425 math_opt_barrier on argument when doing arithmetic on it.
27426 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27427 Likewise.
27428
27429 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27430
27431 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27432 libc_hidden_def.
27433 (__freeifaddrs): Likewise.
27434
27435 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27436
27437 * include/dirent.h (__dirfd): New declaration.
27438 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27439 alias.
27440 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27441 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27442 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27443 * include/unistd.h (__revoke): New declaration.
27444 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27445 alias.
27446 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27447 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27448 revoke.
27449 * include/dirent.h (__seekdir): New declaration.
27450 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27451 redefine as weak alias.
27452 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27453 of seekdir.
27454 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27455 and use libc_hidden_def on them.
27456 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27457 them.
27458 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27459 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27460 instead of getifaddrs and freeifaddrs.
27461
27462 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27463
27464 [BZ #18822]
27465 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27466 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27467 (__dso_handle): Remove declaration.
27468 * dlfcn/tstatexit.c (__dso_handle): Removed.
27469 (main): Don't check __dso_handle.
27470 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27471 (main): Don't check __dso_handle.
27472 * include/dso_handle.h: New file.
27473 * malloc/mtrace.c: Include <dso_handle.h>.
27474 (mtrace): Pass __dso_handle directly.
27475 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27476 (__dso_handle): Remove declaration.
27477 (__pthread_atfork): Pass __dso_handle directly.
27478 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27479 (__dso_handle): Removed.
27480 * posix/wordexp-test.c: Include <dso_handle.h>.
27481 (__dso_handle): Remove declaration.
27482 (__app_register_atfork): Pass __dso_handle directly.
27483 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27484 (__dso_handle): Remove declaration.
27485 (at_quick_exit): Pass __dso_handle directly.
27486 * stdlib/atexit.c: Include <dso_handle.h>.
27487 (__dso_handle): Remove declaration.
27488 (atexit): Pass __dso_handle directly.
27489 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27490 (__dso_handle): Removed.
27491
27492 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27493
27494 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27495 using VDSO.
27496
27497 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27498
27499 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27500 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27501 values to correct default value for given type.
27502
27503 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27504
27505 [BZ #22101]
27506 * elf/Makefile (tests): Add tst-debug1.
27507 ($(objpfx)tst-debug1): New.
27508 ($(objpfx)tst-debug1.out): Likewise.
27509 ($(objpfx)tst-debug1mod1.so): Likewise.
27510 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27511 with p_filesz == 0.
27512 * elf/tst-debug1.c: New file.
27513
27514 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27515
27516 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27517 Define using __ifunc.
27518
27519 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27520
27521 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27522 exp2f() values.
27523
27524 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27525
27526 [BZ #22156]
27527 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27528
27529 2017-09-26 Florian Weimer <fweimer@redhat.com>
27530
27531 * resolv/Makefile (tests-internal): Fix typo in comment.
27532
27533 2017-09-26 Florian Weimer <fweimer@redhat.com>
27534
27535 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27536
27537 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27538
27539 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27540 Use an union instead of a max_align_t array for __space,
27541 so that __space is the same size on all platforms.
27542 * malloc/scratch_buffer_grow_preserve.c
27543 (__libc_scratch_buffer_grow_preserve): Likewise.
27544
27545 [BZ #22183]
27546 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27547 version to 2.
27548 * posix/Makefile (routines): Add glob-lstat-compat and
27549 glob64-lstat-compat.
27550 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27551 * posix/glob-lstat-compat.c: New file.
27552 * posix/glob64-lstat-compat.c: Likewise.
27553 * posix/tst-glob_lstat_compat.c: Likewise.
27554 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27555 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27556 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27557 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27558 Likewise.
27559 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27560 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27561 * posix/glob.c (glob_lstat): New function.
27562 (glob): Rename to __glob and add versioned symbol to 2.27.
27563 (glob_in_dir): Use glob_lstat.
27564 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27565 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27566 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27567 2.27.
27568 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27569 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27570 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27571 gl_lstat on glob call.
27572 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27573 and glob64 symbols.
27574 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27575 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27576 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27577 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27578 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27579 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27580 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27581 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27582 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27583 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27584 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27585 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27586 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27587 Likewise.
27588 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27589 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27590 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27591 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27592 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27593 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27594 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27595 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27596 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27597 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27598 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27599 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27600
27601 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27602
27603 * configure.ac (AS): Require binutils 2.25 or later.
27604 * configure: Regenerated.
27605
27606 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27607
27608 [BZ #22207]
27609 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27610 VM size.
27611
27612 2017-09-25 DJ Delorie <dj@redhat.com>
27613
27614 [BZ #22161]
27615 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27616 resetting timeout.
27617
27618 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27619
27620 * sysdeps/ieee754/dbl-64/sincos32.h
27621 [SINCCOS32_H]: Remove define.
27622 [SINCOS32_H]: Define.
27623
27624 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27625
27626 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27627 (exp2f): Likewise.
27628 * math/w_exp2f.c: New file.
27629 * math/w_expf.c: New file.
27630 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27631 * math/w_expf_compat.c (__expf_compat): Likewise.
27632 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27633 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27634 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27635 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27636 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27637 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27638 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27639 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27640 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27641 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27642 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27643 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27644 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27645 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27646 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27647 Likewise.
27648 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27649 Likewise.
27650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27651 Likewise.
27652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27653 Likewise.
27654 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27655 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27656 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27657 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27658 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27659 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27660 Likewise.
27661 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27662 Likewise.
27663 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27664 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27665 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27666
27667 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27668
27669 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27670 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27671 (roundtoint, converttoint): Likewise.
27672 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27673 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27674 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27675 * sysdeps/ieee754/flt-32/math_config.h: New file.
27676 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27677 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27678 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27679 * sysdeps/i386/fpu/math_errf.c: New file.
27680 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27681 * sysdeps/ia64/fpu/math_errf.c: New file.
27682 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27683 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27684
27685 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27686
27687 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27688 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27689 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27690 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27691 to make sure that these symbols are defined.
27692 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27693 of <limits.h>
27694 (__need_NULL): Do not define.
27695 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27696 alignment.
27697 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27698 CMGROUP_MAX, cmsgcred): Do not define.
27699 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27700 NULL.
27701 * bits/socket.h: Likewise.
27702 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27703 __gettimeofday instead of gettimeofday.
27704 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27705 instead of settimeofday.
27706
27707 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27708
27709 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27710 (asinhf): Define using libm_alias_float.
27711 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27712 (atanf): Define using libm_alias_float.
27713 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27714 (cbrtf): Define using libm_alias_float.
27715 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27716 (ceilf): Define using libm_alias_float.
27717 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27718 <libm-alias-float.h>.
27719 (copysignf): Define using libm_alias_float.
27720 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27721 (cosf): Define using libm_alias_float.
27722 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27723 (erff): Define using libm_alias_float.
27724 (erfcf): Likewise.
27725 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27726 (expm1f): Define using libm_alias_float.
27727 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27728 (fabsf): Define using libm_alias_float.
27729 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27730 (floorf): Define using libm_alias_float.
27731 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27732 (frexpf): Define using libm_alias_float.
27733 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27734 libm_alias_float.
27735 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27736 <libm-alias-float.h>.
27737 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27738 libm_alias_float.
27739 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27740 <libm-alias-float.h>.
27741 (getpayloadf): Define using libm_alias_float.
27742 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27743 <libm-alias-float.h>.
27744 (llrintf): Define using libm_alias_float.
27745 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27746 <libm-alias-float.h>.
27747 (llroundf): Define using libm_alias_float.
27748 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27749 (logbf): Define using libm_alias_float.
27750 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27751 (lrintf): Define using libm_alias_float.
27752 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27753 (lroundf): Define using libm_alias_float.
27754 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27755 (modff): Define using libm_alias_float.
27756 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27757 <libm-alias-float.h>.
27758 (nearbyintf): Define using libm_alias_float.
27759 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27760 <libm-alias-float.h>.
27761 (nextafterf): Define using libm_alias_float.
27762 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27763 <libm-alias-float.h>.
27764 (nextupf): Define using libm_alias_float.
27765 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27766 <libm-alias-float.h>.
27767 (remquof): Define using libm_alias_float.
27768 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27769 (rintf): Define using libm_alias_float.
27770 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27771 <libm-alias-float.h>.
27772 (roundevenf): Define using libm_alias_float.
27773 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27774 (roundf): Define using libm_alias_float.
27775 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27776 using libm_alias_float.
27777 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27778 <libm-alias-float.h>.
27779 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27780 Define using libm_alias_float.
27781 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27782 <libm-alias-float.h>.
27783 (sincosf): Define using libm_alias_float.
27784 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27785 (sinf): Define using libm_alias_float.
27786 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27787 (tanf): Define using libm_alias_float.
27788 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27789 (tanhf): Define using libm_alias_float.
27790 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27791 <libm-alias-float.h>.
27792 (totalorderf): Define using libm_alias_float.
27793 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27794 <libm-alias-float.h>.
27795 (totalordermagf): Define using libm_alias_float.
27796 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27797 (truncf): Define using libm_alias_float.
27798 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27799 libm_alias_float.
27800 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27801 libm_alias_float.
27802
27803 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27804
27805 [BZ #22146]
27806 math/math.h: Let fpclassify use the builtin in C++ mode, even
27807 when optimazing for size.
27808
27809 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27810
27811 * csu/Makefile (generated): Do not add version-info.h.
27812 (before-compile): Likewise.
27813 (all-Banner-files): Remove variable.
27814 ($(objpfx)version-info.h): Remove rule.
27815 * csu/version.c (banner): Do not include "version-info.h".
27816 * libidn/Banner: Remove.
27817 * manual/contrib.texi (Simon Josefsson): New entry.
27818
27819 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27820
27821 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27822 Remove conditionals on LDBL_MANT_DIG.
27823 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27824 (__ieee754_lgammal_r): Likewise.
27825
27826 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27827
27828 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27829 _Float128 and L().
27830 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27831 _Float128 and L(). Replace _Float128 with long double and L(x)
27832 with xL, throughout the file.
27833 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27834 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27835 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27836 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27837
27838 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27839
27840 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27841 sysdeps/ieee754/ldbl-128ibm.
27842 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27843 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27844 of including it. Keep _Float128 and L() intact. These will be
27845 reviewed by a separate patch.
27846 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27847 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27848 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27849 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27850
27851 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27852
27853 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27854 (__finitef128): Define to __redirect___finitef128.
27855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27856 (__isinff128): Define to __redirect___isinff128.
27857 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27858 (__isnanf128): Define to __redirect___isnanf128.
27859
27860 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27861
27862 * sysdeps/powerpc/powerpc64le/Makefile
27863 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27864 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27865
27866 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27867 Carlos O'Donell <carlos@redhat.com>
27868
27869 [BZ #22180]
27870 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27871 * stdlib/test-dlclose-exit-race.c: New file.
27872 * stdlib/test-dlclose-exit-race-helper.c: New file.
27873 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27874
27875 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27876
27877 * crypt/Banner: Remove file.
27878 * nptl/Banner: Likewise.
27879 * resolv/Banner: Likewise.
27880 * soft-fp/Banner: Likewise.
27881 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27882 ($(objpfx)version.d): Remove dependency on banner.h.
27883 ($(objpfx)version.os): Likewise.
27884 * nptl/version.c (banner): Do not include banner.h.
27885 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27886 Jelinek and BIND code.
27887
27888 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27889 Carlos O'Donell <carlos@redhat.com>
27890
27891 * support/xdlfcn.h: New file.
27892 * support/xdlfcn.c: New file.
27893 * support/Makefile (libsupport-routines): Add xdlfcn.
27894 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27895
27896 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27897
27898 [BZ #20142]
27899 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27900 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27901 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27902 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27903 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27904 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27905 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27906 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27907
27908 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27909 Ricky Zhou <rickyz@google.com>
27910 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27911
27912 [BZ #14333]
27913 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27914 Remove atomics.
27915 (__new_exitfn): Fail registration when we finished at_exit processing.
27916 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27917 * stdlib/on_exit.c (__on_exit): Likewise.
27918 * stdlib/exit.c (__exit_funcs_done): New variable.
27919 (__run_exit_handlers): Use __exit_funcs_lock.
27920 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27921 declarations.
27922 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27923 (test-cxa_atexit-race, test-on_exit-race): New tests.
27924 * stdlib/test-atexit-race-common.c: New file.
27925 * stdlib/test-atexit-race.c: New file.
27926 * stdlib/test-at_quick_exit-race.c: New file.
27927 * stdlib/test-cxa_atexit-race.c: New file.
27928 * stdlib/test-on_exit-race.c: New file.
27929
27930 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27931
27932 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27933 * benchtests/exp2f-inputs: Copy of expf-inputs.
27934 * benchtests/log2f-inputs: Copy of logf-inputs.
27935
27936 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27937
27938 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27939 Explicitly take address of first element of array arguments in
27940 call to INLINE_SYSCALL.
27941
27942 2017-09-19 Andreas Schwab <schwab@suse.de>
27943
27944 [BZ #22134]
27945 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27946 execveat first.
27947 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27948 unimplemented.
27949 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27950 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27951 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27952 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27953 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27954 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27955 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27956 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27957 * posix/Makefile (tests): Add tst-fexecve.
27958 * posix/tst-fexecve.c: New file.
27959
27960 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27961
27962 * benchtests/Makefile: Add logf benchmark.
27963 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27964
27965 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27966
27967 * benchtests/Makefile: Add expf benchmark.
27968 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27969
27970 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27971
27972 * csu/Makefile: Add -funwind-tables to libc-start.c.
27973 * debug/Makefile: Add -funwind-tables to backtrace.c.
27974 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27975 * sysdeps/arm/Makefile: Likewise.
27976 * sysdeps/i386/Makefile: Likewise.
27977 * sysdeps/m68k/Makefile: Likewise.
27978 * sysdeps/mips/Makefile: Likewise.
27979 * sysdeps/nios2/Makefile: Likewise.
27980 * sysdeps/sh/Makefile: Likewise.
27981 * sysdeps/sparc/Makefile: Likewise.
27982
27983 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27984
27985 * benchtests/Makefile (bench-math): Add trunc and truncf.
27986 (CFLAGS-bench-trunc.c): New variable.
27987 (CFLAGS-bench-truncf.c): Likewise.
27988 * benchtests/trunc-inputs: New file.
27989 * benchtests/truncf-inputs: Likewise.
27990
27991 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27992
27993 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27994
27995 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27996
27997 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27998 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27999 redefine.
28000 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28001 (exp10l): Define as weak alias.
28002 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
28003 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
28004 and redefine.
28005 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
28006 (remainderl): Define as weak alias.
28007
28008 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
28009 (fmal): Define using libm_alias_ldouble.
28010 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
28011 (acoshl): Define using libm_alias_ldouble.
28012 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
28013 (acosl): Define using libm_alias_ldouble.
28014 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
28015 (asinl): Define using libm_alias_ldouble.
28016 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
28017 (atan2l): Define using libm_alias_ldouble.
28018 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
28019 (atanhl): Define using libm_alias_ldouble.
28020 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
28021 (coshl): Define using libm_alias_ldouble.
28022 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
28023 (exp10l): Define using libm_alias_ldouble.
28024 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
28025 (exp2l): Define using libm_alias_ldouble.
28026 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
28027 (expl): Define using libm_alias_ldouble.
28028 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
28029 (fmodl): Define using libm_alias_ldouble.
28030 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
28031 (hypotl): Define using libm_alias_ldouble.
28032 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
28033 (j0l): Define using libm_alias_ldouble.
28034 (y0l): Likewise.
28035 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28036 (j1l): Define using libm_alias_ldouble.
28037 (y1l): Likewise.
28038 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28039 (jnl): Define using libm_alias_ldouble.
28040 (ynl): Likewise.
28041 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28042 (log10l): Define using libm_alias_ldouble.
28043 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28044 (log2l): Define using libm_alias_ldouble.
28045 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28046 (logl): Define using libm_alias_ldouble.
28047 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28048 (powl): Define using libm_alias_ldouble.
28049 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28050 (remainderl): Define using libm_alias_ldouble.
28051 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28052 (sinhl): Define using libm_alias_ldouble.
28053 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28054 (sqrtl): Define using libm_alias_ldouble.
28055 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28056 (tgammal): Define using libm_alias_ldouble.
28057 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28058 (exp10l): Do not use long_double_symbol here.
28059 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28060 [LIBM_SVID_COMPAT] (remainderl): Likewise.
28061 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28062 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28063 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28064 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28065 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28066 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28067 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28068 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28069 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28070 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28071 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28072 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28073 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28074 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28075 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28076 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28077 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28078 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28079 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28080 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28081
28082 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
28083
28084 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28085 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28086
28087 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
28088
28089 * io/read.c (read): Add libc_hidden_weak.
28090 * sysdeps/mach/hurd/read.c (read): Likewise.
28091 * io/write.c (write): Likewise.
28092 * sysdeps/mach/hurd/write.c (write): Likewise.
28093 * io/pread64.c (__pread64): Likewise.
28094 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
28095 * posix/pread64.c (__pread64): Add libc_hidden_def.
28096
28097 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28098
28099 * benchtests/scripts/compare_strings.py: New option -g.
28100 (draw_graph): Print a message that a graph is being generated.
28101 (process_results): Generate graph only if -g is passed.
28102 (main): Process option -g.
28103
28104 * benchtests/scripts/compare_strings.py (process_results):
28105 Better spacing for output.
28106
28107 * benchtests/scripts/compare_strings.py: Use argparse.
28108 * benchtests/README: Document existence of compare_strings.py.
28109
28110 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28111
28112 * math/s_fma.c: Include <libm-alias-double.h>.
28113 (fma): Define using libm_alias_double.
28114 * math/s_nextafter.c: Include <libm-alias-double.h>.
28115 (nextafter): Define using libm_alias_double.
28116 * math/w_acos_compat.c: Include <libm-alias-double.h>.
28117 (acos): Define using libm_alias_double.
28118 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28119 (aocsh): Define using libm_alias_double.
28120 * math/w_asin_compat.c: Include <libm-alias-double.h>.
28121 (asin): Define using libm_alias_double.
28122 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28123 (atan2): Define using libm_alias_double.
28124 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28125 (atanh): Define using libm_alias_double.
28126 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28127 (cosh): Define using libm_alias_double.
28128 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28129 (exp10): Define using libm_alias_double.
28130 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28131 (exp2): Define using libm_alias_double.
28132 * math/w_exp_compat.c: Include <libm-alias-double.h>.
28133 (exp): Define using libm_alias_double.
28134 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28135 (fmod): Define using libm_alias_double.
28136 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28137 (hypot): Define using libm_alias_double.
28138 * math/w_j0_compat.c: Include <libm-alias-double.h>.
28139 (j0): Define using libm_alias_double.
28140 (y0): Likewise.
28141 * math/w_j1_compat.c: Include <libm-alias-double.h>.
28142 (j1): Define using libm_alias_double.
28143 (y1): Likewise.
28144 * math/w_jn_compat.c: Include <libm-alias-double.h>.
28145 (jn): Define using libm_alias_double.
28146 (yn): Likewise.
28147 * math/w_log10_compat.c: Include <libm-alias-double.h>.
28148 (log10): Define using libm_alias_double.
28149 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28150 (log2): Define using libm_alias_double.
28151 * math/w_log_compat.c: Include <libm-alias-double.h>.
28152 (log): Define using libm_alias_double.
28153 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28154 (pow): Define using libm_alias_double.
28155 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28156 (remainder): Define using libm_alias_double.
28157 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28158 (sinh): Define using libm_alias_double.
28159 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28160 (sqrt): Define using libm_alias_double.
28161 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28162 (tgamma): Define using libm_alias_double.
28163 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28164 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28165 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28166 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28167 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28168 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28169 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28170 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28171 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28172 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28173 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28174 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28175 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28176 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28177 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28178 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28179 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28180 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28181 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28182 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28183 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28184 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28185 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28186 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28187 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28188
28189 * math/e_acoshl.c: Remove.
28190 * math/e_acosl.c: Likewise.
28191 * math/e_asinl.c: Likewise.
28192 * math/e_atan2l.c: Likewise.
28193 * math/e_atanhl.c: Likewise.
28194 * math/e_coshl.c: Likewise.
28195 * math/e_expl.c: Likewise.
28196 * math/e_fmodl.c: Likewise.
28197 * math/e_gammal_r.c: Likewise.
28198 * math/e_hypotl.c: Likewise.
28199 * math/e_j0l.c: Likewise.
28200 * math/e_j1l.c: Likewise.
28201 * math/e_jnl.c: Likewise.
28202 * math/e_lgammal_r.c: Likewise.
28203 * math/e_log10l.c: Likewise.
28204 * math/e_log2l.c: Likewise.
28205 * math/e_logl.c: Likewise.
28206 * math/e_powl.c: Likewise.
28207 * math/e_rem_pio2l.c: Likewise.
28208 * math/e_sinhl.c: Likewise.
28209 * math/e_sqrtf128.c: Likewise.
28210 * math/e_sqrtl.c: Likewise.
28211 * math/k_cosl.c: Likewise.
28212 * math/k_sinl.c: Likewise.
28213 * math/k_tanl.c: Likewise.
28214 * math/s_asinhl.c: Likewise.
28215 * math/s_atanl.c: Likewise.
28216 * math/s_cbrtl.c: Likewise.
28217 * math/s_erfl.c: Likewise.
28218 * math/s_expm1l.c: Likewise.
28219 * math/s_log1pl.c: Likewise.
28220 * math/s_tanhl.c: Likewise.
28221
28222 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28223
28224 [BZ #21745]
28225 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28226 [$(subdir) = math] (sysdep_calls): New variable. Has the
28227 previous contents of sysdep_routines, but re-sorted..
28228 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28229 sysdep_calls.
28230 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28231 defined in sysdep_calls and replace by the respective m_* names.
28232 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28233 (compat_symbol): Undefine to avoid duplicated compat symbols in
28234 libc.
28235
28236 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28237
28238 * math/s_fmaf.c: Include <libm-alias-float.h>.
28239 (fmaf): Define using libm_alias_float.
28240 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28241 (acosf): Define using libm_alias_float.
28242 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28243 (acoshf): Define using libm_alias_float.
28244 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28245 (asinf): Define using libm_alias_float.
28246 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28247 (atan2f): Define using libm_alias_float.
28248 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28249 (atanhf): Define using libm_alias_float.
28250 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28251 (coshf): Define using libm_alias_float.
28252 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28253 (exp10f): Define using libm_alias_float.
28254 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28255 (fmodf): Define using libm_alias_float.
28256 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28257 (hypotf): Define using libm_alias_float.
28258 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28259 (j0f): Define using libm_alias_float.
28260 (y0f): Likewise.
28261 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28262 (j1f): Define using libm_alias_float.
28263 (y1f): Likewise.
28264 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28265 (jnf): Define using libm_alias_float.
28266 (ynf): Likewise.
28267 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28268 (log10f): Define using libm_alias_float.
28269 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28270 (log2f): Define using libm_alias_float.
28271 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28272 (logf): Define using libm_alias_float.
28273 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28274 (powf): Define using libm_alias_float.
28275 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28276 (remainderf): Define using libm_alias_float.
28277 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28278 (sinhf): Define using libm_alias_float.
28279 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28280 (sqrtf): Define using libm_alias_float.
28281 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28282 (tgammaf): Define using libm_alias_float.
28283
28284 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28285
28286 * include/math.h (roundeven): Change hidden_proto call to
28287 __roundeven.
28288 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28289 alias.
28290 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28291 (y0): Rename to __y0 and define as weak alias.
28292 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28293 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28294 alias.
28295 (y0f): Rename to __y0f and define as weak alias.
28296 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28297 alias.
28298 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28299 (y1): Rename to __y1 and define as weak alias.
28300 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28301 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28302 alias.
28303 (y1f): Rename to __y1f and define as weak alias.
28304 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28305 alias.
28306 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28307 (yn): Rename to __yn and define as weak alias.
28308 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28309 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28310 alias.
28311 (ynf): Rename to __ynf and define as weak alias.
28312 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28313 (fromfp): Define as weak alias.
28314 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28315 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28316 (fromfpx): Define as weak alias.
28317 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28318 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28319 __getpayload and define as weak alias.
28320 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28321 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28322 __roundeven and define as weak alias.
28323 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28324 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28325 __setpayload.
28326 (setpayload): Define as weak alias.
28327 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28328 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28329 __setpayloadsig.
28330 (setpayloadsig): Define as weak alias.
28331 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28332 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28333 __totalorder and define as weak alias.
28334 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28335 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28336 to __totalordermag and define as weak alias.
28337 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28338 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28339 (ufromfp): Define as weak alias.
28340 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28341 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28342 __ufromfpx.
28343 (ufromfpx): Define as weak alias.
28344 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28345 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28346 Rename to __getpayload and define as weak alias.
28347 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28348 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28349 Rename to __roundeven and define as weak alias.
28350 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28351 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28352 Rename to __totalorder and define as weak alias.
28353 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28354 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28355 (totalordermag): Rename to __totalordermag and define as weak
28356 alias.
28357 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28358 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28359 macro.
28360 (__roundevenl): Likewise.
28361 (__totalorderl): Likewise.
28362 (__totalordermagl): Likewise
28363 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28364 __fromfpf128.
28365 (fromfpf128): Define as weak alias.
28366 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28367 __fromfpxf128.
28368 (fromfpxf128): Define as weak alias.
28369 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28370 __setpayloadf128.
28371 (setpayloadf128): Define as weak alias.
28372 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28373 __setpayloadsigf128.
28374 (setpayloadsigf128): Define as weak alias.
28375 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28376 __ufromfpf128.
28377 (ufromfpf128): Define as weak alias.
28378 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28379 __ufromfpxf128.
28380 (ufromfpxf128): Define as weak alias.
28381 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28382 (fromfpf): Define as weak alias.
28383 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28384 __fromfpxf.
28385 (fromfpxf): Define as weak alias.
28386 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28387 __getpayloadf and define as weak alias.
28388 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28389 __roundevenf and define as weak alias.
28390 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28391 __setpayloadf.
28392 (setpayloadf): Define as weak alias.
28393 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28394 __setpayloadsigf.
28395 (setpayloadsigf): Define as weak alias.
28396 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28397 __totalorderf and define as weak alias.
28398 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28399 Rename to __totalordermagf and define as weak alias.
28400 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28401 __ufromfpf.
28402 (ufromfpf): Define as weak alias.
28403 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28404 __ufromfpxf.
28405 (ufromfpxf): Define as weak alias.
28406 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28407 __fromfpl.
28408 (fromfpl): Define as weak alias.
28409 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28410 __fromfpxl.
28411 (fromfpxl): Define as weak alias.
28412 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28413 to __getpayloadl and define as weak alias.
28414 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28415 __roundevenl and define as weak alias.
28416 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28417 __setpayloadl.
28418 (setpayloadl): Define as weak alias.
28419 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28420 __setpayloadsigl.
28421 (setpayloadsigl): Define as weak alias.
28422 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28423 to __totalorderl and define as weak alias.
28424 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28425 Rename to __totalordermagl and define as weak alias.
28426 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28427 __ufromfpl.
28428 (ufromfpl): Define as weak alias.
28429 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28430 __ufromfpxl.
28431 (ufromfpxl): Define as weak alias.
28432 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28433 __fromfpl.
28434 (fromfpl): Define as weak alias.
28435 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28436 __fromfpxl.
28437 (fromfpxl): Define as weak alias.
28438 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28439 Rename to __getpayloadl and define as weak alias.
28440 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28441 to __roundevenl and define as weak alias. Call __roundeven
28442 instead of roundeven.
28443 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28444 __setpayloadl.
28445 (setpayloadl): Define as weak alias.
28446 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28447 __setpayloadsigl.
28448 (setpayloadsigl): Define as weak alias.
28449 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28450 Rename to __totalorderl and define as weak alias.
28451 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28452 Rename to __totalordermagl and define as weak alias.
28453 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28454 __ufromfpl.
28455 (ufromfpl): Define as weak alias.
28456 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28457 __ufromfpxl.
28458 (ufromfpxl): Define as weak alias.
28459 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28460 __fromfpl.
28461 (fromfpl): Define as weak alias.
28462 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28463 __fromfpxl.
28464 (fromfpxl): Define as weak alias.
28465 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28466 __getpayloadl and define as weak alias.
28467 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28468 __roundevenl and define as weak alias.
28469 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28470 __setpayloadl.
28471 (setpayloadl): Define as weak alias.
28472 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28473 __setpayloadsigl.
28474 (setpayloadsigl): Define as weak alias.
28475 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28476 __totalorderl and define as weak alias.
28477 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28478 Rename to __totalordermagl and define as weak alias.
28479 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28480 __ufromfpl.
28481 (ufromfpl): Define as weak alias.
28482 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28483 __ufromfpxl.
28484 (ufromfpxl): Define as weak alias.
28485
28486 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28487
28488 * benchtests/bench-string.h (realloc_bufs): New function.
28489 (test_init): Call it.
28490 * benchtests/bench-memset-large.c (do_test): Likewise.
28491 * benchtests/bench-memset.c (do_test): Likewise.
28492
28493 * benchtests/bench-memset-large.c: Print output in JSON
28494 format.
28495 * benchtests/bench-memset.c: Likewise.
28496
28497 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28498
28499 [BZ #21084]
28500 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28501 * iconvdata/Makefile: Add IBM858.
28502 * iconvdata/gconv-modules: Likewise.
28503 * iconvdata/tst-tables.sh: Likewise.
28504 * iconvdata/ibm858.c: New file.
28505 * localedata/charmaps/IBM858: Likewise.
28506
28507 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28508
28509 [BZ #22023]
28510 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28511 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28512
28513 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28514
28515 [BZ #22112]
28516 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28517 and add tel_int_fmt.
28518
28519 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28520
28521 * sysdeps/generic/libm-alias-float128.h: New file.
28522 * sysdeps/generic/math-type-macros-float128.h: Include
28523 <libm-alias-float128.h>.
28524 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28525
28526 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28527
28528 * sysdeps/generic/libm-alias-ldouble.h: New file.
28529 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28530 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28531 * sysdeps/generic/math-type-macros-ldouble.h: Include
28532 <libm-alias-ldouble.h>.
28533 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28534 libm_alias_ldouble.
28535
28536 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28537
28538 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28539 * math/w_exp_compat.c: ... here.
28540 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28541 * math/w_expf_compat.c: ... here.
28542 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28543 * math/w_expl_compat.c: ... here.
28544 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28545 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28546 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28547 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28548
28549 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28550
28551 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28552 redefine.
28553 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28554 macro.
28555 (ldexpl): Only define as compat symbol for libc, not libm.
28556 (scalbnl): Define as compat symbol for libc here.
28557 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28558 define for [IS_IN (libc)].
28559 (__ldexpl_2): Remove alias.
28560 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28561 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28562 name in long_double_symbol call.
28563 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28564 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28565 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28566 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28567 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28568 Remove macro.
28569 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28570 Define as compat symbol.
28571
28572 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28573
28574 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28575 * sysdeps/unix/sysv/linux/alpha/Makefile
28576 [$(subdir) = csu] (sysdep_routines): Remove rule.
28577
28578 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28579
28580 * sysdeps/generic/libm-alias-double.h: New file.
28581 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28582 * sysdeps/generic/math-type-macros-double.h: Include
28583 <libm-alias-double.h>.
28584 [declare_mgen_alias] (declare_mgen_alias): Define to use
28585 libm_alias_double.
28586 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28587 (M_LIBM_NEED_COMPAT): Remove macro.
28588 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28589 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28590 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28591 code.
28592 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28593 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28594 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28595 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28596 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28597 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28598 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28599 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28600 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28601 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28602 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28603 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28604 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28605 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28606 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28607 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28608 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28609 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28610 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28611 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28612 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28613 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28614 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28615 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28616 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28617 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28618 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28619 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28620 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28621 macro.
28622 (declare_mgen_alias): New macro.
28623 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28624 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28626 (M_LIBM_NEED_COMPAT): Remove macro.
28627 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28628 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28629 <first-versions.h>.
28630 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28631 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28632
28633 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28634
28635 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28636 (declare_mgen_alias_2): Remove.
28637 * sysdeps/generic/math-type-macros-double.h
28638 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28639 Likewise.
28640 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28641 alias.
28642 (ldexp): Define with declare_mgen_alias.
28643 (scalbn): Likewise.
28644
28645 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28646
28647 * grp/initgroups.c: Include config.h.
28648 (DEFAULT_CONFIG): New macro.
28649 (internal_getgrouplist): Use DEFAULT_CONFIG.
28650 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28651 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28652 (DEFAULT_DEFCONFIG): New macro.
28653 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28654 * nss/grp-lookup.c: Include config.h
28655 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28656 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28657 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28658 * manual/nss.texi: Update default values section.
28659
28660 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28661
28662 [BZ #21967]
28663 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28664 New.
28665 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28666 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28667 Handle MathVec_Prefer_No_AVX512.
28668 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28669 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28670 is set.
28671
28672 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28673
28674 * posix/sched_primax.c (__sched_get_priority_max): Add
28675 libc_hidden_def.
28676 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28677 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28678 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28679 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28680 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28681 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28682 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28683 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28684 Add aliases.
28685
28686 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28687
28688 * sysdeps/generic/libm-alias-float.h: New file.
28689 * sysdeps/generic/math-type-macros-float.h: Include
28690 <libm-alias-float.h>.
28691 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28692
28693 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28694
28695 [BZ #22093]
28696 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28697 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28698 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28699 (HWCAP_IMPORTANT): Likewise.
28700 (HWCAP_X86_64): New enum.
28701 (HWCAP_X86_AVX512_1): Updated.
28702 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28703 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28704 (modules-names): Add x86_64/tst-x86_64mod-1.
28705 (LDFLAGS-tst-x86_64mod-1.so): New.
28706 ($(objpfx)tst-x86_64-1): Likewise.
28707 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28708 (tst-x86_64-1-clean): Likewise.
28709 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28710 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28711
28712 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28713
28714 * po/sv.po: Update translations.
28715 * po/fr.po: Likewise.
28716
28717 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28718
28719 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28720 seconds.
28721 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28722 seconds.
28723 * elf/rtld-Rules: Fix $(error) use.
28724
28725 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28726
28727 [BZ #14925]
28728 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28729 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28730 * localedata/locales/bn_BD: “Bengali” was still used in some
28731 comments. Change it to “Bangla”.
28732
28733 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28734
28735 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28736
28737 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28738
28739 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28740 thunderx2t99p1 to list of cpu names.
28741 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28742 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28743
28744 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28745
28746 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28747 Use strcmp instead of tunable_is_name.
28748
28749 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28750
28751 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28752 (F_GET_RW_HINT): New macro.
28753 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28754 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28755 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28756 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28757 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28758 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28759 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28760 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28761 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28762
28763 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28764 (F_ADD_SEALS): New macro.
28765 [__USE_GNU] (F_GET_SEALS): Likewise.
28766 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28767 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28768 [__USE_GNU] (F_SEAL_GROW): Likewise.
28769 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28770
28771 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28772
28773 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28774 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28775 * posix/glob_internal.h (__glob_pattern_type):
28776 * posix/glob.c (glob):
28777 * posix/glob_pattern_p.c (__glob_pattern_p):
28778 Use them.
28779
28780 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28781 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28782 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28783 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28784 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28786 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28787 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28788 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28789 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28790 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28791 * sysdeps/wordsize-64/glob.c: Likewise.
28792 * sysdeps/wordsize-64/glob64.c: Likewise.
28793 * sysdeps/wordsize-64/globfree.c: Likewise.
28794 * sysdeps/wordsize-64/globfree64.c: Likewise.
28795 * sysdeps/unix/sysv/linux/glob.c: New file.
28796 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28797 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28798 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28799 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28800 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28801 adds !GLOB_NO_OLD_VERSION as an extra condition.
28802 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28803 using relative path instead of absolute one.
28804 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28805 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28806 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28807 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28808 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28809 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28810
28811 [BZ #1062]
28812 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28813 (glob): Use the same scratch buffer for both getlogin_r and
28814 getpwnam_r. Don’t require preallocation of the login name. This
28815 simplifies storage allocation, and corrects the handling of
28816 long login names.
28817
28818 [BZ #1062]
28819 * posix/glob.c (glob): Port recent patches to platforms
28820 lacking getpwnam_r.
28821 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28822 returns an error number rather than setting errno.
28823
28824 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28825 instead of GCC extension.
28826 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28827 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28828 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28829
28830 [BZ #866]
28831 [BZ #1062]
28832 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28833 * posix/bug-glob1.c: Remove file.
28834 * posix/tst-glob_symlinks.c: New file.
28835 * posix/glob.c (__lstat64): New macro.
28836 (is_dir): New function.
28837 (glob, glob_in_dir): Match symlinks even if they are dangling.
28838 (link_stat, link_exists_p): Remove. All uses removed.
28839
28840 [BZ #1062]
28841 [BZ #19971]
28842 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28843 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28844 All uses removed.
28845
28846 [BZ #1062]
28847 CVE-2017-15671
28848 * posix/Makefile (routines): Add globfree, globfree64, and
28849 glob_pattern_p.
28850 * posix/flexmember.h: New file.
28851 * posix/glob_internal.h: Likewise.
28852 * posix/glob_pattern_p.c: Likewise.
28853 * posix/globfree.c: Likewise.
28854 * posix/globfree64.c: Likewise.
28855 * sysdeps/gnu/globfree64.c: Likewise.
28856 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28857 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28858 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28859 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28860 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28861 * sysdeps/wordsize-64/globfree.c: Likewise.
28862 * sysdeps/wordsize-64/globfree64.c: Likewise.
28863 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28864 [NDEBUG): Remove comments.
28865 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28866 (dirent_type): New type. Use uint_fast8_t not
28867 uint8_t, as C99 does not require uint8_t.
28868 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28869 (struct readdir_result): Use dirent_type. Do not define skip_entry
28870 unless it is needed; this saves a byte on platforms lacking d_ino.
28871 (readdir_result_type, readdir_result_skip_entry):
28872 New functions, replacing ...
28873 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28874 these functions, which were removed. This makes the callers
28875 easier to read. All callers changed.
28876 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28877 (size_add_wrapv, glob_use_alloca): New static functions.
28878 (glob, glob_in_dir): Check for size_t overflow in several places,
28879 and fix some size_t checks that were not quite right.
28880 Remove old code using SHELL since Bash no longer
28881 uses this.
28882 (glob, prefix_array): Separate MS code better.
28883 (glob_in_dir): Remove old Amiga and VMS code.
28884 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28885 separate files.
28886 (glob_in_dir): Do not rely on undefined behavior in accessing
28887 struct members beyond their bounds. Use a flexible array member
28888 instead
28889 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28890 0/1. Caller changed.
28891 (glob): Fix memory leaks.
28892 * posix/glob64 (globfree64): Move to separate file.
28893 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28894 (globfree64): Remove hidden alias.
28895 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28896 oldglob.
28897 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28898 separate file.
28899 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28900 define.
28901 Move compat code to separate file.
28902 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28903 separate file.
28904
28905 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28906
28907 * resolv/tst-resolv-qtypes.c (domain): Changed to
28908 "const char domain[] =".
28909
28910 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28911
28912 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28913 version to 3.1.6.
28914
28915 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28916 (TCP_MD5SIG_EXT): Likewise.
28917 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28918 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28919 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28920
28921 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28922
28923 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28924
28925 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28926
28927 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28928
28929 [BZ #22100]
28930 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28931
28932 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28933
28934 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28935 before assuming that the file is empty. Avoid testing buffer content
28936 when nread == 0.
28937
28938 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28939
28940 [BZ #18858]
28941 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28942 Remove define.
28943 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28944 Likewise.
28945 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28946 Likewise.
28947 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28948 Likewise.
28949 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28950 Likewise.
28951 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28952 Likewise.
28953 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28954 Likewise.
28955
28956 2017-09-06 Florian Weimer <fweimer@redhat.com>
28957
28958 * malloc/dynarray_emplace_enlarge.c
28959 (__libc_dynarray_emplace_enlarge): Add missing else.
28960
28961 2017-09-06 Florian Weimer <fweimer@redhat.com>
28962
28963 [BZ #22096]
28964 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28965 case of failure to obtain the global conf object.
28966
28967 2017-09-06 Florian Weimer <fweimer@redhat.com>
28968
28969 [BZ #22095]
28970 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28971 dynarray allocation failure.
28972
28973 2017-09-06 Florian Weimer <fweimer@redhat.com>
28974
28975 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28976 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28977 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28978 New functions.
28979 (response): Call them. Add 'p', '6' flag processing.
28980 (test_reverse): New function.
28981 (test_get2_any): Call it.
28982 (test_no_inet6): Add 'p' test.
28983 (test_inet6): Likewise.
28984
28985 2017-09-06 Florian Weimer <fweimer@redhat.com>
28986
28987 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28988 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28989 the QNAME.
28990 (test_gai): Adjust query names. Add additional tests.
28991 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28992 test_get2. Adjust query names. Add additional tests.
28993 (test_no_inet6): New function, extracted from threadfunc.
28994 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28995 Add additional tests.
28996
28997 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28998
28999 [BZ #22070]
29000 * localedata/unicode-gen/utf8_gen.py: Set the width for
29001 characters with Prepended_Concatenation_Mark property to 1
29002 * localedata/charmaps/UTF-8: Updated using the improved script.
29003
29004 2017-09-06 Mike FABIAN <mfabian@redhat.com>
29005
29006 [BZ #21750]
29007 * localedata/unicode-gen/utf8_gen.py: Improve the script to
29008 use the range notation for all ranges of neighbouring characters
29009 with the same width.
29010
29011 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29012
29013 * sysdeps/generic/math-type-macros-double.h: Include
29014 <math-svid-compat.h>.
29015 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29016 * sysdeps/generic/math-type-macros-float.h: Include
29017 <math-svid-compat.h>.
29018 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29019 * sysdeps/generic/math-type-macros-ldouble.h: Include
29020 <math-svid-compat.h>.
29021 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29022 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
29023 condition.
29024 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
29025 * math/w_acosf_compat.c: Likewise.
29026 * math/w_acosh_compat.c: Likewise.
29027 * math/w_acoshf_compat.c: Likewise.
29028 * math/w_acoshl_compat.c: Likewise.
29029 * math/w_acosl_compat.c: Likewise.
29030 * math/w_asin_compat.c: Likewise.
29031 * math/w_asinf_compat.c: Likewise.
29032 * math/w_asinl_compat.c: Likewise.
29033 * math/w_atan2_compat.c: Likewise.
29034 * math/w_atan2f_compat.c: Likewise.
29035 * math/w_atan2l_compat.c: Likewise.
29036 * math/w_atanh_compat.c: Likewise.
29037 * math/w_atanhf_compat.c: Likewise.
29038 * math/w_atanhl_compat.c: Likewise.
29039 * math/w_cosh_compat.c: Likewise.
29040 * math/w_coshf_compat.c: Likewise.
29041 * math/w_coshl_compat.c: Likewise.
29042 * math/w_exp10_compat.c: Likewise.
29043 * math/w_exp10f_compat.c: Likewise.
29044 * math/w_exp10l_compat.c: Likewise.
29045 * math/w_exp2_compat.c: Likewise.
29046 * math/w_exp2f_compat.c: Likewise.
29047 * math/w_exp2l_compat.c: Likewise.
29048 * math/w_fmod_compat.c: Likewise.
29049 * math/w_fmodf_compat.c: Likewise.
29050 * math/w_fmodl_compat.c: Likewise.
29051 * math/w_hypot_compat.c: Likewise.
29052 * math/w_hypotf_compat.c: Likewise.
29053 * math/w_hypotl_compat.c: Likewise.
29054 * math/w_j0_compat.c: Likewise.
29055 * math/w_j0f_compat.c: Likewise.
29056 * math/w_j0l_compat.c: Likewise.
29057 * math/w_j1_compat.c: Likewise.
29058 * math/w_j1f_compat.c: Likewise.
29059 * math/w_j1l_compat.c: Likewise.
29060 * math/w_jn_compat.c: Likewise.
29061 * math/w_jnf_compat.c: Likewise.
29062 * math/w_jnl_compat.c: Likewise.
29063 * math/w_lgamma_r_compat.c: Likewise.
29064 * math/w_lgammaf_r_compat.c: Likewise.
29065 * math/w_lgammal_r_compat.c: Likewise.
29066 * math/w_log10_compat.c: Likewise.
29067 * math/w_log10f_compat.c: Likewise.
29068 * math/w_log10l_compat.c: Likewise.
29069 * math/w_log2_compat.c: Likewise.
29070 * math/w_log2f_compat.c: Likewise.
29071 * math/w_log2l_compat.c: Likewise.
29072 * math/w_log_compat.c: Likewise.
29073 * math/w_logf_compat.c: Likewise.
29074 * math/w_logl_compat.c: Likewise.
29075 * math/w_pow_compat.c: Likewise.
29076 * math/w_powf_compat.c: Likewise.
29077 * math/w_powl_compat.c: Likewise.
29078 * math/w_remainder_compat.c: Likewise.
29079 * math/w_remainderf_compat.c: Likewise.
29080 * math/w_remainderl_compat.c: Likewise.
29081 * math/w_sinh_compat.c: Likewise.
29082 * math/w_sinhf_compat.c: Likewise.
29083 * math/w_sinhl_compat.c: Likewise.
29084 * math/w_sqrt_compat.c: Likewise.
29085 * math/w_sqrtf_compat.c: Likewise.
29086 * math/w_sqrtl_compat.c: Likewise.
29087 * math/w_tgamma_compat.c: Likewise.
29088 * math/w_tgammaf_compat.c: Likewise.
29089 * math/w_tgammal_compat.c: Likewise.
29090 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
29091 [LIBM_SVID_COMPAT].
29092 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
29093 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
29094 [LIBM_SVID_COMPAT].
29095 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
29096 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
29097 [LIBM_SVID_COMPAT].
29098 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
29099 * sysdeps/i386/fpu/w_sqrt.c: New file.
29100 * sysdeps/ia64/fpu/w_acos.c: Likewise.
29101 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
29102 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
29103 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
29104 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
29105 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
29106 * sysdeps/ia64/fpu/w_asin.c: Likewise.
29107 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
29108 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
29109 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29110 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29111 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29112 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29113 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29114 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29115 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29116 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29117 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29118 * sysdeps/ia64/fpu/w_exp.c: Likewise.
29119 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29120 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29121 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29122 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29123 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29124 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29125 * sysdeps/ia64/fpu/w_expf.c: Likewise.
29126 * sysdeps/ia64/fpu/w_expl.c: Likewise.
29127 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29128 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29129 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29130 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29131 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29132 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29133 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29134 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29135 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29136 * sysdeps/ia64/fpu/w_log.c: Likewise.
29137 * sysdeps/ia64/fpu/w_log10.c: Likewise.
29138 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29139 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29140 * sysdeps/ia64/fpu/w_log2.c: Likewise.
29141 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29142 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29143 * sysdeps/ia64/fpu/w_logf.c: Likewise.
29144 * sysdeps/ia64/fpu/w_logl.c: Likewise.
29145 * sysdeps/ia64/fpu/w_pow.c: Likewise.
29146 * sysdeps/ia64/fpu/w_powf.c: Likewise.
29147 * sysdeps/ia64/fpu/w_powl.c: Likewise.
29148 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29149 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29150 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29151 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29152 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29153 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29154 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29155 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29156 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29157 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29158 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29159 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29160 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29161 [LIBM_SVID_COMPAT].
29162 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29163 * sysdeps/ieee754/k_standard.c: Likewise.
29164 * sysdeps/ieee754/k_standardf.c: Likewise.
29165 * sysdeps/ieee754/k_standardl.c: Likewise.
29166 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29167 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29168 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29169 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29170 long_double_symbol call on [LIBM_SVID_COMPAT].
29171 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29172 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29173 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29174 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29175 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29176 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29177 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29178 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29179 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29180 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29181 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29182 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29183 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29184 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29185 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29186 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29187 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29188 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29189 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29190 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29191 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29192 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29193
29194 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29195
29196 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29197 * malloc/tst-mallocstate.c: Convert from test-skeleton
29198 to test-driver. Ifdef code using TEST_COMPAT macro.
29199 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29200 * math/test-matherr.c: Likewise.
29201
29202 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29203
29204 [BZ #22086]
29205 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29206 comparing word with byte-swapped constant.
29207
29208 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29209
29210 [BZ #20498]
29211 * locale/iso-639.def: add Miskito.
29212 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29213 * localedata/locales/miq_NI: New file.
29214
29215 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29216
29217 [BZ #18822]
29218 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29219 (__mkdir): Likewise.
29220 * io/chmod.c (__chmod): Add libc_hidden_def.
29221 * io/mkdir.c (__mkdir): Likewise.
29222 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29223 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29224 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29225 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29226
29227 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29228
29229 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29230 version to 4.13.
29231
29232 [BZ #22082]
29233 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29234 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29235
29236 2017-09-04 Florian Weimer <fweimer@redhat.com>
29237
29238 * math/math.h: Issue warning if log is defined.
29239
29240 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29241
29242 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29243 kernel version to 4.13.
29244
29245 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29246
29247 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29248 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29249 parameter.
29250 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29251 just <bits/types.h>.
29252 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29253 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29254 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29255 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29256 * misc/preadv2.c: Include <errno.h>.
29257 * misc/preadv64v2.c: Include <errno.h>.
29258 * misc/pwritev2.c: Include <errno.h>.
29259 * misc/pwritev64v2.c: Include <errno.h>.
29260 * sysdeps/posix/preadv2.c: Include <errno.h>.
29261 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29262 Fix <unistd.h> inclusion.
29263 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29264 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29265 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29266 __strtoul_internal): New functions.
29267 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29268 * sysdeps/posix/system.c: Include <sigsetops.h>.
29269 * sysdeps/mach/hurd/i386/Makefile
29270 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29271 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29272 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29273 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29274 __feraiseexcept_renamed to feraiseexcept instead of
29275 __GI_feraiseexcept.
29276 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29277 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29278 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29279 RWF_NOWAIT): Define to 0 if undefined already.
29280 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29281 boils down to 0.
29282 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29283 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29284
29285 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29286
29287 * manual/math.texi (pow10): Do not document.
29288 (pow10f): Likewise.
29289 (pow10l): Likewise.
29290 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29291 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29292 * math/libm-test-exp10.inc (pow10_test): Remove.
29293 (do_test): Do not call pow10.
29294 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29295 [NO_LONG_DOUBLE] (pow10l): Likewise.
29296 * math/w_exp10f_compat.c (pow10f): Likewise.
29297 * math/w_exp10l_compat.c (pow10l): Likewise.
29298 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29299 (pow10): Make into compat symbol.
29300 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29301 (pow10f): Make into compat symbol.
29302 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29303 (pow10l): Make into compat symbol.
29304 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29305 pow10.
29306 (CFLAGS-nldbl-pow10.c): Remove variable..
29307 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29308 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29309 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29310 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29311 Undefine and redefine.
29312 (pow10l): Make into compat symbol.
29313 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29314 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29315 * sysdeps/arm/libm-test-ulps: Likewise.
29316 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29317 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29318 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29319 * sysdeps/microblaze/libm-test-ulps: Likewise.
29320 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29321 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29322 * sysdeps/nios2/libm-test-ulps: Likewise.
29323 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29324 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29325 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29326 * sysdeps/sh/libm-test-ulps: Likewise.
29327 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29328 * sysdeps/tile/libm-test-ulps: Likewise.
29329 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29330
29331 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29332
29333 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29334
29335 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29336
29337 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29338 "../ChangeLog.old/ChangeLog.8".
29339 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29340 "../ChangeLog.old/ChangeLog.14".
29341
29342 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29343
29344 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29345 Threads Library.
29346
29347 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29348
29349 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29350
29351 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29352
29353 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29354 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29355
29356 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29357
29358 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29359 32 atexit handlers.
29360
29361 2017-09-01 Zack Weinberg <zackw@panix.com>
29362
29363 * math/math.h (HUGE_VAL): Improve commentary.
29364
29365 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29366 Andreas Schwab <schwab@suse.de>
29367
29368 [BZ #21530]
29369 * include/stdio.h (__gen_tempfd): New function.
29370 * stdio-common/Makefile (routines): Add gentempfd.
29371 * stdio-common/gentempfd.c: New file.
29372 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29373 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29374 unnamed file first.
29375
29376 2017-09-01 Florian Weimer <fweimer@redhat.com>
29377
29378 [BZ #21915]
29379 [BZ #21922]
29380 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29381 result to determine success or failure, not the errno value.
29382 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29383 (tst-nss-files-hosts-erange): Link with -ldl.
29384 * nss/tst-nss-files-hosts-erange.c: New file.
29385 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29386 (do_test): Add NO_DATA tests.
29387 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29388 (do_test): Call it.
29389
29390 2017-09-01 Florian Weimer <fweimer@redhat.com>
29391
29392 [BZ #21922]
29393 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29394 coming from gethostbyname2_r.
29395
29396 2017-09-01 Florian Weimer <fweimer@redhat.com>
29397
29398 * support/namespace.h (struct support_chroot_configuration): Add
29399 hosts, host_conf.
29400 (struct support_chroot): Add path_hosts, path_host_conf.
29401 * support/support_chroot.c (write_file): New function.
29402 (support_chroot_create): Call it to process /etc/resolv.conf,
29403 /etc/hosts, /etc/host.conf.
29404 (support_chroot_free): Update.
29405
29406 2017-09-01 Florian Weimer <fweimer@redhat.com>
29407
29408 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29409 status indicates it is set.
29410
29411 2017-09-01 Florian Weimer <fweimer@redhat.com>
29412
29413 [BZ #20532]
29414 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29415 function lookup failures more reliable.
29416
29417 2017-09-01 Florian Weimer <fweimer@redhat.com>
29418
29419 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29420 (getcanonname): Likewise.
29421 (gaih_inet): Likewise.
29422
29423 2017-09-01 Florian Weimer <fweimer@redhat.com>
29424
29425 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29426 (getcanonname): Likewise.
29427 (gaih_inet): Likewise.
29428
29429 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29430 Richard Henderson <rth@twiddle.net>
29431
29432 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29433 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29434 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29435 (IREG_SIZE, OREG_SIZE): New macros.
29436 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29437 (IREG_SIZE, OREG_SIZE): New macros.
29438 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29439 (IREG_SIZE): New macro.
29440 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29441 (IREG_SIZE): New macro.
29442 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29443 New includes.
29444 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29445 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29446 (__CONCATX): Handle exceptions correctly on large values that may
29447 set FE_INVALID.
29448 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29449 Initialize if not already set.
29450 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29451
29452 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29453
29454 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29455 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29456 Likewise.
29457 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29458 Likewise.
29459 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29460 Likewise.
29461 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29462 Likewise.
29463 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29464 Likewise.
29465 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29466 Likewise.
29467 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29468 Likewise.
29469 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29470 (NO_CANCELLATION): Likewise.
29471 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29472 Likewise.
29473 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29474 Likewise.
29475 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29476 Likewise.
29477 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29478 (NO_CANCELLATION): Likewise.
29479 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29480 (NO_CANCELLATION): Likewise.
29481 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29482 Likewise
29483 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29484 Likewise.
29485 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29486 Likewise.
29487 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29488 Likewise.
29489 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29490 hidden prototype.
29491 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29492 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29493
29494 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29495
29496 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29497 in resolver call.
29498
29499 2017-08-31 Florian Weimer <fweimer@redhat.com>
29500
29501 * include/libc-symbols.h (internal_function): Remove.
29502
29503 2017-08-31 Florian Weimer <fweimer@redhat.com>
29504
29505 * stdlib/fmtmsg.c (internal_addseverity): Remove
29506 internal_function.
29507
29508 2017-08-31 Florian Weimer <fweimer@redhat.com>
29509
29510 * stdio-common/printf_fp.c (group_number): Remove
29511 internal_function.
29512 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29513
29514 2017-08-31 Florian Weimer <fweimer@redhat.com>
29515
29516 * posix/fnmatch.c (internal_function): Remove definition.
29517 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29518 * posix/regcomp.c (peek_token, init_word_char)
29519 (duplicate_node_closure, fetch_token, peek_token)
29520 (peek_token_bracket, build_range_exp, build_collating_symbol):
29521 Likewise.
29522 * posix/regex_internal.c (re_string_construct_common)
29523 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29524 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29525 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29526 (re_string_translate_buffer, re_string_reconstruct)
29527 (re_string_peek_byte_case, re_string_fetch_byte_case)
29528 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29529 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29530 (re_node_set_add_intersect, re_node_set_init_union)
29531 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29532 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29533 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29534 (re_acquire_state_context): Likewise.
29535 * posix/regex_internal.h (internal_function): Remove definition.
29536 (re_string_realloc_buffers, build_wcs_buffer)
29537 (build_wcs_upper_buffer, build_upper_buffer)
29538 (re_string_translate_buffer, re_string_context_at)
29539 (re_string_char_size_at, re_string_wchar_at)
29540 (re_string_elem_size_at): Likewise.
29541 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29542 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29543 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29544 (re_search_internal, re_search_2_stub, re_search_stub)
29545 (re_copy_regs, prune_impossible_nodes, check_matching)
29546 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29547 (free_fail_stack_return, sift_states_iter_mb)
29548 (sift_states_backward, build_sifted_states)
29549 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29550 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29551 (check_subexp_limits, sift_states_bkref, merge_state_array)
29552 (find_recover_state, transit_state, merge_state_with_log)
29553 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29554 (transit_state_mb, transit_state_bkref, get_subexp)
29555 (get_subexp_sub, find_subexp_node, check_arrival)
29556 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29557 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29558 (check_node_accept_bytes, find_collation_sequence_value)
29559 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29560 (acquire_init_state_context, check_halt_node_context)
29561 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29562 (sub_epsilon_src_nodes): Likewise.
29563 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29564 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29565 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29566 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29567 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29568 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29569 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29570 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29571 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29572 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29573 (PREADV): Likewise.
29574 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29575 (PREADV): Likewise.
29576 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29577 (PWRITEV): Likewise.
29578 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29579 (PWRITEV): Likewise.
29580 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29581 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29582
29583 2017-08-31 Florian Weimer <fweimer@redhat.com>
29584
29585 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29586 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29587 Remove internal_function.
29588 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29589 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29590 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29591 (__deallocate_stack, __libc_pthread_init)
29592 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29593 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29594 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29595 Likewise.
29596 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29597 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29598 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29599 Likewise.
29600 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29601 (__pthread_mutex_unlock_usercnt): Likewise.
29602
29603 2017-08-31 Florian Weimer <fweimer@redhat.com>
29604
29605 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29606 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29607 (fts_safe_changedir): Remove internal_function.
29608 * io/ftw.c (internal_function): Remove definition.
29609 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29610
29611 2017-08-31 Florian Weimer <fweimer@redhat.com>
29612
29613 * inet/deadline.c (__deadline_current_time)
29614 (__deadline_from_timeval, __deadline_to_ms): Remove
29615 internal_function.
29616 * inet/getnameinfo.c (nrl_domainname): Likewise.
29617 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29618 * inet/inet6_option.c (add_pad): Likewise.
29619 * inet/net-internal.h (__deadline_current_time)
29620 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29621 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29622 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29623 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29624
29625 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29626
29627 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29628 include <bits/nan.h>.
29629 * math/Makefile (headers): Remove bits/nan.h.
29630 * bits/nan.h: Remove.
29631 * sysdeps/ieee754/bits/nan.h: Likewise.
29632 * sysdeps/mips/bits/nan.h: Likewise.
29633
29634 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29635 not include <bits/inf.h>.
29636 * math/Makefile (headers): Remove bits/inf.h.
29637 * bits/inf.h: Remove.
29638 * sysdeps/ieee754/bits/inf.h: Likewise.
29639
29640 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29641 bits/huge_vall.h or bits/huge_val_flt128.h.
29642 (HUGE_VAL): Define directly here.
29643 [__USE_ISOC99] (HUGE_VALF): Likewise.
29644 [__USE_ISOC99] (HUGE_VALL): Likewise.
29645 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29646 (HUGE_VAL_F128): Likewise.
29647 * math/Makefile (headers): Remove bits/huge_val.h,
29648 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29649 * bits/huge_val.h: Remove.
29650 * bits/huge_val_flt128.h: Likewise.
29651 * bits/huge_valf.h: Likewise.
29652 * bits/huge_vall.h: Likewise.
29653 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29654 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29655 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29656 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29657 * sysdeps/sh/bits/huge_val.h: Likewise.
29658 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29659 * sysdeps/x86/bits/huge_vall.h: Likewise.
29660
29661 2017-08-31 Florian Weimer <fweimer@redhat.com>
29662
29663 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29664 internal_function.
29665 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29666 Likewise.
29667 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29668 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29669 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29670 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29671 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29672 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29673 * elf/dl-libc.c (dlerror_run): Likewise.
29674 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29675 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29676 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29677 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29678 Likewise.
29679 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29680 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29681 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29682 * elf/dl-profile.c (_dl_start_profile): Likewise.
29683 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29684 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29685 Likewise.
29686 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29687 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29688 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29689 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29690 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29691 (_dl_allocate_tls_storage): Likewise.
29692 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29693 (_dl_check_all_versions): Likewise.
29694 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29695 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29696 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29697 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29698 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29699 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29700 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29701 internal_function from __dl_start.
29702 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29703 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29704 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29705 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29706 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29707 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29708 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29709 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29710 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29711 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29712 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29713 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29714 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29715 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29716 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29717 Likewise.
29718 (struct rtld_global_ro): Remove internal_function from the
29719 _dl_lookup_symbol_x member.
29720 (_dl_symbol_value): Remove. No longer defined anywhere.
29721 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29722 internal_function.
29723 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29724 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29725 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29726 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29727 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29728 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29729 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29730 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29731 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29732 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29733 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29734 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29735
29736 2017-08-31 Florian Weimer <fweimer@redhat.com>
29737
29738 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29739 Remove internal_function.
29740 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29741 Likewise.
29742 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29743 Likewise.
29744
29745 2017-08-31 Florian Weimer <fweimer@redhat.com>
29746
29747 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29748 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29749 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29750
29751 2017-08-31 Florian Weimer <fweimer@redhat.com>
29752
29753 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29754 (__gai_enqueue_request): Remove internal_function.
29755 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29756 (__gai_remove_request, __gai_notify, __gai_notify_only)
29757 (__gai_sigqueue): Likewise.
29758 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29759 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29760 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29761 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29762 Likewise.
29763
29764 2017-08-31 Florian Weimer <fweimer@redhat.com>
29765
29766 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29767 * include/dirent.h (__opendirat, __getdents, __getdents64)
29768 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29769 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29770 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29771 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29772 Likewise.
29773 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29774
29775 2017-08-31 Florian Weimer <fweimer@redhat.com>
29776
29777 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29778 internal_function.
29779 (GETCWD_RETURN_TYPE): Likewise.
29780
29781 2017-08-31 Florian Weimer <fweimer@redhat.com>
29782
29783 * include/time.h (__tz_compute, __strptime_internal): Remove
29784 internal_function.
29785 * time/strptime_l.c (__strptime_internal): Likewise.
29786 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29787
29788 2017-08-31 Florian Weimer <fweimer@redhat.com>
29789
29790 * iconv/gconv.c (__gconv): Remove internal_function.
29791 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29792 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29793 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29794 (__gconv_release_cache): Likewise.
29795 * iconv/gconv_close.c (__gconv_close): Likewise.
29796 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29797 (read_conf_file, __gconv_get_path): Likewise.
29798 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29799 (__gconv_release_step, gen_steps, increment_counter)
29800 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29801 (__gconv_close_transform, free_modules_db): Likewise.
29802 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29803 Likewise.
29804 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29805 (__gconv_find_transform, __gconv_lookup_cache)
29806 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29807 (__gconv_close_transform, __gconv_release_cache)
29808 (__gconv_loaded_object, __gconv_release_shlib)
29809 (__gconv_compare_alias): Likewise.
29810 * iconv/gconv_open.c (__gconv_open): Likewise.
29811 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29812 * iconv/iconvconfig.c (add_module): Likewise.
29813 * intl/dcigettext.c (plural_lookup, guess_category_value)
29814 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29815 * intl/eval-plural.h (plural_eval): Likewise.
29816 * intl/finddomain.c (_nl_find_domain): Likewise.
29817 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29818 (_nl_load_domain, _nl_find_msg): Likewise.
29819 (internal_function): Remove definition.
29820 * intl/loadinfo.h (internal_function): Likewise.
29821 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29822 internal_function.
29823 * intl/localealias.c (internal_function): Remove definition.
29824 (read_alias_file): Remove internal_function.
29825 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29826 * intl/plural-exp.h (internal_function): Remove definition.
29827 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29828 internal_function.
29829 * intl/plural.c: Regenerate.
29830 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29831 * locale/coll-lookup.c (__collidx_table_lookup)
29832 (__collseq_table_lookup): Likewise.
29833 * locale/coll-lookup.h (__collidx_table_lookup)
29834 (__collseq_table_lookup): Likewise.
29835 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29836 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29837 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29838 (_nl_unload_locale): Likewise.
29839 * locale/localeinfo.h (struct __locale_data): Remove
29840 internal_function from cleanup member.
29841 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29842 (_nl_remove_locale, _nl_load_locale_from_archive)
29843 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29844 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29845 (_nl_cleanup_time): Remove internal_function.
29846 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29847 (_nl_parse_alt_digit): Likewise.
29848 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29849 (_nl_select_era_entry): Likewise.
29850 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29851 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29852 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29853 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29854 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29855
29856 2017-08-31 Florian Weimer <fweimer@redhat.com>
29857
29858 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29859 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29860 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29861 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29862 Likewise.
29863 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29864 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29865 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29866 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29867 Likewise.
29868 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29869
29870 2017-08-31 Florian Weimer <fweimer@redhat.com>
29871
29872 * misc/getttyent.c (skip, value): Remove internal_function.
29873 * misc/syslog.c (openlog_internal): Likewise.
29874 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29875
29876 2017-08-31 Florian Weimer <fweimer@redhat.com>
29877
29878 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29879 (__nss_rewrite_field): Remove internal_function.
29880 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29881 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29882 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29883 * nss/nsswitch.c (nss_parse_file, nss_getline)
29884 (nss_parse_service_list, nss_new_service): Likewise.
29885 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29886 * nss/valid_field.c (__nss_valid_field): Likewise.
29887 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29888
29889 2017-08-31 Florian Weimer <fweimer@redhat.com>
29890
29891 * malloc/arena.c (__malloc_fork_lock_parent)
29892 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29893 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29894 internal_function from defintions.
29895 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29896 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29897 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29898 internal_function from declarations.
29899 * malloc/malloc.c (internal_function): Do not define.
29900 (mem2mem_check): Remove internal_function from declaration.
29901 (munmap_chunk, mremap_chunk): Remove internal_function.
29902 * malloc/mtrace.c (tr_where): Likewise.
29903
29904 2017-08-31 Florian Weimer <fweimer@redhat.com>
29905
29906 * include/rpc/pmap_clnt.h (__get_socket): Remove
29907 internal_function.
29908 * sunrpc/auth_des.c (synchronize): Likewise.
29909 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29910 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29911 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29912 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29913 (key_call): Likewise.
29914 * sunrpc/pm_getport.c (__get_socket): Likewise.
29915 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29916 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29917 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29918 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29919 (invalidate): Likewise.
29920 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29921 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29922 (set_input_fragment, get_input_bytes): Likewise.
29923
29924 2017-08-31 Florian Weimer <fweimer@redhat.com>
29925
29926 * malloc/malloc.c (_int_free): Remove locked variable and related
29927 asserts.
29928
29929 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29930
29931 [BZ #22051]
29932 * Makerules (build-module-helper-objlist): Filter out
29933 $(elf-objpfx)sofini.os.
29934 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29935 needed.
29936
29937 2017-08-31 Florian Weimer <fweimer@redhat.com>
29938
29939 * libio/fcloseall.c: Assume weak_alias is defined.
29940 * libio/feof.c: Likewise.
29941 * libio/fileno.c: Likewise.
29942 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29943 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29944 definitions.
29945 (_IO_file_open): Call __open directly.
29946 (_IO_new_file_sync): Assume ESPIPE is defined.
29947 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29948 (_IO_new_file_write): Call __write directly.
29949 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29950 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29951 * libio/genops.c: Assume _LIBC is defined.
29952 (save_for_backup): Remove internal_function.
29953 * libio/getc.c: Assume weak_alias is defined.
29954 * libio/getwc.c: Likewise.
29955 * libio/iofclose.c: Assume _LIBC is defined.
29956 * libio/iofdopen.c: Likewise.
29957 (_IO_fcntl): Remove macro definition.
29958 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29959 Call __fcntl directly.
29960 * libio/iofflush.c: Assume weak_alias is defined.
29961 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29962 defined.
29963 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29964 * libio/iofgets.c: Likewise.
29965 * libio/iofopen.c: Assume _LIBC is defined.
29966 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29967 * libio/iofputs.c: Assume weak_alias is defined.
29968 * libio/iofread.c: Likewise.
29969 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29970 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29971 * libio/ioftell.c: Assume weak_alias is defined.
29972 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29973 * libio/iofwide.c: Assume _LIBC is defined.
29974 (_IO_fwide): Drop SHARED conditional because it is implied by
29975 SHLIB_COMPAT.
29976 * libio/iofwrite.c: Assume weak_alias is defined.
29977 * libio/iogetdelim.c: Likewise.
29978 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29979 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29980 (_IO_getwline): Call __wmemcpy directly.
29981 * libio/iopopen.c: Assume _LIBC is defined.
29982 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29983 (_IO_close): Remove macro definitions.
29984 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29985 _exit directly.
29986 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29987 directly.
29988 * libio/ioputs.c: Assume weak_alias is defined.
29989 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29990 * libio/iosetbuffer.c: Assume weak_alias is defined.
29991 * libio/iosetvbuf.c: Likewise.
29992 * libio/ioungetc.c: Likewise.
29993 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29994 libc_hidden_def, libc_hidden_weak, NULL are defined.
29995 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29996 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29997 defined.
29998 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29999 definitions.
30000 (_IO_old_file_init_internal): Drop SHARED conditional because it
30001 is implied by SHLIB_COMPAT.
30002 (_IO_old_file_fopen): Call __open directly.
30003 (_IO_old_file_sync): Assume ESPIPE is defined.
30004 (_IO_old_file_write): Call __write directly.
30005 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
30006 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
30007 Call __fcntl directly.
30008 * libio/oldiofgetpos.c: Assume weak_alias is defined.
30009 (_IO_old_fgetpos): Assume EIO is defined.
30010 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
30011 (_IO_old_fgetpos64): Assume EIO is defined.
30012 * libio/oldiofsetpos.c: Assume weak_alias is defined.
30013 (_IO_old_fsetpos): Assume EIO is defined.
30014 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
30015 (_IO_old_fsetpos64): Assume EIO is defined.
30016 * libio/oldiopopen.c: Assume _LIBC is defined.
30017 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30018 (_IO_close): Remove macro definitions.
30019 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
30020 directly.
30021 (_IO_old_proc_close): Call __close, __waitpid directly.
30022 * libio/put.c: Assume weak_alias is defined.
30023 * libio/stdfiles.c: Assume _LIBC is defined.
30024 * libio/stdio.c: Likewise.
30025 * libio/wfileops.c: Likewise.
30026 (_IO_wfile_sync): Assume ESPIPE is defined.
30027 * libio/wgenops.c: Assume _LIBC is defined.
30028 (save_for_wbackup): Remove internal_function.
30029
30030 2017-08-31 Florian Weimer <fweimer@redhat.com>
30031
30032 * malloc/malloc.c (top_check): Change return type to void. Remove
30033 internal_function.
30034 * malloc/hooks.c (top_check): Likewise.
30035 (malloc_check, realloc_check, memalign_check): Adjust.
30036
30037 2017-08-30 Joseph Myers <joseph@codesourcery.com>
30038
30039 [BZ #21457]
30040 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30041 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30042 sigcontext and namespace requirements.
30043 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30044 * sysdeps/m68k/sys/ucontext.h: Likewise.
30045 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
30046 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
30047 <bits/sigcontext.h>.
30048 (__ctx): Define earlier.
30049 (mcontext_t): Define structure contents rather than using struct
30050 sigcontext.
30051 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
30052 __glibc_reserved1 instead of __reserved.
30053 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
30054 <bits/sigcontext.h>.
30055 (__ctx): Define earlier.
30056 (mcontext_t): Define structure contents rather than using struct
30057 sigcontext.
30058 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
30059 mcontext_t instead of struct sigcontext.
30060 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
30061 <bits/sigcontext.h>.
30062 (__ctx): Define earlier.
30063 (mcontext_t): Define structure contents rather than using struct
30064 sigcontext.
30065 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30066 <bits/sigcontext.h>.
30067 (__ctx): Define earlier.
30068 (mcontext_t): Define structure contents rather than using struct
30069 sigcontext.
30070 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30071 mcontext_t instead of struct sigcontext.
30072 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30073 mcontext_t instead of struct sigcontext.
30074 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30075 <bits/sigcontext.h>.
30076 (__ctx): New macro.
30077 (struct __ia64_fpreg_mcontext): New type.
30078 (mcontext_t): Define structure contents rather than using struct
30079 sigcontext.
30080 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30081 (uc_sigmask): Define using __ctx.
30082 (uc_stack): Likewise.
30083 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30084 <bits/sigcontext.h>.
30085 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30086 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30087 <bits/sigcontext.h>.
30088 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
30089 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
30090 <bits/sigcontext.h>.
30091 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
30092 <bits/sigcontext.h>.
30093 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
30094 <bits/sigcontext.h>.
30095 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
30096 <bits/sigcontext.h>.
30097 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
30098 <bits/sigcontext.h>.
30099 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
30100 <bits/sigcontext.h>.
30101 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
30102 <bits/sigcontext.h>.
30103 (__ctx): Define earlier.
30104 (mcontext_t): Define structure contents rather than using struct
30105 sigcontext.
30106 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
30107 <bits/sigcontext.h>. Include <bits/types.h>.
30108 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
30109 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30110 (test-xfail-XPG42/ucontext.h/conform): Likewise.
30111 (test-xfail-UNIX98/signal.h/conform): Likewise.
30112 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30113 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30114 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30115 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30116 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30117 (test-xfail-POSIX2008/signal.h/conform): Likewise.
30118 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30119 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30120 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30121
30122 2017-08-30 Florian Weimer <fweimer@redhat.com>
30123
30124 * malloc/dynarray_emplace_enlarge.c
30125 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30126 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30127 * malloc/tst-dynarray.c (test_long_overflow): New function.
30128 (do_test): Call it.
30129
30130 2017-08-30 Florian Weimer <fweimer@redhat.com>
30131
30132 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30133 (set_arena_corrupt): Remove definitions.
30134 (mtrim): Do not check for corrupt arena.
30135 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30136 Likewise.
30137
30138 2017-08-30 Florian Weimer <fweimer@redhat.com>
30139
30140 [BZ #21754]
30141 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30142 check_action.
30143 (ptmalloc_init): Do not set or use check_action.
30144 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30145 call to malloc_printerr. Remove return statement.
30146 (free_check): Likewise. Remove arena unlock.
30147 (top_check): Update comment. Adjust call to malloc_printerr.
30148 Remove heap repair code.
30149 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30150 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30151 (sysmalloc): Adjust call to malloc_printerr.
30152 (munmap_chunk, __libc_realloc): Likewise. Remove return
30153 statement.
30154 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30155 Remove errout label and corresponding gotos.
30156 (_int_free): Likewise. Remove arena unlock.
30157 (do_set_mallopt_check): Do not set check_action.
30158 (malloc_printerr): Adjust parameter list. Do not mark arena as
30159 corrupt.
30160 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30161 comment.
30162 * manual/probes.texi (Memory Allocation Probes): Remove
30163 memory_mallopt_check_action.
30164
30165 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30166
30167 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30168 Use pointer to uint64_t instead of long int for sp.
30169
30170 2017-08-30 Florian Weimer <fweimer@redhat.com>
30171
30172 [BZ #21754]
30173 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30174 without printing a backtrace. Do not leak any information in the
30175 error message.
30176 * manual/memory.texi (Heap Consistency Checking): Update.
30177 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30178
30179 2017-08-30 Florian Weimer <fweimer@redhat.com>
30180
30181 Do not scale NPTL tests with available number of CPUs.
30182 * nptl/tst-cond16.c (count): Set to constant value of 8.
30183 * nptl/tst-cond18.c (count): Likewise.
30184
30185 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30186
30187 [BZ #22035]
30188 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30189 Define to take a second argument that is a macro that
30190 concatentates a suffix, not the suffix itself.
30191 (__CONCAT_d): New macro.
30192 (__CONCAT_f): Likewise.
30193 (__CONCAT_l): Likewise.
30194
30195 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30196
30197 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30198 by child.
30199
30200 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30201 Aurelien Jarno <aurelien@aurel32.net>
30202 Maciej W. Rozycki <macro@imgtec.com>
30203
30204 [BZ #21956]
30205 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30206 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30207 `mips16-syscall6' and `mips16-syscall7'.
30208 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30209 (CFLAGS-mips16-syscall7.c): Remove.
30210 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30211 Remove `__mips16_syscall5', `__mips16_syscall6' and
30212 `__mips16_syscall7'.
30213 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30214 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30215 `__mips_syscall_return'.
30216 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30217 (__mips16_syscall1): Likewise.
30218 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30219 (__mips16_syscall2): Likewise.
30220 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30221 (__mips16_syscall3): Likewise.
30222 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30223 (__mips16_syscall4): Likewise.
30224 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30225 Remove.
30226 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30227 Remove.
30228 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30229 Remove.
30230 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30231 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30232 `__mips16_syscall5'. Remove prototype.
30233 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30234 `__mips16_syscall6'. Remove prototype.
30235 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30236 `__mips16_syscall7'. Remove prototype.
30237 (__nomips16, __mips16_syscall_return): Move to...
30238 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30239 (__nomips16, __mips_syscall_return): ... here.
30240 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30241 `__mips16_syscall_return' to `__mips_syscall_return'.
30242 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30243 `internal_syscall##nr'.
30244 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30245 `internal_syscall##nr'.
30246 (FORCE_FRAME_POINTER): Remove.
30247 (__mips_syscall5): New prototype.
30248 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30249 (__mips_syscall6): New prototype.
30250 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30251 (__mips_syscall7): New prototype.
30252 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30253 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30254 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30255 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30256 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30257 (sysdep_routines): Add libc-do-syscall.
30258 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30259 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30260
30261 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30262
30263 [BZ #21672]
30264 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30265 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30266 (advise_stack_range): New function.
30267 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30268 stack non required to advise_stack_range at allocatestack.c
30269
30270 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30271
30272 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30273
30274 2017-08-29 Florian Weimer <fweimer@redhat.com>
30275
30276 [BZ #22026]
30277 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30278 __end_fct. Mangle __end_fct after setting it to NULL.
30279 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30280 (modules-names, modules-names-tests): Add
30281 tst-gconv-init-failure-mod.
30282 (gconv-modules): New target.
30283 (tst-gconv-init-failure-mod.so): Link against libsupport.
30284 (tst-gconv-init-failure): Depend on gconv-modules,
30285 tst-gconv-init-failure-mod.so.
30286 * iconv/tst-gconv-init-failure-mod.c: New file.
30287 * iconv/tst-gconv-init-failure.c: Likewise.
30288 * iconv/test-gconv-modules: Likewise.
30289
30290 2017-08-29 Florian Weimer <fweimer@redhat.com>
30291
30292 [BZ #22025]
30293 * iconv/gconv_db.c (free_derivation): Remove redundant
30294 parentheses.
30295 (gen_steps): Unconditionally mangle __btowc_fct after
30296 initialization.
30297 (increment_counter): Likewise. Do not call init_fct for internal
30298 modules.
30299
30300 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30301
30302 [BZ #22028]
30303 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30304 (_MSUF_): Remove macro.
30305 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30306 Likewise.
30307 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30308 (__REDIRFROM_X): New macro.
30309 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30310 Likewise.
30311 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30312 (__REDIRTO_X): Likewise.
30313 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30314 arguments.
30315 (__MATH_REDIRCALL_2): Likewise.
30316 (__MATH_REDIRCALL_INTERNAL): Likewise.
30317 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30318 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30319 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30320 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30321 * math/test-finite-macros.c: New file.
30322 * math/Makefile (tests): Add test-finite-macros.
30323 (CFLAGS-test-finite-macros.c): New variable.
30324
30325 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30326 Jeff Law <law@redhat.com>
30327
30328 [BZ #22025]
30329 Mangle NULL pointers in iconv/gconv.
30330 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30331 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30332 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30333 is non-NULL before demangling the end_fct. Check for NULL
30334 end_fct after demangling.
30335 (__gconv_release_step): Demangle the end_fct before checking
30336 it for NULL. Remove assert on __shlibc_handle != NULL.
30337 (gen_steps): Don't check btowc_fct for NULL before mangling.
30338 Demangle init_fct before checking for NULL.
30339 (increment_counter): Likewise.
30340 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30341 end_fct for NULL before mangling.
30342 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30343 for NULL.
30344
30345 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30346
30347 [BZ #21971]
30348 * locale/iso-639.def: add Morisyen.
30349
30350 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30351
30352 [BZ #21930]
30353 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30354 (iszero): New C++ implementation that does not use
30355 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30356 signaling nans are enabled, since __builtin_types_compatible_p
30357 is a C-only feature.
30358 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30359 defined, include ieee754_float128.h for access to the union and
30360 member ieee854_float128.ieee.
30361 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30362 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30363 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30364 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30365 options of test-math-zero on powerpc64le.
30366
30367 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30368
30369 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30370 Change double to float.
30371
30372 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30373
30374 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30375 unconditional.
30376 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30377 conditional code; define contents only for [LIBM_SVID_COMPAT].
30378
30379 2017-08-28 Florian Weimer <fweimer@redhat.com>
30380
30381 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30382 (abi-lp64_be-options): Remove.
30383 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30384 (abi-hard-options): Likewise.
30385 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30386 (abi-o32_hard-options, abi-o32_soft_2008-options)
30387 (abi-o32_hard_2008-options, abi-n32_soft-options)
30388 (abi-n32_hard-options, abi-n32_soft_2008-options)
30389 (abi-n32_hard_2008-options, abi-n64_soft-options)
30390 (abi-n64_hard-options, abi-n64_soft_2008-options)
30391 (abi-n64_hard_2008-options): Likewise.
30392 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30393 (abi-64-v1-options, abi-64-v2-options): Likewise.
30394 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30395 (abi-64-options): Likewise.
30396 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30397 (abi-64-options): Likewise.
30398 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30399 (abi-64-options): Likewise.
30400 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30401 (abi-64-options, abi-x32-options): Likewise.
30402
30403 2017-08-28 Florian Weimer <fweimer@redhat.com>
30404
30405 Store supported list of SYS_* system calls in the source tree.
30406 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30407 (bits/syscall.h): Generate from list file.
30408 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30409 [$(subdir) = misc] (tests): Add tst-syscall-list.
30410 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30411 [$(subdir) = misc] (tst-syscall-list-macros.list)
30412 [$(subdir) = misc] (tst-syscall-list-nr.list)
30413 (tst-syscall-list-sys.list): Helper targets for new
30414 tst-syscall-list test.
30415 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30416 tst-syscall-list.sh.
30417 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30418 target. Do not include bits/syscall.d.
30419 [$(subdir) = misc] (generated): Do not update.
30420 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30421 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30422 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30423 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30424
30425 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30426
30427 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30428 (tst-cxa_atexit, tst-on_exit): Likewise.
30429 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30430 tst-cxa_atexit, and tst-on_exit.
30431 * stdlib/tst-atexit-common.c: New file.
30432 * stdlib/tst-atexit.c: New file.
30433 * stdlib/tst-at_quick_exit.c: New file.
30434 * stdlib/tst-cxa_atexit.c: New file.
30435 * stdlib/tst-on_exit.c: New file.
30436
30437 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30438
30439 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30440 * mach/stack_chk_fail_local.c: New file.
30441 * hurd/stack_chk_fail_local.c: New file.
30442 * mach/Machrules ($(interface-library)-routines): Add
30443 stack_chk_fail_local.
30444 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30445 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30446 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30447 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30448 * hurd/Makefile (CFLAGS-hurdstartup.o,
30449 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30450
30451 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30452
30453 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30454 (index_cpu_*, index_arch_*): Removed.
30455
30456 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30457
30458 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30459 Use uint64_t instead of unsigned long.
30460
30461 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30462
30463 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30464 [__HAVE_DISTINCT_FLOAT128].
30465
30466 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30467 of <bits/math-finite.h>.
30468 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30469 inclusion of <bits/math-finite.h>.
30470 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30471 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30472 __NO_LONG_DOUBLE_MATH].
30473 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30474 (__MATH_REDIRCALL_2): Likewise.
30475 (__MATH_REDIRCALL_INTERNAL): Likewise.
30476 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30477 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30478 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30479
30480 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30481 Remove file.
30482 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30483 Likewise.
30484 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30485 Likewise.
30486 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30487 Likewise.
30488 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30489 Likewise.
30490 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30491 Likewise.
30492 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30493 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30494 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30495 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30496 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30497 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30498 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30499 w_sqrtf_compat-ppc32.
30500
30501 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30502
30503 * math/math.h [defined __cplusplus] (issignaling): In the long
30504 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30505 is not defined. Call __issignaling, otherwise.
30506
30507 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30508
30509 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30510 syscall definitions and replace __builtin_expect with __glibc_likely.
30511 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30512 syscall.
30513 (SYSCALL_CANCELLABLE): Removedefinition
30514 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30515 definition.
30516 (PSEUDO_END): Likewise.
30517 [IS_IN (libpthread)] (CENABLE): Likewise.
30518 [IS_IN (libpthread)] (CDISABLE): Likewise.
30519 [IS_IN (libc)] (CENABLE): Likewise.
30520 [IS_IN (libc)] (CENABLE): Likewise.
30521 [IS_IN (librt)] (CDISABLE): Likewise.
30522 [IS_IN (librt)] (CDISABLE): Likewise.
30523 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30524 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30525 definition.
30526 (PSEUDO_END): Likewise.
30527 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30528 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30529 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30530 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30531 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30532 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30533 (CENABLE): Likewise.
30534 (CDISABLE): Likewise.
30535 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30536 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30537 defintion.
30538 (PSEUDO_END): Likewise.
30539 [IS_IN (libpthread)] (CENABLE): Likewise.
30540 [IS_IN (libpthread)] (CDISABLE): Likewise.
30541 [IS_IN (libc)] (CENABLE): Likewise.
30542 [IS_IN (libc)] (CENABLE): Likewise.
30543 [IS_IN (librt)] (CDISABLE): Likewise.
30544 [IS_IN (librt)] (CDISABLE): Likewise.
30545 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30546 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30547 definition.
30548 (PSEUDO_END): Likewise.
30549 [IS_IN (libpthread)] (CENABLE): Likewise.
30550 [IS_IN (libpthread)] (CDISABLE): Likewise.
30551 [IS_IN (libc)] (CENABLE): Likewise.
30552 [IS_IN (libc)] (CENABLE): Likewise.
30553 [IS_IN (librt)] (CDISABLE): Likewise.
30554 [IS_IN (librt)] (CDISABLE): Likewise.
30555 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30556 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30557 definition.
30558 (PSEUDO_END): Likewise.
30559 [IS_IN (libpthread)] (CENABLE): Likewise.
30560 [IS_IN (libpthread)] (CDISABLE): Likewise.
30561 [IS_IN (libc)] (CENABLE): Likewise.
30562 [IS_IN (libc)] (CENABLE): Likewise.
30563 [IS_IN (librt)] (CDISABLE): Likewise.
30564 [IS_IN (librt)] (CDISABLE): Likewise.
30565 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30566 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30567 definition.
30568 (PSEUDO_END): Likewise.
30569 [IS_IN (libpthread)] (CENABLE): Likewise.
30570 [IS_IN (libpthread)] (CDISABLE): Likewise.
30571 [IS_IN (libc)] (CENABLE): Likewise.
30572 [IS_IN (libc)] (CENABLE): Likewise.
30573 [IS_IN (librt)] (CDISABLE): Likewise.
30574 [IS_IN (librt)] (CDISABLE): Likewise.
30575 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30576 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30577 definition.
30578 (PSEUDO_END): Likewise.
30579 [IS_IN (libpthread)] (CENABLE): Likewise.
30580 [IS_IN (libpthread)] (CDISABLE): Likewise.
30581 [IS_IN (libc)] (CENABLE): Likewise.
30582 [IS_IN (libc)] (CENABLE): Likewise.
30583 [IS_IN (librt)] (CDISABLE): Likewise.
30584 [IS_IN (librt)] (CDISABLE): Likewise.
30585 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30586 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30587 definition.
30588 (PSEUDO_END): Likewise.
30589 [IS_IN (libpthread)] (CENABLE): Likewise.
30590 [IS_IN (libpthread)] (CDISABLE): Likewise.
30591 [IS_IN (libc)] (CENABLE): Likewise.
30592 [IS_IN (libc)] (CENABLE): Likewise.
30593 [IS_IN (librt)] (CDISABLE): Likewise.
30594 [IS_IN (librt)] (CDISABLE): Likewise.
30595 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30596 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30597 Remove definition.
30598 (PSEUDO_END): Likewise.
30599 [IS_IN (libpthread)] (CENABLE): Likewise.
30600 [IS_IN (libpthread)] (CDISABLE): Likewise.
30601 [IS_IN (libc)] (CENABLE): Likewise.
30602 [IS_IN (libc)] (CENABLE): Likewise.
30603 [IS_IN (librt)] (CDISABLE): Likewise.
30604 [IS_IN (librt)] (CDISABLE): Likewise.
30605 (SINGLE_THREAD_P): Likewise.
30606 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30607 definition.
30608 (PSEUDO_END): Likewise.
30609 [IS_IN (libpthread)] (CENABLE): Likewise.
30610 [IS_IN (libpthread)] (CDISABLE): Likewise.
30611 [IS_IN (libc)] (CENABLE): Likewise.
30612 [IS_IN (libc)] (CENABLE): Likewise.
30613 [IS_IN (librt)] (CDISABLE): Likewise.
30614 [IS_IN (librt)] (CDISABLE): Likewise.
30615 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30616 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30617 definition.
30618 (PSEUDO_END): Likewise.
30619 [IS_IN (libpthread)] (CENABLE): Likewise.
30620 [IS_IN (libpthread)] (CDISABLE): Likewise.
30621 [IS_IN (libc)] (CENABLE): Likewise.
30622 [IS_IN (libc)] (CENABLE): Likewise.
30623 [IS_IN (librt)] (CDISABLE): Likewise.
30624 [IS_IN (librt)] (CDISABLE): Likewise.
30625 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30626 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30627 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30628 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30629 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30630 definition.
30631 (PSEUDO_END): Likewise.
30632 [IS_IN (libpthread)] (CENABLE): Likewise.
30633 [IS_IN (libpthread)] (CDISABLE): Likewise.
30634 [IS_IN (libc)] (CENABLE): Likewise.
30635 [IS_IN (libc)] (CENABLE): Likewise.
30636 [IS_IN (librt)] (CDISABLE): Likewise.
30637 [IS_IN (librt)] (CDISABLE): Likewise.
30638 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30639 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30640 definition.
30641 (PSEUDO_END): Likewise.
30642 [IS_IN (libpthread)] (CENABLE): Likewise.
30643 [IS_IN (libpthread)] (CDISABLE): Likewise.
30644 [IS_IN (libc)] (CENABLE): Likewise.
30645 [IS_IN (libc)] (CENABLE): Likewise.
30646 [IS_IN (librt)] (CDISABLE): Likewise.
30647 [IS_IN (librt)] (CDISABLE): Likewise.
30648 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30649 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30650 definition.
30651 (PSEUDO_END): Likewise.
30652 [IS_IN (libpthread)] (CENABLE): Likewise.
30653 [IS_IN (libpthread)] (CDISABLE): Likewise.
30654 [IS_IN (libc)] (CENABLE): Likewise.
30655 [IS_IN (libc)] (CENABLE): Likewise.
30656 [IS_IN (librt)] (CDISABLE): Likewise.
30657 [IS_IN (librt)] (CDISABLE): Likewise.
30658 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30659 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30660 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30661 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30662 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30663 definition.
30664 (PSEUDO_END): Likewise.
30665 [IS_IN (libpthread)] (CENABLE): Likewise.
30666 [IS_IN (libpthread)] (CDISABLE): Likewise.
30667 [IS_IN (libc)] (CENABLE): Likewise.
30668 [IS_IN (libc)] (CENABLE): Likewise.
30669 [IS_IN (librt)] (CDISABLE): Likewise.
30670 [IS_IN (librt)] (CDISABLE): Likewise.
30671 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30672 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30673 definition.
30674 (PSEUDO_END): Likewise.
30675 [IS_IN (libpthread)] (CENABLE): Likewise.
30676 [IS_IN (libpthread)] (CDISABLE): Likewise.
30677 [IS_IN (libc)] (CENABLE): Likewise.
30678 [IS_IN (libc)] (CENABLE): Likewise.
30679 [IS_IN (librt)] (CDISABLE): Likewise.
30680 [IS_IN (librt)] (CDISABLE): Likewise.
30681 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30682
30683 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30684
30685 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30686
30687 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30688
30689 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30690
30691 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30692
30693 [BZ #21982]
30694 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30695 middle and outer with size_t instead of int. Repleace %d and
30696 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30697 "MAX (outer, nchars - 64)" to support unsigned outer and
30698 nchars. Also exit loop when outer == 0.
30699
30700 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30701
30702 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30703 * include/signal.h (__sigsuspend_nocancel): Likewise.
30704 * include/time.h (__nanosleep_nocancel): Likewise.
30705 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30706 * login/utmp_file.c: Include non cancellable syscall header.
30707 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30708 prototype.
30709
30710 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30711
30712 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30713 .byte sequences with AVX512F instructions.
30714 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30715 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30716 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30717 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30718 Likewise.
30719 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30720 Likewise.
30721
30722 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30723 Steve Ellcey <sellcey@cavium.com>
30724
30725 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30726 Use PTR_REG macro in cmp instruction.
30727
30728 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30729
30730 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30731 Change the return type of the ifunc resolver to match the return
30732 type of the target function.
30733
30734 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30735
30736 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30737 (preadv64): Likewise.
30738 (pwrite64(: Likewise.
30739 (pwritev64): Likewise.
30740
30741 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30742 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30743 (LOAD_ARGS_0): Likewise.
30744 (LOAD_ARGS_1): Likewise.
30745 (LOAD_ARGS_2): Likewise.
30746 (LOAD_ARGS_3): Likewise.
30747 (LOAD_ARGS_4): Likewise.
30748 (LOAD_ARGS_5): Likewise.
30749 (LOAD_ARGS_6): Likewise.
30750 (LOAD_REGS_0): Likewise.
30751 (LOAD_REGS_1): Likewise.
30752 (LOAD_REGS_2): Likewise.
30753 (LOAD_REGS_3): Likewise.
30754 (LOAD_REGS_4): Likewise.
30755 (LOAD_REGS_5): Likewise.
30756 (LOAD_REGS_6): Likewise.
30757 (ASM_ARGS_0): Likewise.
30758 (ASM_ARGS_1): Likewise.
30759 (ASM_ARGS_2): Likewise.
30760 (ASM_ARGS_3): Likewise.
30761 (ASM_ARGS_4): Likewise.
30762 (ASM_ARGS_5): Likewise.
30763 (ASM_ARGS_6): Likewise.
30764 (LOAD_ARGS_TYPES_1): Likewise.
30765 (LOAD_ARGS_TYPES_2): Likewise.
30766 (LOAD_ARGS_TYPES_3): Likewise.
30767 (LOAD_ARGS_TYPES_4): Likewise.
30768 (LOAD_ARGS_TYPES_5): Likewise.
30769 (LOAD_ARGS_TYPES_6): Likewise.
30770 (LOAD_REGS_TYPES_1): Likewise.
30771 (LOAD_REGS_TYPES_2): Likewise.
30772 (LOAD_REGS_TYPES_3): Likewise.
30773 (LOAD_REGS_TYPES_4): Likewise.
30774 (LOAD_REGS_TYPES_5): Likewise.
30775 (LOAD_REGS_TYPES_6): Likewise.
30776 (TYPEFY): New define.
30777 (ARGIFY): Likewise.
30778 (internal_syscall0): Likewise.
30779 (internal_syscall1): Likewise.
30780 (internal_syscall2): Likewise.
30781 (internal_syscall3): Likewise.
30782 (internal_syscall4): Likewise.
30783 (internal_syscall5): Likewise.
30784 (internal_syscall6): Likewise.
30785 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30786 (INTERNAL_SYSCALL_NCS): Remove define.
30787 (internal_syscall1): Add define.
30788
30789 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30790
30791 * math/w_remainder_compat.c: Remove duplicate inclusion of
30792 math-svid-compat.h.
30793 * math/w_remainderf_compat.c: Likewise.
30794 * math/w_remainderl_compat.c: Likewise.
30795
30796 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30797
30798 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30799
30800 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30801
30802 [BZ #21684]
30803 * math/tgmath.h (__floating_type): Simplify definitions.
30804 (__real_integer_type): New macro.
30805 (__complex_integer_type): Likewise.
30806 (__expr_is_real): Likewise.
30807 (__tgmath_real_type_sub): Update comment to describe handling of
30808 complex types.
30809 (__tgmath_complex_type_sub): New macro.
30810 (__tgmath_complex_type): Likewise.
30811 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30812 (__TGMATH_CF128): Use __expr_is_real.
30813 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30814 __expr_is_real.
30815 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30816 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30817 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30818 integer types.
30819
30820 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30821
30822 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30823 macro.
30824 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30825 alias.
30826 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30827 Likewise.
30828
30829 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30830 nanosleep_not_cancel with __nanosleep_nocancel.
30831 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30832 (__nanosleep_nocancel): New macro.
30833 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30834 function.
30835 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30836 macro.
30837 (__nanosleep_nocancel): New prototype.
30838
30839 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30840 pause_not_cancel with __pause_nocancel.
30841 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30842 (__pause_nocancel): New macro.
30843 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30844 macro.
30845 (__pause_nocancel): New prototype.
30846 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30847
30848 2017-08-22 Martin Sebor <msebor@redhat.com>
30849
30850 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30851 to return a pointer to the same type as the target function.
30852
30853 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30854
30855 [BZ #18822]
30856 [BZ #21986]
30857 * include/printf.h (__printf_fphex): Add attribute_hidden.
30858 (__guess_grouping): New prototype.
30859 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30860 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30861 libc_hidden_proto and libc_hidden_def.
30862 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30863 (__vstrfmon_l): Remove the third argument passed to
30864 __guess_grouping.
30865
30866 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30867
30868 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30869 definition for issignaling that does not rely on __MATH_TG,
30870 since __MATH_TG uses __builtin_types_compatible_p, which is only
30871 available in C mode.
30872 (CFLAGS-test-math-issignaling.cc): New variable.
30873 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30874 * math/test-math-issignaling.cc: New test for C++ implementation
30875 of type-generic issignaling.
30876 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30877 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30878 options of test-math-issignaling on powerpc64le.
30879
30880 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30881
30882 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30883 building libc.a.
30884 (hidden_proto): Likewise.
30885 (hidden_tls_proto): Likewise.
30886 (__hidden_proto): Likewise.
30887
30888 2017-08-22 Florian Weimer <fweimer@redhat.com>
30889
30890 math: Statically link tests of internal functionality.
30891 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30892 atest-exp2.
30893 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30894 (gmp-objs): Remove assignment.
30895 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30896
30897 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30898
30899 [BZ #21987]
30900 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30901 and copy to ...
30902 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30903 ... here.
30904 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30905 ... and here.
30906
30907 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30908 variable definitions above inclusion of ../Rules.
30909
30910 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30911
30912 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30913 case calling __builtin_unreachable.
30914
30915 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30916
30917 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30918 __waitpid_nocancel.
30919 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30920 (__waitpid_nocancel): New macro.
30921 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30922 macro.
30923 (__waitpid_nocancel): Replace macro with a function.
30924 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30925 function.
30926
30927 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30928 __fcntl_nocancel.
30929 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30930 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30931
30932 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30933 __writev_nocancel_nostatus.
30934 (write_call_graph): Likewise.
30935 (write_bb_counts): Likewise.
30936 * resolv/herror.c (herror): Likewise.
30937 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30938 macro.
30939 (__writev_nocancel_nostatus): New macro.
30940 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30941 Remove macro.
30942 (__writev_nocancel_nostatus): New function.
30943
30944 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30945
30946 Revert:
30947 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30948
30949 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30950 building libc.a.
30951 (hidden_proto): Likewise.
30952 (hidden_tls_proto): Likewise.
30953 (__hidden_proto): Likewise.
30954
30955 [BZ #21973]
30956 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30957 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30958 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30959 Likewise.
30960 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30961 Likewise.
30962 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30963 Likewise.
30964 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30965 Likewise.
30966 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30967 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30968 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30969 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30970 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30971 GLIBC_2.0 sqrtl symbol.
30972
30973 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30974 [__USE_MISC] (_LIB_VERSION): Likewise.
30975 [__USE_MISC] (struct exception): Likewise.
30976 [__USE_MISC] (matherr): Likewise.
30977 [__USE_MISC] (DOMAIN): Likewise.
30978 [__USE_MISC] (SING): Likewise.
30979 [__USE_MISC] (OVERFLOW): Likewise.
30980 [__USE_MISC] (UNDERFLOW): Likewise.
30981 [__USE_MISC] (TLOSS): Likewise.
30982 [__USE_MISC] (PLOSS): Likewise.
30983 [__USE_MISC] (HUGE): Likewise.
30984 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30985 * math/math-svid-compat.h: New file.
30986 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30987 and matherrl.
30988 * include/math.h [!_ISOMAC] (__matherr): Remove.
30989 * manual/arith.texi (FP Exceptions): Do not document matherr.
30990 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30991 (tests-internal): New variable.
30992 (install-lib): Do not add libieee.a.
30993 (non-lib.a): Likewise.
30994 (extra-objs): Do not add libieee.a and ieee-math.o.
30995 (CPPFLAGS-s_lib_version.c): Remove variable.
30996 ($(objpfx)libieee.a): Remove rule.
30997 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30998 * math/ieee-math.c: Remove.
30999 * math/libm-test-support.c (matherr): Remove.
31000 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
31001 and license notices. Include <math-svid-compat.h> and
31002 <shlib-compat.h>.
31003 (matherr): Undefine as macro. Use compat_symbol_reference.
31004 (_LIB_VERSION): Likewise.
31005 * math/test-matherr-2.c: New file.
31006 * math/test-matherr-3.c: Likewise.
31007 * sysdeps/generic/math_private.h (__kernel_standard): Remove
31008 declaration.
31009 (__kernel_standard_f): Likewise.
31010 (__kernel_standard_l): Likewise.
31011 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
31012 <math_private.h>. Include <math-svid-compat.h>.
31013 (_LIB_VERSION): Undefine as macro.
31014 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
31015 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
31016 [LIBM_SVID_COMPAT], use compat_symbol.
31017 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
31018 <math_private.h>. Include <math-svid-compat.h>.
31019 (matherr): Undefine as macro.
31020 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
31021 compat_symbol.
31022 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
31023 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
31024 compat_symbol_reference.
31025 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
31026 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
31027 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
31028 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
31029 (MATHERR_D): Remove declaration.
31030 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
31031 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
31032 [LIBM_BUILD] (pmatherrf): Likewise.
31033 [LIBM_BUILD] (pmatherr): Likewise.
31034 [LIBM_BUILD] (pmatherrl): Likewise.
31035 (DOMAIN): Likewise.
31036 (SING): Likewise.
31037 (OVERFLOW): Likewise.
31038 (UNDERFLOW): Likewise.
31039 (TLOSS): Likewise.
31040 (PLOSS): Likewise.
31041 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31042 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
31043 compat_symbol.
31044 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31045 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
31046 compat_symbol.
31047 * math/lgamma-compat.h: Include <math-svid-compat.h>.
31048 * math/w_acos_compat.c: Likewise.
31049 * math/w_acosf_compat.c: Likewise.
31050 * math/w_acosh_compat.c: Likewise.
31051 * math/w_acoshf_compat.c: Likewise.
31052 * math/w_acoshl_compat.c: Likewise.
31053 * math/w_acosl_compat.c: Likewise.
31054 * math/w_asin_compat.c: Likewise.
31055 * math/w_asinf_compat.c: Likewise.
31056 * math/w_asinl_compat.c: Likewise.
31057 * math/w_atan2_compat.c: Likewise.
31058 * math/w_atan2f_compat.c: Likewise.
31059 * math/w_atan2l_compat.c: Likewise.
31060 * math/w_atanh_compat.c: Likewise.
31061 * math/w_atanhf_compat.c: Likewise.
31062 * math/w_atanhl_compat.c: Likewise.
31063 * math/w_cosh_compat.c: Likewise.
31064 * math/w_coshf_compat.c: Likewise.
31065 * math/w_coshl_compat.c: Likewise.
31066 * math/w_exp10_compat.c: Likewise.
31067 * math/w_exp10f_compat.c: Likewise.
31068 * math/w_exp10l_compat.c: Likewise.
31069 * math/w_exp2_compat.c: Likewise.
31070 * math/w_exp2f_compat.c: Likewise.
31071 * math/w_exp2l_compat.c: Likewise.
31072 * math/w_fmod_compat.c: Likewise.
31073 * math/w_fmodf_compat.c: Likewise.
31074 * math/w_fmodl_compat.c: Likewise.
31075 * math/w_hypot_compat.c: Likewise.
31076 * math/w_hypotf_compat.c: Likewise.
31077 * math/w_hypotl_compat.c: Likewise.
31078 * math/w_j0_compat.c: Likewise.
31079 * math/w_j0f_compat.c: Likewise.
31080 * math/w_j0l_compat.c: Likewise.
31081 * math/w_j1_compat.c: Likewise.
31082 * math/w_j1f_compat.c: Likewise.
31083 * math/w_j1l_compat.c: Likewise.
31084 * math/w_jn_compat.c: Likewise.
31085 * math/w_jnf_compat.c: Likewise.
31086 * math/w_jnl_compat.c: Likewise.
31087 * math/w_lgamma_main.c: Likewise.
31088 * math/w_lgamma_r_compat.c: Likewise.
31089 * math/w_lgammaf_main.c: Likewise.
31090 * math/w_lgammaf_r_compat.c: Likewise.
31091 * math/w_lgammal_main.c: Likewise.
31092 * math/w_lgammal_r_compat.c: Likewise.
31093 * math/w_log10_compat.c: Likewise.
31094 * math/w_log10f_compat.c: Likewise.
31095 * math/w_log10l_compat.c: Likewise.
31096 * math/w_log2_compat.c: Likewise.
31097 * math/w_log2f_compat.c: Likewise.
31098 * math/w_log2l_compat.c: Likewise.
31099 * math/w_log_compat.c: Likewise.
31100 * math/w_logf_compat.c: Likewise.
31101 * math/w_logl_compat.c: Likewise.
31102 * math/w_pow_compat.c: Likewise.
31103 * math/w_powf_compat.c: Likewise.
31104 * math/w_powl_compat.c: Likewise.
31105 * math/w_remainder_compat.c: Likewise.
31106 * math/w_remainderf_compat.c: Likewise.
31107 * math/w_remainderl_compat.c: Likewise.
31108 * math/w_scalb_compat.c: Likewise.
31109 * math/w_scalbf_compat.c: Likewise.
31110 * math/w_scalbl_compat.c: Likewise.
31111 * math/w_sinh_compat.c: Likewise.
31112 * math/w_sinhf_compat.c: Likewise.
31113 * math/w_sinhl_compat.c: Likewise.
31114 * math/w_sqrt_compat.c: Likewise.
31115 * math/w_sqrtf_compat.c: Likewise.
31116 * math/w_sqrtl_compat.c: Likewise.
31117 * math/w_tgamma_compat.c: Likewise.
31118 * math/w_tgammaf_compat.c: Likewise.
31119 * math/w_tgammal_compat.c: Likewise.
31120 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31121 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31122 * sysdeps/ieee754/k_standard.c: Likewise.
31123 * sysdeps/ieee754/k_standardf.c: Likewise.
31124 * sysdeps/ieee754/k_standardl.c: Likewise.
31125 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31126 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31127 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31128 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31129 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31130 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31131 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31132 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31133 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31134 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31135 Likewise.
31136 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31137 Likewise.
31138 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31139 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31140 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31141 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31142
31143 2017-08-21 Florian Weimer <fweimer@redhat.com>
31144
31145 [BZ #21864]
31146 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31147 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31148 Move before inclusion of ../Rules.
31149
31150 2017-08-21 Florian Weimer <fweimer@redhat.com>
31151
31152 [BZ #21972]
31153 * assert/assert.h (assert): Use static_cast (bool) for C++.
31154 Use the ternary operator in the warning branch for GNU C.
31155 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31156 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31157 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31158 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31159 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31160
31161 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31162
31163 [BZ #18822]
31164 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31165 (__syscall_clock_gettime): Add attribute_hidden.
31166 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31167 (__start_context): Likewise.
31168
31169 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31170
31171 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31172 building libc.a.
31173 (hidden_proto): Likewise.
31174 (hidden_tls_proto): Likewise.
31175 (__hidden_proto): Likewise.
31176
31177 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31178
31179 * include/libc-symbols.h (attribute_hidden): Enable hidden
31180 visibility in libc.a compiled with PIE.
31181
31182 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31183
31184 [BZ #18822]
31185 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31186 Add attribute_hidden.
31187
31188 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31189
31190 [BZ #21864]
31191 * Makerules (all-nonlib): Add $(others-extras).
31192 * catgets/Makefile (others-extras): New.
31193 * elf/Makefile (others-extras): Likewise.
31194 * nss/Makefile (others-extras): Likewise.
31195
31196 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31197
31198 [BZ #18822]
31199 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31200 * elf/dl-open.c: Include <libc-internal.h>.
31201 (__libc_multiple_libcs): Removed.
31202 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31203 <hp-timing.h>.
31204 * include/libc-internal.h (__libc_multiple_libcs): New.
31205 * misc/sbrk.c: Include <libc-internal.h>.
31206 (__libc_multiple_libcs): Removed.
31207
31208 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31209
31210 [BZ #18822]
31211 * grp/initgroups.c (__nss_group_database): Removed.
31212 (__nss_initgroups_database): Likewise.
31213 * nscd/gai.c (__nss_hosts_database): Likewise.
31214 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31215 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31216 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31217 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31218 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31219 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31220 attribute_hidden.
31221 * nss/nsswitch.c (__nss_database_custom): Define only if
31222 USE_NSCD is defined.
31223 (__nss_configure_lookup): Use __nss_database_custom only if
31224 USE_NSCD is defined.
31225 * nss/nsswitch.h (__nss_database_custom): Declare only if
31226 USE_NSCD is defined. Add attribute_hidden.
31227 (__nss_setent): Add attribute_hidden.
31228 (__nss_endent): Likewise.
31229 (__nss_getent_r): Likewise.
31230 (__nss_getent): Likewise.
31231 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31232
31233 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31234
31235 [BZ #18822]
31236 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31237 libc_hidden_proto and libc_hidden_def.
31238
31239 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31240
31241 [BZ #18822]
31242 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31243 Add libc_hidden_proto.
31244 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31245 Add libc_hidden_def.
31246
31247 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31248
31249 [BZ #21974]
31250 * gmon/Makefile (routines): Remove bb_init_func and
31251 bb_exit_func.
31252 (elide-routines.os): Removed.
31253 * gmon/bb_exit_func.c: Likewise.
31254 * gmon/bb_init_func.c: Likewise.
31255 * include/sys/gmon.h (__bb): Likewise.
31256 (__bb_init_func): Likewise.
31257 (__bb_exit_func): Likewise.
31258 * sysdeps/alpha/bb_init_func.S: Likewise.
31259
31260 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31261
31262 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31263 * include/setjmp.h (____longjmp_chk): Here. Add
31264 attribute_hidden.
31265
31266 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31267
31268 [BZ #18822]
31269 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31270 attribute_hidden.
31271 (__strspn_sse2): Likewise.
31272
31273 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31274
31275 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31276 (close_not_cancel_no_status): Likewise.
31277 (__close_nocancel): New macro.
31278 (__close_nocancel_nostatus): Likewise.
31279 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31280 macro.
31281 (close_not_cancel): Likewise.
31282 (close_not_cancel_no_status): Likewise.
31283 (__close_nocancel): New prototype.
31284 (__close_nocancel_nostatus): New function.
31285 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31286 * catgets/open_catalog.c (__open_catalog): Replace
31287 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31288 * gmon/gmon.c (write_gmon): Likewise.
31289 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31290 * intl/loadmsgcat.c (close): Likewise.
31291 * io/ftw.c (open_dir_stream): Likewise.
31292 (ftw_startup): Likewise.
31293 * libio/fileops.c (_IO_file_open): Likewise.
31294 (_IO_file_close_mmap): Likewise.
31295 (_IO_file_close): Likewise.
31296 * libio/iopopen.c (_IO_dup2): Likewise.
31297 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31298 * locale/loadlocale.c (_nl_load_locale): Likewise.
31299 * login/utmp_file.c (pututline_file): Likewise.
31300 (endutent_file): Likewise.
31301 * misc/daemon.c (daemon): Likewise.
31302 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31303 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31304 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31305 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31306 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31307 * nscd/nscd_helper.c (open_socket): Likewise.
31308 (__nscd_open_socket): Likewise.
31309 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31310 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31311 (__nscd_innetgr): Likewise.
31312 * nss/nss_db/db-open.c (internal_setent): Likewise.
31313 * resolv/res-close.c (__res_iclose): Likewise.
31314 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31315 * sysdeps/posix/closedir.c (__closedir): Likewise.
31316 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31317 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31318 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31319 (opendir_tail): Likewise.
31320 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31321 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31322 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31323 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31324 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31325 (gethostid): Likewise.
31326 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31327 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31328 Likewise.
31329 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31330 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31331 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31332 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31333 Likewise.
31334 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31335 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31336 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31337 Likewise.
31338 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31339 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31340 Likewise.
31341 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31342 Likewise.
31343 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31344 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31345 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31346 __close_nocancel.
31347
31348 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31349 (openat_not_cancel_3): Likewise.
31350 (openat64_not_cancel_3): Likewise).
31351 (openat_not_cancel_3): Likewise).
31352 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31353 macro.
31354 (openat_not_cancel_3): Likewise.
31355 (openat64_not_cancel): Likewise.
31356 (openat64_not_cancel_3): Likewise.
31357 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31358 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31359 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31360 __open{64}_nocancel.
31361 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31362 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31363 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31364
31365 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31366
31367 [BZ #18822]
31368 * include/argz.h (__argz_create_sep): New function prototype.
31369 (__argz_append): Likewise.
31370 (__argz_add): Likewise.
31371 (__argz_add_sep): Likewise.
31372 (__argz_delete): Likewise.
31373 (__argz_insert): Likewise.
31374 (__argz_replace): Likewise.
31375 * string/argz.h (__argz_create_sep): Removed.
31376 (__argz_append): Likewise.
31377 (__argz_add): Likewise.
31378 (__argz_add_sep): Likewise.
31379 (__argz_delete): Likewise.
31380 (__argz_insert): Likewise.
31381 (__argz_replace): Likewise.
31382
31383 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31384
31385 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31386 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31387 (GNU_PROPERTY_STACK_SIZE): Likewie.
31388 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31389 (GNU_PROPERTY_LOPROC): Likewise.
31390 (GNU_PROPERTY_HIPROC): Likewise.
31391 (GNU_PROPERTY_LOUSER): Likewise.
31392 (GNU_PROPERTY_HIUSER): Likewise.
31393 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31394 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31395 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31396 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31397 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31398 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31399 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31400 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31401 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31402 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31403 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31404 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31405 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31406 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31407 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31408 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31409 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31410 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31411 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31412 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31413 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31414 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31415 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31416
31417 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31418
31419 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31420 in C++ mode.
31421
31422 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31423
31424 [BZ #21930]
31425 * math/math.h (isinf): Check if in C or C++ mode before using
31426 __builtin_types_compatible_p, since this is a C mode feature.
31427
31428 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31429
31430 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31431 (__write_nocancel): New macro.
31432 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31433 Rewrite as a function prototype.
31434 (write_not_cancel): Remove macro.
31435 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31436 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31437 (write_gmon): Likewise.
31438 * libio/fileops.c (_IO_new_file_write): Likewise.
31439 * login/utmp_file.c (pututline_file): Likewise.
31440 (updwtmp_file): Likewise.
31441 * stdio-common/psiginfo.c (psiginfo): Likewise.
31442 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31443 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31444 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31445 Likewise.
31446 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31447 Likewise.
31448
31449 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31450 (__read_nocancel): New macro.
31451 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31452 __read_nocancel.
31453 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31454 macro.
31455 (__read_nocancel): New prototype.
31456 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31457 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31458 with __read_nocancel.
31459 * intl/loadmsgcat.c (read): Likewise.
31460 * libio/fileops.c (_IO_file_read): Likewise.
31461 * locale/loadlocale.c (_nl_load_locale): Likewise.
31462 * login/utmp_file.c (getutent_r_file): Likewise.
31463 (internal_getut_r): Likewise.
31464 (getutline_r_file): Likewise.
31465 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31466 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31467 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31468 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31469 Likewise.
31470 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31471 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31472 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31473 Likewise.
31474 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31475 Likewise.
31476 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31477 Likewise.
31478 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31479 Likewise.
31480 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31481
31482 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31483
31484 [BZ #21966]
31485 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31486 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31487 usable.
31488
31489 2017-08-17 DJ Delorie <dj@redhat.com>
31490
31491 * bug17079.c: Update to new test harness.
31492 * test-digits-dots.c: Likewise.
31493 * test-netdb.c: Likewise.
31494 * tst-field.c: Likewise.
31495 * tst-nss-getpwent.c: Likewise.
31496 * tst-nss-static.c: Likewise.
31497 * tst-nss-test1.c: Likewise.
31498 * tst-nss-test2.c: Likewise.
31499 * tst-nss-test3.c: Likewise.
31500 * tst-nss-test4.c: Likewise.
31501 * tst-nss-test5.c: Likewise.
31502
31503 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31504
31505 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31506 (open_not_cancel_2): Likewise.
31507 (open_nocancel): New macro.
31508 (open64_nocancel): Likewise.
31509 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31510 (open_not_cancel_2): Likewise.
31511 (__open_nocancel): New prototype.
31512 (__open64_nocancel): Likewise.
31513 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31514 __open_nocancel.
31515 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31516 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31517 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31518 with __open_nocancel.
31519 * csu/check_fds.c (check_one_fd): Likewise.
31520 * gmon/gmon.c (write_gmon): Likewise.
31521 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31522 * intl/loadmsgcat.c (open): Likewise.
31523 * libio/fileops.c (_IO_file_open): Likewise.
31524 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31525 * locale/loadlocale.c (_nl_load_locale): Likewise.
31526 * login/utmp_file.c (setutent_file): Likewise.
31527 * misc/daemon.c (daemon): Likewise.
31528 * nss/nss_db/db-open.c (internal_setent): Likewise.
31529 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31530 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31531 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31532 (__opendir): Likewise.
31533 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31534 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31535 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31536 (gethostid): Likewise.
31537 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31538 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31539 Likewise.
31540 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31541 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31542 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31543 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31544 Likewise.
31545 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31546 Likewise.
31547 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31548 Likewise.
31549 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31550 Likewise.
31551 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31552 Likewise.
31553 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31554 Likewise.
31555 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31556 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31557
31558 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31559
31560 * benchtests/bench-skeleton.c (main): Add support for
31561 latency benchmarking.
31562 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31563
31564 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31565
31566 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31567 the startup object.
31568
31569 2017-08-17 Florian Weimer <fweimer@redhat.com>
31570
31571 * include/sys/socket.h (__opensock): Remove internal_function.
31572 * socket/opensock.c (__opensock): Likewise.
31573 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31574
31575 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31576
31577 [BZ #21944]
31578 * signal/bits/types/__sigval_t.h: New file.
31579 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31580 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31581 and define sigval_t using __sigval_t.
31582 * include/bits/types/__sigval_t.h: New file.
31583 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31584 instead of <bits/types/__sigval_t.h>.
31585 (struct sigevent): Use __sigval_t instead of sigval_t.
31586 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31587 instead of <bits/types/__sigval_t.h>.
31588 (siginfo_t): Use __sigval_t instead of sigval_t.
31589 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31590 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31591 (struct sigevent): Use __sigval_t instead of sigval_t.
31592 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31593 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31594 (siginfo_t): Use __sigval_t instead of sigval_t.
31595 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31596
31597 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31598
31599 * NEWS: Remove "[Add new features here]" for 2.27.
31600
31601 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31602
31603 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31604 libc.so.
31605
31606 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31607
31608 * NEWS: Mention x86-64 FMA optimization.
31609
31610 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31611
31612 [BZ #21912]
31613 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31614 Add e_expf-fma.
31615 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31616 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31617 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31618
31619 2017-08-16 Andreas Schwab <schwab@suse.de>
31620
31621 [BZ #16750]
31622 CVE-2009-5064
31623 * elf/ldd.bash.in: Never run file directly.
31624
31625 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31626
31627 [BZ #21955]
31628 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31629 (L(SP_INF_0)): Likewise.
31630
31631 2017-08-15 Florian Weimer <fweimer@redhat.com>
31632
31633 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31634 run-built-tests.
31635
31636 2017-08-15 Florian Weimer <fweimer@redhat.com>
31637
31638 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31639 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31640 BROKEN_THREAD_SIGNALS code.
31641 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31642 request_list): Remove caller_pid member used for
31643 BROKEN_THREAD_SIGNALS.
31644 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31645 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31646 Remove BROKEN_THREAD_SIGNALS support.
31647 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31648 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31649
31650 2017-08-15 Florian Weimer <fweimer@redhat.com>
31651
31652 * gmon/Makefile (tests): Add tst-gmon.
31653 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31654 Set.
31655 (tests-special): Add tst-gmon-prof.out.
31656 (tst-gmon.out): Depend on clean-tst-gmon-data.
31657 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31658 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31659 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31660 startup object.
31661 * aclocal.m4 (GPROF): Set and substitute.
31662 * config.amke.in (GPROF): Set.
31663 * configure: Regenerate.
31664
31665 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31666
31667 * elf/elf.h A (NT_PPC_TAR): New macro.
31668 (NT_PPC_PPR): Likewise.
31669 (NT_PPC_DSCR): Likewise.
31670 (NT_PPC_EBB): Likewise.
31671 (NT_PPC_PMU): Likewise.
31672 (NT_PPC_TM_CGPR): Likewise.
31673 (NT_PPC_TM_CFPR): Likewise.
31674 (NT_PPC_TM_CVMX): Likewise.
31675 (NT_PPC_TM_CVSX): Likewise.
31676 (NT_PPC_TM_SPR): Likewise.
31677 (NT_PPC_TM_CTAR): Likewise.
31678 (NT_PPC_TM_CPPR): Likewise.
31679 (NT_PPC_TM_CDSCR): Likewise.
31680
31681 2017-08-15 Florian Weimer <fweimer@redhat.com>
31682
31683 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31684 regparm (2) instead of internal_function.
31685 (_MCOUNT_DECL): Adjust.
31686
31687 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31688
31689 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31690 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31691
31692 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31693
31694 * conform/data/sys/wait.h-data (si_value): Do not expect for
31695 XPG42.
31696
31697 2017-08-14 Florian Weimer <fweimer@redhat.com>
31698
31699 [BZ #21962]
31700 NSS: Create stubs for accidentally exported lookup functions.
31701 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31702 Remove declaration.
31703 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31704 (ether_hostton): Call __nss_ethers_lookup2 instead.
31705 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31706 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31707 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31708 (setup): Call __nss_netgroup_lookup2 instead.
31709 * nss/Makefile (routines): Add compat-lookup.
31710 * nss/Versions (GLIBC_2.27): Add symbol version.
31711 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31712 (DB_COMPAT_FCT): Remove.
31713 * nss/compat-lookup.c: New file.
31714 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31715 from databases.def.
31716 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31717 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31718 (netname2user): Call __nss_publickey_lookup2 instead.
31719 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31720 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31721 instead.
31722
31723 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31724 Sergei Trofimovich <slyfox@inbox.ru>
31725
31726 [BZ #21908]
31727 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31728 Rename to MMAP2_PAGE_UNIT.
31729 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31730 __OFF_T_MATCHES_OFF64_T is not defined.
31731 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31732 uint64_t.
31733 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31734 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31735
31736 2017-08-14 Florian Weimer <fweimer@redhat.com>
31737
31738 i386: Do not set internal_function.
31739 * config.h.in (USE_REGPARMS, internal_function): Remove.
31740 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31741 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31742
31743 2017-08-14 Florian Weimer <fweimer@redhat.com>
31744
31745 * elf/dl-init.c (_dl_init): Remove internal_function.
31746 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31747 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31748
31749 2017-08-14 Florian Weimer <fweimer@redhat.com>
31750
31751 * elf/rtld.c (_dl_start): Remove internal_function.
31752 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31753 _dl_start.
31754
31755 2017-08-14 Florian Weimer <fweimer@redhat.com>
31756
31757 * elf/dl-fini.c (_dl_fini): Remove internal_function
31758 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31759
31760 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31761
31762 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31763 (bit_cpu_SHSTK): Likewise.
31764 (index_cpu_IBT): Likewise.
31765 (index_cpu_SHSTK): Likewise.
31766 (reg_IBT): Likewise.
31767 (reg_SHSTK): Likewise.
31768 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31769 Handle index_cpu_IBT and index_cpu_SHSTK.
31770
31771 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31772
31773 [BZ #19982]
31774 * po/fr.po: Fix spelling mistake.
31775
31776 2017-08-13 Florian Weimer <fweimer@redhat.com>
31777
31778 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31779 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31780 (_dl_catch_error, _dl_receive_error): Likewise.
31781 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31782 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31783 (_dl_deallocate_tls): Likewise.
31784 * include/dlfcn.h (_dl_addr): Likewise.
31785 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31786 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31787 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31788 Likewise.
31789
31790 2017-08-13 Florian Weimer <fweimer@redhat.com>
31791
31792 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31793 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31794 internal_function.
31795 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31796
31797 2017-08-13 Florian Weimer <fweimer@redhat.com>
31798
31799 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31800 internal_function.
31801 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31802 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31803 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31804 internal_function from _dl_make_stack_executable_hook member.
31805 (_dl_make_stack_executable): Remove internal_function.
31806 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31807 Likewise.
31808 * sysdeps/unix/sysv/linux/dl-execstack.c
31809 (_dl_make_stack_executable): Likewise.
31810
31811 2017-08-13 Florian Weimer <fweimer@redhat.com>
31812
31813 * sysdeps/unix/sysv/linux/netlinkaccess.h
31814 (__netlink_assert_response): Remove internal_function.
31815 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31816 (__netlink_assert_response): Likewise.
31817
31818 2017-08-13 Florian Weimer <fweimer@redhat.com>
31819
31820 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31821 internal_function.
31822 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31823
31824 2017-08-13 Florian Weimer <fweimer@redhat.com>
31825
31826 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31827 internal_function.
31828 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31829 * inet/netgroup.h (__internal_setnetgrent)
31830 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31831 * inet/getnetgrent_r.c (__internal_setnetgrent)
31832 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31833 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31834 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31835 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31836 * nss/nsswitch.h (db_lookup_function): Likewise.
31837
31838 2017-08-13 Florian Weimer <fweimer@redhat.com>
31839
31840 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31841 Remove internal_function.
31842 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31843 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31844 message argument on the stack.
31845 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31846 Likeweise.
31847
31848 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31849
31850 Adapt test case data to the changes in the thousands
31851 separators.
31852
31853 [BZ #20756]
31854 * localedata/tst-langinfo.sh: Adapt test case data.
31855 * stdlib/tst-strfmon_l.c: Likewise.
31856 * stdlib/tst-strtod4.c: Likewise.
31857 * stdlib/tst-strtod5i.c: Likewise.
31858
31859 2017-08-11 Florian Weimer <fweimer@redhat.com>
31860
31861 [BZ #21242]
31862 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31863 Suppress pedantic warning resulting from statement expression.
31864 (__ASSERT_FUNCTION): Add missing __extension__.
31865
31866 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31867
31868 * benchtests/bench-memmove-large.c: Print output in JSON
31869 format.
31870 * benchtests/bench-memmove.c: Likewise.
31871
31872 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31873 * benchtests/bench-memchr.c (do_one_test): Likewise.
31874 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31875 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31876 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31877 * benchtests/bench-memmove.c (do_one_test): Likewise.
31878 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31879 * benchtests/bench-memset.c (do_one_test): Likewise.
31880 * benchtests/bench-string.h (test_init): Remove memsets.
31881
31882 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31883
31884 * manual/lang.texi
31885 (Computing the Width of an Integer Data Type): Rename section to
31886 "Width of an Integer Type". Remove inaccurate statement regarding
31887 lack of C language facilities for determining width of integer
31888 types, and reorder content to improve flow and context of
31889 discussion.
31890
31891 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31892
31893 * lang.texi (va_copy): Change standard from ISO to C99.
31894 (__va_copy): Add standard and header annotation.
31895 Update description for clarity of origins and current use.
31896
31897 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31898
31899 [BZ #21941]
31900 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31901 xssqrtqp requires operands to be in Vector Registers
31902 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31903 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31904 (__ieee754_sqrtf128): Likewise.
31905
31906 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31907
31908 * sysdeps/aarch64/memcmp.S (memcmp):
31909 Rewrite of optimized memcmp.
31910
31911 2017-08-10 Florian Weimer <fweimer@redhat.com>
31912
31913 Introduce ld.so exceptions.
31914 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31915 (_dl_exception_create, _dl_exception_create_format)
31916 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31917 (_dl_catch_exception): Declare.
31918 (_dl_catch_error): Update comment.
31919 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31920 errstring, malloced members with exception member.
31921 (_dl_out_of_memory): Remove.
31922 (fatal_error): New function, extracted from _dl_signal_error.
31923 (_dl_signal_exception, _dl_signal_cexception): New functions.
31924 (_dl_signal_error): Call _dl_exception_create to allocate an
31925 exception object.
31926 (_dl_catch_exception): New function, based on _dl_catch_error.
31927 (_dl_catch_error): Implement using _dl_catch_exception.
31928 * elf/dl-exception.c: New file.
31929 * elf/Makefile (dl-routines): Add dl-exception.
31930 (elide-routines.os): Likewise.
31931 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31932 _dl_exception_create_format, _dl_exception_free.
31933 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31934 _dl_signal_exception.
31935 * elf/dl-lookup.c (make_string): Remove.
31936 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31937 _dl_signal_cexception, _dl_exception_free.
31938 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31939 _dl_signal_exception.
31940 * elf/dl-sym.c (do_sym): Likewise.
31941 * elf/dl-version.c (make_string): Remove.
31942 (match_symbol): Use _dl_exception_create_format,
31943 _dl_signal_cexception, _dl_exception_free.
31944 (_dl_check_map_versions): Likewise.
31945 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31946 _dl_catch_exception.
31947 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31948 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31949 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31950 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31951 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31952 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31953 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31954 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31955 Likewise.
31956 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31957 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31958 (ld.so): Likewise.
31959 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31960 (ld.so): Likewise.
31961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31962 Likewise.
31963 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31964 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31965 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31966 Likewise.
31967 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31968 Likewise.
31969 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31970
31971 2017-08-10 Florian Weimer <fweimer@redhat.com>
31972
31973 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31974 attribute_hidden, internal_function.
31975 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31976 internal_function.
31977
31978 2017-08-10 Florian Weimer <fweimer@redhat.com>
31979
31980 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31981 function which calls __builtin_unreachable.
31982
31983 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31984
31985 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31986 Indian monetary formatting
31987 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31988 test cases.
31989
31990 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31991
31992 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31993 Fix typo in comment.
31994
31995 [BZ #21928]
31996 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31997 PTRACE_SEIZE_DEVEL): Remove.
31998 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31999 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32000 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
32001 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
32002 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
32003
32004 2017-08-09 Joseph Myers <joseph@codesourcery.com>
32005
32006 * posix/bits/types.h (__qaddr_t): Remove.
32007
32008 [BZ #21457]
32009 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
32010 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32011 __glibc_reserved1.
32012 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
32013 (ucontext_t): Use __ctx with uc_flags.
32014 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
32015 (__ctxt): Likewise.
32016 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32017 __glibc_reserved1.
32018 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
32019 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32020 __glibc_reserved1.
32021 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
32022 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32023 __glibc_reserved1.
32024 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
32025 macro.
32026 (ucontext_t): Use __ctx with uc_flags.
32027 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
32028 (ucontext_t): Use __ctx with uc_flags.
32029 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
32030 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
32031 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
32032 (ucontext_t): Use __ctx with uc_flags.
32033 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
32034 undefine further down.
32035 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
32036 __glibc_reserved1.
32037 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32038 undefine further down.
32039 (ucontext_t): Use __ctx with uc_flags.
32040 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32041 undefine further down.
32042 (ucontext_t): Use __ctx with uc_flags.
32043 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32044 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32045 Rename uc_pad to __glibc_reserved1.
32046 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32047 undefine further down.
32048 (ucontext_t): Use __ctx with uc_flags.
32049 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32050 further down.
32051 (ucontext_t): Use __ctx with uc_flags.
32052 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32053 __ctx with uc_flags.
32054 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32055 (ucontext_t): Use __ctx with uc_flags.
32056 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32057 __ctx with uc_flags.
32058
32059 2017-08-09 Florian Weimer <fweimer@redhat.com>
32060
32061 [BZ #21932]
32062 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32063 before early return.
32064
32065 2017-08-09 Andreas Schwab <schwab@suse.de>
32066
32067 [BZ #21041]
32068 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32069 renamed alias.
32070
32071 [BZ #21041]
32072 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32073 tst-compat-forwarder.
32074 (modules-names): Add tst-compat-forwarder-mod.
32075 ($(objpfx)tst-compat-forwarder): Depend on
32076 $(objpfx)tst-compat-forwarder-mod.so.
32077 * nptl/tst-compat-forwarder.c: New file.
32078 * nptl/tst-compat-forwarder-mod.c: New file.
32079
32080 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
32081
32082 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32083 comments.
32084
32085 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32086 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32087 memcpy_falkor.
32088 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
32089 Bump.
32090 (__libc_ifunc_impl_list): Add __memcpy_falkor.
32091 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
32092 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
32093 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32094 Add falkor.
32095 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
32096 New macro.
32097
32098 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32099
32100 [BZ #759]
32101 * manual/setjmp.texi (getcontex): Document uc_stack value
32102 compatibility differences.
32103
32104 2017-08-08 Joseph Myers <joseph@codesourcery.com>
32105
32106 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
32107 (old_malloc_hook): Likewise.
32108 (old_memalign_hook): Likewise.
32109 (old_realloc_hook): Likewise.
32110 (struct hdr): Likewise.
32111 (flood): Likewise.
32112 (freehook): Likewise.
32113 (mallochook): Likewise.
32114 (memalignhook): Likewise.
32115 (reallochook): Likewise.
32116 (mprobe): Likewise.
32117 * malloc/mtrace.c (mallwatch): Likewise.
32118 (tr_old_free_hook): Likewise.
32119 (tr_old_malloc_hook): Likewise.
32120 (tr_old_realloc_hook): Likewise.
32121 (tr_old_memalign_hook): Likewise.
32122 (tr_where): Likewise.
32123 (lock_and_info): Likewise.
32124 (tr_freehook): Likewise.
32125 (tr_mallochook): Likewise.
32126 (tr_reallochook): Likewise.
32127 (tr_memalignhook): Likewise.
32128 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32129 * misc/mmap.c (__mmap): Likewise.
32130 * misc/mmap64.c (__mmap64): Likewise.
32131 * misc/mprotect.c (__mprotect): Likewise.
32132 * misc/msync.c (msync): Likewise.
32133 * misc/munmap.c (__munmap): Likewise.
32134 * posix/posix_madvise.c (posix_madvise): Likewise.
32135 * socket/send.c (__send): Likewise.
32136 * socket/sendto.c (__sendto): Likewise.
32137 * socket/setsockopt.c (__setsockopt): Likewise.
32138 * string/memcmp.c (__ptr_t): Remove macro.
32139 (MEMCMP): Use void * instead of ptr_t.
32140 * string/memrchr.c (__ptr_t): Remove macro.
32141 (__memrchr): Use void * instead of ptr_t.
32142 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32143 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32144 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32145 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32146 * sysdeps/mach/msync.c (msync): Likewise.
32147 * sysdeps/mach/munmap.c (__munmap): Likewise.
32148 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32149 Likewise.
32150 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32151 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32152 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32153 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32154 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32155 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32156 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32157 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32158 Likewise.
32159 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32160 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32161 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32162 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32163 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32164 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32165 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32166 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32167 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32168 Likewise.
32169 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32170 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32171 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32172 (MEMCMP): Use void * instead of ptr_t.
32173 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32174 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32175
32176 2017-08-08 Florian Weimer <fweimer@redhat.com>
32177
32178 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32179 return statement.
32180
32181 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32182
32183 [BZ #21913]
32184 * csu/libc-tls.c: Include <startup.h> first.
32185 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32186 * elf/dl-tunables.c: Include <startup.h> first.
32187 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32188 * sysdeps/generic/startup.h: New file.
32189 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32190 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32191 (I386_USE_SYSENTER): New. Defined to 0.
32192
32193 2017-08-08 Andreas Schwab <schwab@suse.de>
32194
32195 [BZ #21041]
32196 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32197 * nptl/pt-system.c (system): Likewise.
32198
32199 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32200
32201 [BZ #21780]
32202 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32203 EOPNOTSUPP.
32204 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32205 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32206 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32207 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32208 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32209 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32210 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32211
32212 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32213
32214 [BZ #21899]
32215 * bits/sigaction.h (struct sigaction): Define sa_handler and
32216 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32217 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32218 [__USE_XOPEN_EXTENDED].
32219 (SA_RESTART): Likewise.
32220 (SA_NODEFER): Likewise.
32221 (SA_RESETHAND): Likewise.
32222 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32223 (struct sigaction): Define sa_handler and sa_sigaction using union
32224 also for [__USE_XOPEN_EXTENDED].
32225 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32226 [__USE_XOPEN_EXTENDED].
32227 (SA_RESTART): Likewise.
32228 (SA_NODEFER): Likewise.
32229 (SA_RESETHAND): Likewise.
32230 * sysdeps/unix/sysv/linux/bits/sigaction.h
32231 (struct sigaction): Define sa_handler and sa_sigaction using union
32232 also for [__USE_XOPEN_EXTENDED].
32233 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32234 [__USE_XOPEN_EXTENDED].
32235 (SA_RESTART): Likewise.
32236 (SA_NODEFER): Likewise.
32237 (SA_RESETHAND): Likewise.
32238 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32239 (struct sigaction): Define sa_handler and sa_sigaction using union
32240 also for [__USE_XOPEN_EXTENDED].
32241 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32242 [__USE_XOPEN_EXTENDED].
32243 (SA_RESTART): Likewise.
32244 (SA_NODEFER): Likewise.
32245 (SA_RESETHAND): Likewise.
32246 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32247 (struct sigaction): Define sa_handler and sa_sigaction using union
32248 also for [__USE_XOPEN_EXTENDED].
32249 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32250 [__USE_XOPEN_EXTENDED].
32251 (SA_RESTART): Likewise.
32252 (SA_NODEFER): Likewise.
32253 (SA_RESETHAND): Likewise.
32254 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32255 (struct sigaction): Define sa_handler and sa_sigaction using union
32256 also for [__USE_XOPEN_EXTENDED].
32257 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32258 [__USE_XOPEN_EXTENDED].
32259 (SA_RESTART): Likewise.
32260 (SA_NODEFER): Likewise.
32261 (SA_RESETHAND): Likewise.
32262 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32263 (struct sigaction): Define sa_handler and sa_sigaction using union
32264 also for [__USE_XOPEN_EXTENDED].
32265 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32266 [__USE_XOPEN_EXTENDED].
32267 (SA_RESTART): Likewise.
32268 (SA_NODEFER): Likewise.
32269 (SA_RESETHAND): Likewise.
32270 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32271 (struct sigaction): Define sa_handler and sa_sigaction using union
32272 also for [__USE_XOPEN_EXTENDED].
32273 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32274 [__USE_XOPEN_EXTENDED].
32275 (SA_RESTART): Likewise.
32276 (SA_NODEFER): Likewise. Define directly rather than as alias.
32277 (SA_RESETHAND): Likewise.
32278 (SA_INTERRUPT): Define only for [__USE_MISC].
32279 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32280 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32281 [__USE_MISC].
32282 (SA_STACK): Define only for [__USE_MISC].
32283 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32284 (struct sigaction): Define sa_handler and sa_sigaction using union
32285 also for [__USE_XOPEN_EXTENDED].
32286 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32287 [__USE_XOPEN_EXTENDED].
32288 (SA_RESTART): Likewise.
32289 (SA_NODEFER): Likewise.
32290 (SA_RESETHAND): Likewise.
32291 (SA_NOPTRACE): Define only for [__USE_MISC].
32292
32293 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32294 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32295 (struct catalog_info): Likewise.
32296 * inet/htontest.c (lo): Likewise.
32297 (foo): Likewise.
32298 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32299 * inet/inet_net.c (inet_network): Likewise.
32300 * inet/inet_netof.c (inet_netof): Likewise.
32301 * inet/rcmd.c (__ivaliduser): Likewise.
32302 (iruserok): Likewise.
32303 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32304 * locale/programs/locale-spec.c (locale_special): Likewise.
32305 * nis/nis_findserv.c (struct findserv_req): Likewise.
32306 (__nis_findfastest_with_timeout): Likewise.
32307 * nss/test-netdb.c (test_network): Likewise.
32308 * resolv/inet_neta.c (inet_neta): Likewise.
32309 * resolv/ns_date.c (ns_datetosecs): Likewise.
32310 (SECS_PER_DAY): Likewise.
32311 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32312 Likewise.
32313 * resolv/res_comp.c (__putlong): Likewise.
32314 (__putshort): Likewise.
32315 (_getlong): Likewise.
32316 (_getshort): Likewise.
32317 * resolv/res_debug.c (p_time): Likewise.
32318 (precsize_ntoa): Likewise.
32319 (precsize_aton): Likewise.
32320 (latlon2ul): Likewise.
32321 (loc_aton): Likewise.
32322 (loc_ntoa): Likewise.
32323 * resolv/res_hconf.c (struct netaddr): Likewise.
32324 (_res_hconf_reorder_addrs): Likewise.
32325 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32326 (clnttcp_control): Likewise.
32327 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32328 (clntudp_control): Likewise.
32329 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32330 (clntunix_control): Likewise.
32331 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32332 * sunrpc/rpc/auth.h (union des_block): Likewise.
32333 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32334 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32335 (xdrrec_create): Likewise.
32336 (xdrrec_endofrecord): Likewise.
32337 (flush_out): Likewise.
32338 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32339 (xdrstdio_putlong): Likewise.
32340 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32341 Likewise.
32342
32343 * misc/sys/cdefs.h (__long_double_t): Remove.
32344 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32345 instead of __long_double_t,
32346 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32347
32348 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32349
32350 * benchtests/scripts/compare_strings.py: Avoid display error when
32351 running on a text terminal.
32352
32353 * benchtests/scripts/compare_strings.py (main): Add an
32354 optional -base option.
32355 (process_results): New argument base_func.
32356
32357 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32358 hardcoding memcpy.
32359 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32360 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32361
32362 2017-08-07 Andreas Schwab <schwab@suse.de>
32363
32364 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32365 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32366 * intl/Makefile ($(objpfx)tst-gettext.out)
32367 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32368 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32369 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32370 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32371 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32372 * posix/Makefile ($(objpfx)globtest.out)
32373 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32374 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32375 ($(objpfx)tst-printf.out): Likewise.
32376 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32377 ($(objpfx)tst-setcontext3.out): Likewise.
32378
32379 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32380
32381 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32382 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32383 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32384 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32385 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32386 and mptan-fma.
32387 (CFLAGS-doasin-fma.c): New.
32388 (CFLAGS-dosincos-fma.c): Likewise.
32389 (CFLAGS-e_asin-fma.c): Likewise.
32390 (CFLAGS-e_atan2-fma.c): Likewise.
32391 (CFLAGS-e_exp-fma.c): Likewise.
32392 (CFLAGS-e_log-fma.c): Likewise.
32393 (CFLAGS-e_pow-fma.c): Likewise.
32394 (CFLAGS-halfulp-fma.c): Likewise.
32395 (CFLAGS-mpa-fma.c): Likewise.
32396 (CFLAGS-mpatan-fma.c): Likewise.
32397 (CFLAGS-mpatan2-fma.c): Likewise.
32398 (CFLAGS-mpexp-fma.c): Likewise.
32399 (CFLAGS-mplog-fma.c): Likewise.
32400 (CFLAGS-mpsqrt-fma.c): Likewise.
32401 (CFLAGS-mptan-fma.c): Likewise.
32402 (CFLAGS-s_atan-fma.c): Likewise.
32403 (CFLAGS-sincos32-fma.c): Likewise.
32404 (CFLAGS-slowexp-fma.c): Likewise.
32405 (CFLAGS-slowpow-fma.c): Likewise.
32406 (CFLAGS-s_sin-fma.c): Likewise.
32407 (CFLAGS-s_tan-fma.c): Likewise.
32408 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32409 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32410 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32411 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32412 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32413 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32414 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32415 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32416 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32417 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32418 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32419 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32420 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32421 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32422 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32423 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32424 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32425 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32426 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32427 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32428 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32429 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32430 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32431 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32432 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32433 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32434 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32435 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32436 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32437 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32438 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32439
32440 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32441
32442 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32443 (min_of_type_f): New macro.
32444 (min_of_type_): Likewise.
32445 (min_of_type_l): Likewise.
32446 (min_of_type_f128): Likewise.
32447 (min_of_type): Define using __MATH_TG and taking an expression
32448 argument.
32449 (math_check_force_underflow): Pass expression instead of type to
32450 min_of_type.
32451 (math_check_force_underflow_nonneg): Likewise.
32452
32453 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32454
32455 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32456 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32457 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32458
32459 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32460
32461 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32462 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32463 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32464 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32465 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32466 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32467 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32468 memmove_chk-nonshared and memset_chk-nonshared
32469 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32470 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32471 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32472 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32473 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32474 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32475 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32476 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32477 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32478 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32479 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32480 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32481 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32482 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32483 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32484 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32485 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32486 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32487 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32488 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32489 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32490 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32491 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32492 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32493 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32494 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32495 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32496 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32497 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32498 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32499 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32500 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32501 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32502 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32503 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32504 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32505 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32506 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32507 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32508 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32509 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32510 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32511 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32512 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32513 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32514 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32515 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32516 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32517 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32518 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32519 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32520 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32521 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32522 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32523 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32524 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32525 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32526 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32527 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32528 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32529 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32530 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32531 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32532 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32533 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32534 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32535 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32536 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32537 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32538 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32539 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32540 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32541 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32542 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32543 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32544 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32545 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32546 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32547 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32548 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32549 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32550 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32551 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32552 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32553 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32554 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32555 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32556 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32557 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32558 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32559 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32560 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32561 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32562 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32563 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32564 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32565 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32566 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32567 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32568 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32569 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32570 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32571 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32572 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32573 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32574 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32575 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32576 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32577
32578 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32579
32580 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32581 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32582 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32583 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32584 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32585 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32586 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32587 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32588 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32589 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32590 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32591 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32592 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32593 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32594 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32595 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32596 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32597 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32598 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32599 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32600 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32601 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32602 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32603 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32604 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32605 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32606 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32607 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32608 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32609 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32610 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32611 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32612 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32613 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32614 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32615 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32616 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32617 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32618 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32619 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32620 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32621 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32622 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32623 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32624 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32625 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32626 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32627 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32628 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32629 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32630 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32631 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32632 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32633 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32634 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32635 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32636 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32637 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32638 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32639 ...
32640 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32641 Don't include <sysdep.h> nor <init-arch.h>.
32642 (_ZGVbN2v_cos): Removed.
32643 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32644 ...
32645 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32646 Don't include <sysdep.h> nor <init-arch.h>.
32647 (_ZGVdN4v_cos): Removed.
32648 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32649 ...
32650 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32651 Don't include <sysdep.h> nor <init-arch.h>.
32652 (_ZGVeN8v_cos): Removed.
32653 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32654 ...
32655 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32656 Don't include <sysdep.h> nor <init-arch.h>.
32657 (_ZGVbN2v_exp): Removed.
32658 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32659 ...
32660 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32661 Don't include <sysdep.h> nor <init-arch.h>.
32662 (_ZGVdN4v_exp): Removed.
32663 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32664 ...
32665 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32666 Don't include <sysdep.h> nor <init-arch.h>.
32667 (_ZGVeN8v_exp): Removed.
32668 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32669 ...
32670 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32671 Don't include <sysdep.h> nor <init-arch.h>.
32672 (_ZGVbN2v_log): Removed.
32673 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32674 ...
32675 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32676 Don't include <sysdep.h> nor <init-arch.h>.
32677 (_ZGVdN4v_log): Removed.
32678 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32679 ...
32680 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32681 Don't include <sysdep.h> nor <init-arch.h>.
32682 (_ZGVeN8v_log): Removed.
32683 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32684 ...
32685 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32686 Don't include <sysdep.h> nor <init-arch.h>.
32687 (_ZGVbN2vv_pow): Removed.
32688 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32689 ...
32690 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32691 Don't include <sysdep.h> nor <init-arch.h>.
32692 (_ZGVdN4vv_pow): Removed.
32693 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32694 ...
32695 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32696 Don't include <sysdep.h> nor <init-arch.h>.
32697 (_ZGVeN8vv_pow): Removed.
32698 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32699 ...
32700 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32701 Don't include <sysdep.h> nor <init-arch.h>.
32702 (_ZGVbN2v_sin): Removed.
32703 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32704 ...
32705 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32706 Don't include <sysdep.h> nor <init-arch.h>.
32707 (_ZGVbN4v_sin): Removed.
32708 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32709 ...
32710 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32711 Don't include <sysdep.h> nor <init-arch.h>.
32712 (_ZGVbN8v_sin): Removed.
32713 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32714 ...
32715 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32716 Don't include <sysdep.h> nor <init-arch.h>.
32717 (_ZGVbN2vvv_sincos): Removed.
32718 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32719 ...
32720 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32721 Don't include <sysdep.h> nor <init-arch.h>.
32722 (_ZGVdN4vvv_sincos): Removed.
32723 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32724 ...
32725 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32726 Don't include <sysdep.h> nor <init-arch.h>.
32727 (_ZGVeN8vvv_sincos): Removed.
32728 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32729 ...
32730 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32731 Don't include <sysdep.h> nor <init-arch.h>.
32732 (_ZGVeN16v_cosf): Removed.
32733 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32734 ...
32735 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32736 Don't include <sysdep.h> nor <init-arch.h>.
32737 (_ZGVbN4v_cosf): Removed.
32738 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32739 ...
32740 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32741 Don't include <sysdep.h> nor <init-arch.h>.
32742 (_ZGVdN8v_cosf): Removed.
32743 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32744 ...
32745 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32746 Don't include <sysdep.h> nor <init-arch.h>.
32747 (_ZGVeN16v_expf): Removed.
32748 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32749 ...
32750 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32751 Don't include <sysdep.h> nor <init-arch.h>.
32752 (_ZGVbN4v_expf): Removed.
32753 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32754 ...
32755 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32756 Don't include <sysdep.h> nor <init-arch.h>.
32757 (_ZGVdN8v_expf): Removed.
32758 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32759 ...
32760 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32761 Don't include <sysdep.h> nor <init-arch.h>.
32762 (_ZGVeN16v_logf): Removed.
32763 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32764 ...
32765 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32766 Don't include <sysdep.h> nor <init-arch.h>.
32767 (_ZGVbN4v_logf): Removed.
32768 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32769 ...
32770 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32771 Don't include <sysdep.h> nor <init-arch.h>.
32772 (_ZGVdN8v_logf): Removed.
32773 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32774 ...
32775 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32776 Don't include <sysdep.h> nor <init-arch.h>.
32777 (_ZGVeN16vv_powf): Removed.
32778 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32779 ...
32780 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32781 Don't include <sysdep.h> nor <init-arch.h>.
32782 (_ZGVbN4vv_powf): Removed.
32783 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32784 ...
32785 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32786 Don't include <sysdep.h> nor <init-arch.h>.
32787 (_ZGVdN8vv_powf): Removed.
32788 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32789 ...
32790 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32791 Don't include <sysdep.h> nor <init-arch.h>.
32792 (_ZGVeN16vvv_sincosf): Removed.
32793 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32794 ...
32795 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32796 Don't include <sysdep.h> nor <init-arch.h>.
32797 (_ZGVbN4vvv_sincosf): Removed.
32798 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32799 ...
32800 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32801 Don't include <sysdep.h> nor <init-arch.h>.
32802 (_ZGVdN8vvv_sincosf): Removed.
32803 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32804 ...
32805 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32806 Don't include <sysdep.h> nor <init-arch.h>.
32807 (_ZGVeN16v_sinf): Removed.
32808 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32809 ...
32810 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32811 Don't include <sysdep.h> nor <init-arch.h>.
32812 (_ZGVbN4v_sinf): Removed.
32813 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32814 ...
32815 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32816 Don't include <sysdep.h> nor <init-arch.h>.
32817 (_ZGVdN8v_sinf): Removed.
32818
32819 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32820
32821 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32822 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32823 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32824 s_rint-sse4_1 and s_rintf-sse4_1.
32825 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32826 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32827 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32828 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32829 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32830 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32831 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32832 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32833 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32834 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32835 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32836 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32837 (__ceil): Removed.
32838 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32839 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32840 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32841 (__ceilf): Removed.
32842 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32843 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32844 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32845 (__floor): Removed.
32846 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32847 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32848 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32849 (__floorf): Removed.
32850 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32851 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32852 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32853 (__nearbyint): Removed.
32854 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32855 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32856 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32857 (__nearbyintf): Removed.
32858 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32859 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32860 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32861 (__rint): Removed.
32862 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32863 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32864 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32865 (__rintf): Removed.
32866
32867 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32868
32869 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32870 SHARED. Avoid dynamic relocation against main in static PIE.
32871
32872 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32873
32874 [BZ #21815]
32875 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32876 (LDFLAGS-tst-prelink): Likewise.
32877
32878 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32879
32880 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32881 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32882 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32883 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32884 (INTERNAL_SYSCALL_NCS): Likewise.
32885 (LOADARGS_1): Likewise.
32886 (LOADARGS_5): Likewise.
32887 (RESTOREARGS_1): Likewise.
32888 (RESTOREARGS_5): Likewise.
32889
32890 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32891
32892 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32893 (MEMPCPY_SYMBOL): Likewise.
32894 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32895 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32896 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32897 in libc.a.
32898 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32899 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32900 Likewise.
32901 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32902 (__hidden_ver1): Don't use in libc.a.
32903 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32904 (__mempcpy): Don't create a weak alias in libc.a.
32905 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32906 libc.a.
32907 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32908 (__hidden_ver1): Don't use in libc.a.
32909
32910 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32911
32912 * config.make.in (have-insert): New.
32913 * configure.ac (libc_cv_insert): New. Set to yes if linker
32914 supports INSERT in linker script.
32915 (AC_SUBST(libc_cv_insert): New.
32916 * configure: Regenerated.
32917 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32918 if $(have-insert) == yes.
32919
32920 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32921
32922 * elf/Makefile (tests): Add vismain only if
32923 $(have-protected-data) == yes.
32924 (tests-pie): Likewise.
32925
32926 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32927
32928 [BZ #21871]
32929 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32930 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32931
32932 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32933
32934 [BZ #21790]
32935 * sysdeps/i386/i586/memset.S
32936 (__memset_zero_constant_len_parameter): Removed.
32937 * sysdeps/i386/i686/memset.S
32938 (__memset_zero_constant_len_parameter): Likewise.
32939 * sysdeps/i386/i686/multiarch/memset_chk.S
32940 (__memset_zero_constant_len_parameter): Likewise.
32941 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32942 Likewise.
32943
32944 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32945
32946 * stdlib/getentropy.c (getentropy): Change return type to int.
32947
32948 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32949
32950 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32951
32952 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32953
32954 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32955 u_intN_t.
32956 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32957 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32958 Likewise.
32959 (ieee_float_shape_type): Likewise.
32960 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32961 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32962 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32963 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32964 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32965 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32966 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32967 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32968 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32969 Likewise.
32970 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32971 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32972 (__ieee754_yn): Likewise.
32973 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32974 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32975 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32976 Likewise.
32977 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32978 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32979 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32980 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32981 (__erfc): Likewise.
32982 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32983 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32984 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32985 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32986 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32987 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32988 Likewise.
32989 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32990 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32991 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32992 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32993 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32994 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32995 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32996 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32997 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32998 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32999 (__issignaling): Likewise.
33000 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
33001 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
33002 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
33003 Likewise.
33004 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
33005 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33006 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
33007 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
33008 Likewise.
33009 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
33010 Likewise.
33011 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
33012 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
33013 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
33014 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
33015 (__erfcf): Likewise.
33016 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
33017 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
33018 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
33019 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
33020 Likewise.
33021 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
33022 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
33023 Likewise.
33024 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
33025 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
33026 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
33027 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
33028 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
33029 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33030 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
33031 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
33032 Likewise.
33033 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
33034 Likewise.
33035 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33036 Likewise.
33037 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33038 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33039 Likewise.
33040 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33041 Likewise.
33042 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33043 (__ieee754_ynl): Likewise.
33044 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33045 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33046 Likewise.
33047 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33048 Likewise.
33049 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33050 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33051 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33052 Likewise.
33053 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33054 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33055 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33056 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33057 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33058 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33059 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33060 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33061 Likewise.
33062 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33063 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33064 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33065 Likewise.
33066 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33067 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33068 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33069 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33070 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33071 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33072 Likewise.
33073 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33074 Likewise.
33075 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33076 Likewise.
33077 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33078 Likewise.
33079 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33080 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33081 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33082 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33083 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33084 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33085 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33086 Likewise.
33087 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33088 Likewise.
33089 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
33090 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
33091 Likewise.
33092 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
33093 (__ieee754_remainderl): Likewise.
33094 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33095 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33096 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
33097 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
33098 Likewise.
33099 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
33100 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33101 Likewise.
33102 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33103 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
33104 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
33105 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
33106 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33107 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
33108 Likewise.
33109 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33110 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33111 (__ieee754_y0l): Likewise.
33112 (pzero): Likewise.
33113 (qzero): Likewise.
33114 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33115 (__ieee754_y1l): Likewise.
33116 (pone): Likewise.
33117 (qone): Likewise.
33118 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33119 (__ieee754_ynl): Likewise.
33120 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33121 (__ieee754_lgammal_r): Likewise.
33122 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33123 Likewise.
33124 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33125 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33126 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33127 (__erfcl): Likewise.
33128 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33129 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33130 Likewise.
33131 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33132 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33133 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33134 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33135 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33136 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33137 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33138 Likewise.
33139 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33140 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33141 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33142 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33143 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33144 Likewise.
33145 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33146 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33147 Likewise.
33148 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33149 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33150 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33151 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33152 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33153
33154 2017-08-03 Florian Weimer <fweimer@redhat.com>
33155
33156 [BZ #21885]
33157 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33158 on memory allocation failure.
33159
33160 2017-08-03 Alan Modra <amodra@gmail.com>
33161
33162 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33163 tst-tlsopt-powerpc.c with function name change and no test harness.
33164 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33165 Call tls_get_addr_opt_test.
33166 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33167 (modules-names): Add mod-tlsopt-powerpc.
33168 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33169 (tst-tlsopt-powerpc): Depend on .so.
33170 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33171 define. Expand use in TLS_GD and TLS_LD.
33172
33173 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33174
33175 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33176 function.
33177 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33178
33179 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33180
33181 [BZ #21686]
33182 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33183 comparing size with that of double.
33184 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33185 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33186 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33187 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33188 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33189 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33190 unsigned __int128 types.
33191
33192 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33193
33194 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33195 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33196 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33197 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33198 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33199
33200 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33201
33202 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33203
33204 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33205
33206 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33207 of SHARED.
33208 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33209 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33210 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33211 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33212 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33213 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33214 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33215
33216 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33217
33218 [BZ #21685]
33219 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33220 bit-field expressions passed to sizeof or typeof.
33221 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33222 (__TGMATH_F128): Likewise.
33223 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33224 (__TGMATH_CF128): Likewise.
33225 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33226 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33227 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33228 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33229 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33230 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33231 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33232 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33233 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33234 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33235 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33236 (__TGMATH_UNARY_IMAG): Likewise.
33237 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33238 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33239 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33240 type.
33241 (define_vars_for_type): Handle bit_field type specially.
33242 (Tests.__init__): Declare structure with bit-field element.
33243
33244 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33245
33246 [BZ #21791]
33247 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33248 (MEMCPY_CHK): Define only if SHARED is defined.
33249 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33250 Likewise.
33251 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33252 Likewise.
33253
33254 See ChangeLog.18 for earlier changes.